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:
Andreas Tolfsen 2018-01-12 13:25:42 +00:00
parent 20a23b6e23
commit 4103c22b8c

View File

@ -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();