WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
27281
Fails to save document state when navigating away from a page with a reference fragment
https://bugs.webkit.org/show_bug.cgi?id=27281
Summary
Fails to save document state when navigating away from a page with a referenc...
Darin Fisher (:fishd, Google)
Reported
2009-07-14 16:11:52 PDT
Created
attachment 32746
[details]
testcase Fails to save document state when navigating away from a page with a reference fragment Note: This only impacts WebKit when the page also has an unload handler causing the page cache to be suppressed. See the attached testcase, but roughly here's the repro steps: 1- Load an HTML page with empty input field 2- Load the same URL, but add a reference fragment to the URL 3- Type in the input field 4- Navigate to another host 5- Navigate back The values you typed in the input field should be restored, but if the page had an unload handler, then the values will not be restored. The bug is with HistoryItem::isCurrentDocument. I believe that it should be using equalIgnoringRef instead of operator== to compare URLs.
Attachments
testcase
(765 bytes, text/html)
2009-07-14 16:11 PDT
,
Darin Fisher (:fishd, Google)
no flags
Details
v1 patch
(4.03 KB, patch)
2009-07-14 17:07 PDT
,
Darin Fisher (:fishd, Google)
darin
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Darin Fisher (:fishd, Google)
Comment 1
2009-07-14 16:15:26 PDT
Patch coming up...
Darin Fisher (:fishd, Google)
Comment 2
2009-07-14 17:07:09 PDT
Created
attachment 32748
[details]
v1 patch Simple patch. Use equalIgnoringRef to compare the HistoryItem's URL the URL of a document.
Darin Adler
Comment 3
2009-07-14 17:09:38 PDT
Comment on
attachment 32748
[details]
v1 patch
> - return urlString() == doc->url(); > + return equalIgnoringRef(KURL(urlString()), doc->url());
I would write url() instead of KURL(urlString()). r=me
Darin Fisher (:fishd, Google)
Comment 4
2009-07-14 17:20:23 PDT
> I would write url() instead of KURL(urlString()). > > r=me
Oh, good catch. I forgot about that accessor. Thanks!
Darin Fisher (:fishd, Google)
Comment 5
2009-07-14 22:10:46 PDT
Landed as
http://trac.webkit.org/changeset/45890
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