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
199220
[ContentChangeObserver] Dispatch synthetic mouse event asynchronously in completePendingSyntheticClickForContentChangeObserver
https://bugs.webkit.org/show_bug.cgi?id=199220
Summary
[ContentChangeObserver] Dispatch synthetic mouse event asynchronously in comp...
alan
Reported
2019-06-25 20:27:59 PDT
<
rdar://problem/51787961
>
Attachments
Patch
(6.97 KB, patch)
2019-06-25 20:53 PDT
,
alan
no flags
Details
Formatted Diff
Diff
Patch
(6.99 KB, patch)
2019-06-25 21:26 PDT
,
alan
no flags
Details
Formatted Diff
Diff
Patch
(6.98 KB, patch)
2019-06-26 07:00 PDT
,
alan
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
alan
Comment 1
2019-06-25 20:53:03 PDT
Created
attachment 372901
[details]
Patch
Simon Fraser (smfr)
Comment 2
2019-06-25 21:07:59 PDT
Comment on
attachment 372901
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=372901&action=review
> Source/WebKit/ChangeLog:10 > + WebPage::completePendingSyntheticClickForContentChangeObserver should not dispatch mouse events synchronously as through style updates > + they could destroy the element that initiated this change. WebPage::handleSyntheticClick() already implements this pattern.
"as through style updates" is hard to parse. Break into two sentences?
> Source/WebKit/WebProcess/WebPage/ios/WebPageIOS.mm:720 >
Should you check if the targetNode is still connected?
alan
Comment 3
2019-06-25 21:26:11 PDT
Created
attachment 372903
[details]
Patch
alan
Comment 4
2019-06-25 21:26:41 PDT
(In reply to Simon Fraser (smfr) from
comment #2
)
> Comment on
attachment 372901
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=372901&action=review
> > > Source/WebKit/ChangeLog:10 > > + WebPage::completePendingSyntheticClickForContentChangeObserver should not dispatch mouse events synchronously as through style updates > > + they could destroy the element that initiated this change. WebPage::handleSyntheticClick() already implements this pattern. > > "as through style updates" is hard to parse. Break into two sentences? > > > Source/WebKit/WebProcess/WebPage/ios/WebPageIOS.mm:720 > > > > Should you check if the targetNode is still connected?
Not sure. Will check with rniwa tomorrow.
Ryosuke Niwa
Comment 5
2019-06-26 00:36:22 PDT
Comment on
attachment 372903
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=372903&action=review
> Source/WebKit/WebProcess/WebPage/ios/WebPageIOS.mm:724 > + protectedThis->completeSyntheticClick(targetNode, location, modifiers, WebCore::OneFingerTap, pointerId);
Yes, we should check that targetNode is still in the same document. Dispatching mouse events on a detached node would be weird.
alan
Comment 6
2019-06-26 07:00:53 PDT
Created
attachment 372921
[details]
Patch
WebKit Commit Bot
Comment 7
2019-06-26 07:44:31 PDT
Comment on
attachment 372921
[details]
Patch Clearing flags on attachment: 372921 Committed
r246835
: <
https://trac.webkit.org/changeset/246835
>
WebKit Commit Bot
Comment 8
2019-06-26 07:44:33 PDT
All reviewed patches have been landed. Closing bug.
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