Expose a way to filter headers in loadUri
Categories
(GeckoView :: General, enhancement, P1)
Tracking
(firefox83 fixed)
| Tracking | Status | |
|---|---|---|
| firefox83 | --- | fixed |
People
(Reporter: agi, Assigned: agi)
References
Details
(Whiteboard: [geckoview:m83])
Attachments
(3 files)
Filtering headers for loadUri requests is error-prone and shouldn't be left to every app to implement.
We can provider some common filters that the embedder can use like CORS safelisted as argument.
| Assignee | ||
Updated•5 years ago
|
| Assignee | ||
Updated•5 years ago
|
| Assignee | ||
Comment 1•5 years ago
|
||
| Assignee | ||
Comment 2•5 years ago
|
||
This introduces a new way of loading URIs in GeckoSession, using a builder-like
method loader() which deprecates the existing loadUri.
This change improves readability of long loadUri calls and allows us to add
more parameters without compromising usability.
It also fixes a bug where we were not short-circuiting the onLoadRequest call
in some cases.
| Assignee | ||
Comment 3•5 years ago
|
||
This allows apps to modify the header filtering behavior, and introduces a safe
default (CORS safelisted).
Deprecated loadUri methods still maintain the old behavior so that we don't
inadvertently introduce bugs in apps.
Updated•5 years ago
|
Comment 5•5 years ago
|
||
Backed out for perma failures.
Log: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=318650403&repo=autoland&lineNumber=8226
Backout: https://hg.mozilla.org/integration/autoland/rev/c897033e4e0ee282d6cc857ed00e1f13d54cfbc9
Comment 7•5 years ago
•
|
||
Comment 9•5 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/da7218c3e911
https://hg.mozilla.org/mozilla-central/rev/e607433d5ec5
https://hg.mozilla.org/mozilla-central/rev/ec225bf5041b
Description
•