{"id":7156,"date":"2014-05-27T10:00:20","date_gmt":"2014-05-27T17:00:20","guid":{"rendered":"http:\/\/blog.mozilla.org\/addons\/?p=7156"},"modified":"2014-05-26T13:51:18","modified_gmt":"2014-05-26T20:51:18","slug":"compatibility-for-firefox-30","status":"publish","type":"post","link":"https:\/\/blog.mozilla.org\/addons\/2014\/05\/27\/compatibility-for-firefox-30\/","title":{"rendered":"Add-on Compatibility for Firefox 30"},"content":{"rendered":"<p>Firefox 30 will be <a href=\"https:\/\/wiki.mozilla.org\/RapidRelease\/Calendar\">released<\/a> on June 10th. 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\/30\">Firefox 30 for Developers<\/a>, so you should read that too.<\/p>\n<h3>General<\/h3>\n<ul>\n<li><strong><a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=952307\">Move some addon-private JSM&#8217;s to a subdirectory<\/a>.<\/strong> A large number of number of JS modules used in the Add-ons Manager were moved to a different path. They include AddonRepository.jsm, LightweightThemeImageOptimizer.jsm, XPIProvider.jsm, AddonUpdateChecker.jsm, AddonLogging.jsm, PluginProvider.jsm, AddonRepository_SQLiteMigrator.jsm, XPIProviderUtils.js and SpellCheckDictionaryBootstrap.js. The new path is <code>resource:\/\/gre\/modules<strong>\/addons<\/strong>\/MODULE.jsm<\/code>.<\/li>\n<li><a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=948227\">Make the Object.prototype.__proto__ setter warn about perf impact<\/a>. <code>__proto__<\/code> and <code>setPrototypeOf<\/code> shouldn&#8217;t be used to set prototypes due to their performance impact. <code>Object.create<\/code> can be used as an alternative.<\/li>\n<li><a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=981036\">Disallow calling WebIDL constructors as functions for system callers in non-release builds<\/a>. This throws an error if you try to invoke the constructor of certain global objects without the <code>new<\/code> keyword. Note that this is disabled for release versions, but it&#8217;s a first step in <a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=979591\">disallowing it entirely<\/a>.<\/li>\n<\/ul>\n<h3>XPCOM<\/h3>\n<ul>\n<li><a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=969247\">Get rid of related code of NS_VK_ENTER and nsIDOMKeyEvent::DOM_VK_ENTER<\/a>. The <code>_VK_ENTER<\/code> constants have been removed, which shouldn&#8217;t break any code since they were never used in key events, but it&#8217;s still a good idea to look for and remove any references to this in your code.<\/li>\n<li><a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=966467\">Content processes should get different widgets than the main process<\/a>. This breaks binary XPCOM compatibility for add-ons that try to be compatible with multiple versions of Firefox.<\/li>\n<li><a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=619487\">Preferences should not be allowed to be accessed off of the main thread<\/a>.<\/li>\n<li><a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=961804\">Drop support for Blob.mozSlice<\/a>.<\/li>\n<\/ul>\n<h3>Plugins<\/h3>\n<ul>\n<li><strong><a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=992995\">Implement plugin whitelist<\/a>.<\/strong> This shouldn&#8217;t have an effect for extensions in general, but it&#8217;s worth pointing out. As it was <a href=\"https:\/\/blog.mozilla.org\/security\/2014\/02\/28\/update-on-plugin-activation\/\">announced<\/a> a while ago, most plugins will require action from the user&#8217;s side in order to be activated, and developers have the option to request being added to the <a href=\"https:\/\/wiki.mozilla.org\/Plugins\/Firefox_Whitelist\">plugin whitelist<\/a>. Major plugins like Adobe Flash are already whitelisted. If you use plugins as part of your add-on, we strongly recommend that you move to other alternatives as soon as possible.<\/li>\n<\/ul>\n<h3>SDK<\/h3>\n<ul>\n<li><a href=\"https:\/\/blog.mozilla.org\/addons\/2014\/03\/13\/new-add-on-sdk-australis-ui-features-in-firefox-29\/\">Australis UI features<\/a>. Some of the new Australis features missed the Firefox 29 train, but they are now available on 30.<\/li>\n<li><a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=980714\">Blinking caret in panel text<\/a>. We hear about this bug all the time, so I&#8217;m very glad to see it fixed.<\/li>\n<li><a href=\"https:\/\/blog.mozilla.org\/addons\/2014\/04\/10\/changes-to-unsafewindow-for-the-add-on-sdk\/\">Changes to unsafeWindow for the Add-on SDK<\/a>. If you use\u00a0<code>unsafeWindow<\/code> in your content script, you should read this article.<\/li>\n<\/ul>\n<h3>New!<\/h3>\n<p>These aren&#8217;t really new developer features, but they&#8217;re a couple of bug fixed that don&#8217;t break compatibility and you might find useful.<\/p>\n<ul>\n<li><a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=907373\">-moz-os-version media query is not working on Windows 8.1<\/a>. Note that this bug was fixed on 29.0.1, but I wanted to highlight it in case anyone missed it.<\/li>\n<li><a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=974295\">No getPrefsByName replacement in nsIContentPrefService2<\/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 30, I&#8217;d like to know.<\/p>\n<p>The automatic compatibility validation and upgrade for add-ons on AMO will happen soon, so keep an eye on your email if you have an add-on listed on our site with its compatibility set to Firefox 29.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Firefox 30 will be released on June 10th. 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\/2014\/05\/27\/compatibility-for-firefox-30\/\">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":[7120,28092,278877,278873,278876,45291,756],"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 30 - 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\/2014\/05\/27\/compatibility-for-firefox-30\/\" \/>\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=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/blog.mozilla.org\/addons\/2014\/05\/27\/compatibility-for-firefox-30\/\",\"url\":\"https:\/\/blog.mozilla.org\/addons\/2014\/05\/27\/compatibility-for-firefox-30\/\",\"name\":\"Add-on Compatibility for Firefox 30 - Mozilla Add-ons Community Blog\",\"isPartOf\":{\"@id\":\"https:\/\/blog.mozilla.org\/addons\/#website\"},\"datePublished\":\"2014-05-27T17:00:20+00:00\",\"dateModified\":\"2014-05-26T20:51:18+00:00\",\"author\":{\"@id\":\"https:\/\/blog.mozilla.org\/addons\/#\/schema\/person\/a098261b4b5510d408ff31f492606925\"},\"breadcrumb\":{\"@id\":\"https:\/\/blog.mozilla.org\/addons\/2014\/05\/27\/compatibility-for-firefox-30\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/blog.mozilla.org\/addons\/2014\/05\/27\/compatibility-for-firefox-30\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/blog.mozilla.org\/addons\/2014\/05\/27\/compatibility-for-firefox-30\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/blog.mozilla.org\/addons\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Add-on Compatibility for Firefox 30\"}]},{\"@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 30 - 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\/2014\/05\/27\/compatibility-for-firefox-30\/","twitter_misc":{"Written by":"Jorge Villalobos","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/blog.mozilla.org\/addons\/2014\/05\/27\/compatibility-for-firefox-30\/","url":"https:\/\/blog.mozilla.org\/addons\/2014\/05\/27\/compatibility-for-firefox-30\/","name":"Add-on Compatibility for Firefox 30 - Mozilla Add-ons Community Blog","isPartOf":{"@id":"https:\/\/blog.mozilla.org\/addons\/#website"},"datePublished":"2014-05-27T17:00:20+00:00","dateModified":"2014-05-26T20:51:18+00:00","author":{"@id":"https:\/\/blog.mozilla.org\/addons\/#\/schema\/person\/a098261b4b5510d408ff31f492606925"},"breadcrumb":{"@id":"https:\/\/blog.mozilla.org\/addons\/2014\/05\/27\/compatibility-for-firefox-30\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/blog.mozilla.org\/addons\/2014\/05\/27\/compatibility-for-firefox-30\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/blog.mozilla.org\/addons\/2014\/05\/27\/compatibility-for-firefox-30\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/blog.mozilla.org\/addons\/"},{"@type":"ListItem","position":2,"name":"Add-on Compatibility for Firefox 30"}]},{"@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\/7156"}],"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=7156"}],"version-history":[{"count":0,"href":"https:\/\/blog.mozilla.org\/addons\/wp-json\/wp\/v2\/posts\/7156\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.mozilla.org\/addons\/wp-json\/wp\/v2\/media?parent=7156"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.mozilla.org\/addons\/wp-json\/wp\/v2\/categories?post=7156"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.mozilla.org\/addons\/wp-json\/wp\/v2\/tags?post=7156"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}