mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-22 01:35:35 +00:00
Bug 1343678 - Use window context for GeckoSessionTestRule.evaluateJS()
r=geckoview-reviewers,droeh
Differential Revision: https://phabricator.services.mozilla.com/D41289 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
a427ad0aa8
commit
cd0bf6a265
@ -12,7 +12,7 @@ window.addEventListener("pageshow", () => {
|
||||
try {
|
||||
// Using eval here is the whole point of this WebExtension so we can
|
||||
// safely ignore the eslint warning.
|
||||
const response = eval(message.eval); // eslint-disable-line no-eval
|
||||
const response = window.eval(message.eval); // eslint-disable-line no-eval
|
||||
sendResponse(message.id, response);
|
||||
} catch (ex) {
|
||||
sendSyncResponse(message.id, null, ex);
|
||||
|
Loading…
Reference in New Issue
Block a user