Title: [292261] trunk/Source/WebKit
- Revision
- 292261
- Author
- [email protected]
- Date
- 2022-04-01 23:33:18 -0700 (Fri, 01 Apr 2022)
Log Message
[iOS] WKFullScreenWindowController's UIViewController leaks after entering element fullscreen
https://bugs.webkit.org/show_bug.cgi?id=238684
Reviewed by Eric Carlson.
The window controller's `_rootViewController` is a `RetainPtr`, but we're missing an `adoptNS` when creating a
new view controller. Fix the leak by using `adoptNS` to prevent the redundant `-retain` when constructing
`RetainPtr`.
* UIProcess/ios/fullscreen/WKFullScreenWindowControllerIOS.mm:
(-[WKFullScreenWindowController enterFullScreen]):
Modified Paths
Diff
Modified: trunk/Source/WebKit/ChangeLog (292260 => 292261)
--- trunk/Source/WebKit/ChangeLog 2022-04-02 06:27:46 UTC (rev 292260)
+++ trunk/Source/WebKit/ChangeLog 2022-04-02 06:33:18 UTC (rev 292261)
@@ -1,5 +1,19 @@
2022-04-01 Wenson Hsieh <[email protected]>
+ [iOS] WKFullScreenWindowController's UIViewController leaks after entering element fullscreen
+ https://bugs.webkit.org/show_bug.cgi?id=238684
+
+ Reviewed by Eric Carlson.
+
+ The window controller's `_rootViewController` is a `RetainPtr`, but we're missing an `adoptNS` when creating a
+ new view controller. Fix the leak by using `adoptNS` to prevent the redundant `-retain` when constructing
+ `RetainPtr`.
+
+ * UIProcess/ios/fullscreen/WKFullScreenWindowControllerIOS.mm:
+ (-[WKFullScreenWindowController enterFullScreen]):
+
+2022-04-01 Wenson Hsieh <[email protected]>
+
[iOS] Several tests in media/modern-media-controls crash in -[WKActionSheetAssistant _uiMenuElementsForMediaControlContextMenuItems:]
https://bugs.webkit.org/show_bug.cgi?id=238687
Modified: trunk/Source/WebKit/UIProcess/ios/fullscreen/WKFullScreenWindowControllerIOS.mm (292260 => 292261)
--- trunk/Source/WebKit/UIProcess/ios/fullscreen/WKFullScreenWindowControllerIOS.mm 2022-04-02 06:27:46 UTC (rev 292260)
+++ trunk/Source/WebKit/UIProcess/ios/fullscreen/WKFullScreenWindowControllerIOS.mm 2022-04-02 06:33:18 UTC (rev 292261)
@@ -532,7 +532,7 @@
[_window setWindowLevel:UIWindowLevelNormal - 1];
[_window setHidden:NO];
- _rootViewController = [[UIViewController alloc] init];
+ _rootViewController = adoptNS([[UIViewController alloc] init]);
_rootViewController.get().view = adoptNS([[UIView alloc] initWithFrame:_window.get().bounds]).get();
_rootViewController.get().view.backgroundColor = [UIColor clearColor];
_rootViewController.get().view.autoresizingMask = (UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes