Bug 272400
Summary: | ASSERTION FAILED: Unhandled message WebSWServerConnection_PostMessageToServiceWorker to 0 | ||
---|---|---|---|
Product: | WebKit | Reporter: | Alexey Proskuryakov <ap> |
Component: | Service Workers | Assignee: | Ryosuke Niwa <rniwa> |
Status: | RESOLVED FIXED | ||
Severity: | Normal | CC: | cdumez, rniwa, sihui_liu, webkit-bug-importer, youennf |
Priority: | P2 | Keywords: | InRadar |
Version: | WebKit Nightly Build | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
See Also: | https://bugs.webkit.org/show_bug.cgi?id=272442 |
Alexey Proskuryakov
Open source iOS simulator build always crashes MobileSafari with unhandled message assertion.
ASSERTION FAILED: Unhandled message WebSWServerConnection_PostMessageToServiceWorker to 0
This happens on a fresh simulator without any state, so this is just at the launch page, no website.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/126136961>
Alexey Proskuryakov
This is on 277221@main, after `build-webkit --debug --ios-simulator` and `run-safari --debug --ios-simulator`.
Ryosuke Niwa
/Tools/Scripts/run-minibrowser --debug --ios-simulator hits the same issue.
Ryosuke Niwa
run-webkit-tests works, however.
Ryosuke Niwa
Hm... I can, however, launch MobileMiniBrowser.app from Xcode. As far as I can tell, it's loading the locally built WebKit although I can't attach lldb to a WebContent process launched this way for whatever reason.
Ryosuke Niwa
This appears to be caused by setupIOSWebKitEnvironment not setting __XPC_* environmental variables. Applying the following diff seems to solve this issue although trunk WebKit immediately hits a debug assertion trying to load any real web page. It can successfully load about:blank and some basic data URLs however.
diff --git a/Tools/Scripts/webkitdirs.pm b/Tools/Scripts/webkitdirs.pm
index abff7ad462a6..0042c11f70b8 100755
--- a/Tools/Scripts/webkitdirs.pm
+++ b/Tools/Scripts/webkitdirs.pm
@@ -2999,6 +2999,8 @@ sub setupIOSWebKitEnvironment($)
prependToEnvironmentVariableList("DYLD_FRAMEWORK_PATH", $dyldFrameworkPath);
prependToEnvironmentVariableList("DYLD_LIBRARY_PATH", $dyldFrameworkPath);
+ prependToEnvironmentVariableList("__XPC_DYLD_FRAMEWORK_PATH", $dyldFrameworkPath);
+ prependToEnvironmentVariableList("__XPC_DYLD_LIBRARY_PATH", $dyldFrameworkPath);
prependToEnvironmentVariableList("METAL_DEVICE_WRAPPER_TYPE", "1");
setUpGuardMallocIfNeeded();
Ryosuke Niwa
Pull request: https://github.com/WebKit/WebKit/pull/27068
EWS
Committed 277304@main (c1593e5d86c1): <https://commits.webkit.org/277304@main>
Reviewed commits have been landed. Closing PR #27068 and removing active labels.
Alexey Proskuryakov
*** Bug 272401 has been marked as a duplicate of this bug. ***