{"id":5633,"date":"2012-11-08T13:06:06","date_gmt":"2012-11-08T21:06:06","guid":{"rendered":"http:\/\/blog.mozilla.org\/addons\/?p=5633"},"modified":"2012-11-09T09:44:15","modified_gmt":"2012-11-09T17:44:15","slug":"compatibility-for-firefox-17","status":"publish","type":"post","link":"https:\/\/blog.mozilla.org\/addons\/2012\/11\/08\/compatibility-for-firefox-17\/","title":{"rendered":"Add-on Compatibility for Firefox 17"},"content":{"rendered":"<p>Firefox 17 will be released on November 20th. Here&#8217;s the list of changes that went into Firefox 17 that can affect add-on compatibility. There is more information available in <a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Firefox_17_for_developers\">Firefox 17 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=553102\">Flip __exposedProps__ to default-safe<\/a><\/strong>. We have been talking about this upcoming change for a while. Read <a href=\"https:\/\/blog.mozilla.org\/addons\/2012\/08\/20\/exposing-objects-to-content-safely\/\">Exposing add-on objects to content safely<\/a> for more information.<\/li>\n<li><a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=757046\">enablePrivilege<\/a>. This feature has been deprecated for a while, and its code is being progressively removed from Firefox. It no longer works as expected, so you should look for alternatives if you rely on it.<\/li>\n<li><a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=761278\">Remove XHR.onuploadprogress<\/a>. This property is non-standard, so it was removed. For alternatives, look at the <a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/DOM\/XMLHttpRequest\">XHR docs<\/a>.<\/li>\n<li><a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=778851\">Turn javascript.options.xml.content off by default<\/a>. This disables E4X entirely for content. E4X is also on a removal path, so you shouldn&#8217;t use it.<\/li>\n<li><a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=761723\">Implement toString of function objects by saving source<\/a>. If your add-on uses eval and function.toString to monkey-patch existing functions, this change will most likely break it. As usual, we recommend avoiding this technique as much as possible.<\/li>\n<li><a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=726125\">Certificate of a signed extension is validated on each startup<\/a>. The change here is that the signature in a signed extension will only be checked once on install instead of every time Firefox starts.<\/li>\n<li><a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=391834\">Don&#8217;t allow alert\/confirm\/prompt in onbeforeunload, onunload and onpagehide<\/a>. The title says it all. This prevents some cases where pages force users to stay.<\/li>\n<li><a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=761620\">Throw an exception when attempting to add a non-preserved weak map key<\/a>. This should only concern you if you use WeakMap.<\/li>\n<\/ul>\n<h3>XPCOM<\/h3>\n<ul>\n<li><strong><a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=731307\">Add a new nsIFilePicker::ShowAsync method<\/a><\/strong>.\u00a0nsIFilePicker::Show is now deprecated, and the asynchronous alternative is what you should favor.<\/li>\n<li><a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=327244\">Eliminate checkLoadURI() and checkLoadURIStr()<\/a>. checkLoadURIWithPrincipal() should be used instead.<\/li>\n<li><a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=776825\">Separate message managers into senders and broadcasters<\/a>. This changes the way messages are sent an received, and eliminates the nsIChromeFrameMessageManager interface.<\/li>\n<li><a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=779626\">Javascript-global-constructor objects should be passed a window reference<\/a>. If your add-on registers a global constructor <em>and<\/em> it takes arguments, you should look into this bug.<\/li>\n<li><a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=774585\">Update GetCodebasePrincipal callers to use the correct &#8220;data jar&#8221;<\/a>. This bug temporarily renamed the getCodebasePrincipal function, breaking some add-ons on Beta. The change was reversed, so no code change is required.<\/li>\n<\/ul>\n<h3>New!<\/h3>\n<ul>\n<li><a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=357725\">Top-level XUL windows should support size constraints<\/a>. This means we now fully support\u00a0minwidth, minheight, maxwidth, and maxheight for top-level XUL windows.<\/li>\n<li><a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=634139\">Need the ability to extract the most representative color from a favicon<\/a>. I thought this was interesting and potentially useful. The new interface is documented <a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/XPCOM_Interface_Reference\/mozIColorAnalyzer\">here<\/a>.<\/li>\n<\/ul>\n<p>Additionally, the <a href=\"https:\/\/blog.mozilla.org\/addons\/2012\/10\/09\/load-handler-failures-firefox-16\/\">load handler problem<\/a> that appeared in Firefox 16 should now be fixed in Firefox 17.<\/p>\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 17, I&#8217;d like to know.<\/p>\n<p>The automatic compatibility validation and upgrade for add-ons on AMO will happen next week, so check your email.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Firefox 17 will be released on November 20th. Here&#8217;s the list of changes that went into Firefox 17 that can affect add-on compatibility. There is more information available in Firefox &hellip; <a class=\"go\" href=\"https:\/\/blog.mozilla.org\/addons\/2012\/11\/08\/compatibility-for-firefox-17\/\">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,12913],"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 17 - 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\/2012\/11\/08\/compatibility-for-firefox-17\/\" \/>\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\/2012\/11\/08\/compatibility-for-firefox-17\/\",\"url\":\"https:\/\/blog.mozilla.org\/addons\/2012\/11\/08\/compatibility-for-firefox-17\/\",\"name\":\"Add-on Compatibility for Firefox 17 - Mozilla Add-ons Community Blog\",\"isPartOf\":{\"@id\":\"https:\/\/blog.mozilla.org\/addons\/#website\"},\"datePublished\":\"2012-11-08T21:06:06+00:00\",\"dateModified\":\"2012-11-09T17:44:15+00:00\",\"author\":{\"@id\":\"https:\/\/blog.mozilla.org\/addons\/#\/schema\/person\/a098261b4b5510d408ff31f492606925\"},\"breadcrumb\":{\"@id\":\"https:\/\/blog.mozilla.org\/addons\/2012\/11\/08\/compatibility-for-firefox-17\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/blog.mozilla.org\/addons\/2012\/11\/08\/compatibility-for-firefox-17\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/blog.mozilla.org\/addons\/2012\/11\/08\/compatibility-for-firefox-17\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/blog.mozilla.org\/addons\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Add-on Compatibility for Firefox 17\"}]},{\"@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 17 - 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\/2012\/11\/08\/compatibility-for-firefox-17\/","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\/2012\/11\/08\/compatibility-for-firefox-17\/","url":"https:\/\/blog.mozilla.org\/addons\/2012\/11\/08\/compatibility-for-firefox-17\/","name":"Add-on Compatibility for Firefox 17 - Mozilla Add-ons Community Blog","isPartOf":{"@id":"https:\/\/blog.mozilla.org\/addons\/#website"},"datePublished":"2012-11-08T21:06:06+00:00","dateModified":"2012-11-09T17:44:15+00:00","author":{"@id":"https:\/\/blog.mozilla.org\/addons\/#\/schema\/person\/a098261b4b5510d408ff31f492606925"},"breadcrumb":{"@id":"https:\/\/blog.mozilla.org\/addons\/2012\/11\/08\/compatibility-for-firefox-17\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/blog.mozilla.org\/addons\/2012\/11\/08\/compatibility-for-firefox-17\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/blog.mozilla.org\/addons\/2012\/11\/08\/compatibility-for-firefox-17\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/blog.mozilla.org\/addons\/"},{"@type":"ListItem","position":2,"name":"Add-on Compatibility for Firefox 17"}]},{"@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\/5633"}],"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=5633"}],"version-history":[{"count":0,"href":"https:\/\/blog.mozilla.org\/addons\/wp-json\/wp\/v2\/posts\/5633\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.mozilla.org\/addons\/wp-json\/wp\/v2\/media?parent=5633"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.mozilla.org\/addons\/wp-json\/wp\/v2\/categories?post=5633"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.mozilla.org\/addons\/wp-json\/wp\/v2\/tags?post=5633"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}