mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-24 10:45:42 +00:00
Bug 1430077 - Remove global outerWindowID in frame script. r=whimboo
outerWindowID is no longer used for adding message listeners, which means we do not need to store it globally. MozReview-Commit-ID: HZ0oY7ozwnu --HG-- extra : rebase_source : 4a03927b5bdbe3d34a45faf8fa9646e0a58bd96a
This commit is contained in:
parent
20a23b6e23
commit
4103c22b8c
@ -46,7 +46,6 @@ Cu.import("chrome://marionette/content/session.js");
|
||||
|
||||
Cu.importGlobalProperties(["URL"]);
|
||||
|
||||
let outerWindowID = null;
|
||||
let curContainer = {frame: content, shadowRoot: null};
|
||||
|
||||
// Listen for click event to indicate one click has happened, so actions
|
||||
@ -447,7 +446,7 @@ const loadListener = {
|
||||
* an ID, we start the listeners. Otherwise, nothing happens.
|
||||
*/
|
||||
function registerSelf() {
|
||||
outerWindowID = winUtil.outerWindowID;
|
||||
let {outerWindowID} = winUtil;
|
||||
logger.debug(`Register listener.js for window ${outerWindowID}`);
|
||||
|
||||
sandboxes.clear();
|
||||
|
Loading…
Reference in New Issue
Block a user