Bug 48363

Summary: Chromium: Update resource tracking when moving a frame between documents
Product: WebKit Reporter: Jenn Braithwaite <jennb>
Component: Page LoadingAssignee: Jenn Braithwaite <jennb>
Status: RESOLVED FIXED    
Severity: Normal CC: abarth, commit-queue, dimich, fishd
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: OS X 10.5   
Bug Depends on: 44713    
Bug Blocks:    
Attachments:
Description Flags
patch
none
updated patch to remove unnecessary frame parameter
none
updated patch - use map.contains() none

Description Jenn Braithwaite 2010-10-26 12:33:14 PDT
Chromium fix for bug reported in 44713.  That patch provides the framework for the fix and fixes the Mac platform.  Separate patches will be submitted for other platforms, thus this separate bug.
Comment 1 Jenn Braithwaite 2010-10-27 17:46:50 PDT
Created attachment 72121 [details]
patch
Comment 2 Dmitry Titov 2010-10-28 16:09:48 PDT
Comment on attachment 72121 [details]
patch

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

> WebKit/chromium/src/FrameLoaderClientImpl.cpp:1394
> +        oldWebFrame->client()->removeIdentifierForRequest(oldWebFrame, identifier);

It looks like we are passing here wrong webFrame... Do we really need this parameter?
Comment 3 Jenn Braithwaite 2010-10-28 16:55:46 PDT
Created attachment 72261 [details]
updated patch to remove unnecessary frame parameter
Comment 4 Adam Barth 2010-10-31 18:08:36 PDT
Needs fishd for WebKit API review.
Comment 5 Jenn Braithwaite 2010-11-01 11:25:46 PDT
Created attachment 72526 [details]
updated patch - use map.contains()
Comment 6 Darin Fisher (:fishd, Google) 2010-11-01 13:21:25 PDT
Comment on attachment 72526 [details]
updated patch - use map.contains()

API change looks good to me.  Is it possible to write a layout test for this?
Comment 7 Jenn Braithwaite 2010-11-01 13:26:47 PDT
(In reply to comment #6)
> (From update of attachment 72526 [details])
> API change looks good to me.  Is it possible to write a layout test for this?

The layout test is in the patch submitted with bug 44713.  Both that test (fast/frames/iframe-reparenting-fail-load.html) and fast/frames/iframe-reparenting-adopt-node.html cover this change.
Comment 8 Dmitry Titov 2010-11-03 11:55:15 PDT
Comment on attachment 72526 [details]
updated patch - use map.contains()

r=me
Comment 9 WebKit Commit Bot 2010-11-03 19:13:38 PDT
Comment on attachment 72526 [details]
updated patch - use map.contains()

Clearing flags on attachment: 72526

Committed r71297: <http://trac.webkit.org/changeset/71297>
Comment 10 WebKit Commit Bot 2010-11-03 19:13:43 PDT
All reviewed patches have been landed.  Closing bug.