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•11 months ago
|
Comment 1•11 months ago
|
||
Is there a STR (test case + expected vs actual behavior)?
And more details on why it's considered a bug?
Assignee | ||
Comment 2•11 months 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•11 months ago
|
Assignee | ||
Comment 3•11 months ago
|
||
The node server that I used to reproduce this issue locally.
Assignee | ||
Comment 4•11 months 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.
Pushed by kjang@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/5e37c8d6f4be Provide nsILoadContext to the hinted request, r=manuel,necko-reviewers
Comment 6•11 months 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•11 months ago
|
Pushed by kjang@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/c18688c9011d Provide nsILoadContext to the hinted request, r=manuel,necko-reviewers
Comment 8•11 months ago
|
||
bugherder |
Description
•