Closed Bug 1930983 Opened 3 months ago Closed 3 months ago

Remove unused test-only ServiceWorkerContainer.getScopeForUrl helper

Categories

(Core :: DOM: Service Workers, task)

task

Tracking

()

RESOLVED FIXED
134 Branch
Tracking Status
firefox134 --- fixed

People

(Reporter: asuth, Assigned: asuth)

References

Details

Attachments

(1 file)

We have a test-only method ServiceWorkerContainer.getScopeForUrl which is orphaned. When initially filing the bug I thought we used it in a test, but in fact we're only using the underlying nsIServiceWorkerManager::getScopeForUrl.

The test using nsIServiceWorkerManager is testing test scope logic which seems like it could be a fairly simple gtest unit test if we wanted, although the XPIDL interface exposure and usage is fairly harmless. The other checks in test_scopes.html relating to calls to register would not be appropriate for a gtest, although I suspect we get the coverage from WPTs already.

Assignee: nobody → bugmail
Status: NEW → ASSIGNED
Summary: Remove test-only ServiceWorkerContainer.getScopeForUrl helper and replace existing usage with a gtest → Remove test-only ServiceWorkerContainer.getScopeForUrl helper
See Also: → 1930717
Summary: Remove test-only ServiceWorkerContainer.getScopeForUrl helper → Remove unused test-only ServiceWorkerContainer.getScopeForUrl helper
Pushed by bugmail@asutherland.org: https://hg.mozilla.org/integration/autoland/rev/bb219800bc23 Remove unused test-only ServiceWorkerContainer.getScopeForUrl helper. r=saschanaz,dom-worker-reviewers,webidl,edenchuang
Status: ASSIGNED → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → 134 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: