Early Hints image loads blocked by webextension ublock show broken image frame instead of hiding the image
Categories
(Core :: Networking: HTTP, defect, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox116 | --- | fixed |
People
(Reporter: manuel, Assigned: kershaw)
References
(Blocks 1 open bug)
Details
(Whiteboard: [necko-triaged])
Attachments
(2 files)
Assignee | ||
Updated•2 years ago
|
Comment 1•2 years ago
|
||
Is there a STR (test case + expected vs actual behavior)?
And more details on why it's considered a bug?
Assignee | ||
Comment 2•2 years ago
|
||
The problem that the image element not being removed is that the tabId is missing.
To make tabId available for the web extensions, we need to provide nsILoadContext to hinted requests.
Updated•2 years ago
|
Assignee | ||
Comment 3•2 years ago
|
||
The node server that I used to reproduce this issue locally.
Assignee | ||
Comment 4•2 years ago
|
||
(In reply to Rob Wu [:robwu] from comment #1)
Is there a STR (test case + expected vs actual behavior)?
Please see the attached test code.
STR:
- Run
node server.js
to start the server. - Open Firefox and install uBlock.
- Navigate to
https://localhost:4433
- Use uBlock to block image.jpg.
- Reload the page and you can observe that the
image
element is still visible.
The expected result is that the image element should be hidden.
And more details on why it's considered a bug?
After looking into uBlock's code, I found that cosmetic filtering in uBlock doesn't work because the early hinted preload request has no tabId
.
To fix this, we should provide a nsILoadContext
to the preload request.
Comment 6•2 years ago
|
||
Backed out for causing Bp-nu bustages in EarlyHintsService.h.
- Backout link
- Push with failures
- Failure Log
- Failure line: /builds/worker/workspace/obj-build/dist/include/mozilla/net/EarlyHintsService.h:33:18: error: unknown type name 'nsIInterfaceRequestor'
Assignee | ||
Updated•2 years ago
|
Comment 8•2 years ago
|
||
bugherder |
Description
•