Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Investigate about:srcdoc errors #176

Open
sirdarckcat opened this issue Jan 4, 2021 · 10 comments
Open

Investigate about:srcdoc errors #176

sirdarckcat opened this issue Jan 4, 2021 · 10 comments

Comments

@sirdarckcat
Copy link
Member

Some times we get debugger permission errors which freeze the extension.

@sirdarckcat
Copy link
Member Author

Repro: go to https://www.w3schools.com/jsref/event_onscroll.asp and reload a few times, eventually all requests will be stuck in "sent"

@sirdarckcat
Copy link
Member Author

error happens on Fetch.continueRequest of "https://www.google.com/images/cleardot.gif"

I don't see anything special in that request.

0: {name: "Accept", value: "image/avif,image/webp,image/apng,image/*,*/*;q=0.8"}
1: {name: "Cookie", value: "CONSENT=YES+ES.en+20150607-14-1; __Secure-3PSID=..."}
2: {name: "Referer", value: "https://www.w3schools.com/"}
3: {name: "User-Agent", value: "Mozilla/5.0 (X11; CrOS x86_64 13505.73.0) AppleWeb…L, like Gecko) Chrome/87.0.4280.109 Safari/537.36"}
4: {name: "sec-ch-ua", value: ""Google Chrome";v="87", " Not;A Brand";v="99", "Chromium";v="87""}
5: {name: "sec-ch-ua-mobile", value: "?0"}

@sirdarckcat
Copy link
Member Author

Full error is Cannot access contents of url "about:srcdoc". Extension manifest must request permission to access this host.

@sirdarckcat
Copy link
Member Author

a simpler testcase is http://evilwebsite.com/xss.php?plain_xss=%3Ciframe%20srcdoc%3E something breaks with srcdoc

@sirdarckcat
Copy link
Member Author

this is not related to activeTab, requesting with <all_urls> fails as well.

@sirdarckcat
Copy link
Member Author

requesting about:srcdoc permission explicitly doesnt work either

@sirdarckcat
Copy link
Member Author

looks like a chrome bug.

@sirdarckcat
Copy link
Member Author

seems related to https://bugs.chromium.org/p/chromium/issues/detail?id=55084 - but will create a new bug

@sirdarckcat
Copy link
Member Author

@sirdarckcat
Copy link
Member Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant