ASSERTION FAILURE: !m_adoptionIsRequired for the WebFrame under the
authorjberlin@webkit.org <jberlin@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 20 Oct 2010 15:29:14 +0000 (15:29 +0000)
committerjberlin@webkit.org <jberlin@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 20 Oct 2010 15:29:14 +0000 (15:29 +0000)
commit734c35b0fa3f049fe381eb38d198835a97048c9d
tree43df054c035753d0ecd18e95201867fc15a9d331
parentcb4e40b17c597a1292040608f247fa14b322b0a9
ASSERTION FAILURE: !m_adoptionIsRequired for the WebFrame under the
InjectedBundlePageLoaderClient::didClearWindowObjectForFrame callback.
https://bugs.webkit.org/show_bug.cgi?id=47960

Reviewed by Geoffrey Garen.

Do not try to initialize the coreFrame (which results in the
InjectedBundlePageLoaderClient::didClearWindowObjectForFrame being called) until after the
WebFrame constructor has returned and the WebFrame has been adopted.

* WebProcess/WebPage/WebFrame.cpp:
(WebKit::WebFrame::create):
Moved the call to init the coreFrame here ...
(WebKit::WebFrame::WebFrame):
... from here.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@70148 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebKit2/ChangeLog
WebKit2/WebProcess/WebPage/WebFrame.cpp