Skip to content

Prevent source map console warnings caused by MetaMask bundles #7077

@MicahZoltu

Description

@MicahZoltu

Describe the bug
When I open the browser console on any page in my browser I get warnings about being unable to find source maps for MetaMask's sourcemaps/contentscript.js and sourcemaps/inpage.js.map. It would be great if having MetaMask installed didn't result in an error in my console on every page I load.

To Reproduce
Steps to reproduce the behavior:

  1. Install MetaMask into Firefox.
  2. Open console.
  3. Notice the "source map error" warnings.

Expected behavior
No errors in my console when loading a page with MetaMask injected into it.

Screenshots
N/A

Browser details (please complete the following information):

  • OS: Windows 10
  • Browser: Firefox
  • MetaMask Version: 7.0.1

Additional context
Since this is an extension, the size increase from source maps should not be significant enough to cause any problems, as they aren't loaded on every page load and users are accustomed to extensions having non-zero download times. You may need to make the sourcemaps web accessible, though testing is necessary to figure out whether that is required for Firefox to be able to fetch a source map.

Metadata

Metadata

Assignees

Labels

Sev3-lowLow severity; minimal to no impact upon usersarea-CIarea-buildSystemrelated to our build systemtype-bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions