Changeset 268443 in webkit
- Timestamp:
- Oct 13, 2020 8:20:43 PM (4 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/UIProcess/WebProcessProxy.cpp
r268384 r268443 887 887 WebProcessPool::didReceiveInvalidMessage(messageName); 888 888 889 #if ENABLE(IPC_TESTING_API) 890 if (processPool().defaultPageGroup().preferences().store().getBoolValueForKey(WebPreferencesKey::ipcTestingAPIEnabledKey())) 891 return; 892 #endif 893 889 894 // Terminate the WebContent process. 890 895 terminate(); -
trunk/Tools/ChangeLog
r268440 r268443 1 2020-10-13 Ryosuke Niwa <rniwa@webkit.org> 2 3 IPC testing JS API should expose a reply and describe the list of arguments for each message 4 https://bugs.webkit.org/show_bug.cgi?id=217565 5 6 Fixed the tests. 7 8 * TestWebKitAPI/Tests/WebKitCocoa/IPCTestingAPI.mm: 9 1 10 2020-10-13 Jonathan Bedard <jbedard@apple.com> 2 11 -
trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/IPCTestingAPI.mm
r268431 r268443 98 98 done = false; 99 99 [webView synchronouslyLoadHTMLString:@"<!DOCTYPE html><script>IPC.sendSyncMessage('UI', IPC.webPageProxyID, IPC.messages.WebPageProxy_RunJavaScriptAlert.name, 100," 100 "[{type: 'uint64_t', value: IPC.frameI dentifier}, {type: 'FrameInfoData'}, {'type': 'String', 'value': 'hi'}]);</script>"];100 "[{type: 'uint64_t', value: IPC.frameID}, {type: 'FrameInfoData'}, {'type': 'String', 'value': 'hi'}]);</script>"]; 101 101 TestWebKitAPI::Util::run(&done); 102 102 … … 121 121 promptResult = @"foo"; 122 122 [webView synchronouslyLoadHTMLString:@"<!DOCTYPE html><script>result = IPC.sendSyncMessage('UI', IPC.webPageProxyID, IPC.messages.WebPageProxy_RunJavaScriptPrompt.name, 100," 123 "[{type: 'uint64_t', value: IPC.frameI dentifier}, {type: 'FrameInfoData'}, {'type': 'String', 'value': 'hi'}, {'type': 'String', 'value': 'bar'}]);</script>"];123 "[{type: 'uint64_t', value: IPC.frameID}, {type: 'FrameInfoData'}, {'type': 'String', 'value': 'hi'}, {'type': 'String', 'value': 'bar'}]);</script>"]; 124 124 TestWebKitAPI::Util::run(&done); 125 125 … … 146 146 promptResult = @"foo"; 147 147 [webView synchronouslyLoadHTMLString:@"<!DOCTYPE html><script>IPC.sendMessage(\"Networking\", 0, IPC.messages.NetworkConnectionToWebProcess_HasStorageAccess.name," 148 "[{type: 'RegistrableDomain', value: 'https://ipctestingapi.com'}, {type: 'RegistrableDomain', value: 'https://webkit.org'}, {type: 'uint64_t', value: IPC.frameI dentifier},"149 "{type: 'uint64_t', value: IPC.pageI dentifier}]).then((result) => alert(JSON.stringify(result.arguments)));</script>"];148 "[{type: 'RegistrableDomain', value: 'https://ipctestingapi.com'}, {type: 'RegistrableDomain', value: 'https://webkit.org'}, {type: 'uint64_t', value: IPC.frameID}," 149 "{type: 'uint64_t', value: IPC.pageID}]).then((result) => alert(JSON.stringify(result.arguments)));</script>"]; 150 150 TestWebKitAPI::Util::run(&done); 151 151
Note: See TracChangeset
for help on using the changeset viewer.