WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
64895
Wrong URL loaded into child frame after back/forward navigation
https://bugs.webkit.org/show_bug.cgi?id=64895
Summary
Wrong URL loaded into child frame after back/forward navigation
Nate Chapin
Reported
2011-07-20 14:11:11 PDT
Original report at
http://code.google.com/p/chromium/issues/detail?id=59576
. Repro steps: 1. Display a web page 2. In the web page, display an iframe or object containing html 3. Navigate back & forward 4. In the same web page, display another iframe containing a different html page The problem is in the logic in FrameLoader::loadURLIntoChildFrame to load a child frame from a HistoryItem instead of from the url. I think we only want to load from a HistoryItem before the load event. Note that this problem is prevented by the page cache because the old contents of the child frame are immediately present and the display of a new frame will typically add a new Frame rather than overwrite.
Attachments
patch
(5.42 KB, patch)
2011-07-20 14:25 PDT
,
Nate Chapin
no flags
Details
Formatted Diff
Diff
Patch for landing
(5.56 KB, patch)
2011-07-22 11:14 PDT
,
Nate Chapin
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Nate Chapin
Comment 1
2011-07-20 14:25:11 PDT
Created
attachment 101509
[details]
patch
Mihai Parparita
Comment 2
2011-07-20 18:25:57 PDT
Comment on
attachment 101509
[details]
patch View in context:
https://bugs.webkit.org/attachment.cgi?id=101509&action=review
Is the current behavior (that the URL is restored for iframes for back-forward navigations) tested anywhere?
> LayoutTests/fast/loader/child-frame-add-after-back-forward.html:9 > + layoutTestController.overridePreference('WebKitUsesPageCachePreferenceKey', 0);
You may want to add an unload handler too, so that the page cache is disabled when running the test in Safari too.
Nate Chapin
Comment 3
2011-07-21 15:13:05 PDT
(In reply to
comment #2
)
> (From update of
attachment 101509
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=101509&action=review
> > Is the current behavior (that the URL is restored for iframes for back-forward navigations) tested anywhere?
Yeah, if I comment out the if() statement and everything inside, 2 tests each in fast/history and http/tests/navigation fail.
> > > LayoutTests/fast/loader/child-frame-add-after-back-forward.html:9 > > + layoutTestController.overridePreference('WebKitUsesPageCachePreferenceKey', 0); > > You may want to add an unload handler too, so that the page cache is disabled when running the test in Safari too.
Good point.
Nate Chapin
Comment 4
2011-07-22 11:14:03 PDT
Created
attachment 101743
[details]
Patch for landing
WebKit Review Bot
Comment 5
2011-07-22 12:02:11 PDT
Comment on
attachment 101743
[details]
Patch for landing Clearing flags on attachment: 101743 Committed
r91583
: <
http://trac.webkit.org/changeset/91583
>
WebKit Review Bot
Comment 6
2011-07-22 12:02:15 PDT
All reviewed patches have been landed. Closing bug.
Alexey Proskuryakov
Comment 7
2011-08-17 13:18:15 PDT
***
Bug 64402
has been marked as a duplicate of this bug. ***
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