Crash in NavigationScheduler::schedule.
authorinferno@chromium.org <inferno@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 14 Feb 2012 21:02:36 +0000 (21:02 +0000)
committerinferno@chromium.org <inferno@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 14 Feb 2012 21:02:36 +0000 (21:02 +0000)
commit01ee2a29454bc3b6134402ea6fb593cd2bd2ab34
tree541df97df811e73c78177f98ffeb04936665a3c1
parent9b5bdc64e94fd7bf54b0937b28696eaeab16b114
Crash in NavigationScheduler::schedule.
https://bugs.webkit.org/show_bug.cgi?id=78297

Reviewed by Adam Barth.

Source/WebCore:

Protect frame pointer and navigation scheduler when we stop the
load (when redirect is scheduled during a load). Also, dont fire
the navigation scheduler timer when we know that frameloader is
going away.

Test: http/tests/navigation/navigation-redirect-schedule-crash.html

* loader/NavigationScheduler.cpp:
(WebCore::NavigationScheduler::schedule):

LayoutTests:

* http/tests/navigation/navigation-redirect-schedule-crash-expected.txt: Added.
* http/tests/navigation/navigation-redirect-schedule-crash.html: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@107729 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/http/tests/navigation/navigation-redirect-schedule-crash-expected.txt [new file with mode: 0644]
LayoutTests/http/tests/navigation/navigation-redirect-schedule-crash.html [new file with mode: 0755]
Source/WebCore/ChangeLog
Source/WebCore/loader/NavigationScheduler.cpp