{"id":8048,"date":"2017-02-09T12:08:15","date_gmt":"2017-02-09T20:08:15","guid":{"rendered":"http:\/\/blog.mozilla.org\/addons\/?p=8048"},"modified":"2017-02-09T13:55:43","modified_gmt":"2017-02-09T21:55:43","slug":"web-ext-1-8-released","status":"publish","type":"post","link":"https:\/\/blog.mozilla.org\/addons\/2017\/02\/09\/web-ext-1-8-released\/","title":{"rendered":"web-ext 1.8 released"},"content":{"rendered":"<p>A new version of web-ext has been released! Web-ext is the recommended tool for developing WebExtensions on Firefox, because it has the ability to automatically reload your WebExtension as you make changes.<\/p>\n<p>Since our last blog post, version 1.7 and 1.8 have been released. The full <a href=\"https:\/\/github.com\/mozilla\/web-ext\/releases\">change log is on github<\/a>.<\/p>\n<p>The run command now shows a <a href=\"https:\/\/github.com\/mozilla\/web-ext\/commit\/d29ca42\">desktop notification<\/a> if auto-reloading results in an error: <a href=\"https:\/\/blog.mozilla.org\/addons\/files\/2017\/02\/image01.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-8050\" src=\"https:\/\/blog.mozilla.org\/addons\/files\/2017\/02\/image01.png\" alt=\"image01\" width=\"694\" height=\"152\" srcset=\"https:\/\/blog.mozilla.org\/addons\/files\/2017\/02\/image01.png 694w, https:\/\/blog.mozilla.org\/addons\/files\/2017\/02\/image01-252x55.png 252w, https:\/\/blog.mozilla.org\/addons\/files\/2017\/02\/image01-600x131.png 600w\" sizes=\"(max-width: 694px) 100vw, 694px\" \/><\/a><\/p>\n<p>Other options added to the <a href=\"https:\/\/developer.mozilla.org\/en-US\/Add-ons\/WebExtensions\/web-ext_command_reference#web-ext_run\">run<\/a> command include:<\/p>\n<ul>\n<li>Addition of a <a href=\"https:\/\/developer.mozilla.org\/en-US\/Add-ons\/WebExtensions\/web-ext_command_reference?document_saved=true#--start-url\">&#8211;start-url<\/a> option. This will start Firefox at a particular URL and assists in testing.<\/li>\n<li>Addition of a <a href=\"https:\/\/developer.mozilla.org\/en-US\/Add-ons\/WebExtensions\/web-ext_command_reference?document_saved=true#--browser-console_-bc\">&#8211;browser-console<\/a> option. This will open the <a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Tools\/Browser_Console\">Browser Console<\/a> by default, which is where any errors or logging will be shown.<\/li>\n<li>Addition of <a href=\"https:\/\/developer.mozilla.org\/en-US\/Add-ons\/WebExtensions\/web-ext_command_reference?document_saved=true#--pref\">&#8211;pref<\/a> option. This will load the specified preferences into Firefox. For example: &#8211;pref privacy.userContext.enabled=true<\/li>\n<li>When a reload occurs, it will show you the last reload time more concisely.<\/li>\n<\/ul>\n<p>An <a href=\"https:\/\/developer.mozilla.org\/en-US\/Add-ons\/WebExtensions\/web-ext_command_reference#--ignore-files_-i\">&#8211;ignore-files<\/a> option was added, so by default the web-ext-artifacts directory is added to that list when building your extension.<\/p>\n<p>A new option to linting, <a href=\"https:\/\/developer.mozilla.org\/en-US\/Add-ons\/WebExtensions\/web-ext_command_reference?document_saved=true#--warnings-as-errors_-w\">&#8211;warnings-as-errors<\/a>, will allow you to make the linter more strict, so that warnings are raised as errors. Also, when you run web-ext and you have an error in your JSON, you\u2019ll get an error message showing the line number. As an example:<\/p>\n<p><a href=\"https:\/\/blog.mozilla.org\/addons\/files\/2017\/02\/image00.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-8049\" src=\"https:\/\/blog.mozilla.org\/addons\/files\/2017\/02\/image00.png\" alt=\"image00\" width=\"1090\" height=\"139\" srcset=\"https:\/\/blog.mozilla.org\/addons\/files\/2017\/02\/image00.png 1090w, https:\/\/blog.mozilla.org\/addons\/files\/2017\/02\/image00-252x32.png 252w, https:\/\/blog.mozilla.org\/addons\/files\/2017\/02\/image00-768x98.png 768w, https:\/\/blog.mozilla.org\/addons\/files\/2017\/02\/image00-600x77.png 600w\" sizes=\"(max-width: 1090px) 100vw, 1090px\" \/><\/a><\/p>\n<p>Any command run will let you check to see if a new version of web-ext exists, ensuring that you are using the latest version of web-ext.<\/p>\n<p>Finally a regression on Windows was fixed, but more importantly the test suite was <a href=\"https:\/\/github.com\/mozilla\/web-ext\/commit\/449a74f560b2abee2f813f94e0fd90ad1a52eb6b\">enabled on Windows<\/a> to reduce regressions on Windows in the future.<\/p>\n<p>Special thanks to all the people who contributed to this release: <a href=\"https:\/\/github.com\/aniketkudale\">Aniket Kudale<\/a>, <a href=\"https:\/\/github.com\/josteink\">Jostein Kj\u00f8nigsen<\/a> and <a href=\"https:\/\/github.com\/eight04\">eight04<\/a>. A special thanks to <a href=\"https:\/\/github.com\/saintsebastian\">Elvina Valieva<\/a> and <a href=\"https:\/\/github.com\/shubheksha\">Shubsheka Jalan<\/a> who have been contributing via the <a href=\"https:\/\/wiki.mozilla.org\/Outreachy\">Outreachy<\/a> program.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A new version of web-ext has been released! Web-ext is the recommended tool for developing WebExtensions on Firefox, because it has the ability to automatically reload your WebExtension as you &hellip; <a class=\"go\" href=\"https:\/\/blog.mozilla.org\/addons\/2017\/02\/09\/web-ext-1-8-released\/\">Read more<\/a><\/p>\n","protected":false},"author":271,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[121],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>web-ext 1.8 released - 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\/2017\/02\/09\/web-ext-1-8-released\/\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Andy McKay\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/blog.mozilla.org\/addons\/2017\/02\/09\/web-ext-1-8-released\/\",\"url\":\"https:\/\/blog.mozilla.org\/addons\/2017\/02\/09\/web-ext-1-8-released\/\",\"name\":\"web-ext 1.8 released - Mozilla Add-ons Community Blog\",\"isPartOf\":{\"@id\":\"https:\/\/blog.mozilla.org\/addons\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/blog.mozilla.org\/addons\/2017\/02\/09\/web-ext-1-8-released\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/blog.mozilla.org\/addons\/2017\/02\/09\/web-ext-1-8-released\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/blog.mozilla.org\/addons\/files\/2017\/02\/image01.png\",\"datePublished\":\"2017-02-09T20:08:15+00:00\",\"dateModified\":\"2017-02-09T21:55:43+00:00\",\"author\":{\"@id\":\"https:\/\/blog.mozilla.org\/addons\/#\/schema\/person\/7e1881db0e8a23a4a06695f8a0efd6b8\"},\"breadcrumb\":{\"@id\":\"https:\/\/blog.mozilla.org\/addons\/2017\/02\/09\/web-ext-1-8-released\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/blog.mozilla.org\/addons\/2017\/02\/09\/web-ext-1-8-released\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/blog.mozilla.org\/addons\/2017\/02\/09\/web-ext-1-8-released\/#primaryimage\",\"url\":\"https:\/\/blog.mozilla.org\/addons\/files\/2017\/02\/image01.png\",\"contentUrl\":\"https:\/\/blog.mozilla.org\/addons\/files\/2017\/02\/image01.png\",\"width\":694,\"height\":152},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/blog.mozilla.org\/addons\/2017\/02\/09\/web-ext-1-8-released\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/blog.mozilla.org\/addons\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"web-ext 1.8 released\"}]},{\"@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\/7e1881db0e8a23a4a06695f8a0efd6b8\",\"name\":\"Andy McKay\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/blog.mozilla.org\/addons\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ad304e7a7d4f6fba05a81b10810fe6fd?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/ad304e7a7d4f6fba05a81b10810fe6fd?s=96&d=mm&r=g\",\"caption\":\"Andy McKay\"},\"description\":\"Andy is an Engineering Manager at Mozilla. As a Canadian he tweets and blogs about curling, skiing, politics, maple syrup, bears and all things from the great white north.\",\"sameAs\":[\"http:\/\/mckay.pub\",\"https:\/\/x.com\/andymckay\"],\"url\":\"https:\/\/blog.mozilla.org\/addons\/author\/amckaymozilla-com\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"web-ext 1.8 released - 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\/2017\/02\/09\/web-ext-1-8-released\/","twitter_misc":{"Written by":"Andy McKay","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/blog.mozilla.org\/addons\/2017\/02\/09\/web-ext-1-8-released\/","url":"https:\/\/blog.mozilla.org\/addons\/2017\/02\/09\/web-ext-1-8-released\/","name":"web-ext 1.8 released - Mozilla Add-ons Community Blog","isPartOf":{"@id":"https:\/\/blog.mozilla.org\/addons\/#website"},"primaryImageOfPage":{"@id":"https:\/\/blog.mozilla.org\/addons\/2017\/02\/09\/web-ext-1-8-released\/#primaryimage"},"image":{"@id":"https:\/\/blog.mozilla.org\/addons\/2017\/02\/09\/web-ext-1-8-released\/#primaryimage"},"thumbnailUrl":"https:\/\/blog.mozilla.org\/addons\/files\/2017\/02\/image01.png","datePublished":"2017-02-09T20:08:15+00:00","dateModified":"2017-02-09T21:55:43+00:00","author":{"@id":"https:\/\/blog.mozilla.org\/addons\/#\/schema\/person\/7e1881db0e8a23a4a06695f8a0efd6b8"},"breadcrumb":{"@id":"https:\/\/blog.mozilla.org\/addons\/2017\/02\/09\/web-ext-1-8-released\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/blog.mozilla.org\/addons\/2017\/02\/09\/web-ext-1-8-released\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/blog.mozilla.org\/addons\/2017\/02\/09\/web-ext-1-8-released\/#primaryimage","url":"https:\/\/blog.mozilla.org\/addons\/files\/2017\/02\/image01.png","contentUrl":"https:\/\/blog.mozilla.org\/addons\/files\/2017\/02\/image01.png","width":694,"height":152},{"@type":"BreadcrumbList","@id":"https:\/\/blog.mozilla.org\/addons\/2017\/02\/09\/web-ext-1-8-released\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/blog.mozilla.org\/addons\/"},{"@type":"ListItem","position":2,"name":"web-ext 1.8 released"}]},{"@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\/7e1881db0e8a23a4a06695f8a0efd6b8","name":"Andy McKay","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/blog.mozilla.org\/addons\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/ad304e7a7d4f6fba05a81b10810fe6fd?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ad304e7a7d4f6fba05a81b10810fe6fd?s=96&d=mm&r=g","caption":"Andy McKay"},"description":"Andy is an Engineering Manager at Mozilla. As a Canadian he tweets and blogs about curling, skiing, politics, maple syrup, bears and all things from the great white north.","sameAs":["http:\/\/mckay.pub","https:\/\/x.com\/andymckay"],"url":"https:\/\/blog.mozilla.org\/addons\/author\/amckaymozilla-com\/"}]}},"_links":{"self":[{"href":"https:\/\/blog.mozilla.org\/addons\/wp-json\/wp\/v2\/posts\/8048"}],"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\/271"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.mozilla.org\/addons\/wp-json\/wp\/v2\/comments?post=8048"}],"version-history":[{"count":0,"href":"https:\/\/blog.mozilla.org\/addons\/wp-json\/wp\/v2\/posts\/8048\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.mozilla.org\/addons\/wp-json\/wp\/v2\/media?parent=8048"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.mozilla.org\/addons\/wp-json\/wp\/v2\/categories?post=8048"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.mozilla.org\/addons\/wp-json\/wp\/v2\/tags?post=8048"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}