Changeset 185749 in webkit
- Timestamp:
- Jun 19, 2015, 9:53:49 AM (11 years ago)
- Location:
- trunk/Source
- Files:
-
- 2 added
- 5 edited
-
WebCore/ChangeLog (modified) (1 diff)
-
WebCore/platform/spi/cg/CoreGraphicsSPI.h (modified) (1 diff)
-
WebKit2/ChangeLog (modified) (1 diff)
-
WebKit2/Shared/HangDetectionDisabler.h (added)
-
WebKit2/Shared/mac/HangDetectionDisablerMac.mm (added)
-
WebKit2/WebKit2.xcodeproj/project.pbxproj (modified) (6 diffs)
-
WebKit2/WebProcess/WebCoreSupport/WebChromeClient.cpp (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r185744 r185749 1 2015-06-19 Anders Carlsson <andersca@apple.com> 2 3 Spintracer treats the web process as hung when it's showing JavaScript dialogs in the UI process 4 https://bugs.webkit.org/show_bug.cgi?id=146124 5 rdar://problem/21449395 6 7 Reviewed by Geoffrey Garen. 8 9 * platform/spi/cg/CoreGraphicsSPI.h: 10 1 11 2015-06-19 Csaba Osztrogonác <ossy@webkit.org> 2 12 -
trunk/Source/WebCore/platform/spi/cg/CoreGraphicsSPI.h
r183696 r185749 180 180 CGSConnectionID CGSMainConnectionID(void); 181 181 CFArrayRef CGSHWCaptureWindowList(CGSConnectionID cid, CGSWindowIDList windowList, CGSWindowCount windowCount, CGSWindowCaptureOptions options); 182 CGError CGSSetConnectionProperty(CGSConnectionID, CGSConnectionID ownerCid, CFStringRef key, CFTypeRef value); 183 CGError CGSCopyConnectionProperty(CGSConnectionID, CGSConnectionID ownerCid, CFStringRef key, CFTypeRef *value); 182 184 #endif 183 185 -
trunk/Source/WebKit2/ChangeLog
r185748 r185749 1 2015-06-19 Anders Carlsson <andersca@apple.com> 2 3 Spintracer treats the web process as hung when it's showing JavaScript dialogs in the UI process 4 https://bugs.webkit.org/show_bug.cgi?id=146124 5 rdar://problem/21449395 6 7 Reviewed by Geoffrey Garen. 8 9 Add a HangDetectionDisabler RAII object and use it for JavaScript panels. 10 11 * Shared/HangDetectionDisabler.h: Added. 12 (WebKit::HangDetectionDisabler::HangDetectionDisabler): 13 (WebKit::HangDetectionDisabler::~HangDetectionDisabler): 14 * Shared/mac/HangDetectionDisablerMac.mm: Added. 15 (WebKit::clientsMayIgnoreEvents): 16 (WebKit::setClientsMayIgnoreEvents): 17 (WebKit::HangDetectionDisabler::HangDetectionDisabler): 18 (WebKit::HangDetectionDisabler::~HangDetectionDisabler): 19 * WebKit2.xcodeproj/project.pbxproj: 20 * WebProcess/WebCoreSupport/WebChromeClient.cpp: 21 (WebKit::WebChromeClient::runBeforeUnloadConfirmPanel): 22 (WebKit::WebChromeClient::runJavaScriptAlert): 23 (WebKit::WebChromeClient::runJavaScriptConfirm): 24 (WebKit::WebChromeClient::runJavaScriptPrompt): 25 1 26 2015-06-19 Dan Bernstein <mitz@apple.com> 2 27 -
trunk/Source/WebKit2/WebKit2.xcodeproj/project.pbxproj
r185706 r185749 439 439 1AC7537F183BE50F0072CB15 /* DataReference.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC7537D183BE50F0072CB15 /* DataReference.cpp */; }; 440 440 1AC75380183BE50F0072CB15 /* DataReference.h in Headers */ = {isa = PBXBuildFile; fileRef = 1AC7537E183BE50F0072CB15 /* DataReference.h */; }; 441 1AC75A1B1B3368270056745B /* HangDetectionDisabler.h in Headers */ = {isa = PBXBuildFile; fileRef = 1AC75A1A1B3368270056745B /* HangDetectionDisabler.h */; }; 442 1AC75A1E1B33695E0056745B /* HangDetectionDisablerMac.mm in Sources */ = {isa = PBXBuildFile; fileRef = 1AC75A1C1B33695E0056745B /* HangDetectionDisablerMac.mm */; }; 441 443 1AC86FF3130B46D3002C1257 /* WKPluginSiteDataManager.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC86FF1130B46D3002C1257 /* WKPluginSiteDataManager.cpp */; }; 442 444 1AC86FF4130B46D3002C1257 /* WKPluginSiteDataManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 1AC86FF2130B46D3002C1257 /* WKPluginSiteDataManager.h */; settings = {ATTRIBUTES = (Private, ); }; }; … … 2564 2566 1AC7537D183BE50F0072CB15 /* DataReference.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = DataReference.cpp; sourceTree = "<group>"; }; 2565 2567 1AC7537E183BE50F0072CB15 /* DataReference.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DataReference.h; sourceTree = "<group>"; }; 2568 1AC75A1A1B3368270056745B /* HangDetectionDisabler.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HangDetectionDisabler.h; sourceTree = "<group>"; }; 2569 1AC75A1C1B33695E0056745B /* HangDetectionDisablerMac.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = HangDetectionDisablerMac.mm; sourceTree = "<group>"; }; 2566 2570 1AC86FF1130B46D3002C1257 /* WKPluginSiteDataManager.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = WKPluginSiteDataManager.cpp; sourceTree = "<group>"; }; 2567 2571 1AC86FF2130B46D3002C1257 /* WKPluginSiteDataManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WKPluginSiteDataManager.h; sourceTree = "<group>"; }; … … 4700 4704 BCE81D8B1319F7EF00241910 /* FontInfo.h */, 4701 4705 762B7481120BBA0100819339 /* FontSmoothingLevel.h */, 4706 1AC75A1A1B3368270056745B /* HangDetectionDisabler.h */, 4702 4707 F638954F133BEF38008941D5 /* HTTPCookieAcceptPolicy.h */, 4703 4708 BCCF6B2312C93E7A008F9C35 /* ImageOptions.h */, … … 6449 6454 CDC382F9172116D3008A2FC3 /* CookieStorageShimLibrary.cpp */, 6450 6455 CDC3830B172121CE008A2FC3 /* CookieStorageShimLibrary.h */, 6456 1AC75A1C1B33695E0056745B /* HangDetectionDisablerMac.mm */, 6451 6457 5163EA431ACC74AE0012D1E4 /* NativeContextMenuItem.mm */, 6452 6458 C02BFF1D1251502E009CCBEA /* NativeWebKeyboardEventMac.mm */, … … 7997 8003 BCBD3915125BB1A800D2C29F /* WebPageProxyMessages.h in Headers */, 7998 8004 512127C41908239A00DAF35C /* WebPasteboardOverrides.h in Headers */, 8005 1AC75A1B1B3368270056745B /* HangDetectionDisabler.h in Headers */, 7999 8006 7C4694D11A51E36800AD5845 /* WebPasteboardProxy.h in Headers */, 8000 8007 7C4694CA1A4B4EA100AD5845 /* WebPasteboardProxyMessages.h in Headers */, … … 10033 10040 37608822150414F700FC82C7 /* WKRenderObject.cpp in Sources */, 10034 10041 3336763A130C99DC006C9DE2 /* WKResourceCacheManager.cpp in Sources */, 10042 1AC75A1E1B33695E0056745B /* HangDetectionDisablerMac.mm in Sources */, 10035 10043 1A7E377818E4A4FE003D0FFF /* WKScriptMessage.mm in Sources */, 10036 10044 0FCB4E5518BBE044000FCFC9 /* WKScrollView.mm in Sources */, -
trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebChromeClient.cpp
r185721 r185749 31 31 #include "APISecurityOrigin.h" 32 32 #include "DrawingArea.h" 33 #include "HangDetectionDisabler.h" 33 34 #include "InjectedBundleNavigationAction.h" 34 35 #include "InjectedBundleNodeHandle.h" … … 335 336 bool shouldClose = false; 336 337 338 HangDetectionDisabler hangDetectionDisabler; 339 337 340 unsigned syncSendFlags = IPC::InformPlatformProcessWillSuspend; 338 341 if (WebPage::synchronousMessagesShouldSpinRunLoop()) … … 372 375 m_page->injectedBundleUIClient().willRunJavaScriptAlert(m_page, alertText, webFrame); 373 376 377 HangDetectionDisabler hangDetectionDisabler; 378 374 379 unsigned syncSendFlags = IPC::InformPlatformProcessWillSuspend; 375 380 if (WebPage::synchronousMessagesShouldSpinRunLoop()) … … 385 390 // Notify the bundle client. 386 391 m_page->injectedBundleUIClient().willRunJavaScriptConfirm(m_page, message, webFrame); 392 393 HangDetectionDisabler hangDetectionDisabler; 387 394 388 395 unsigned syncSendFlags = IPC::InformPlatformProcessWillSuspend; … … 403 410 // Notify the bundle client. 404 411 m_page->injectedBundleUIClient().willRunJavaScriptPrompt(m_page, message, defaultValue, webFrame); 412 413 HangDetectionDisabler hangDetectionDisabler; 405 414 406 415 unsigned syncSendFlags = IPC::InformPlatformProcessWillSuspend;
Note:
See TracChangeset
for help on using the changeset viewer.