Skip to content

stareque-atlassian/webkit-bug-ios16-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

Overview

A sample project to demonstrate that a WebKit internal crash/bug occurs when on (Xcode14 beta5/Simulator/iOS16) and running WKWebView.evaluateJavaScript(..) {} . The closure passed does not get called and a WebKit crash is logged in console.

This happens only when all the cases are met:

  • Xcode 14 beta5
  • Simulator on iOS 16

There is no issue when tested on a lower verison from the above cases, i.e. tested on iOS 15.5.

The eror logs that show a WebKit crash:

[ProcessSuspension] endowmentsForHandle: Process with PID 62886 is not running
2022-08-24 07:24:08.094225+1000 xctest[62886:2912224] [Process] 0x114064100 - [PID=0] WebProcessProxy::didFinishLaunching: Invalid connection identifier (web process failed to launch)
2022-08-24 07:24:08.094369+1000 xctest[62886:2912224] [Process] 0x114064100 - [PID=0] WebProcessProxy::processDidTerminateOrFailedToLaunch: reason=Crash
2022-08-24 07:24:08.094656+1000 xctest[62886:2912224] [Process] 0x7fcb96020c20 - [pageProxyID=6, webPageID=7, PID=0] WebPageProxy::processDidTerminate: (pid 0), reason=Crash
2022-08-24 07:24:08.095603+1000 xctest[62886:2912224] [Loading] 0x7fcb96020c20 - [pageProxyID=6, webPageID=7, PID=0] WebPageProxy::dispatchProcessDidTerminate: reason=Crash
2022-08-24 07:24:08.095762+1000 xctest[62886:2912224] [Loading] 0x7fcb96020c20 - [pageProxyID=6, webPageID=7, PID=0]

Sometimes this is accompanied by a crash related to PosterBoard.app similar to what is mentioned in the forum here

Steps to reproduce

Failure case, run on iOS16/Xc14b5

Steps:

  • Open WebKitBugExample.xcodeproj using Xcode14 beta5
  • Run test WebKitBugExampleTests.WebKitBugExampleTests in test target WebKitBugExampleTests
  • Run on simulator with iOS16

Expectation:

  • Test should pass and show no error logs as shown above

Actual:

  • Test fails and shows error logs

Successful case, run on iOS15.5/Xc14b5

Steps:

  • Open WebKitBugExample.xcodeproj using Xcode14 beta5
  • Run test WebKitBugExampleTests.WebKitBugExampleTests in test target WebKitBugExampleTests
  • Run on simulator with iOS15.5

Actual:

  • Test passes

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published