{"id":7421,"date":"2015-03-17T12:42:47","date_gmt":"2015-03-17T19:42:47","guid":{"rendered":"http:\/\/blog.mozilla.org\/addons\/?p=7421"},"modified":"2015-05-13T09:48:00","modified_gmt":"2015-05-13T16:48:00","slug":"compatibility-for-firefox-38","status":"publish","type":"post","link":"https:\/\/blog.mozilla.org\/addons\/2015\/03\/17\/compatibility-for-firefox-38\/","title":{"rendered":"Add-on Compatibility for Firefox 38"},"content":{"rendered":"<p>Firefox 38 will be <a href=\"https:\/\/wiki.mozilla.org\/RapidRelease\/Calendar\">released<\/a> on May 12th. 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\/38\">Firefox 38 for Developers<\/a>, so you should also give it a look.<\/p>\n<p><strong>Update:<\/strong> also, make sure you check out <a href=\"https:\/\/blog.mozilla.org\/addons\/2015\/05\/13\/compatibility-update-firefox-38-and-38-0-5\/\">this followup on 38 and 38.0.5<\/a>.<\/p>\n<h3>General<\/h3>\n<ul>\n<li><a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=1125618\">Revise NetUtil.jsm API<\/a>. <code>newChannel2<\/code> and <code>asyncFetch2<\/code> are now deprecated.\u00a0<code>newChannel<\/code> and <code>asyncFetch<\/code> now take an options object which should make it easier to exclude unneeded arguments. The <a href=\"https:\/\/hg.mozilla.org\/mozilla-central\/file\/e6b4bb4cc393\/netwerk\/base\/NetUtil.jsm#l287\">updated documentation for <code>newChannel<\/code><\/a> explains in more detail.<\/li>\n<li><a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=1114594\">Remove <code>promptForSaveToFile<\/code> in favor of <code>promptForSaveToFileAsync<\/code><\/a>.<\/li>\n<\/ul>\n<h3>XPCOM<\/h3>\n<ul>\n<li><strong><a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=436344\"><code>nsIProtocolProxyFilter.applyFilter()<\/code> should be handed channel or request instead of URI<\/a>.<\/strong> This changes various interfaces related to network proxies.\n<ul>\n<li><a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=1125372\">Fix <code>asyncResolve<\/code> and <code>asyncResolve2<\/code> to allow both passing a channel and passing a URI<\/a>. This followup change was introduced to soften the blow and unbreak some add-ons.<\/li>\n<\/ul>\n<\/li>\n<li><a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=917322\"><code>SendCompositionEvent()<\/code> and <code>DispatchEvent()<\/code> should be able to dispatch events without setting <code>mIsSynthesizedForTests<\/code><\/a>. This removes <code>nsICompositionStringSynthesizer<\/code>, and the methods <code>sendCompositionEvent<\/code> and <code>createCompositionStringSynthesizer<\/code> from\u00a0<code>nsIDOMWindowUtils<\/code>. It also introduces <a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Mozilla\/Tech\/XPCOM\/Reference\/Interface\/nsITextInputProcessor\"><code>nsITextInputProcessor<\/code><\/a>.<\/li>\n<li><a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=862856\"><code>nsIHttpActivityObserver<\/code> not working well for monitoring HTTP activity<\/a>. Certain low-level HTTP events weren&#8217;t being fired under some circumstances, which should be fixed now.<\/li>\n<li><a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=975699\">Remove <code>mozIndexedDB<\/code> again<\/a>.<\/li>\n<\/ul>\n<h3>New!<\/h3>\n<ul>\n<li><a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=1128798\"><strong>Make a version of <code>nsIContentPolicy<\/code> that doesn&#8217;t pass the node as a parameter<\/strong><\/a>. This introduces an <a href=\"https:\/\/developer.mozilla.org\/en-US\/Add-ons\/Working_with_multiprocess_Firefox\">e10s-safe<\/a> version of <code>nsIContentPolicy<\/code> called <code>nsISimpleContentPolicy<\/code>, which passes a browser element instead of a content node. For now the best documentation can be found in the <a href=\"https:\/\/hg.mozilla.org\/mozilla-central\/file\/9ba87714f5cf\/dom\/base\/nsISimpleContentPolicy.idl\">new interface file<\/a>.<\/li>\n<li><a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=675372\">Allow resource protocol mappings in chrome.manifest files loaded dynamically<\/a>. resource: URLs can now be declared through chrome.manifest in bootstrapped extensions.<\/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 38, I&#8217;d like to know.<\/p>\n<p>The automatic compatibility validation and upgrade for add-ons on AMO will probably happen early next month, so keep an eye on your email if you have an add-on listed on our site with its compatibility set to Firefox 37.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Firefox 38 will be released on May 12th. 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\/2015\/03\/17\/compatibility-for-firefox-38\/\">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,278864],"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 38 - 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\/2015\/03\/17\/compatibility-for-firefox-38\/\" \/>\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\/2015\/03\/17\/compatibility-for-firefox-38\/\",\"url\":\"https:\/\/blog.mozilla.org\/addons\/2015\/03\/17\/compatibility-for-firefox-38\/\",\"name\":\"Add-on Compatibility for Firefox 38 - Mozilla Add-ons Community Blog\",\"isPartOf\":{\"@id\":\"https:\/\/blog.mozilla.org\/addons\/#website\"},\"datePublished\":\"2015-03-17T19:42:47+00:00\",\"dateModified\":\"2015-05-13T16:48:00+00:00\",\"author\":{\"@id\":\"https:\/\/blog.mozilla.org\/addons\/#\/schema\/person\/a098261b4b5510d408ff31f492606925\"},\"breadcrumb\":{\"@id\":\"https:\/\/blog.mozilla.org\/addons\/2015\/03\/17\/compatibility-for-firefox-38\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/blog.mozilla.org\/addons\/2015\/03\/17\/compatibility-for-firefox-38\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/blog.mozilla.org\/addons\/2015\/03\/17\/compatibility-for-firefox-38\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/blog.mozilla.org\/addons\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Add-on Compatibility for Firefox 38\"}]},{\"@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 38 - 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\/2015\/03\/17\/compatibility-for-firefox-38\/","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\/2015\/03\/17\/compatibility-for-firefox-38\/","url":"https:\/\/blog.mozilla.org\/addons\/2015\/03\/17\/compatibility-for-firefox-38\/","name":"Add-on Compatibility for Firefox 38 - Mozilla Add-ons Community Blog","isPartOf":{"@id":"https:\/\/blog.mozilla.org\/addons\/#website"},"datePublished":"2015-03-17T19:42:47+00:00","dateModified":"2015-05-13T16:48:00+00:00","author":{"@id":"https:\/\/blog.mozilla.org\/addons\/#\/schema\/person\/a098261b4b5510d408ff31f492606925"},"breadcrumb":{"@id":"https:\/\/blog.mozilla.org\/addons\/2015\/03\/17\/compatibility-for-firefox-38\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/blog.mozilla.org\/addons\/2015\/03\/17\/compatibility-for-firefox-38\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/blog.mozilla.org\/addons\/2015\/03\/17\/compatibility-for-firefox-38\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/blog.mozilla.org\/addons\/"},{"@type":"ListItem","position":2,"name":"Add-on Compatibility for Firefox 38"}]},{"@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\/7421"}],"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=7421"}],"version-history":[{"count":0,"href":"https:\/\/blog.mozilla.org\/addons\/wp-json\/wp\/v2\/posts\/7421\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.mozilla.org\/addons\/wp-json\/wp\/v2\/media?parent=7421"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.mozilla.org\/addons\/wp-json\/wp\/v2\/categories?post=7421"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.mozilla.org\/addons\/wp-json\/wp\/v2\/tags?post=7421"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}