2020-06-12 Alan Coon Cherry-pick r262508. rdar://problem/62977672 [iOS] Hide the PiP button in fullscreen mode if PiP is disabled in preferences https://bugs.webkit.org/show_bug.cgi?id=212699 Reviewed by Eric Carlson. In r260474, we hid the PiP button in fullscreen when PiP was unsupported on the current device; we must also hide the PiP button when clients have disabled PiP via preferences. * UIProcess/ios/fullscreen/WKFullScreenViewController.mm: (-[WKFullScreenViewController videoControlsManagerDidChange]): git-svn-id: https://svn.webkit.org/repository/webkit/trunk@262508 268f45cc-cd09-0410-ab3c-d52691b4dbfc 2020-06-03 Jer Noble [iOS] Hide the PiP button in fullscreen mode if PiP is disabled in preferences https://bugs.webkit.org/show_bug.cgi?id=212699 Reviewed by Eric Carlson. In r260474, we hid the PiP button in fullscreen when PiP was unsupported on the current device; we must also hide the PiP button when clients have disabled PiP via preferences. * UIProcess/ios/fullscreen/WKFullScreenViewController.mm: (-[WKFullScreenViewController videoControlsManagerDidChange]): 2020-06-10 Alan Coon Cherry-pick r262850. rdar://problem/64226899 [iOS] Add entitlement for PAC exceptions https://bugs.webkit.org/show_bug.cgi?id=213027 Reviewed by Brent Fulgham. On iOS, add entitlement for PAC exceptions. * Scripts/process-entitlements.sh: git-svn-id: https://svn.webkit.org/repository/webkit/trunk@262850 268f45cc-cd09-0410-ab3c-d52691b4dbfc 2020-06-10 Per Arne Vollan [iOS] Add entitlement for PAC exceptions https://bugs.webkit.org/show_bug.cgi?id=213027 Reviewed by Brent Fulgham. On iOS, add entitlement for PAC exceptions. * Scripts/process-entitlements.sh: 2020-06-09 Dean Jackson REGRESSION: [Safari Mojave for High Sierra] Accessing some of the featured pages on apple.com causes the webpage to crash https://bugs.webkit.org/show_bug.cgi?id=212940 Reviewed by Tim Horton. The code to use the singleton for a SwitchingGPUClient was assuming it has always been set, which was not the case when ENABLE(WEBPROCESS_WINDOWSERVER_BLOCKING) was not true. * WebProcess/cocoa/WebProcessCocoa.mm: Set the singleton unconditionally. (WebKit::WebProcess::platformInitializeProcess): 2020-06-04 Alan Coon Cherry-pick r262196. rdar://problem/63951363 Crash under WebNotificationManager::removeNotificationFromContextMap() https://bugs.webkit.org/show_bug.cgi?id=212410 Reviewed by Alex Christensen. Source/WebKit: Protect the notification object in WebNotificationManager::didDestroyNotification() since removing it from m_notificationIDMap will deref it and may end up destroying the notification object otherwise. Test: http/tests/notifications/crash-on-navigation.html * WebProcess/Notifications/WebNotificationManager.cpp: (WebKit::WebNotificationManager::didDestroyNotification): LayoutTests: Add layout test coverage. * http/tests/notifications/crash-on-navigation-expected.txt: Added. * http/tests/notifications/crash-on-navigation.html: Added. * http/tests/notifications/resources/crash-on-navigation-iframe.html: Added. git-svn-id: https://svn.webkit.org/repository/webkit/trunk@262196 268f45cc-cd09-0410-ab3c-d52691b4dbfc 2020-05-27 Chris Dumez Crash under WebNotificationManager::removeNotificationFromContextMap() https://bugs.webkit.org/show_bug.cgi?id=212410 Reviewed by Alex Christensen. Protect the notification object in WebNotificationManager::didDestroyNotification() since removing it from m_notificationIDMap will deref it and may end up destroying the notification object otherwise. Test: http/tests/notifications/crash-on-navigation.html * WebProcess/Notifications/WebNotificationManager.cpp: (WebKit::WebNotificationManager::didDestroyNotification): 2020-06-04 Alan Coon Cherry-pick r261246. rdar://problem/63951358 pointermove event sometimes has incorrect pointerType of 'mouse' on touch interactions https://bugs.webkit.org/show_bug.cgi?id=210716 Patch by Antoine Quint on 2020-05-06 Reviewed by Darin Adler. Source/WebKit: Set the SyntheticClickType to OneFingerTap when creating a synthetic "mousemove" event for a synthetic "click" event as part of a tap. On top of being more indicative of the actual action that triggered the synthetic event, it also has the added quality that it will not yield a "pointermove" event. Test: pointerevents/ios/click-no-pointermove.html * WebProcess/WebPage/ios/WebPageIOS.mm: (WebKit::dispatchSyntheticMouseMove): LayoutTests: Add a new test that checks that with content observation enabled a tap on a