Summary: | WebView doesn't become first responder in element fullscreen. | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Jeremy Jones <jeremyj-wk> | ||||||
Component: | WebKit2 | Assignee: | Jeremy Jones <jeremyj-wk> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | commit-queue, jer.noble, simon.fraser, thorton, webkit-bug-importer | ||||||
Priority: | P2 | Keywords: | InRadar | ||||||
Version: | WebKit Nightly Build | ||||||||
Hardware: | Mac | ||||||||
OS: | Unspecified | ||||||||
Attachments: |
|
Description
Jeremy Jones
2016-12-09 11:16:34 PST
Created attachment 296663 [details]
Patch
Comment on attachment 296663 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=296663&action=review > Source/WebKit2/ChangeLog:12 > + This change wait until after the contentView is visible to make the web view the first responder. "This change wait until" > Source/WebKit2/UIProcess/mac/WKFullScreenWindowController.mm:619 > + [window makeFirstResponder:_webView]; Does makeResponderFirstResponderIfDescendantOfView do something important? Should you still use that? It seems like it had to be there for a reason. (In reply to comment #3) > Comment on attachment 296663 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=296663&action=review > > > Source/WebKit2/ChangeLog:12 > > + This change wait until after the contentView is visible to make the web view the first responder. > > "This change wait until" "waits" Done. > > > Source/WebKit2/UIProcess/mac/WKFullScreenWindowController.mm:619 > > + [window makeFirstResponder:_webView]; > > Does makeResponderFirstResponderIfDescendantOfView do something important? > Should you still use that? It seems like it had to be there for a reason. It only makes the webView the first responder if if was already first responder while inline. However, it doesn't make sense to prevent web view from becoming first responder just because some search field in the app was first responder when entering fullscreen. (In reply to comment #4) > (In reply to comment #3) > > Comment on attachment 296663 [details] > > Patch > > > > View in context: > > https://bugs.webkit.org/attachment.cgi?id=296663&action=review > > > > > Source/WebKit2/ChangeLog:12 > > > + This change wait until after the contentView is visible to make the web view the first responder. > > > > "This change wait until" > > "waits" > > Done. > > > > > > Source/WebKit2/UIProcess/mac/WKFullScreenWindowController.mm:619 > > > + [window makeFirstResponder:_webView]; > > > > Does makeResponderFirstResponderIfDescendantOfView do something important? > > Should you still use that? It seems like it had to be there for a reason. > > It only makes the webView the first responder if if was already first > responder while inline. However, it doesn't make sense to prevent web view > from becoming first responder just because some search field in the app was > first responder when entering fullscreen. It is useful when exiting fullscreen to prevent the web view from stealing first responder from the app when exiting fullscreen. (In reply to comment #5) > (In reply to comment #4) > > (In reply to comment #3) > > > Comment on attachment 296663 [details] > > > Patch > > > > > > View in context: > > > https://bugs.webkit.org/attachment.cgi?id=296663&action=review > > > > > > > Source/WebKit2/ChangeLog:12 > > > > + This change wait until after the contentView is visible to make the web view the first responder. > > > > > > "This change wait until" > > > > "waits" > > > > Done. > > > > > > > > > Source/WebKit2/UIProcess/mac/WKFullScreenWindowController.mm:619 > > > > + [window makeFirstResponder:_webView]; > > > > > > Does makeResponderFirstResponderIfDescendantOfView do something important? > > > Should you still use that? It seems like it had to be there for a reason. > > > > It only makes the webView the first responder if if was already first > > responder while inline. However, it doesn't make sense to prevent web view > > from becoming first responder just because some search field in the app was > > first responder when entering fullscreen. > > It is useful when exiting fullscreen to prevent the web view from stealing > first responder from the app when exiting fullscreen. Ah, makes sense. WK2r=me Created attachment 296670 [details]
Patch for landing.
Comment on attachment 296670 [details] Patch for landing. Clearing flags on attachment: 296670 Committed r209624: <http://trac.webkit.org/changeset/209624> |