[iOS] Entering fullscreen from less-than-fullscreen WKWebView does not layout correctly upon exit
<rdar://problem/72053237>
Created attachment 415662 [details] Patch
Created attachment 415674 [details] Patch
Comment on attachment 415674 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=415674&action=review > Source/WebKit/UIProcess/API/Cocoa/WKWebViewInternal.h:245 > +#if PLATFORM(IOS) It seems unlikely that you mean PLATFORM(IOS) here? Shouldn't this be all IOS_FAMILY? > Source/WebKit/UIProcess/ios/fullscreen/WKFullScreenWindowControllerIOS.mm:115 > + BOOL _savedHasOverridenLayoutParameters; > + CGSize _savedMinimumLayoutSizeOverride; > + CGSize _savedMaximumUnobscuredSizeOverride; Slightly disconcerting that all the rest are initialized.
Created attachment 415683 [details] Patch
(In reply to Tim Horton from comment #4) > Comment on attachment 415674 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=415674&action=review > > > Source/WebKit/UIProcess/API/Cocoa/WKWebViewInternal.h:245 > > +#if PLATFORM(IOS) > > It seems unlikely that you mean PLATFORM(IOS) here? Shouldn't this be all > IOS_FAMILY? Ugh. Yes, IOS_FAMILY> > > Source/WebKit/UIProcess/ios/fullscreen/WKFullScreenWindowControllerIOS.mm:115 > > + BOOL _savedHasOverridenLayoutParameters; > > + CGSize _savedMinimumLayoutSizeOverride; > > + CGSize _savedMaximumUnobscuredSizeOverride; > > Slightly disconcerting that all the rest are initialized. Added initializers.
Comment on attachment 415683 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=415683&action=review > Source/WebKit/UIProcess/API/Cocoa/WKWebViewInternal.h:246 > +@property (nonatomic, readonly) BOOL _hasOverridenLayoutParameters; Ok as is. Consider overriding instead of overridden. If going to keep overridden then consider fixing spelling. > Source/WebKit/UIProcess/ios/fullscreen/WKFullScreenWindowControllerIOS.mm:159 > + _savedMinimumLayoutSizeOverride = webView._minimumLayoutSizeOverride; Ok as is. Consider rename using overriding
Created attachment 417578 [details] Patch for landing