WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
226055
[iOS] contextmenu hints don't follow scrolling inside `<iframe>`
https://bugs.webkit.org/show_bug.cgi?id=226055
Summary
[iOS] contextmenu hints don't follow scrolling inside `<iframe>`
Devin Rousso
Reported
2021-05-20 16:55:56 PDT
.
Attachments
Patch
(12.01 KB, patch)
2021-05-20 17:02 PDT
,
Devin Rousso
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Devin Rousso
Comment 1
2021-05-20 17:02:33 PDT
Created
attachment 429244
[details]
Patch
Simon Fraser (smfr)
Comment 2
2021-05-20 19:59:29 PDT
Comment on
attachment 429244
[details]
Patch I'd love for us to have a generic solution to this problem that we can use for all the things that need to move with nested scrollers, like the caret, the callout bar, selection etc.
Devin Rousso
Comment 3
2021-05-21 18:24:28 PDT
(In reply to Simon Fraser (smfr) from
comment #2
)
> I'd love for us to have a generic solution to this problem that we can use for all the things that need to move with nested scrollers, like the caret, the callout bar, selection etc.
While I agree that a general solution would be nice, I'm not sure there is a good way to do it as each of the things you mentioned seems to have a different structure. If you had something in mind I'd love to chat about it :) We're able to do this for contextmenu hints because we create and own the container `UIView` and can therefore manipulate it. Also, unlike the things you mentioned, contextmenus prevent other forms of interaction while they're presented, so this is only really necessary if the user is able to scroll while the contextmenu hint dismisses (which is possible, but requires quick reactions).
Tim Horton
Comment 4
2021-05-27 11:56:00 PDT
Comment on
attachment 429244
[details]
Patch You should sell it as "a step on the path to the generic solution" instead :) For example, we totally do vend the view that UIKit installs the selection highlights into, so you could imagine reusing this mechanism for those (in reality I think it's possible they expect it to have the same coordinate space as WKContentView, would require some digging to see if it's directly reusable).
Radar WebKit Bug Importer
Comment 5
2021-05-27 16:56:18 PDT
<
rdar://problem/78594637
>
Devin Rousso
Comment 6
2021-05-27 17:10:04 PDT
(In reply to Tim Horton from
comment #4
)
> Comment on
attachment 429244
[details]
> Patch > > You should sell it as "a step on the path to the generic solution" instead :)
Oh sure! I'm all for generic solutions :)
> For example, we totally do vend the view that UIKit installs the selection highlights into, so you could imagine reusing this mechanism for those (in reality I think it's possible they expect it to have the same coordinate space as WKContentView, would require some digging to see if it's directly reusable).
We do??!? For my own knowledge, can you point me to where we vend the view to UIKit?
EWS
Comment 7
2021-05-27 17:40:42 PDT
Committed
r278183
(
238226@main
): <
https://commits.webkit.org/238226@main
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 429244
[details]
.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug