Bug 1039952 - Part 2: Move getInnerId to actors/webbrowser.js. r=me

This commit is contained in:
Erik Vold
2014-09-16 10:55:33 -07:00
parent 558a5a2312
commit 9cd0101160
3 changed files with 13 additions and 0 deletions

View File

@@ -135,4 +135,7 @@ function closeConnection() {
// bug 1042976 - temporary test disable
module.exports = {};
// bug 1042976 - temporary test disable
module.exports = {};
require('sdk/test/runner').runTestsFromModule(module);

View File

@@ -5433,6 +5433,11 @@ function getInnerId(window) {
getInterface(Ci.nsIDOMWindowUtils).currentInnerWindowID;
};
function getInnerId(window) {
return window.QueryInterface(Ci.nsIInterfaceRequestor).
getInterface(Ci.nsIDOMWindowUtils).currentInnerWindowID;
};
const symbolProtoToString = typeof Symbol === "function" ? Symbol.prototype.toString : null;
function getSymbolName(symbol) {

View File

@@ -43,6 +43,11 @@ function getWindowID(window) {
* Browser-specific actors.
*/
function getInnerId(window) {
return window.QueryInterface(Ci.nsIInterfaceRequestor).
getInterface(Ci.nsIDOMWindowUtils).currentInnerWindowID;
};
/**
* Yield all windows of type |aWindowType|, from the oldest window to the
* youngest, using nsIWindowMediator::getEnumerator. We're usually