-
inferno@chromium.org authored
Reviewed by Adam Barth. dispatchEvent call in EventSource endRequest can lead to calling endRequest again which frees up the pending activity. Make sure we have request in flight to prevent that from happening. https://bugs.webkit.org/show_bug.cgi?id=49448 Test: http/tests/eventsource/eventsource-status-error-iframe-crash.html * page/EventSource.cpp: (WebCore::EventSource::endRequest): (WebCore::EventSource::close): 2010-11-23 Abhishek Arya <inferno@chromium.org> Reviewed by Adam Barth. Tests that we do not crash on EventSource status errors inside an iframe. https://bugs.webkit.org/show_bug.cgi?id=49448 * http/tests/eventsource/eventsource-status-error-iframe-crash-expected.txt: Added. * http/tests/eventsource/eventsource-status-error-iframe-crash.html: Added. * http/tests/eventsource/resources/request-status-error.htm: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@72625 268f45cc-cd09-0410-ab3c-d52691b4dbfc
19619a92