{"id":7993,"date":"2016-12-15T10:37:06","date_gmt":"2016-12-15T18:37:06","guid":{"rendered":"http:\/\/blog.mozilla.org\/addons\/?p=7993"},"modified":"2016-12-15T11:06:41","modified_gmt":"2016-12-15T19:06:41","slug":"compatibility-for-firefox-52","status":"publish","type":"post","link":"https:\/\/blog.mozilla.org\/addons\/2016\/12\/15\/compatibility-for-firefox-52\/","title":{"rendered":"Add-on Compatibility for Firefox 52"},"content":{"rendered":"<p>If you haven&#8217;t read it yet, please give our <a href=\"https:\/\/blog.mozilla.org\/addons\/2016\/11\/23\/add-ons-in-2017\/\">plans for 2017<\/a> a look. These updates are aimed mostly at add-ons using legacy APIs, but <a href=\"https:\/\/developer.mozilla.org\/en-US\/Add-ons\/WebExtensions\">WebExtensions<\/a> is the way forward.<\/p>\n<p>Firefox 52 will be <a href=\"https:\/\/wiki.mozilla.org\/RapidRelease\/Calendar\">released<\/a> on March 7th. Here&#8217;s the list of changes that went into this version that can affect add-on compatibility. There is more information available in <a href=\"https:\/\/developer.mozilla.org\/en-US\/Firefox\/Releases\/52\">Firefox 52 for Developers<\/a>, so you should also give it a look.<\/p>\n<h3>General<\/h3>\n<ul>\n<li><strong><a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=1269807\">Remove support for all NPAPI plugins (except Flash)<\/a>.<\/strong> Read <a href=\"https:\/\/blog.mozilla.org\/futurereleases\/2016\/07\/20\/reducing-adobe-flash-usage-in-firefox\/\">this blog post<\/a> for more information.<\/li>\n<li><a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=92737\">DnD of multiple shortcuts from desktop only opens one<\/a>. This enables drag and drop of multiple links to the browser area, which includes some changes like replacing <code>browserDragAndDrop.drop<\/code> with <code>browserDragAndDrop.dropLinks<\/code>.<\/li>\n<li><a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=1303518\">The ChromeFilePropertyBag versions of the File constructors are web-observable<\/a>. This replaces the <code>File<\/code> constructors with the static functions <code>CreateFromFileName<\/code> and <code>CreateFromNsIFile<\/code>.<\/li>\n<li><a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=1298243\">Drag and Drop: <code>DataTransfer.types<\/code> is wrong type<\/a>. Instead of<br \/>\n<code>dataTransfer.types.contains<\/code>, add-ons should use <code>dataTransfer.types.includes<\/code>. <a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=1309970\">A shim was added<\/a> to preserve compatibility, but it&#8217;s temporary.<\/li>\n<li><a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=1307730\">Crash with Youtube Subtiltle Downloader<\/a>. This change makes CORS requests from add-ons using an expanded principal not work.<\/li>\n<li><a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=931389\">Deprecate and remove <code>CanvasRenderingContext2D.mozDash\/mozDashOffset<\/code><\/a>.<\/li>\n<li><a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=1313580\">Remove web content access to Battery API<\/a>.<\/li>\n<\/ul>\n<h3>XPCOM and Modules<\/h3>\n<ul>\n<li><a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=1312143\">Delete toolkit\/obsolete<\/a>. There are some utility objects there used by older add-ons, like<br \/>\n<code>nsPreferences<\/code> in <code>nsUserSettings.js<\/code> and the string bundle functions in <code>strres.js<\/code>.<\/li>\n<li><a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=1315812\">Mark <code>nsISupportsArray<\/code>, <code>nsICollection<\/code>, <code>nsIEnumerator<\/code> as deprecated<\/a>. These interfaces, particularly <code>nsISupportsArray<\/code>, are used in many components add-ons use. They are being replaced with <a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Mozilla\/Tech\/XPCOM\/Reference\/Interface\/nsIArray\"><code>nsIArray<\/code><\/a>:\n<ul>\n<li><a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=1309698\">Remove <code>nsISupportsArray<\/code> usage from <code>nsIDragService<\/code><\/a>.<\/li>\n<li><a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=1311191\">Convert <code>inIDOMUtils.getCSSStyleRules<\/code> to <code>nsIArray<\/code><\/a>.<\/li>\n<li><a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=1312901\">Use <code>nsIArray<\/code> for URL window argument<\/a>.<\/li>\n<li><a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=1310017\">Remove <code>nsISupportsArray<\/code> usage from <code>nsITransferable<\/code> and <code>nsIFormatConverter<\/code><\/a>.<\/li>\n<\/ul>\n<\/li>\n<li><a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=1311673\"><code>ImageDocument::ImageResizingEnabled<\/code> is unused<\/a>.<\/li>\n<\/ul>\n<h3>Themes<\/h3>\n<ul>\n<li><a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=1302157\">Remove support for obsolete <code>-moz-images-in-menus<\/code> and <code>-moz-images-in-buttons<\/code> media queries<\/a>.<\/li>\n<\/ul>\n<p>Let me know in the comments if there&#8217;s anything missing or incorrect on these lists. If your add-on breaks on Firefox 52, I&#8217;d like to know.<\/p>\n<p>The automatic compatibility validation and upgrade for add-ons on AMO will happen in a few weeks, so keep an eye on your email if you have an add-on listed on our site with its compatibility set to Firefox 51.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you haven&#8217;t read it yet, please give our plans for 2017 a look. These updates are aimed mostly at add-ons using legacy APIs, but WebExtensions is the way forward. &hellip; <a class=\"go\" href=\"https:\/\/blog.mozilla.org\/addons\/2016\/12\/15\/compatibility-for-firefox-52\/\">Read more<\/a><\/p>\n","protected":false},"author":173,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[388,44,295],"tags":[278877,278873,278876,288919],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Add-on Compatibility for Firefox 52 - Mozilla Add-ons Community Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/blog.mozilla.org\/addons\/2016\/12\/15\/compatibility-for-firefox-52\/\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jorge Villalobos\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/blog.mozilla.org\/addons\/2016\/12\/15\/compatibility-for-firefox-52\/\",\"url\":\"https:\/\/blog.mozilla.org\/addons\/2016\/12\/15\/compatibility-for-firefox-52\/\",\"name\":\"Add-on Compatibility for Firefox 52 - Mozilla Add-ons Community Blog\",\"isPartOf\":{\"@id\":\"https:\/\/blog.mozilla.org\/addons\/#website\"},\"datePublished\":\"2016-12-15T18:37:06+00:00\",\"dateModified\":\"2016-12-15T19:06:41+00:00\",\"author\":{\"@id\":\"https:\/\/blog.mozilla.org\/addons\/#\/schema\/person\/a098261b4b5510d408ff31f492606925\"},\"breadcrumb\":{\"@id\":\"https:\/\/blog.mozilla.org\/addons\/2016\/12\/15\/compatibility-for-firefox-52\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/blog.mozilla.org\/addons\/2016\/12\/15\/compatibility-for-firefox-52\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/blog.mozilla.org\/addons\/2016\/12\/15\/compatibility-for-firefox-52\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/blog.mozilla.org\/addons\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Add-on Compatibility for Firefox 52\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/blog.mozilla.org\/addons\/#website\",\"url\":\"https:\/\/blog.mozilla.org\/addons\/\",\"name\":\"Mozilla Add-ons Community Blog\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/blog.mozilla.org\/addons\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/blog.mozilla.org\/addons\/#\/schema\/person\/a098261b4b5510d408ff31f492606925\",\"name\":\"Jorge Villalobos\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/blog.mozilla.org\/addons\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/6d1966118f16e4b99a6e3ad07883be33?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/6d1966118f16e4b99a6e3ad07883be33?s=96&d=mm&r=g\",\"caption\":\"Jorge Villalobos\"},\"description\":\"Jorge is the Product Manager for addons.mozilla.org\",\"url\":\"https:\/\/blog.mozilla.org\/addons\/author\/jvillalobosmozilla-com\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Add-on Compatibility for Firefox 52 - Mozilla Add-ons Community Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/blog.mozilla.org\/addons\/2016\/12\/15\/compatibility-for-firefox-52\/","twitter_misc":{"Written by":"Jorge Villalobos","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/blog.mozilla.org\/addons\/2016\/12\/15\/compatibility-for-firefox-52\/","url":"https:\/\/blog.mozilla.org\/addons\/2016\/12\/15\/compatibility-for-firefox-52\/","name":"Add-on Compatibility for Firefox 52 - Mozilla Add-ons Community Blog","isPartOf":{"@id":"https:\/\/blog.mozilla.org\/addons\/#website"},"datePublished":"2016-12-15T18:37:06+00:00","dateModified":"2016-12-15T19:06:41+00:00","author":{"@id":"https:\/\/blog.mozilla.org\/addons\/#\/schema\/person\/a098261b4b5510d408ff31f492606925"},"breadcrumb":{"@id":"https:\/\/blog.mozilla.org\/addons\/2016\/12\/15\/compatibility-for-firefox-52\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/blog.mozilla.org\/addons\/2016\/12\/15\/compatibility-for-firefox-52\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/blog.mozilla.org\/addons\/2016\/12\/15\/compatibility-for-firefox-52\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/blog.mozilla.org\/addons\/"},{"@type":"ListItem","position":2,"name":"Add-on Compatibility for Firefox 52"}]},{"@type":"WebSite","@id":"https:\/\/blog.mozilla.org\/addons\/#website","url":"https:\/\/blog.mozilla.org\/addons\/","name":"Mozilla Add-ons Community Blog","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/blog.mozilla.org\/addons\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/blog.mozilla.org\/addons\/#\/schema\/person\/a098261b4b5510d408ff31f492606925","name":"Jorge Villalobos","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/blog.mozilla.org\/addons\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/6d1966118f16e4b99a6e3ad07883be33?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/6d1966118f16e4b99a6e3ad07883be33?s=96&d=mm&r=g","caption":"Jorge Villalobos"},"description":"Jorge is the Product Manager for addons.mozilla.org","url":"https:\/\/blog.mozilla.org\/addons\/author\/jvillalobosmozilla-com\/"}]}},"_links":{"self":[{"href":"https:\/\/blog.mozilla.org\/addons\/wp-json\/wp\/v2\/posts\/7993"}],"collection":[{"href":"https:\/\/blog.mozilla.org\/addons\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.mozilla.org\/addons\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.mozilla.org\/addons\/wp-json\/wp\/v2\/users\/173"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.mozilla.org\/addons\/wp-json\/wp\/v2\/comments?post=7993"}],"version-history":[{"count":0,"href":"https:\/\/blog.mozilla.org\/addons\/wp-json\/wp\/v2\/posts\/7993\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.mozilla.org\/addons\/wp-json\/wp\/v2\/media?parent=7993"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.mozilla.org\/addons\/wp-json\/wp\/v2\/categories?post=7993"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.mozilla.org\/addons\/wp-json\/wp\/v2\/tags?post=7993"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}