WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
187631
IndexedDB: closeAndDeleteDatabasesForOrigins should remove all databases for those origins
https://bugs.webkit.org/show_bug.cgi?id=187631
Summary
IndexedDB: closeAndDeleteDatabasesForOrigins should remove all databases for ...
Sihui Liu
Reported
2018-07-12 17:40:27 PDT
If we currently have 2 IDB databases: IDB1: top level frame origin A with subframe origin A IDB2: top level frame origin B with subframe origin A IDB2 won't be deleted if user asks to delete all IDB databases for origin A. This is because we are managing IDB database deletion by their mainframe origin.
Attachments
Patch
(9.00 KB, patch)
2018-07-13 16:58 PDT
,
Sihui Liu
no flags
Details
Formatted Diff
Diff
Patch for landing
(8.68 KB, patch)
2018-07-16 10:56 PDT
,
Sihui Liu
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2018-07-13 06:46:24 PDT
<
rdar://problem/42164227
>
Sihui Liu
Comment 2
2018-07-13 16:58:39 PDT
Created
attachment 345004
[details]
Patch
Brady Eidson
Comment 3
2018-07-16 10:40:44 PDT
Comment on
attachment 345004
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=345004&action=review
> Tools/TestWebKitAPI/Tests/WebKitCocoa/WebsiteDataStoreCustomPaths.mm:-136 > - auto pid = [webView _webProcessIdentifier]; > - if (pid) > - kill(pid, SIGKILL);
This seems unrelated. You mentioned you think it's the cause of some flakiness and there's a bug for it. We should implement it over in that bug. It seems weird that we thought we needed to reset all processes but this change would stop doing that.
Sihui Liu
Comment 4
2018-07-16 10:56:34 PDT
Created
attachment 345101
[details]
Patch for landing
WebKit Commit Bot
Comment 5
2018-07-16 11:35:56 PDT
Comment on
attachment 345101
[details]
Patch for landing Clearing flags on attachment: 345101 Committed
r233853
: <
https://trac.webkit.org/changeset/233853
>
WebKit Commit Bot
Comment 6
2018-07-16 11:35:58 PDT
All reviewed patches have been landed. Closing bug.
Dawei Fenton (:realdawei)
Comment 7
2018-07-17 10:17:50 PDT
Jut that after this patch (In reply to WebKit Commit Bot from
comment #5
)
> Comment on
attachment 345101
[details]
> Patch for landing > > Clearing flags on attachment: 345101 > > Committed
r233853
: <
https://trac.webkit.org/changeset/233853
>
Just want to note that after this patch we are getting a different failures at a different line number. Not sure if this patch is dependent on
https://bugs.webkit.org/show_bug.cgi?id=187066#c6
for a complete fix? TestWebKitAPI.WebKit.WebsiteDataStoreCustomPaths /Volumes/Data/slave/highsierra-release/build/Tools/TestWebKitAPI/Tests/WebKitCocoa/WebsiteDataStoreCustomPaths.mm:220 Value of: [[NSFileManager defaultManager] fileExistsAtPath:fileIDBPath.get().path] Actual: true Expected: false
Sihui Liu
Comment 8
2018-07-18 09:36:53 PDT
(In reply to David Fenton (:realdawei) from
comment #7
)
> Jut that after this patch (In reply to WebKit Commit Bot from
comment #5
) > > Comment on
attachment 345101
[details]
> > Patch for landing > > > > Clearing flags on attachment: 345101 > > > > Committed
r233853
: <
https://trac.webkit.org/changeset/233853
> > > Just want to note that after this patch we are getting a different failures > at a different line number. Not sure if this patch is dependent on > >
https://bugs.webkit.org/show_bug.cgi?id=187066#c6
for a complete fix? > > > TestWebKitAPI.WebKit.WebsiteDataStoreCustomPaths > > > /Volumes/Data/slave/highsierra-release/build/Tools/TestWebKitAPI/Tests/ > WebKitCocoa/WebsiteDataStoreCustomPaths.mm:220 > Value of: [[NSFileManager defaultManager] > fileExistsAtPath:fileIDBPath.get().path] > Actual: true > Expected: false
Yes. With 187066's patch, the test should pass.
Dawei Fenton (:realdawei)
Comment 9
2018-07-18 10:22:08 PDT
(In reply to Sihui Liu from
comment #8
)
> (In reply to David Fenton (:realdawei) from
comment #7
) > > Jut that after this patch (In reply to WebKit Commit Bot from
comment #5
) > > > Comment on
attachment 345101
[details]
> > > Patch for landing > > > > > > Clearing flags on attachment: 345101 > > > > > > Committed
r233853
: <
https://trac.webkit.org/changeset/233853
> > > > > Just want to note that after this patch we are getting a different failures > > at a different line number. Not sure if this patch is dependent on > > > >
https://bugs.webkit.org/show_bug.cgi?id=187066#c6
for a complete fix? > > > > > > TestWebKitAPI.WebKit.WebsiteDataStoreCustomPaths > > > > > > /Volumes/Data/slave/highsierra-release/build/Tools/TestWebKitAPI/Tests/ > > WebKitCocoa/WebsiteDataStoreCustomPaths.mm:220 > > Value of: [[NSFileManager defaultManager] > > fileExistsAtPath:fileIDBPath.get().path] > > Actual: true > > Expected: false > > Yes. With 187066's patch, the test should pass.
Super! thanks.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug