Drop TestRunner.setPrivateBrowsingEnabled_DEPRECATED() in WebKitTestRunner since it does not do the right thing for WK2 and we have a better alternative.
Created attachment 378198 [details] WIP Patch
Created attachment 378263 [details] WIP Patch
Failures: http/tests/cache-storage/cache-persistency.https.html http/tests/cookies/private-cookie-storage.html http/tests/workers/service/serviceworker-private-browsing.https.html // Bug 201574. imported/w3c/web-platform-tests/IndexedDB/fire-error-event-exception.html http/tests/adClickAttribution/conversion-disabled-in-ephemeral-session.html http/tests/workers/service/basic-register.html storage/domstorage/localstorage/private-browsing-affects-storage.html // Bug 201547.
Created attachment 378440 [details] WIP Patch
Remaining failures: http/tests/cache-storage/cache-persistency.https.html http/tests/cookies/private-cookie-storage.html
Created attachment 378587 [details] Patch
Created attachment 378588 [details] Patch
Comment on attachment 378588 [details] Patch Looks like I need to update a couple more tests to make iOS-wk2 happy.
*** Bug 201722 has been marked as a duplicate of this bug. ***
Created attachment 378647 [details] Patch
Comment on attachment 378647 [details] Patch Clearing flags on attachment: 378647 Committed r249817: <https://trac.webkit.org/changeset/249817>
All reviewed patches have been landed. Closing bug.
<rdar://problem/55319339>