12018-02-12 Chris Dumez <cdumez@apple.com>
2
3 REGRESSION (r228299): Broke reader mode in Safari
4 https://bugs.webkit.org/show_bug.cgi?id=182697
5 <rdar://problem/37399012>
6
7 Reviewed by NOBODY (OOPS!).
8
9 Make the fix from r228299 more specific to the bug it was trying to fix by moving the
10 policyChecker().stopCheck() call from the FrameLoader::stopLoading() to NavigationScheduler::schedule(),
11 when a previous load gets cancelled. This greatly reduces the chances of bad side effects
12 from this change. Reader mode works again and the sites fixed by r228299 still work after
13 this more limited fix.
14
15 * loader/FrameLoader.cpp:
16 (WebCore::FrameLoader::stopLoading):
17 * loader/NavigationScheduler.cpp:
18 (WebCore::NavigationScheduler::schedule):
19