mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1159232: Avoid use of template string in GeckoDriver#sendAsync
Also avoids it in GeckoDriver#execute. r=dburns
This commit is contained in:
parent
8f3ff4e71b
commit
209b182f43
@ -216,7 +216,7 @@ GeckoDriver.prototype.switchToGlobalMessageManager = function() {
|
||||
*/
|
||||
GeckoDriver.prototype.sendAsync = function(name, msg, cmdId) {
|
||||
let curRemoteFrame = this.curBrowser.frameManager.currentRemoteFrame;
|
||||
name = `Marionette:${name}`;
|
||||
name = "Marionette:" + name;
|
||||
|
||||
if (cmdId) {
|
||||
msg.command_id = cmdId;
|
||||
@ -888,7 +888,7 @@ GeckoDriver.prototype.execute = function(cmd, resp, directInject) {
|
||||
};
|
||||
|
||||
if (!directInject) {
|
||||
script = `let func = function() { ${script} }; func.apply(null, __marionetteParams);`;
|
||||
script = "let func = function() { " + script + " }; func.apply(null, __marionetteParams);";
|
||||
}
|
||||
this.executeScriptInSandbox(
|
||||
resp,
|
||||
|
Loading…
Reference in New Issue
Block a user