RESOLVED FIXED 201174
Skip fetch event dispatching if no fetch event handler is added at script evaluation time
https://bugs.webkit.org/show_bug.cgi?id=201174
Summary Skip fetch event dispatching if no fetch event handler is added at script eva...
youenn fablet
Reported 2019-08-27 00:50:26 PDT
Skip fetch event dispatching if no fetch event handler is added at script evaluation time https://w3c.github.io/ServiceWorker/#handle-fetch step 16
Attachments
Patch (42.20 KB, patch)
2019-08-27 01:23 PDT, youenn fablet
no flags
Patch for landing (42.14 KB, patch)
2019-08-29 06:44 PDT, youenn fablet
no flags
Patch for landing (42.09 KB, patch)
2019-08-29 08:24 PDT, youenn fablet
no flags
youenn fablet
Comment 1 2019-08-27 01:23:44 PDT
Chris Dumez
Comment 2 2019-08-28 10:16:40 PDT
Comment on attachment 377326 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=377326&action=review > Source/WebCore/workers/service/server/SWServerWorker.h:115 > + bool shouldSkipFetchEvent() const { return m_shouldSkipHandleFetch && *m_shouldSkipHandleFetch; } return m_shouldSkipHandleFetch.valueOr(false); would look nicer IMO. > Source/WebCore/workers/service/server/SWServerWorker.h:135 > + Optional<bool> m_shouldSkipHandleFetch; Do we really need an Optional<> ? Why cannot it be a bool that is default-initialized to false? Nobody seems to rely on it being nullopt at the moment.
youenn fablet
Comment 3 2019-08-29 06:19:05 PDT
Comment on attachment 377326 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=377326&action=review >> Source/WebCore/workers/service/server/SWServerWorker.h:135 >> + Optional<bool> m_shouldSkipHandleFetch; > > Do we really need an Optional<> ? Why cannot it be a bool that is default-initialized to false? Nobody seems to rely on it being nullopt at the moment. Will change it to a bool.
youenn fablet
Comment 4 2019-08-29 06:44:16 PDT
Created attachment 377575 [details] Patch for landing
youenn fablet
Comment 5 2019-08-29 08:24:14 PDT
Created attachment 377588 [details] Patch for landing
WebKit Commit Bot
Comment 6 2019-08-29 12:24:52 PDT
Comment on attachment 377588 [details] Patch for landing Clearing flags on attachment: 377588 Committed r249287: <https://trac.webkit.org/changeset/249287>
WebKit Commit Bot
Comment 7 2019-08-29 12:24:54 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 8 2019-08-29 12:25:19 PDT
Note You need to log in before you can comment on or make changes to this bug.