Bug 47960

Summary: ASSERTION FAILURE: !m_adoptionIsRequired for the WebFrame under the InjectedBundlePageLoaderClient::didClearWindowObjectForFrame callback
Product: WebKit Reporter: Jessie Berlin <jberlin>
Component: WebKit2Assignee: Jessie Berlin <jberlin>
Status: RESOLVED FIXED    
Severity: Normal CC: abarth, aroben, eric, jberlin, sam, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
Move initializing the coreFrame into the WebFrame create method and out of the WebFrame constructor none

Description Jessie Berlin 2010-10-19 18:04:22 PDT
frame->init() in the WebFrame constructor causes the InjectedBundlePageLoaderClient::didClearWindowObjectForFrame callback to be called with a reference to the WebFrame (at which point the WebFrame has not yet been adopted).

We should fix this by moving the frame->init() call into the WebFrame::create method.
Comment 1 Jessie Berlin 2010-10-19 18:11:26 PDT
Created attachment 71238 [details]
Move initializing the coreFrame into the  WebFrame create method and out of the WebFrame constructor
Comment 2 Geoffrey Garen 2010-10-20 08:21:16 PDT
Comment on attachment 71238 [details]
Move initializing the coreFrame into the  WebFrame create method and out of the WebFrame constructor

r=me
Comment 3 Jessie Berlin 2010-10-20 08:32:23 PDT
Comment on attachment 71238 [details]
Move initializing the coreFrame into the  WebFrame create method and out of the WebFrame constructor

Committed in r70148
http://trac.webkit.org/changeset/70148
Comment 4 WebKit Review Bot 2010-10-20 09:26:38 PDT
http://trac.webkit.org/changeset/70148 might have broken Leopard Intel Release (Tests)
The following tests are not passing:
fast/workers/storage/interrupt-database-sync.html
Comment 5 Jessie Berlin 2010-10-20 09:34:52 PDT
(In reply to comment #4)
> http://trac.webkit.org/changeset/70148 might have broken Leopard Intel Release (Tests)
> The following tests are not passing:
> fast/workers/storage/interrupt-database-sync.html

Pretty unlikely, as we don't build WebKit2 stuff on Leopard.
Comment 6 WebKit Review Bot 2010-10-20 14:35:50 PDT
http://trac.webkit.org/changeset/70173 might have broken SnowLeopard Intel Release (Tests)
The following tests are not passing:
http/tests/xmlhttprequest/origin-whitelisting-removal.html