WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
25710
HTML5 Database stops executing transactions if the URL hash changes while a transaction is open and an XHR is in progress.
https://bugs.webkit.org/show_bug.cgi?id=25710
Summary
HTML5 Database stops executing transactions if the URL hash changes while a t...
Andrew Grieve
Reported
2009-05-11 17:51:14 PDT
Refer to attached test case to reproduce the problem.
Attachments
Test harness for reproducing the bug.
(4.38 KB, text/html)
2009-05-11 17:52 PDT
,
Andrew Grieve
no flags
Details
Patch to not stop databases when navigating the history to the same document with a fragment
(8.91 KB, patch)
2009-05-26 03:18 PDT
,
Ben Murdoch
no flags
Details
Formatted Diff
Diff
Patch to not stop the databases if the navigation is to a hash fragment on the same document.
(8.98 KB, patch)
2009-05-27 07:40 PDT
,
Ben Murdoch
no flags
Details
Formatted Diff
Diff
New patch with argument rather than member variable.
(12.46 KB, patch)
2009-06-01 12:24 PDT
,
Ben Murdoch
no flags
Details
Formatted Diff
Diff
Replaces a couple of tabs with spaces in previous patch.
(12.42 KB, patch)
2009-06-01 12:34 PDT
,
Ben Murdoch
abarth
: review-
Details
Formatted Diff
Diff
Updates WebCore.base.exp to fix build bustage.
(13.45 KB, patch)
2009-06-02 04:18 PDT
,
Ben Murdoch
no flags
Details
Formatted Diff
Diff
Fix build bustage.
(13.45 KB, patch)
2009-06-02 04:37 PDT
,
Ben Murdoch
ap
: review+
Details
Formatted Diff
Diff
Show Obsolete
(5)
View All
Add attachment
proposed patch, testcase, etc.
Andrew Grieve
Comment 1
2009-05-11 17:52:09 PDT
Created
attachment 30211
[details]
Test harness for reproducing the bug.
Ben Murdoch
Comment 2
2009-05-26 03:18:05 PDT
Created
attachment 30666
[details]
Patch to not stop databases when navigating the history to the same document with a fragment This patch adds code to not stop the databases if we are navigating the history to a hash fragment on the same document and includes a layout test to verify. The test harness attached to this bug passes with this patch applied.
Ben Murdoch
Comment 3
2009-05-26 08:26:13 PDT
Comment on
attachment 30666
[details]
Patch to not stop databases when navigating the history to the same document with a fragment The layout test needs a little tweaking, will repost shortly.
Ben Murdoch
Comment 4
2009-05-27 07:40:52 PDT
Created
attachment 30708
[details]
Patch to not stop the databases if the navigation is to a hash fragment on the same document. New patch.
Darin Adler
Comment 5
2009-06-01 00:38:36 PDT
Comment on
attachment 30708
[details]
Patch to not stop the databases if the navigation is to a hash fragment on the same document. This change looks OK, but I'm disappointed about the way it uses state in the frame loader to make stopLoading not stop the databases. This seems a bit roundabout, making the already-fragile FrameLoader worse. I think that adding an argument to stopLoading would be better.
Ben Murdoch
Comment 6
2009-06-01 12:23:50 PDT
(In reply to
comment #5
)
> (From update of
attachment 30708
[details]
[review]) > This change looks OK, but I'm disappointed about the way it uses state in the > frame loader to make stopLoading not stop the databases. This seems a bit > roundabout, making the already-fragile FrameLoader worse. I think that adding > an argument to stopLoading would be better. >
OK, a new patch is one the way. Cheers, Ben
Ben Murdoch
Comment 7
2009-06-01 12:24:58 PDT
Created
attachment 30839
[details]
New patch with argument rather than member variable. New patch with an argument to the function rather than a member variable tracking state.
Ben Murdoch
Comment 8
2009-06-01 12:34:45 PDT
Created
attachment 30840
[details]
Replaces a couple of tabs with spaces in previous patch.
Darin Adler
Comment 9
2009-06-01 15:36:15 PDT
Comment on
attachment 30840
[details]
Replaces a couple of tabs with spaces in previous patch.
> + void stopLoading(DatabasePolicy databasePolicy = DatabasePolicyStop);
Can just say DatabasePolicy = DatabasePolicyStop -- no need for an argument name. r=me
Adam Barth
Comment 10
2009-06-02 00:43:22 PDT
Will land.
Adam Barth
Comment 11
2009-06-02 00:57:13 PDT
Sending LayoutTests/ChangeLog Adding LayoutTests/storage/hash-change-with-xhr-expected.txt Adding LayoutTests/storage/hash-change-with-xhr.html Sending WebCore/ChangeLog Sending WebCore/loader/DocumentLoader.cpp Sending WebCore/loader/DocumentLoader.h Sending WebCore/loader/FrameLoader.cpp Sending WebCore/loader/FrameLoader.h Sending WebCore/loader/FrameLoaderTypes.h Sending WebCore/page/Page.cpp Transmitting file data .......... Committed revision 44351.
Adam Barth
Comment 12
2009-06-02 01:04:21 PDT
Patch applies but does not compile.
Adam Barth
Comment 13
2009-06-02 01:05:03 PDT
Will revert.
Ben Murdoch
Comment 14
2009-06-02 04:17:32 PDT
(In reply to
comment #12
)
> Patch applies but does not compile. >
Ah, sorry. It was fine on Windows but needed to change the WebCore exports file on Mac to reflect the new method signatures. Fixed with the new patch.
Ben Murdoch
Comment 15
2009-06-02 04:18:43 PDT
Created
attachment 30862
[details]
Updates WebCore.base.exp to fix build bustage.
Ben Murdoch
Comment 16
2009-06-02 04:37:00 PDT
Created
attachment 30864
[details]
Fix build bustage. Updates the WebCore exports.
Alexey Proskuryakov
Comment 17
2009-06-04 07:35:40 PDT
Comment on
attachment 30864
[details]
Fix build bustage. Based on Darin's earlier review, this look good for landing + * loader/DocumentLoader.cpp: + (WebCore::DocumentLoader::stopLoading): + * loader/DocumentLoader.h: + * loader/FrameLoader.cpp: + (WebCore::FrameLoader::stopLoading): + (WebCore::FrameLoader::stopAllLoaders): + * loader/FrameLoader.h: + * loader/FrameLoaderTypes.h: + (WebCore::): + * page/Page.cpp: + (WebCore::Page::goToItem): + * WebCore.base.exp: We much prefer detailed per-function comments in ChangeLogs.
Oliver Hunt
Comment 18
2009-06-05 07:00:36 PDT
Committing to
http://svn.webkit.org/repository/webkit/trunk
... M LayoutTests/ChangeLog A LayoutTests/storage/hash-change-with-xhr-expected.txt A LayoutTests/storage/hash-change-with-xhr.html M WebCore/ChangeLog M WebCore/WebCore.base.exp M WebCore/loader/DocumentLoader.cpp M WebCore/loader/DocumentLoader.h M WebCore/loader/FrameLoader.cpp M WebCore/loader/FrameLoader.h M WebCore/loader/FrameLoaderTypes.h M WebCore/page/Page.cpp Committed
r44468
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