{"id":5887,"date":"2013-01-30T13:29:42","date_gmt":"2013-01-30T21:29:42","guid":{"rendered":"http:\/\/blog.mozilla.org\/addons\/?p=5887"},"modified":"2013-01-30T14:23:19","modified_gmt":"2013-01-30T22:23:19","slug":"per-window-private-browsing-and-the-sdk","status":"publish","type":"post","link":"https:\/\/blog.mozilla.org\/addons\/2013\/01\/30\/per-window-private-browsing-and-the-sdk\/","title":{"rendered":"Per-Window Private Browsing and the SDK"},"content":{"rendered":"<p>Erik Vold has been working hard to implement support for Per-Window Private Browsing in the SDK, and he posted <a href=\"http:\/\/work.erikvold.com\/jetpack\/2013\/01\/30\/per-window-private-browsing.html\" target=\"_blank\">a summary of the work<\/a> and how it will impact add-on authors yesterday:<\/p>\n<blockquote><p>To put the change simply, before with global private browsing a add-on developer need only know if the mode was active or not and when that state changed, now with per-window private browsing none of that information is available because it no longer exists. <\/p>\n<p>With per-window private browsing a add-on developer will need to know if the information they are handling came from a private-browsing window and either ignore it, handle it sensitively, and possibly do some extra cleanup work for the sensitive data when the associated window is closed, or when the last private browsing window is closed. The best approach to take depends on the use case.<\/p><\/blockquote>\n<p>If you are maintaining an SDK-based add-on, here is our best advice in order to ensure that your add-on keeps working as expected over the next couple of Firefox versions:<\/p>\n<ol>\n<li>Re-pack your existing add-on to SDK 1.13, released yesterday and re-submit it to AMO. This will immunize you from an upcoming change in Firefox 21 that will remove the oldd Global Private browsing service completely. Unless you take this initial step, users will not be able to use your add-on with Firefox 21.<\/li>\n<li>Once SDK 1.14 is released on March 12th, re-pack your add-on again to SDK 1.14. This will allow you to specify whether your add-on will be active in Private Browsing windows, and the default will be &#8216;inactive&#8217;.<\/li>\n<\/ol>\n<p>The SDK team will be working with AMO to mitigate the impact of these changes in a number of ways:<\/p>\n<ul>\n<li>We will be reaching out to the community via posts like this and encouraging people to re-pack their add-ons.<\/li>\n<li>We will continue to identify add-ons on AMO that use very old and\/or dangerous add-ons and marking them incompatible with newer versions of Firefox.<\/li>\n<li>We will be re-visiting our re-packing scripts that can potentially re-pack large numbers of simple add-ons. I&#8217;ll report back in a few weeks with the specifics of this work.<\/li>\n<\/ul>\n<p>Comments are disabled for this post &#8211; I&#8217;ve posted a thread to the Jetpack Google group &#8211; if you have concerns or comments regarding these changes I encourage you to post there:<\/p>\n<p><a href=\"https:\/\/groups.google.com\/d\/msg\/mozilla-labs-jetpack\/5aJhHXzodpM\/6B_9kU2UAG4J\" target=\"_blank\">https:\/\/groups.google.com\/d\/msg\/mozilla-labs-jetpack\/5aJhHXzodpM\/6B_9kU2UAG4J<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Erik Vold has been working hard to implement support for Per-Window Private Browsing in the SDK, and he posted a summary of the work and how it will impact add-on &hellip; <a class=\"go\" href=\"https:\/\/blog.mozilla.org\/addons\/2013\/01\/30\/per-window-private-browsing-and-the-sdk\/\">Read more<\/a><\/p>\n","protected":false},"author":316,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[388,44,121,588,742],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Per-Window Private Browsing and the SDK - 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\/2013\/01\/30\/per-window-private-browsing-and-the-sdk\/\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jeff Griffiths\" \/>\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\/2013\/01\/30\/per-window-private-browsing-and-the-sdk\/\",\"url\":\"https:\/\/blog.mozilla.org\/addons\/2013\/01\/30\/per-window-private-browsing-and-the-sdk\/\",\"name\":\"Per-Window Private Browsing and the SDK - Mozilla Add-ons Community Blog\",\"isPartOf\":{\"@id\":\"https:\/\/blog.mozilla.org\/addons\/#website\"},\"datePublished\":\"2013-01-30T21:29:42+00:00\",\"dateModified\":\"2013-01-30T22:23:19+00:00\",\"author\":{\"@id\":\"https:\/\/blog.mozilla.org\/addons\/#\/schema\/person\/e2f4c71eb45392ea29162432c3f1d433\"},\"breadcrumb\":{\"@id\":\"https:\/\/blog.mozilla.org\/addons\/2013\/01\/30\/per-window-private-browsing-and-the-sdk\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/blog.mozilla.org\/addons\/2013\/01\/30\/per-window-private-browsing-and-the-sdk\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/blog.mozilla.org\/addons\/2013\/01\/30\/per-window-private-browsing-and-the-sdk\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/blog.mozilla.org\/addons\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Per-Window Private Browsing and the SDK\"}]},{\"@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\/e2f4c71eb45392ea29162432c3f1d433\",\"name\":\"Jeff Griffiths\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/blog.mozilla.org\/addons\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/b07ae75dd1a5414bf30d7f773ccfc894?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/b07ae75dd1a5414bf30d7f773ccfc894?s=96&d=mm&r=g\",\"caption\":\"Jeff Griffiths\"},\"description\":\"Jeff is Product Manager for the Firefox Developer Tools and occasional Open Web hacker, based in Vancouver, BC.\",\"sameAs\":[\"http:\/\/canuckistani.ca\/\",\"https:\/\/x.com\/canuckistani\"],\"url\":\"https:\/\/blog.mozilla.org\/addons\/author\/jgriffithsmozilla-com\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Per-Window Private Browsing and the SDK - 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\/2013\/01\/30\/per-window-private-browsing-and-the-sdk\/","twitter_misc":{"Written by":"Jeff Griffiths","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/blog.mozilla.org\/addons\/2013\/01\/30\/per-window-private-browsing-and-the-sdk\/","url":"https:\/\/blog.mozilla.org\/addons\/2013\/01\/30\/per-window-private-browsing-and-the-sdk\/","name":"Per-Window Private Browsing and the SDK - Mozilla Add-ons Community Blog","isPartOf":{"@id":"https:\/\/blog.mozilla.org\/addons\/#website"},"datePublished":"2013-01-30T21:29:42+00:00","dateModified":"2013-01-30T22:23:19+00:00","author":{"@id":"https:\/\/blog.mozilla.org\/addons\/#\/schema\/person\/e2f4c71eb45392ea29162432c3f1d433"},"breadcrumb":{"@id":"https:\/\/blog.mozilla.org\/addons\/2013\/01\/30\/per-window-private-browsing-and-the-sdk\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/blog.mozilla.org\/addons\/2013\/01\/30\/per-window-private-browsing-and-the-sdk\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/blog.mozilla.org\/addons\/2013\/01\/30\/per-window-private-browsing-and-the-sdk\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/blog.mozilla.org\/addons\/"},{"@type":"ListItem","position":2,"name":"Per-Window Private Browsing and the SDK"}]},{"@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\/e2f4c71eb45392ea29162432c3f1d433","name":"Jeff Griffiths","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/blog.mozilla.org\/addons\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/b07ae75dd1a5414bf30d7f773ccfc894?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b07ae75dd1a5414bf30d7f773ccfc894?s=96&d=mm&r=g","caption":"Jeff Griffiths"},"description":"Jeff is Product Manager for the Firefox Developer Tools and occasional Open Web hacker, based in Vancouver, BC.","sameAs":["http:\/\/canuckistani.ca\/","https:\/\/x.com\/canuckistani"],"url":"https:\/\/blog.mozilla.org\/addons\/author\/jgriffithsmozilla-com\/"}]}},"_links":{"self":[{"href":"https:\/\/blog.mozilla.org\/addons\/wp-json\/wp\/v2\/posts\/5887"}],"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\/316"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.mozilla.org\/addons\/wp-json\/wp\/v2\/comments?post=5887"}],"version-history":[{"count":0,"href":"https:\/\/blog.mozilla.org\/addons\/wp-json\/wp\/v2\/posts\/5887\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.mozilla.org\/addons\/wp-json\/wp\/v2\/media?parent=5887"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.mozilla.org\/addons\/wp-json\/wp\/v2\/categories?post=5887"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.mozilla.org\/addons\/wp-json\/wp\/v2\/tags?post=5887"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}