Skip to content

Commit

Permalink
fix userinput
Browse files Browse the repository at this point in the history
  • Loading branch information
aslushnikov committed Mar 7, 2020
1 parent ad69da0 commit 381c1df
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions juggler/content/RuntimeAgent.js
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,9 @@ class ExecutionContext {

async evaluateScript(script, exceptionDetails = {}) {
const userInputHelper = this._domWindow ? this._domWindow.windowUtils.setHandlingUserInput(true) : null;
if (this._domWindow && this._domWindow.document)
this._domWindow.document.notifyUserGestureActivation();

let {success, obj} = this._getResult(this._global.executeInGlobal(script), exceptionDetails);
userInputHelper && userInputHelper.destruct();
if (!success)
Expand Down

0 comments on commit 381c1df

Please sign in to comment.