RESOLVED FIXED 180519
ServiceWorker Inspector: Use the SW's scope url for the remote inspection target metadata
https://bugs.webkit.org/show_bug.cgi?id=180519
Summary ServiceWorker Inspector: Use the SW's scope url for the remote inspection tar...
Joseph Pecoraro
Reported 2017-12-06 19:51:18 PST
ServiceWorker Inspector: Use the SW's scope url for the remote inspection target metadata So if there are multiple SW's for a domain they can be distinguished based on their scoping.
Attachments
[PATCH] Proposed Fix (2.52 KB, patch)
2017-12-06 19:52 PST, Joseph Pecoraro
youennf: review+
Joseph Pecoraro
Comment 1 2017-12-06 19:52:25 PST
Created attachment 328673 [details] [PATCH] Proposed Fix
youenn fablet
Comment 2 2017-12-06 20:21:55 PST
Comment on attachment 328673 [details] [PATCH] Proposed Fix View in context: https://bugs.webkit.org/attachment.cgi?id=328673&action=review > Source/WebCore/workers/service/context/ServiceWorkerDebuggable.h:49 > + String url() const override { return m_scopeURL; } Could be final and made private, as should name() probably. I also wonder whether url() could return a const String&. Would need to change RemoteInspectionTarget and maybe use emptyString().
Joseph Pecoraro
Comment 3 2017-12-07 10:51:20 PST
(In reply to youenn fablet from comment #2) > Comment on attachment 328673 [details] > [PATCH] Proposed Fix > > View in context: > https://bugs.webkit.org/attachment.cgi?id=328673&action=review > > > Source/WebCore/workers/service/context/ServiceWorkerDebuggable.h:49 > > + String url() const override { return m_scopeURL; } > > Could be final and made private, as should name() probably. > > I also wonder whether url() could return a const String&. > Would need to change RemoteInspectionTarget and maybe use emptyString(). Good points. I'll do all of these in a follow-up at the same time.
Joseph Pecoraro
Comment 4 2017-12-07 10:55:32 PST
Radar WebKit Bug Importer
Comment 5 2017-12-07 11:00:46 PST
Note You need to log in before you can comment on or make changes to this bug.