Changeset 221228 in webkit
- Timestamp:
- Aug 26, 2017, 9:58:22 AM (9 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 4 edited
-
ChangeLog (modified) (1 diff)
-
loader/DocumentLoader.cpp (modified) (1 diff)
-
loader/PolicyChecker.cpp (modified) (1 diff)
-
loader/PolicyChecker.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r221227 r221228 1 2017-08-26 Alex Christensen <achristensen@webkit.org> 2 3 Remove PolicyChecker::cancelCheck 4 https://bugs.webkit.org/show_bug.cgi?id=176002 5 6 Reviewed by Darin Adler. 7 8 cancelCheck is conceptually equivalent to not calling a completion handler. 9 stopCheck is conceptually equivalent to calling a completion handler with PolicyIgnore just before cleaning up everything, 10 which is semantically cleaner and necessary when I replace the last use of PolicyCallback with a CompletionHandler. 11 Before this change, we were probably causing some loading objects to hang right before deleting them, and this cleans them up better. 12 13 * loader/DocumentLoader.cpp: 14 (WebCore::DocumentLoader::cancelPolicyCheckIfNeeded): 15 * loader/PolicyChecker.cpp: 16 (WebCore::PolicyChecker::cancelCheck): Deleted. 17 * loader/PolicyChecker.h: 18 1 19 2017-08-26 Michael Catanzaro <mcatanzaro@igalia.com> 2 20 -
trunk/Source/WebCore/loader/DocumentLoader.cpp
r221103 r221228 1539 1539 1540 1540 if (m_waitingForContentPolicy || m_waitingForNavigationPolicy) { 1541 frameLoader()->policyChecker(). cancelCheck();1541 frameLoader()->policyChecker().stopCheck(); 1542 1542 m_waitingForContentPolicy = false; 1543 1543 m_waitingForNavigationPolicy = false; -
trunk/Source/WebCore/loader/PolicyChecker.cpp
r221162 r221228 178 178 } 179 179 180 void PolicyChecker::cancelCheck()181 {182 m_frame.loader().client().cancelPolicyCheck();183 m_callback = { };184 }185 186 180 void PolicyChecker::stopCheck() 187 181 { -
trunk/Source/WebCore/loader/PolicyChecker.h
r221162 r221228 60 60 void checkNewWindowPolicy(NavigationAction&&, const ResourceRequest&, FormState*, const String& frameName, NewWindowPolicyDecisionFunction); 61 61 62 // FIXME: These are different. They could use better names.63 void cancelCheck();64 62 void stopCheck(); 65 63
Note:
See TracChangeset
for help on using the changeset viewer.