Bug 1224863 - Make addon-sdk windows module include private browsing windows in browserWindows. r=bkelly
authorBruce Bujon <bruce.bujon@gmail.com>
Wed, 17 Aug 2016 10:12:00 -0400
changeset 310139 4cfc2de918bce04f675191dfe3a5dd458c058349
parent 310138 830427b0d451e6fe2bd5b50da44042a6dd106c65
child 310168 e7cfd78dee27a013c4e5be92e56d76080ffaf85d
push id31532
push userryanvm@gmail.com
push dateFri, 19 Aug 2016 13:59:01 +0000
treeherderautoland@4f1e241f75a2 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbkelly
bugs1224863
milestone51.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1224863 - Make addon-sdk windows module include private browsing windows in browserWindows. r=bkelly DONTBUILD
addon-sdk/source/lib/sdk/windows/firefox.js
--- a/addon-sdk/source/lib/sdk/windows/firefox.js
+++ b/addon-sdk/source/lib/sdk/windows/firefox.js
@@ -177,17 +177,17 @@ function windowEmit(window, event, ...ar
 
 function makeNewWindow(domWindow, browserHint = false) {
   if (browserHint || isBrowser(domWindow))
     return new BrowserWindow(domWindow);
   else
     return new Window(domWindow);
 }
 
-for (let domWindow of windows()) {
+for (let domWindow of windows(null, {includePrivate: supportPrivateWindows})) {
   let window = makeNewWindow(domWindow);
   if (window instanceof BrowserWindow)
     addListItem(browserWindows, window);
 }
 
 var windowEventListener = (event, domWindow, ...args) => {
   let toplevelWindow = getToplevelWindow(domWindow);