Opening Style Editor while on Reddit causes hundreds of Launch Application requests for webpack links
Categories
(DevTools :: Style Editor, defect, P3)
Tracking
(Not tracked)
People
(Reporter: serhiy.int, Unassigned)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
21.20 KB,
image/jpeg
|
Details |
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:80.0) Gecko/20100101 Firefox/80.0
Steps to reproduce:
F12 > F1 > Advanced settings > Enable browser chrome and add-on debugging toolboxes
And then switch to the Style Editor debug tab.
Actual results:
Firefox shows at least 300 requests for an application to open a webpack file.
Expected results:
Not this.
Comment 1•4 years ago
|
||
I'm trying to reproduce this issue but I'm having difficulties. Could you please provide more information from where exactly these 300 requests are displayed? Are you visiting any specific website?
Thanks.
I've just updated to 81.0 and it's no longer reproducible. Thank you, closing it.
Wait, looks like it's not related to browser chrome debugging, it's on Reddit main and I'm still getting it. Should I create a new report or reopen this one?
Comment 4•4 years ago
|
||
You can just reopen this again.
Comment 6•4 years ago
|
||
Could you please provide another steps to reproduce since it's not related to browser chrome debugging?
Yes, of course:
- Load https://www.reddit.com
- Press F12 or Ctrl+Shift+I, open Style Editor tab.
Comment 8•4 years ago
|
||
Not sure about the expected behaviour. Assigning "DevTools: Style Editor" component.
Comment 9•4 years ago
|
||
@Hani: Thanks for the test case!
I can reproduce the problem on my machine. I am seeing 530 Stylesheets in the side bar.
Many of them showing: Error while fetching an original source: NetworkError when attempting to fetch resource.
Julian, can you please look at this?
Honza
Updated•4 years ago
|
Comment 10•4 years ago
•
|
||
The website uses sourcemaps, but doesn't provide the original files on the production website. That's why you see many Error while fetching an original source
errors. I believe the real problem is that on the logger's machine, when we attempt to download webpack:// urls, the OS doesn't know how to handle the link and displays a prompt.
For instance, the first internal style sheet is :
._33-F8KNeBDS4RS9mUMQdxH{color:var(--newRedditTheme-linkText)}
/*# sourceMappingURL=https://www.redditstatic.com/desktop2x/chunkCSS/AuthorHovercard~Governance~InFeedChaining~Reddit~SubredditHovercard~reddit-components-ClassicPost~re~2f1a95cc.37f54b40c7394dfef57f.css.map*/
If you attempt to download the specified sourcemap, it contains:
{
"version": 3,
"sources": [
"webpack:///./src/reddit/components/Gold/AwardKarmaToastMessage/index.m.less"
],
"names": [],
"mappings": "AAAA,yBAAyB,qC",
"file": "chunkCSS/AuthorHovercard~Governance~InFeedChaining~Reddit~SubredditHovercard~reddit-components-ClassicPost~re~2f1a95cc.37f54b40c7394dfef57f.css",
"sourceRoot": ""
}
And webpack:///./src/reddit/components/Gold/AwardKarmaToastMessage/index.m.less
is not accessible.
We can discuss about other ways to handle original files when sourcemaps are missing, but I don't think this is the original issue reported here.
We could file an enhancement to automatically bail out of sourcemaps if we can't fetch them, but I don't think this will help here, because the problem for the logger is with the request to a webpack:// URL.
I can reproduce the problem on my machine. I am seeing 530 Stylesheets in the side bar.
I think that the problem reported by the logger is rather about getting annoying "popups" to handle webpack://
links, and not about the styleeditor contents. I can't reproduce this on my machine, this might be linux only.
Note that you can disable "Show Original Sources" in the style editor to prevent the Style Editor from trying to fetch sourcemapped files.
Comment 11•3 years ago
|
||
I just encountered this. It DoSed my machine, and caused kernel to go on a killing spree. I lost work.
Updated•2 years ago
|
Description
•