diff --git a/lib/browser/api/web-contents.js b/lib/browser/api/web-contents.js index 4f9cd477e..1e0e83f7b 100644 --- a/lib/browser/api/web-contents.js +++ b/lib/browser/api/web-contents.js @@ -95,12 +95,7 @@ let wrapWebContents = function(webContents) { } // Mapping webFrame methods. - for (let method2 of webFrameMethods) { - // Redeclare variable within block to work around Mozilla bug 449811. - // TODO: remove workaround once Mozilla bug is fixed. - // https://github.com/mozilla/positron/issues/68 - let method = method2; - + for (let method of webFrameMethods) { webContents[method] = function(...args) { this.send('ELECTRON_INTERNAL_RENDERER_WEB_FRAME_METHOD', method, args); }; diff --git a/lib/renderer/api/remote.js b/lib/renderer/api/remote.js index 34ce41539..6bf7b4229 100644 --- a/lib/renderer/api/remote.js +++ b/lib/renderer/api/remote.js @@ -93,12 +93,7 @@ var wrapArgs = function(args, visited) { // Populate object's members from descriptors. // This matches |getObjectMemebers| in rpc-server. let setObjectMembers = function(object, metaId, members) { - for (let member2 of members) { - // Redeclare variable within block to work around Mozilla bug 449811. - // TODO: remove workaround once Mozilla bug is fixed. - // https://github.com/mozilla/positron/issues/68 - let member = member2; - + for (let member of members) { if (object.hasOwnProperty(member.name)) continue;