Adopt -destinationWindowToExitFullScreenForWindow:
authorjer.noble@apple.com <jer.noble@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 2 May 2018 18:37:27 +0000 (18:37 +0000)
committerjer.noble@apple.com <jer.noble@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 2 May 2018 18:37:27 +0000 (18:37 +0000)
https://bugs.webkit.org/show_bug.cgi?id=185204
<rdar://problem/22486621>

Reviewed by Eric Carlson.

* UIProcess/mac/WKFullScreenWindowController.mm:
(-[WKFullScreenWindowController destinationWindowToExitFullScreenForWindow:]):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@231247 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit/ChangeLog
Source/WebKit/UIProcess/mac/WKFullScreenWindowController.mm

index e497cd0..5dffb97 100644 (file)
@@ -1,3 +1,14 @@
+2018-05-02  Jer Noble  <jer.noble@apple.com>
+
+        Adopt -destinationWindowToExitFullScreenForWindow:
+        https://bugs.webkit.org/show_bug.cgi?id=185204
+        <rdar://problem/22486621>
+
+        Reviewed by Eric Carlson.
+
+        * UIProcess/mac/WKFullScreenWindowController.mm:
+        (-[WKFullScreenWindowController destinationWindowToExitFullScreenForWindow:]):
+
 2018-05-02  Per Arne Vollan  <pvollan@apple.com>
 
         Disable Media capture rules in sandbox for simulator.
index aade974..69b1139 100644 (file)
@@ -534,6 +534,11 @@ static const float minVideoWidth = 480 + 20 + 20; // Note: Keep in sync with med
     [self finishedExitFullScreenAnimation:YES];
 }
 
+- (NSWindow *)destinationWindowToExitFullScreenForWindow:(NSWindow *)window
+{
+    return self.webViewPlaceholder.window;
+}
+
 #pragma mark -
 #pragma mark Internal Interface