Bug 180362 - Get a directory path to SWServers for storing ServiceWorker registrations
Summary: Get a directory path to SWServers for storing ServiceWorker registrations
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Misc. (show other bugs)
Version: Other
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Brady Eidson
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2017-12-04 09:43 PST by Brady Eidson
Modified: 2017-12-04 17:19 PST (History)
9 users (show)

See Also:


Attachments
Patch (23.13 KB, patch)
2017-12-04 10:07 PST, Brady Eidson
no flags Details | Formatted Diff | Diff
PFL (23.12 KB, patch)
2017-12-04 12:01 PST, Brady Eidson
no flags Details | Formatted Diff | Diff
Patch (26.05 KB, patch)
2017-12-04 12:08 PST, Brady Eidson
no flags Details | Formatted Diff | Diff
Patch (1.61 KB, patch)
2017-12-04 16:51 PST, Brady Eidson
no flags Details | Formatted Diff | Diff
Patch (1.59 KB, patch)
2017-12-04 16:52 PST, Brady Eidson
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Brady Eidson 2017-12-04 09:43:01 PST
Get a directory path to SWServers for storing ServiceWorker registrations
Comment 1 Brady Eidson 2017-12-04 10:07:31 PST
Created attachment 328356 [details]
Patch
Comment 2 Chris Dumez 2017-12-04 10:11:37 PST
Comment on attachment 328356 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=328356&action=review

r=me

> Source/WebKit/ChangeLog:10
> +

Extra blank line.
Comment 3 Brady Eidson 2017-12-04 12:01:06 PST
Created attachment 328370 [details]
PFL
Comment 4 Brady Eidson 2017-12-04 12:08:56 PST
Created attachment 328372 [details]
Patch
Comment 5 Brady Eidson 2017-12-04 12:09:13 PST
Comment on attachment 328372 [details]
Patch

Waiting for Linux builds on EWS
Comment 6 EWS Watchlist 2017-12-04 12:10:18 PST
Thanks for the patch. If this patch contains new public API please make sure it follows the guidelines for new WebKit2 GTK+ API. See http://trac.webkit.org/wiki/WebKitGTK/AddingNewWebKit2API
Comment 7 WebKit Commit Bot 2017-12-04 13:50:34 PST
Comment on attachment 328372 [details]
Patch

Clearing flags on attachment: 328372

Committed r225490: <https://trac.webkit.org/changeset/225490>
Comment 8 WebKit Commit Bot 2017-12-04 13:50:36 PST
All reviewed patches have been landed.  Closing bug.
Comment 9 Radar WebKit Bug Importer 2017-12-04 13:51:48 PST
<rdar://problem/35838345>
Comment 10 youenn fablet 2017-12-04 16:42:36 PST
Comment on attachment 328372 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=328372&action=review

> Source/WebKit/StorageProcess/StorageProcess.cpp:390
> +    ASSERT(!path.isEmpty());

This assertion is hit in case of private browsing mode, at least the private browsing mode used by rwt which changes Document sessionID to emptySessionID.
See https://build.webkit.org/results/Apple%20iOS%2011%20Simulator%20Debug%20WK2%20(Tests)/r225492%20(1416)/results.html
Comment 11 Brady Eidson 2017-12-04 16:44:13 PST
(In reply to youenn fablet from comment #10)
> Comment on attachment 328372 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=328372&action=review
> 
> > Source/WebKit/StorageProcess/StorageProcess.cpp:390
> > +    ASSERT(!path.isEmpty());
> 
> This assertion is hit in case of private browsing mode, at least the private
> browsing mode used by rwt which changes Document sessionID to emptySessionID.
> See
> https://build.webkit.org/results/
> Apple%20iOS%2011%20Simulator%20Debug%20WK2%20(Tests)/r225492%20(1416)/
> results.html

Yup, that's totally 100% expected. I wasn't aware any tests ran in private browsing yet.
Comment 12 Brady Eidson 2017-12-04 16:51:24 PST
Reopening to attach new patch.
Comment 13 Brady Eidson 2017-12-04 16:51:25 PST
Created attachment 328412 [details]
Patch
Comment 14 Brady Eidson 2017-12-04 16:52:07 PST
Created attachment 328413 [details]
Patch
Comment 15 WebKit Commit Bot 2017-12-04 17:19:29 PST
Comment on attachment 328413 [details]
Patch

Clearing flags on attachment: 328413

Committed r225510: <https://trac.webkit.org/changeset/225510>
Comment 16 WebKit Commit Bot 2017-12-04 17:19:31 PST
All reviewed patches have been landed.  Closing bug.