RESOLVED FIXED 188929
Avoid calling setUntrusted in SimulatedMouseEvent
https://bugs.webkit.org/show_bug.cgi?id=188929
Summary Avoid calling setUntrusted in SimulatedMouseEvent
Ryosuke Niwa
Reported 2018-08-24 13:46:55 PDT
Pass IsTrusted flag around to superclass' constructors instead.
Attachments
Cleanup (15.51 KB, patch)
2018-08-24 13:49 PDT, Ryosuke Niwa
no flags
Archive of layout-test-results from ews100 for mac-sierra (2.30 MB, application/zip)
2018-08-24 15:02 PDT, EWS Watchlist
no flags
Archive of layout-test-results from ews104 for mac-sierra-wk2 (2.78 MB, application/zip)
2018-08-24 15:11 PDT, EWS Watchlist
no flags
Patch for landing (15.41 KB, patch)
2018-08-24 15:13 PDT, Ryosuke Niwa
no flags
Ryosuke Niwa
Comment 1 2018-08-24 13:49:12 PDT
EWS Watchlist
Comment 2 2018-08-24 13:51:27 PDT
Attachment 348038 [details] did not pass style-queue: ERROR: Source/WebCore/dom/MouseEvent.cpp:84: Code inside a namespace should not be indented. [whitespace/indent] [4] ERROR: Source/WebCore/dom/MouseEvent.cpp:84: Wrong number of spaces before statement. (expected: 8) [whitespace/indent] [4] ERROR: Source/WebCore/dom/Event.h:146: The parameter name "isTrusted" adds no information, so it should be removed. [readability/parameter_name] [5] ERROR: Source/WebCore/dom/MouseRelatedEvent.cpp:39: Code inside a namespace should not be indented. [whitespace/indent] [4] ERROR: Source/WebCore/dom/MouseRelatedEvent.cpp:39: Wrong number of spaces before statement. (expected: 8) [whitespace/indent] [4] ERROR: Source/WebCore/dom/WheelEvent.cpp:51: Comma should be at the beginning of the line in a member initialization list. [whitespace/init] [4] ERROR: Source/WebCore/dom/UIEventWithKeyState.h:59: Wrong number of spaces before statement. (expected: 12) [whitespace/indent] [4] Total errors found: 7 in 13 files If any of these errors are false positives, please file a bug against check-webkit-style.
Simon Fraser (smfr)
Comment 3 2018-08-24 14:05:37 PDT
Comment on attachment 348038 [details] Cleanup View in context: https://bugs.webkit.org/attachment.cgi?id=348038&action=review > Source/WebCore/ChangeLog:11 > + This makes EventTarget::dispatchEventForBindings the only caller of setUntrusted(). Can some of these Event members variables be const variables after these changes? > Source/WebCore/dom/Event.h:146 > + Event(const AtomicString& type, CanBubble, IsCancelable, IsComposed, MonotonicTime timestamp, IsTrusted isTrusted = IsTrusted::Yes); You don't need to name the parameter here.
EWS Watchlist
Comment 4 2018-08-24 15:02:21 PDT
Comment on attachment 348038 [details] Cleanup Attachment 348038 [details] did not pass mac-ews (mac): Output: https://webkit-queues.webkit.org/results/8975203 New failing tests: imported/w3c/web-platform-tests/shadow-dom/event-composed.html
EWS Watchlist
Comment 5 2018-08-24 15:02:23 PDT
Created attachment 348043 [details] Archive of layout-test-results from ews100 for mac-sierra The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews100 Port: mac-sierra Platform: Mac OS X 10.12.6
EWS Watchlist
Comment 6 2018-08-24 15:11:17 PDT
Comment on attachment 348038 [details] Cleanup Attachment 348038 [details] did not pass mac-wk2-ews (mac-wk2): Output: https://webkit-queues.webkit.org/results/8975217 New failing tests: imported/w3c/web-platform-tests/shadow-dom/event-composed.html
EWS Watchlist
Comment 7 2018-08-24 15:11:18 PDT
Created attachment 348045 [details] Archive of layout-test-results from ews104 for mac-sierra-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews104 Port: mac-sierra-wk2 Platform: Mac OS X 10.12.6
Ryosuke Niwa
Comment 8 2018-08-24 15:12:39 PDT
Comment on attachment 348038 [details] Cleanup View in context: https://bugs.webkit.org/attachment.cgi?id=348038&action=review > Source/WebCore/dom/SimulatedClick.cpp:47 > - : MouseEvent(eventType, CanBubble::Yes, IsCancelable::Yes, source == SimulatedClickSource::Bindings ? IsComposed::No : IsComposed::Yes, > + : MouseEvent(eventType, CanBubble::Yes, IsCancelable::Yes, IsComposed::Yes, Oh oops, this is the unrelated change causing the test to fail.
Ryosuke Niwa
Comment 9 2018-08-24 15:13:28 PDT
Created attachment 348046 [details] Patch for landing
Radar WebKit Bug Importer
Comment 10 2018-08-24 15:13:52 PDT
EWS Watchlist
Comment 11 2018-08-24 15:14:51 PDT
Attachment 348046 [details] did not pass style-queue: ERROR: Source/WebCore/dom/MouseEvent.cpp:84: Code inside a namespace should not be indented. [whitespace/indent] [4] ERROR: Source/WebCore/dom/MouseEvent.cpp:84: Wrong number of spaces before statement. (expected: 8) [whitespace/indent] [4] ERROR: Source/WebCore/dom/Event.h:146: The parameter name "isTrusted" adds no information, so it should be removed. [readability/parameter_name] [5] ERROR: Source/WebCore/dom/MouseRelatedEvent.cpp:39: Code inside a namespace should not be indented. [whitespace/indent] [4] ERROR: Source/WebCore/dom/MouseRelatedEvent.cpp:39: Wrong number of spaces before statement. (expected: 8) [whitespace/indent] [4] ERROR: Source/WebCore/dom/WheelEvent.cpp:51: Comma should be at the beginning of the line in a member initialization list. [whitespace/init] [4] ERROR: Source/WebCore/dom/UIEventWithKeyState.h:59: Wrong number of spaces before statement. (expected: 12) [whitespace/indent] [4] Total errors found: 7 in 13 files If any of these errors are false positives, please file a bug against check-webkit-style.
WebKit Commit Bot
Comment 12 2018-08-24 15:51:40 PDT
Comment on attachment 348046 [details] Patch for landing Clearing flags on attachment: 348046 Committed r235335: <https://trac.webkit.org/changeset/235335>
WebKit Commit Bot
Comment 13 2018-08-24 15:51:42 PDT
All reviewed patches have been landed. Closing bug.
Lucas Forschler
Comment 14 2019-02-06 09:19:04 PST
Mass move bugs into the DOM component.
Note You need to log in before you can comment on or make changes to this bug.