{"id":8714,"date":"2019-08-05T01:18:44","date_gmt":"2019-08-05T08:18:44","guid":{"rendered":"http:\/\/blog.mozilla.org\/addons\/?p=8714"},"modified":"2019-08-27T08:59:17","modified_gmt":"2019-08-27T15:59:17","slug":"extensions-in-firefox-69","status":"publish","type":"post","link":"https:\/\/blog.mozilla.org\/addons\/2019\/08\/05\/extensions-in-firefox-69\/","title":{"rendered":"Extensions in Firefox 69"},"content":{"rendered":"<p>In our <a href=\"https:\/\/blog.mozilla.org\/addons\/2019\/06\/13\/extensions-in-firefox-68\/\">last post<\/a> for Firefox 68, we\u2019ve introduced a great number of new features. In contrast, Firefox 69 only has a few new additions. Still, we are proud to present this round of changes to extensions in Firefox.<\/p>\n<h2>Better Topsites<\/h2>\n<p>The <a href=\"https:\/\/developer.mozilla.org\/docs\/Mozilla\/Add-ons\/WebExtensions\/API\/topSites\">topSites API<\/a> has received a few additions to better allow developers to retrieve the top sites as Firefox knows them. There are no changes to the defaults, but we\u2019ve added a few options for better querying. The <code>browser.topSites.get()<\/code> function has two additional options that can be specified to control what sites are returned:<\/p>\n<ul>\n<li><code>includePinned<\/code> can be set to true to include sites that the user has pinned on the Firefox new tab.<\/li>\n<li><code>includeSearchShortcuts<\/code> can be set to true for including search shortcuts<\/li>\n<\/ul>\n<p>Passing both options allows to mimic the behavior you will see on the new tab page, where both pinned results and search shortcuts are available.<\/p>\n<h2>User Scripts<\/h2>\n<p>This is technically an addition to Firefox 68, but since we didn\u2019t mention it in the <a href=\"https:\/\/blog.mozilla.org\/addons\/2019\/06\/13\/extensions-in-firefox-68\/\">last blog post<\/a> it gets an honorable mention here. In March, <a href=\"https:\/\/blog.mozilla.org\/addons\/2019\/03\/26\/extensions-in-firefox-67\/#userscripts\">we announced<\/a> that user scripts were coming, and now they are here. Starting with Firefox 68,\u00a0 you will be able to use the <a href=\"https:\/\/developer.mozilla.org\/docs\/Mozilla\/Add-ons\/WebExtensions\/API\/userScripts\">userScripts API<\/a> without needing to set any preferences in about:config.<\/p>\n<p>The great advantage of the <a href=\"https:\/\/developer.mozilla.org\/docs\/Mozilla\/Add-ons\/WebExtensions\/API\/userScripts\">userScripts API<\/a> is that it can run scripts with reduced privileges. Your extension can provide a mechanism to run user-provided scripts with a custom API, avoiding the need to use eval in content scripts. This makes it easier to adhere to the security and privacy standards of our add-on policies. Please see the <a href=\"https:\/\/blog.mozilla.org\/addons\/2019\/03\/26\/extensions-in-firefox-67\/#userscripts\">original post on this feature<\/a> for an example on how to use the API while we update the documentation.<\/p>\n<h2>Miscellaneous<\/h2>\n<ul>\n<li>The <a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Mozilla\/Add-ons\/WebExtensions\/API\/downloads\">downloads API<\/a> now correctly supports <code>byExtensionId<\/code> and <code>byExtensionName<\/code> for extension initiated downloads.<\/li>\n<li>Clearing site permissions no longer re-prompts the user to accept storage permissions after a restart.<\/li>\n<li>Using <code>alert()<\/code> in a background page will no longer block the extension from running.<\/li>\n<li>The <a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Mozilla\/Add-ons\/WebExtensions\/API\/proxy\/onRequest\">proxy.onRequest<\/a> API now also supports FTP and WebSocket requests.<\/li>\n<\/ul>\n<p>A round of applause goes to our volunteer contributors <a href=\"https:\/\/mozillians.org\/u\/mmatous\/\">Martin Matous<\/a>, Michael Krasnov, <a href=\"https:\/\/mozillians.org\/u\/myeongjun\/\">Myeongjun Go<\/a>, <a href=\"https:\/\/mozillians.org\/u\/joseph.a.jalbert\/\">Joe Jalbert<\/a>, as well as everyone else who has made these additions in Firefox 69 possible.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In our last post for Firefox 68, we\u2019ve introduced a great number of new features. In contrast, Firefox 69 only has a few new additions. Still, we are proud to &hellip; <a class=\"go\" href=\"https:\/\/blog.mozilla.org\/addons\/2019\/08\/05\/extensions-in-firefox-69\/\">Read more<\/a><\/p>\n","protected":false},"author":333,"featured_media":8359,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[44,227,278886],"tags":[278873,304465,278875,278871],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Extensions in Firefox 69 - Mozilla Add-ons Community Blog<\/title>\n<meta name=\"description\" content=\"Find out about our additions and changes to Extensions in Firefox 69. Among other changes you&#039;ll read about the topSites API and the userScripts API.\" \/>\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\/2019\/08\/05\/extensions-in-firefox-69\/\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Philipp Kewisch\" \/>\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\/2019\/08\/05\/extensions-in-firefox-69\/\",\"url\":\"https:\/\/blog.mozilla.org\/addons\/2019\/08\/05\/extensions-in-firefox-69\/\",\"name\":\"Extensions in Firefox 69 - Mozilla Add-ons Community Blog\",\"isPartOf\":{\"@id\":\"https:\/\/blog.mozilla.org\/addons\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/blog.mozilla.org\/addons\/2019\/08\/05\/extensions-in-firefox-69\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/blog.mozilla.org\/addons\/2019\/08\/05\/extensions-in-firefox-69\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/blog.mozilla.org\/addons\/files\/2018\/01\/Screen-Shot-2018-01-03-at-5.18.17-PM-1.png\",\"datePublished\":\"2019-08-05T08:18:44+00:00\",\"dateModified\":\"2019-08-27T15:59:17+00:00\",\"author\":{\"@id\":\"https:\/\/blog.mozilla.org\/addons\/#\/schema\/person\/86ecef4a5de728e6d3ffe72a25077a94\"},\"description\":\"Find out about our additions and changes to Extensions in Firefox 69. Among other changes you'll read about the topSites API and the userScripts API.\",\"breadcrumb\":{\"@id\":\"https:\/\/blog.mozilla.org\/addons\/2019\/08\/05\/extensions-in-firefox-69\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/blog.mozilla.org\/addons\/2019\/08\/05\/extensions-in-firefox-69\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/blog.mozilla.org\/addons\/2019\/08\/05\/extensions-in-firefox-69\/#primaryimage\",\"url\":\"https:\/\/blog.mozilla.org\/addons\/files\/2018\/01\/Screen-Shot-2018-01-03-at-5.18.17-PM-1.png\",\"contentUrl\":\"https:\/\/blog.mozilla.org\/addons\/files\/2018\/01\/Screen-Shot-2018-01-03-at-5.18.17-PM-1.png\",\"width\":535,\"height\":552,\"caption\":\"Firefox logo\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/blog.mozilla.org\/addons\/2019\/08\/05\/extensions-in-firefox-69\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/blog.mozilla.org\/addons\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Extensions in Firefox 69\"}]},{\"@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\/86ecef4a5de728e6d3ffe72a25077a94\",\"name\":\"Philipp Kewisch\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/blog.mozilla.org\/addons\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/c2d92d64a4b77306c45df1c9be647621?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/c2d92d64a4b77306c45df1c9be647621?s=96&d=mm&r=g\",\"caption\":\"Philipp Kewisch\"},\"description\":\"Twitter: @pkewisch\",\"sameAs\":[\"https:\/\/twitter.com\/pkewisch\",\"https:\/\/x.com\/pkewisch\"],\"url\":\"https:\/\/blog.mozilla.org\/addons\/author\/calendar\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Extensions in Firefox 69 - Mozilla Add-ons Community Blog","description":"Find out about our additions and changes to Extensions in Firefox 69. Among other changes you'll read about the topSites API and the userScripts API.","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\/2019\/08\/05\/extensions-in-firefox-69\/","twitter_misc":{"Written by":"Philipp Kewisch","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/blog.mozilla.org\/addons\/2019\/08\/05\/extensions-in-firefox-69\/","url":"https:\/\/blog.mozilla.org\/addons\/2019\/08\/05\/extensions-in-firefox-69\/","name":"Extensions in Firefox 69 - Mozilla Add-ons Community Blog","isPartOf":{"@id":"https:\/\/blog.mozilla.org\/addons\/#website"},"primaryImageOfPage":{"@id":"https:\/\/blog.mozilla.org\/addons\/2019\/08\/05\/extensions-in-firefox-69\/#primaryimage"},"image":{"@id":"https:\/\/blog.mozilla.org\/addons\/2019\/08\/05\/extensions-in-firefox-69\/#primaryimage"},"thumbnailUrl":"https:\/\/blog.mozilla.org\/addons\/files\/2018\/01\/Screen-Shot-2018-01-03-at-5.18.17-PM-1.png","datePublished":"2019-08-05T08:18:44+00:00","dateModified":"2019-08-27T15:59:17+00:00","author":{"@id":"https:\/\/blog.mozilla.org\/addons\/#\/schema\/person\/86ecef4a5de728e6d3ffe72a25077a94"},"description":"Find out about our additions and changes to Extensions in Firefox 69. Among other changes you'll read about the topSites API and the userScripts API.","breadcrumb":{"@id":"https:\/\/blog.mozilla.org\/addons\/2019\/08\/05\/extensions-in-firefox-69\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/blog.mozilla.org\/addons\/2019\/08\/05\/extensions-in-firefox-69\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/blog.mozilla.org\/addons\/2019\/08\/05\/extensions-in-firefox-69\/#primaryimage","url":"https:\/\/blog.mozilla.org\/addons\/files\/2018\/01\/Screen-Shot-2018-01-03-at-5.18.17-PM-1.png","contentUrl":"https:\/\/blog.mozilla.org\/addons\/files\/2018\/01\/Screen-Shot-2018-01-03-at-5.18.17-PM-1.png","width":535,"height":552,"caption":"Firefox logo"},{"@type":"BreadcrumbList","@id":"https:\/\/blog.mozilla.org\/addons\/2019\/08\/05\/extensions-in-firefox-69\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/blog.mozilla.org\/addons\/"},{"@type":"ListItem","position":2,"name":"Extensions in Firefox 69"}]},{"@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\/86ecef4a5de728e6d3ffe72a25077a94","name":"Philipp Kewisch","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/blog.mozilla.org\/addons\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/c2d92d64a4b77306c45df1c9be647621?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c2d92d64a4b77306c45df1c9be647621?s=96&d=mm&r=g","caption":"Philipp Kewisch"},"description":"Twitter: @pkewisch","sameAs":["https:\/\/twitter.com\/pkewisch","https:\/\/x.com\/pkewisch"],"url":"https:\/\/blog.mozilla.org\/addons\/author\/calendar\/"}]}},"_links":{"self":[{"href":"https:\/\/blog.mozilla.org\/addons\/wp-json\/wp\/v2\/posts\/8714"}],"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\/333"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.mozilla.org\/addons\/wp-json\/wp\/v2\/comments?post=8714"}],"version-history":[{"count":0,"href":"https:\/\/blog.mozilla.org\/addons\/wp-json\/wp\/v2\/posts\/8714\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.mozilla.org\/addons\/wp-json\/wp\/v2\/media\/8359"}],"wp:attachment":[{"href":"https:\/\/blog.mozilla.org\/addons\/wp-json\/wp\/v2\/media?parent=8714"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.mozilla.org\/addons\/wp-json\/wp\/v2\/categories?post=8714"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.mozilla.org\/addons\/wp-json\/wp\/v2\/tags?post=8714"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}