Bug 842712 - strWindowName of |window.open(strUrl, strWindowName , strWindowFeatures)| should be targeting tab context, this problem only happens win8 metro UI r=mbrubeck
authorRodrigo Silveira <rsilveira@mozilla.com>
Mon, 10 Feb 2014 11:30:56 -0800
changeset 169922 614d9c8060238fe918f8267079aeee5212ab9120
parent 169842 7ab910fee157110602366fba41814e5cfcc1b438
child 169923 9878506e1baccfcc0542b4a08c352ca7726fb24c
push id270
push userpvanderbeken@mozilla.com
push dateThu, 06 Mar 2014 09:24:21 +0000
reviewersmbrubeck
bugs842712
milestone30.0a1
Bug 842712 - strWindowName of |window.open(strUrl, strWindowName , strWindowFeatures)| should be targeting tab context, this problem only happens win8 metro UI r=mbrubeck
browser/metro/base/content/browser.js
--- a/browser/metro/base/content/browser.js
+++ b/browser/metro/base/content/browser.js
@@ -1453,17 +1453,17 @@ Tab.prototype = {
     // the input overlay we use to shade content from input events when
     // we're intercepting touch input.
     let notification = this._notification = document.createElement("notificationbox");
 
     let browser = this._browser = document.createElement("browser");
     browser.id = "browser-" + this._id;
     this._chromeTab.linkedBrowser = browser;
 
-    browser.setAttribute("type", "content");
+    browser.setAttribute("type", "content-targetable");
 
     let useRemote = Services.appinfo.browserTabsRemote;
     let useLocal = Util.isLocalScheme(aURI);
     browser.setAttribute("remote", (!useLocal && useRemote) ? "true" : "false");
 
     // Append the browser to the document, which should start the page load
     let stack = document.createElementNS(XUL_NS, "stack");
     stack.className = "browserStack";
@@ -1527,17 +1527,17 @@ Tab.prototype = {
       browser.setAttribute("type", "content-primary");
       Elements.browsers.selectedPanel = notification;
       browser.active = true;
       Elements.tabList.selectedTab = this._chromeTab;
       browser.focus();
     } else {
       notification.classList.remove("active-tab-notificationbox");
       browser.messageManager.sendAsyncMessage("Browser:Blur", { });
-      browser.setAttribute("type", "content");
+      browser.setAttribute("type", "content-targetable");
       browser.active = false;
     }
   },
 
   get active() {
     if (!this._browser)
       return false;
     return this._browser.getAttribute("type") == "content-primary";