Summary: | ServiceWorker Inspector: Use the SW's scope url for the remote inspection target metadata | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Joseph Pecoraro <joepeck> | ||||
Component: | Web Inspector | Assignee: | Joseph Pecoraro <joepeck> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | inspector-bugzilla-changes, joepeck, webkit-bug-importer, youennf | ||||
Priority: | P2 | Keywords: | InRadar | ||||
Version: | WebKit Nightly Build | ||||||
Hardware: | All | ||||||
OS: | All | ||||||
Attachments: |
|
Description
Joseph Pecoraro
2017-12-06 19:51:18 PST
Created attachment 328673 [details]
[PATCH] Proposed Fix
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(). (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. |