WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
197686
iOS: Selection is dismissed even if click is preventDefault()'d
https://bugs.webkit.org/show_bug.cgi?id=197686
Summary
iOS: Selection is dismissed even if click is preventDefault()'d
Tim Horton
Reported
2019-05-08 00:26:22 PDT
iOS: Selection is dismissed even if click is preventDefault()'d
Attachments
Patch
(11.41 KB, patch)
2019-05-08 00:26 PDT
,
Tim Horton
no flags
Details
Formatted Diff
Diff
Archive of layout-test-results from ews126 for ios-simulator-wk2
(8.00 MB, application/zip)
2019-05-08 02:25 PDT
,
EWS Watchlist
no flags
Details
Patch
(11.53 KB, patch)
2019-05-08 03:55 PDT
,
Tim Horton
no flags
Details
Formatted Diff
Diff
Archive of layout-test-results from ews215 for win-future
(13.53 MB, application/zip)
2019-05-08 04:49 PDT
,
EWS Watchlist
no flags
Details
Archive of layout-test-results from ews122 for ios-simulator-wk2
(2.46 MB, application/zip)
2019-05-08 05:54 PDT
,
EWS Watchlist
no flags
Details
Patch
(12.32 KB, patch)
2019-05-08 11:19 PDT
,
Tim Horton
no flags
Details
Formatted Diff
Diff
Patch
(12.27 KB, patch)
2019-05-08 11:49 PDT
,
Tim Horton
no flags
Details
Formatted Diff
Diff
Patch
(16.64 KB, patch)
2019-05-08 13:17 PDT
,
Tim Horton
no flags
Details
Formatted Diff
Diff
Patch
(16.46 KB, patch)
2019-05-08 13:29 PDT
,
Tim Horton
no flags
Details
Formatted Diff
Diff
Show Obsolete
(5)
View All
Add attachment
proposed patch, testcase, etc.
Tim Horton
Comment 1
2019-05-08 00:26:54 PDT
Created
attachment 369363
[details]
Patch
Tim Horton
Comment 2
2019-05-08 00:26:56 PDT
<
rdar://problem/49398824
>
EWS Watchlist
Comment 3
2019-05-08 02:25:25 PDT
Comment on
attachment 369363
[details]
Patch
Attachment 369363
[details]
did not pass ios-sim-ews (ios-simulator-wk2): Output:
https://webkit-queues.webkit.org/results/12131254
New failing tests: editing/pasteboard/smart-paste-paragraph-003.html editing/deleting/smart-delete-paragraph-003.html
EWS Watchlist
Comment 4
2019-05-08 02:25:27 PDT
Created
attachment 369366
[details]
Archive of layout-test-results from ews126 for ios-simulator-wk2 The attached test failures were seen while running run-webkit-tests on the ios-sim-ews. Bot: ews126 Port: ios-simulator-wk2 Platform: Mac OS X 10.14.4
Tim Horton
Comment 5
2019-05-08 03:55:31 PDT
Created
attachment 369371
[details]
Patch
EWS Watchlist
Comment 6
2019-05-08 04:49:55 PDT
Comment on
attachment 369371
[details]
Patch
Attachment 369371
[details]
did not pass win-ews (win): Output:
https://webkit-queues.webkit.org/results/12132257
New failing tests: svg/repaint/remove-border-property-on-root.html
EWS Watchlist
Comment 7
2019-05-08 04:49:57 PDT
Created
attachment 369374
[details]
Archive of layout-test-results from ews215 for win-future The attached test failures were seen while running run-webkit-tests on the win-ews. Bot: ews215 Port: win-future Platform: CYGWIN_NT-10.0-17763-3.0.5-338.x86_64-x86_64-64bit
EWS Watchlist
Comment 8
2019-05-08 05:54:23 PDT
Comment on
attachment 369371
[details]
Patch
Attachment 369371
[details]
did not pass ios-sim-ews (ios-simulator-wk2): Output:
https://webkit-queues.webkit.org/results/12132434
New failing tests: editing/pasteboard/smart-paste-paragraph-003.html editing/deleting/smart-delete-paragraph-003.html
EWS Watchlist
Comment 9
2019-05-08 05:54:24 PDT
Created
attachment 369380
[details]
Archive of layout-test-results from ews122 for ios-simulator-wk2 The attached test failures were seen while running run-webkit-tests on the ios-sim-ews. Bot: ews122 Port: ios-simulator-wk2 Platform: Mac OS X 10.14.4
Tim Horton
Comment 10
2019-05-08 11:19:21 PDT
Created
attachment 369397
[details]
Patch
Wenson Hsieh
Comment 11
2019-05-08 11:33:34 PDT
Comment on
attachment 369397
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=369397&action=review
> LayoutTests/editing/selection/ios/persist-selection-after-tapping-on-element-with-click-handler-expected.txt:3 > +This test verifies that the WebCore selection is not dismissed when tapping on an element that preventDefault()s the click event.
Nit - perhaps s/WebCore/DOM/?
Antoine Quint
Comment 12
2019-05-08 11:40:47 PDT
Comment on
attachment 369397
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=369397&action=review
> LayoutTests/editing/selection/ios/persist-selection-after-tapping-on-element-with-click-handler.html:38 > + document.addEventListener("selectionchange", didChangeSelection);
Maybe use { once: true } here to avoid the cleanup?
Tim Horton
Comment 13
2019-05-08 11:43:41 PDT
Comment on
attachment 369397
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=369397&action=review
>> LayoutTests/editing/selection/ios/persist-selection-after-tapping-on-element-with-click-handler-expected.txt:3 >> +This test verifies that the WebCore selection is not dismissed when tapping on an element that preventDefault()s the click event. > > Nit - perhaps s/WebCore/DOM/?
Sure
>> LayoutTests/editing/selection/ios/persist-selection-after-tapping-on-element-with-click-handler.html:38 >> + document.addEventListener("selectionchange", didChangeSelection); > > Maybe use { once: true } here to avoid the cleanup?
😲
Tim Horton
Comment 14
2019-05-08 11:48:06 PDT
(In reply to Tim Horton from
comment #13
)
> Comment on
attachment 369397
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=369397&action=review
> > >> LayoutTests/editing/selection/ios/persist-selection-after-tapping-on-element-with-click-handler-expected.txt:3 > >> +This test verifies that the WebCore selection is not dismissed when tapping on an element that preventDefault()s the click event. > > > > Nit - perhaps s/WebCore/DOM/? > > Sure > > >> LayoutTests/editing/selection/ios/persist-selection-after-tapping-on-element-with-click-handler.html:38 > >> + document.addEventListener("selectionchange", didChangeSelection); > > > > Maybe use { once: true } here to avoid the cleanup? > > 😲
Wait, no.
Tim Horton
Comment 15
2019-05-08 11:49:55 PDT
Created
attachment 369401
[details]
Patch
Tim Horton
Comment 16
2019-05-08 13:17:11 PDT
Created
attachment 369412
[details]
Patch
Tim Horton
Comment 17
2019-05-08 13:29:52 PDT
Created
attachment 369415
[details]
Patch
WebKit Commit Bot
Comment 18
2019-05-08 13:50:29 PDT
Comment on
attachment 369415
[details]
Patch Clearing flags on attachment: 369415 Committed
r245067
: <
https://trac.webkit.org/changeset/245067
>
WebKit Commit Bot
Comment 19
2019-05-08 13:50:30 PDT
All reviewed patches have been landed. Closing bug.
Tim Horton
Comment 20
2019-05-08 16:09:29 PDT
My rebaselines might not quite have been right. Will try again
Ryan Haddad
Comment 21
2019-05-08 16:44:41 PDT
(In reply to Tim Horton from
comment #20
)
> My rebaselines might not quite have been right. Will try again
For posterity, this was the second attempt:
https://trac.webkit.org/changeset/245077/webkit
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