MetaMask May Break Sites #13711
Comments
cc @danfinlay |
Testing this today, I am unable to repro on the Webby Awards website. |
Sorry for slow reply on your issue, I had the flu when this was submitted :/ We tracked with this issue: The ability to block sites we interfere with is here: And you can see we stopped injecting web3 for webby awards here: This is just a short-term solution, long term we are going to not inject web3 on pages by default, instead requiring sites to explicitly request a sign-in: |
(This should be fixed now) |
Still same thing is happening in my scenario too. I've a Angular 4 application running on localhost. If i enable MetaMask chrome extension it doesn't let angular list any thing in view. Since things do work normal if i disable MetaMask ext. |
@Khizar-Ali please post a reproduction site if possible, so that we can debug how exactly we may be breaking that site. |
I don't think there's any specific action we can take, so I'm going to close this issue. For any future webcompat incidents, let's open issues here: |
Description
Enabling MetaMask may cause web compatibility issues with some websites. MetaMask performs a script-injection into the visited document, which may cause issues. One example of this is with the vote.webbyawards.com website.
When MetaMask is disabled, the angular application works as expected.
Steps to Reproduce
Actual result:
Note presence of template strings.
Expected result:
Website should work as intended.
Reproduces how often:
100%
Brave Version
0.22.13
about:brave info:
Reproducible on current live release:
Yes
Additional Information
MetaMask injects a script tag directly into the root element, via its manifest.json:
Worth noting that the WebExtension API determines the placement of the script when using
run_at
. In the case ofdocument_start
, thescript
in added immediately within the rootElement.Switching
run_at
todocument_end
resolves this problem, though it may not be a feasible solution for the MetaMask team, depending on whatscripts/contentscript.js
does.The text was updated successfully, but these errors were encountered: