{"id":6358,"date":"2013-04-26T13:38:10","date_gmt":"2013-04-26T20:38:10","guid":{"rendered":"http:\/\/blog.mozilla.org\/addons\/?p=6358"},"modified":"2013-04-30T08:08:17","modified_gmt":"2013-04-30T15:08:17","slug":"compatibility-for-firefox-21","status":"publish","type":"post","link":"https:\/\/blog.mozilla.org\/addons\/2013\/04\/26\/compatibility-for-firefox-21\/","title":{"rendered":"Add-on Compatibility for Firefox 21"},"content":{"rendered":"<p>Firefox 21 will be released on May 14th. 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\/Mozilla\/Firefox\/Releases\/21\">Firefox 21 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=755724\"><strong>Split platform and app resources up so that they can be loaded individually<\/strong><\/a>. Adapting Firefox for Metro has lead to some things moving around, including a number of popular JS modules.\n<ul>\n<li>In Firefox 20 and below,\u00a0<em>resource:\/\/\/modules\/<\/em>,\u00a0<em>resource:\/\/gre\/modules\/<\/em>, and <em>resource:\/\/app\/modules\/<\/em> point to the same location.<\/li>\n<li>In Firefox 21 and above, <em>resource:\/\/gre\/modules\/<\/em> and <em>resource:\/\/app\/modules\/<\/em> point to different places and have different sets of modules in them. <em>resource:\/\/\/modules\/<\/em><em> points to <em>resource:\/\/app\/modules\/<\/em>. <\/em>Most of what you want is in <em>\/gre\/<\/em>, though. The easiest way to test is to open Firefox 21 or later and try loading the URLs you use to import the modules. If they still work, you&#8217;re good.<\/li>\n<\/ul>\n<\/li>\n<li><a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=834697\">Enable XBL Scopes<\/a>. If you insert XBL bindings into content pages, calling functions to\/from chrome can break under some circumstances and require additional code. You can read the details on the bug.<\/li>\n<li><a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=826166\">Remove ability to set higher JS versions via language attribute<\/a>. This means you can no longer explicitly set the JS version using the language attribute, even in XUL documents.<\/li>\n<li><a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=788293\">Remove E4X from SpiderMonkey<\/a>. E4X is no more.<\/li>\n<li><a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=835883\">Give the -moz-orient property an &#8216;auto&#8217; value, and make it the default<\/a>.<\/li>\n<li><a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=816298\">Change &#8220;-moz-user-select:none&#8221; to behave like &#8220;-moz-user-select:-moz-none&#8221;<\/a>.<\/li>\n<li><a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=786135\">Make parseInt(&#8220;042&#8221;) === 42<\/a>.<\/li>\n<\/ul>\n<h3>Places<\/h3>\n<ul>\n<li><strong><a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=834457\">Remove deprecated synchronous APIs from Places<\/a><\/strong>. Several synchronous functions have been removed. You can read the first comment in the bug for a list of the changes. This was also <a href=\"https:\/\/groups.google.com\/forum\/?fromgroups=#!topic\/mozilla.dev.extensions\/49KHKMGesCc\">previously announced<\/a> in the newsgroups.<\/li>\n<li><a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=835543\">Remove nsINavHistoryFullVisitResultNode<\/a>. It&#8217;s worth noting this also removed two constants that some add-ons use:\u00a0<em>nsINavHistoryResultNode.RESULT_TYPE_FULL_VISIT<\/em> and\u00a0<em>nsINavHistoryResultNode.RESULT_TYPE_DYNAMIC_CONTAINER<\/em>.<\/li>\n<li><a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=838875\">Remove deprecated third argument from PlacesUIUtils.showBookmarkDialog<\/a>.<\/li>\n<li><a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=834492\">Drop livemarks support from FUEL<\/a>.<\/li>\n<li><a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=826409\">Remove onBeforeDeleteURI and onBeforeItemRemoved<\/a>.<\/li>\n<li><a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=831094\">Avoid replacing nodes in Places query results and remove nodeReplaced views notification<\/a>. Removes\u00a0nsINavHistoryResultObserver.nodeReplaced.<\/li>\n<\/ul>\n<h3>XPCOM<\/h3>\n<ul>\n<li><a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=830271\">nsIDownloadManagerUI uses obsolete download id<\/a>. The optional download ID argument is now an nsIDownload object.<\/li>\n<li><a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=831428\">ContentChild&#8217;s nsIConsoleListener should have threadsafe addref\/release methods<\/a>. This change caused <a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=852220\">bug 852220<\/a>. In a nutshell, you shouldn&#8217;t expect nsIConsoleListener objects to be notified immediately when a message is logged. Removing the listener can result in lost messages.<\/li>\n<li><a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=672190\">Remove expandEntityReferences from NodeIterator and TreeWalker<\/a>.<\/li>\n<li><a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=841706\">Remove nsSelectionIterator<\/a>. Removes nsISelectionPrivate.getEnumerator.<\/li>\n<\/ul>\n<h3>New!<\/h3>\n<ul>\n<li><a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=677092\">Make language packs restartless by default<\/a>. Yay!<\/li>\n<li><a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=440046\">Expose secure PRNG in the DOM<\/a>. <em><a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/DOM\/window.crypto.getRandomValues\">window.crypto.getRandomValues<\/a><\/em> will now get you cryptographically random values.<\/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 21, 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 21 will be released on May 14th. 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\/04\/26\/compatibility-for-firefox-21\/\">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,28086,123],"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 21 - 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\/04\/26\/compatibility-for-firefox-21\/\" \/>\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\/04\/26\/compatibility-for-firefox-21\/\",\"url\":\"https:\/\/blog.mozilla.org\/addons\/2013\/04\/26\/compatibility-for-firefox-21\/\",\"name\":\"Add-on Compatibility for Firefox 21 - Mozilla Add-ons Community Blog\",\"isPartOf\":{\"@id\":\"https:\/\/blog.mozilla.org\/addons\/#website\"},\"datePublished\":\"2013-04-26T20:38:10+00:00\",\"dateModified\":\"2013-04-30T15:08:17+00:00\",\"author\":{\"@id\":\"https:\/\/blog.mozilla.org\/addons\/#\/schema\/person\/a098261b4b5510d408ff31f492606925\"},\"breadcrumb\":{\"@id\":\"https:\/\/blog.mozilla.org\/addons\/2013\/04\/26\/compatibility-for-firefox-21\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/blog.mozilla.org\/addons\/2013\/04\/26\/compatibility-for-firefox-21\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/blog.mozilla.org\/addons\/2013\/04\/26\/compatibility-for-firefox-21\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/blog.mozilla.org\/addons\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Add-on Compatibility for Firefox 21\"}]},{\"@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 21 - 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\/04\/26\/compatibility-for-firefox-21\/","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\/04\/26\/compatibility-for-firefox-21\/","url":"https:\/\/blog.mozilla.org\/addons\/2013\/04\/26\/compatibility-for-firefox-21\/","name":"Add-on Compatibility for Firefox 21 - Mozilla Add-ons Community Blog","isPartOf":{"@id":"https:\/\/blog.mozilla.org\/addons\/#website"},"datePublished":"2013-04-26T20:38:10+00:00","dateModified":"2013-04-30T15:08:17+00:00","author":{"@id":"https:\/\/blog.mozilla.org\/addons\/#\/schema\/person\/a098261b4b5510d408ff31f492606925"},"breadcrumb":{"@id":"https:\/\/blog.mozilla.org\/addons\/2013\/04\/26\/compatibility-for-firefox-21\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/blog.mozilla.org\/addons\/2013\/04\/26\/compatibility-for-firefox-21\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/blog.mozilla.org\/addons\/2013\/04\/26\/compatibility-for-firefox-21\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/blog.mozilla.org\/addons\/"},{"@type":"ListItem","position":2,"name":"Add-on Compatibility for Firefox 21"}]},{"@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\/6358"}],"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=6358"}],"version-history":[{"count":0,"href":"https:\/\/blog.mozilla.org\/addons\/wp-json\/wp\/v2\/posts\/6358\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.mozilla.org\/addons\/wp-json\/wp\/v2\/media?parent=6358"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.mozilla.org\/addons\/wp-json\/wp\/v2\/categories?post=6358"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.mozilla.org\/addons\/wp-json\/wp\/v2\/tags?post=6358"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}