-
Notifications
You must be signed in to change notification settings - Fork 5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10072 from MetaMask/Version-v8.1.9
Version v8.1.9 RC
- Loading branch information
Showing
21 changed files
with
274 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// Disable console.log in contentscript to prevent SES/lockdown logging to external page | ||
// eslint-disable-next-line import/unambiguous | ||
if ( | ||
!(typeof process !== 'undefined' && process.env.METAMASK_DEBUG) && | ||
typeof console !== undefined | ||
) { | ||
console.log = () => undefined | ||
console.info = () => undefined | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,19 @@ | ||
// Freezes all intrinsics | ||
// eslint-disable-next-line no-undef,import/unambiguous | ||
lockdown({ | ||
consoleTaming: 'unsafe', | ||
errorTaming: 'unsafe', | ||
mathTaming: 'unsafe', | ||
dateTaming: 'unsafe', | ||
}) | ||
try { | ||
// eslint-disable-next-line no-undef,import/unambiguous | ||
lockdown({ | ||
consoleTaming: 'unsafe', | ||
errorTaming: 'unsafe', | ||
mathTaming: 'unsafe', | ||
dateTaming: 'unsafe', | ||
}) | ||
} catch (error) { | ||
// If the `lockdown` call throws an exception, it interferes with the | ||
// contentscript injection on some versions of Firefox. The error is | ||
// caught and logged here so that the contentscript still gets injected. | ||
// This affects Firefox v56 and Waterfox Classic | ||
console.error('Lockdown failed:', error) | ||
if (window.sentry && window.sentry.captureException) { | ||
window.sentry.captureException(error) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.