Bug 1039952 - Part 2: Move getInnerId to actors/webbrowser.js. r=me
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user