Bug 214875 - WTF Crash occurring with Safari App Extension after WebPageProxy::runJavaScriptInMainFrameScriptWorld
Summary: WTF Crash occurring with Safari App Extension after WebPageProxy::runJavaScri...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Misc. (show other bugs)
Version: Safari 13
Hardware: Mac macOS 10.15
: P2 Normal
Assignee: Nobody
URL: https://github.com/bitwarden/browser/...
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2020-07-28 08:05 PDT by Chad
Modified: 2020-07-29 19:22 PDT (History)
4 users (show)

See Also:


Attachments
truncated crash log (4.09 KB, text/plain)
2020-07-28 08:05 PDT, Chad
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chad 2020-07-28 08:05:21 PDT
Created attachment 405358 [details]
truncated crash log

Overview:
Runtime crashes occurring with a Safari App Extension intermittently (but frequently) for users. The crash log shows a consistent pattern and process where the Swift code from the app extension itself calls back to the UIProcess, and then the WebPageProxy runs runJavaScriptInMainFrameScriptWorld, followed by CallbackMap::put(). This in turn causes or at least what occurs is a WTFCrashWithInfo().

Steps to Reproduce:
1. Install and enable latest Bitwarden Safari App Extension
2. Log into extension
3. Navigate to a page
4. Open extension
5. Wait ~1 to 4 minutes, re-open extension
6. Note you are no longer logged in (vault is locked)
7. Note there is a crash log for Safari generated (silent crash)

see https://github.com/bitwarden/browser/issues/1021 for more detail.

Actual Results:
The application crashed.

Expected Results:
The application should not have crashed and the extension should have remained logged in/unlocked past the short threshold.

Build Date & Hardware:
Safari 13.0.1, macOS 10.14.6

Additional Builds and Platforms:
Safari Version 13.1.1, macOS 10.15.5

Crash Log: (truncated version attached)
Comment 1 Radar WebKit Bug Importer 2020-07-29 19:22:52 PDT
<rdar://problem/66305505>