Closed Bug 1710138 Opened 3 years ago Closed 3 years ago

Add explicit test coverage for the Cache webAPI called from a moz-extension:// shared worker.

Categories

(WebExtensions :: General, task, P2)

task

Tracking

(firefox90 fixed)

RESOLVED FIXED
90 Branch
Tracking Status
firefox90 --- fixed

People

(Reporter: rpl, Assigned: rpl)

References

Details

Attachments

(1 file)

In Bug 1575625 we are allowing extension principal globals to use the Cache WebAPI, this follow up is meant to add an additional test case that explicitly covers calling the Cache API from a moz-extension:// shared worker.

For reference:

Depends on: 1575625
Assignee: nobody → lgreco
Severity: -- → N/A
Status: NEW → ASSIGNED
Priority: -- → P2

FYI: There is a bug in Chromium about not being able to cache extension resources using the API:
https://bugs.chromium.org/p/chromium/issues/detail?id=651658

(In reply to Rob Wu [:robwu] from comment #1)

FYI: There is a bug in Chromium about not being able to cache extension resources using the API:
https://bugs.chromium.org/p/chromium/issues/detail?id=651658

we don't allow that neither (at least at the moment with the background service worker pref set as disabled as it is currently by default).

The current test case is this one, we may add one more assertion for a cache API call with the second optional response object parameter, but I'm pretty sure that right now we are disallowing it because the moz-extension:// url scheme isn't currently allowed here in mozilla::dom::cache::TypeUtils::ProcessURL and so I would expect the behavior to be the same also in that case).

Nevertheless, thanks Rob for letting me know about that Chrome issue.

Pushed by luca.greco@alcacoop.it:
https://hg.mozilla.org/integration/autoland/rev/f70fef472359
Add explicit test coverage for the Cache webAPI called from a moz-extension:// shared worker. r=mixedpuppy
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 90 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: