Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
fast/loader/javascript-url-iframe-remove-on-navigate.html is a flaky …
…crash on iOS with async delegates https://bugs.webkit.org/show_bug.cgi?id=183610 Reviewed by Youenn Fablet. The issue was that in DocumentLoader::loadMainResource(), the call to requestMainResource() which return null due to the load getting cancelled synchronously. If this load is the parent frame's last pending load, then the 'load' event gets fired in the parent frame. In the test, the parent frame's load event handler does a document.write() call which blows away the iframe. As a result, when we return from the requestMainResource(), m_frame is null and we crash later on dereferencing it. No new tests, covered by fast/loader/javascript-url-iframe-remove-on-navigate-async-delegate.html which was crashing flakily. * loader/DocumentLoader.cpp: (WebCore::DocumentLoader::loadMainResource): Canonical link: https://commits.webkit.org/199278@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@229596 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
with
34 additions
and 8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters