RESOLVED FIXED 207803
Do not send the client URL to network process when unregistering a service worker registration
https://bugs.webkit.org/show_bug.cgi?id=207803
Summary Do not send the client URL to network process when unregistering a service wo...
youenn fablet
Reported 2020-02-14 18:17:13 PST
Do not send the client URL to network process. This is unnecessary and somehow unsafe.
Attachments
Patch (17.96 KB, patch)
2020-02-14 18:20 PST, youenn fablet
no flags
Patch (18.78 KB, patch)
2020-02-14 19:27 PST, youenn fablet
no flags
Patch for landing (18.71 KB, patch)
2020-02-17 10:02 PST, youenn fablet
no flags
youenn fablet
Comment 1 2020-02-14 18:20:54 PST
youenn fablet
Comment 2 2020-02-14 19:27:33 PST
Darin Adler
Comment 3 2020-02-16 22:22:58 PST
Comment on attachment 390850 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=390850&action=review > Source/WebKit/NetworkProcess/ServiceWorker/WebSWServerConnection.cpp:296 > + auto iterator = m_clientOrigins.find(clientIdentifier); > + if (iterator != m_clientOrigins.end()) > + clientData = server().serviceWorkerClientWithOriginByID(iterator->value, clientIdentifier); > + if (!clientData) > + return { }; I think this would read better like this: auto iterator = m_clientOrigins.find(clientIdentifier); if (iterator == m_clientOrigins.end()) return { }; auto clientData = server().serviceWorkerClientWithOriginByID(iterator->value, clientIdentifier); if (!clientData) return { };
youenn fablet
Comment 4 2020-02-17 10:02:10 PST
Created attachment 390929 [details] Patch for landing
WebKit Commit Bot
Comment 5 2020-02-17 11:24:01 PST
Comment on attachment 390929 [details] Patch for landing Clearing flags on attachment: 390929 Committed r256749: <https://trac.webkit.org/changeset/256749>
WebKit Commit Bot
Comment 6 2020-02-17 11:24:02 PST
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 7 2020-02-17 11:26:28 PST
Note You need to log in before you can comment on or make changes to this bug.