{"id":6112,"date":"2013-03-20T14:00:43","date_gmt":"2013-03-20T21:00:43","guid":{"rendered":"http:\/\/blog.mozilla.org\/addons\/?p=6112"},"modified":"2013-03-20T14:00:43","modified_gmt":"2013-03-20T21:00:43","slug":"compatibility-for-firefox-20","status":"publish","type":"post","link":"https:\/\/blog.mozilla.org\/addons\/2013\/03\/20\/compatibility-for-firefox-20\/","title":{"rendered":"Add-on Compatibility for Firefox 20"},"content":{"rendered":"<p>Firefox 20 will be released on April 2nd. 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\/docs\/Firefox_20_for_developers\">Firefox 20 for Developers<\/a>, so you should read that too.<\/p>\n<h3>General<\/h3>\n<ul>\n<li><a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=776928\"><strong>When doing lazy tab restoration, set the &lt;browser&gt;s in question to display:none<\/strong><\/a>. This helps reduce memory consumption by loading as little as possible for tabs that were session-restored but haven&#8217;t been selected by the user yet. However, this also means that the content of those tabs will be inaccessible to add-ons. You can check for unloaded tabs using <em>tab.getAttribute(&#8220;pending&#8221;)<\/em> or <em>tab.linkedBrowser.getAttribute(&#8220;pending&#8221;)<\/em>.<\/li>\n<li><a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=763295\">Port the bookmarks export service to JavaScript<\/a>. Eliminates\u00a0nsIPlacesImportExportService and moves the migration function to\u00a0BookmarkHTMLUtils.jsm.<\/li>\n<li><a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=726444\">Implement the Downloads Panel<\/a>. While the Download Manager still exists, this new UI significantly changes the way downloads appear initially.<\/li>\n<li><a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=788290\">Turn javascript.options.xml.chrome off by default<\/a>. This is the next step in completely removing <a href=\"https:\/\/developer.mozilla.org\/en\/E4X\">E4X<\/a> support in Firefox.<\/li>\n<li><a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=766799\">Redirects visits are not notified anymore through history observers<\/a>. This means history observers will get some new unexpected notifications.<\/li>\n<\/ul>\n<h3>Private Browsing<\/h3>\n<p>Private Browsing Mode is changing to support private and non-private windows opened at the same time. This means that many XPCOM interfaces and other functions are changing to support it.<\/p>\n<ul>\n<li><strong><a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=818800\">Remove the global private browsing service<\/a><\/strong>. This removes nsIPrivateBrowsingService for all practical services. The interface is <a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=826037\">still there<\/a> for backward compatibility purposes, but it&#8217;s completely empty, along with its observer notifications: private-browsing, private-browsing-transition-complete, private-browsing-cancel-vote, private-browsing-change-granted.<\/li>\n<\/ul>\n<p>There&#8217;s more information about the new private browsing in these docs: <a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Supporting_per-window_private_browsing\">Supporting PBM<\/a>, and <a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Updating_addons_broken_by_private_browsing_changes\">Updating add-ons broken by PB changes<\/a>.<\/p>\n<h3>XPCOM<\/h3>\n<ul>\n<li><a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=827546\">|non editable element|.QueryInterface(Components.interfaces.nsIDOMNSEditableElement) does not throw anymore<\/a>. If you were using QueryInterface to check for editable elements, this won&#8217;t work in 20. While this was fixed in 21 and above, it&#8217;s recommended that you use instanceof instead.<\/li>\n<li><a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=816362\">Refactor imgTools::DecodeImageData<\/a>. This deprecates the\u00a0decodeImageData function in favor of the new\u00a0decodeImage function in the same interface.<\/li>\n<li><a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=816410\">Convert XMLSerializer and DOMParser to WebIDL bindings<\/a>. Removes\u00a0nsIDOMParserJS. See <a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/nsIDOMParser\">nsIDOMParser<\/a> for alternatives.<\/li>\n<li><a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=813787\">Remove support for image-sniffing-services<\/a>. This removes the image-sniffing-services XPCOM category.<\/li>\n<li><a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=819639\">Move EventSource to Paris bindings<\/a>. Removes\u00a0nsIEventSource.<\/li>\n<\/ul>\n<h3>New!<\/h3>\n<ul>\n<li><a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=433168\">Context menu is not shown for form buttons and select elements<\/a><a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=772808\">.<\/a><\/li>\n<li><a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=825849\">Add a RemoveAllDownloads API to nsIDownloadHistory<\/a>.<\/li>\n<\/ul>\n<p>Please let me know in the comments if there&#8217;s anything missing or incorrect on these lists. If your add-on breaks on Firefox 20, I&#8217;d like to know.<\/p>\n<p>The automatic compatibility validation and upgrade for add-ons on AMO will happen very soon, so check your email if you have an add-on listed on AMO.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Firefox 20 will be released on April 2nd. Here&#8217;s the list of changes that went into this version that can affect add-on compatibility. There is more information available in Firefox &hellip; <a class=\"go\" href=\"https:\/\/blog.mozilla.org\/addons\/2013\/03\/20\/compatibility-for-firefox-20\/\">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,28085,21031],"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 20 - 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\/2013\/03\/20\/compatibility-for-firefox-20\/\" \/>\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\/2013\/03\/20\/compatibility-for-firefox-20\/\",\"url\":\"https:\/\/blog.mozilla.org\/addons\/2013\/03\/20\/compatibility-for-firefox-20\/\",\"name\":\"Add-on Compatibility for Firefox 20 - Mozilla Add-ons Community Blog\",\"isPartOf\":{\"@id\":\"https:\/\/blog.mozilla.org\/addons\/#website\"},\"datePublished\":\"2013-03-20T21:00:43+00:00\",\"dateModified\":\"2013-03-20T21:00:43+00:00\",\"author\":{\"@id\":\"https:\/\/blog.mozilla.org\/addons\/#\/schema\/person\/a098261b4b5510d408ff31f492606925\"},\"breadcrumb\":{\"@id\":\"https:\/\/blog.mozilla.org\/addons\/2013\/03\/20\/compatibility-for-firefox-20\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/blog.mozilla.org\/addons\/2013\/03\/20\/compatibility-for-firefox-20\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/blog.mozilla.org\/addons\/2013\/03\/20\/compatibility-for-firefox-20\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/blog.mozilla.org\/addons\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Add-on Compatibility for Firefox 20\"}]},{\"@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 20 - 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\/2013\/03\/20\/compatibility-for-firefox-20\/","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\/2013\/03\/20\/compatibility-for-firefox-20\/","url":"https:\/\/blog.mozilla.org\/addons\/2013\/03\/20\/compatibility-for-firefox-20\/","name":"Add-on Compatibility for Firefox 20 - Mozilla Add-ons Community Blog","isPartOf":{"@id":"https:\/\/blog.mozilla.org\/addons\/#website"},"datePublished":"2013-03-20T21:00:43+00:00","dateModified":"2013-03-20T21:00:43+00:00","author":{"@id":"https:\/\/blog.mozilla.org\/addons\/#\/schema\/person\/a098261b4b5510d408ff31f492606925"},"breadcrumb":{"@id":"https:\/\/blog.mozilla.org\/addons\/2013\/03\/20\/compatibility-for-firefox-20\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/blog.mozilla.org\/addons\/2013\/03\/20\/compatibility-for-firefox-20\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/blog.mozilla.org\/addons\/2013\/03\/20\/compatibility-for-firefox-20\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/blog.mozilla.org\/addons\/"},{"@type":"ListItem","position":2,"name":"Add-on Compatibility for Firefox 20"}]},{"@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\/6112"}],"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=6112"}],"version-history":[{"count":0,"href":"https:\/\/blog.mozilla.org\/addons\/wp-json\/wp\/v2\/posts\/6112\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.mozilla.org\/addons\/wp-json\/wp\/v2\/media?parent=6112"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.mozilla.org\/addons\/wp-json\/wp\/v2\/categories?post=6112"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.mozilla.org\/addons\/wp-json\/wp\/v2\/tags?post=6112"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}