Closed Bug 1696111 Opened 3 years ago Closed 3 years ago

Opaque Response Blocking v0

Categories

(Core :: DOM: Networking, task, P2)

task

Tracking

()

RESOLVED FIXED
89 Branch
Tracking Status
firefox89 --- fixed

People

(Reporter: tt, Assigned: edenchuang)

References

(Blocks 1 open bug)

Details

(Whiteboard: [necko-triaged])

Attachments

(8 files)

Scope of v0:

We have already had patches, but I am going to move them here so that it's easier to track progress.

Summary: Opaque Response v0 → Opaque Response Blocking v0

Depends on D106891

Depends on: 1683131
Depends on: 1695987

(In reply to Tom Tung [:tt, :ttung] from comment #8)

try: https://treeherder.mozilla.org/#/jobs?repo=try&revision=c2365d0cdd2264a8744a58d2f125c08e58ff4d50
try without enabling the pref on Nightly (to simulate Beta and Release): https://treeherder.mozilla.org/#/jobs?repo=try&revision=3646db16b523e88b9939e410478a9e857079a752

Some tests failed because the boolean pref was accessed on the background thread.
Update patches to make it atomic boolean.

try: https://treeherder.mozilla.org/jobs?repo=try&revision=a001bc892322dff5f737166ed306478983ef9a48
try w/o: https://treeherder.mozilla.org/#/jobs?repo=try&revision=8d820ba43c8262b573c2f562247c5f3ff49ac889

After applying D102448,
uriloader/exthandler/tests/mochitest/test_nullCharFile.xhtml starts to fail.
The reason is that it adds image sniffer into net-content-sniffers which is not
expected.

Such that, this patch

  • adds two other sniffers category:
    • orb-content-sniffers
      • The sniffers that are needed in ORB.
    • net-and-orb-content-sniffers
      • The sniffers that are in either orb-content-sniffers or net-content-sniffers.
  • changes the way to ensure we only use the sniffers in the
    requested category.
Severity: -- → N/A
Whiteboard: [necko-triaged]
Assignee: shes050117 → echuang
Blocks: 1697494
Attachment #9206571 - Attachment description: Bug 1696111 - Make LoadInfo know if the request is triggered from a media element and if it's an initial request; → Bug 1696111 - Make LoadInfo know if the request is triggered from a media element and if it's an initial request.
Pushed by echuang@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/642bdd52fd57
Add a pref for ORB and disable it by default; r=necko-reviewers,valentin
https://hg.mozilla.org/integration/autoland/rev/51a16dfabc98
Add functions to determine opaque-safelisted MIME type, opaque-blocklisted MIME type and opaque-blocklisted-never-sniffed MIME type; r=necko-reviewers,dragana
https://hg.mozilla.org/integration/autoland/rev/3fdc8089a46f
ORB core Implementation; r=necko-reviewers,dragana
https://hg.mozilla.org/integration/autoland/rev/d60c38f8939a
Extract the code for parsing range header string out and use it later; r=alwu,necko-reviewers,dragana
https://hg.mozilla.org/integration/autoland/rev/fab7f4cd445d
Make LoadInfo know if the request is triggered from a media element and if it's an initial request. r=necko-reviewers,alwu,dragana
https://hg.mozilla.org/integration/autoland/rev/e4d01b88e517
Sniff and check the initial media request and allow its subsequent requests; r=necko-reviewers,dragana
https://hg.mozilla.org/integration/autoland/rev/2946eff1e9c8
Enable the pref for ORB on Nightly; r=valentin
https://hg.mozilla.org/integration/autoland/rev/11fdb503d537
Use sniffers in the requested category; r=necko-reviewers,valentin
Regressions: 1701154
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Target Milestone: 89 Branch → ---
Pushed by echuang@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/7f61d79772d0
Add a pref for ORB and disable it by default; r=necko-reviewers,valentin
https://hg.mozilla.org/integration/autoland/rev/fa0aa347f7fd
Add functions to determine opaque-safelisted MIME type, opaque-blocklisted MIME type and opaque-blocklisted-never-sniffed MIME type; r=necko-reviewers,dragana
https://hg.mozilla.org/integration/autoland/rev/f6ff0fe4970c
ORB core Implementation; r=necko-reviewers,dragana
https://hg.mozilla.org/integration/autoland/rev/c117ba41ccb1
Extract the code for parsing range header string out and use it later; r=alwu,necko-reviewers,dragana
https://hg.mozilla.org/integration/autoland/rev/b4fe94d08876
Make LoadInfo know if the request is triggered from a media element and if it's an initial request. r=necko-reviewers,alwu,dragana
https://hg.mozilla.org/integration/autoland/rev/9e001023eda0
Sniff and check the initial media request and allow its subsequent requests; r=necko-reviewers,dragana
https://hg.mozilla.org/integration/autoland/rev/e886ab54b5f1
Enable the pref for ORB on Nightly; r=valentin
https://hg.mozilla.org/integration/autoland/rev/cbbcad052794
Use sniffers in the requested category; r=necko-reviewers,valentin
Regressions: 1702070
No longer regressions: 1702070
Whiteboard: [necko-triaged] → [necko-triaged][sp3]
Whiteboard: [necko-triaged][sp3] → [necko-triaged]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: