RESOLVED FIXED200272
Web Inspector: Debugger: support emulateUserGesture parameter in Debugger.evaluateOnCallFrame
https://bugs.webkit.org/show_bug.cgi?id=200272
Summary Web Inspector: Debugger: support emulateUserGesture parameter in Debugger.eva...
Devin Rousso
Reported 2019-07-30 10:33:20 PDT
When paused, evaluating in the console should still respect the "Emulate User Gesture" checkbox.
Attachments
Patch (23.96 KB, patch)
2019-07-30 12:07 PDT, Devin Rousso
no flags
Patch (39.52 KB, patch)
2019-07-31 20:39 PDT, Devin Rousso
no flags
Patch (2.02 KB, patch)
2019-10-01 17:00 PDT, Yury Semikhatsky
no flags
Devin Rousso
Comment 1 2019-07-30 12:07:24 PDT
EWS Watchlist
Comment 2 2019-07-30 12:08:28 PDT Comment hidden (obsolete)
Joseph Pecoraro
Comment 3 2019-07-31 15:57:25 PDT
Comment on attachment 375167 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=375167&action=review r=me > Source/JavaScriptCore/inspector/protocol/Debugger.json:283 > - { "name": "saveResult", "type": "boolean", "optional": true, "description": "Whether the resulting value should be considered for saving in the $n history." } > + { "name": "saveResult", "type": "boolean", "optional": true, "description": "Whether the resulting value should be considered for saving in the $n history." }, > + { "name": "emulateUserGesture", "type": "boolean", "optional": true, "description": "Whether the expression should be considered to be in a user gesture or not." } We should probably also make this change to: Source/WebInspectorUI/Versions/Inspector-iOS-13.0.json > Source/WebInspectorUI/UserInterface/Controllers/RuntimeManager.js:136 > + // COMPATIBILITY (iOS 13): "emulateUserGesture" did not exist. I thought we normally say "Before iOS 13 ... did not exist". > LayoutTests/ChangeLog:11 > + * inspector/debugger/evaluateOnCallFrame-emulateUserGesture.html: Added. > + * inspector/debugger/evaluateOnCallFrame-emulateUserGesture-expected.txt: Added. > + * inspector/debugger/evaluateOnCallFrame-emulateUserGesture-userIsInteracting.html: Added. > + * inspector/debugger/evaluateOnCallFrame-emulateUserGesture-userIsInteracting-expected.txt: Added. The other tests are named "userGestureEmulation". I like this name though. Maybe we should rename the others. > LayoutTests/inspector/debugger/evaluateOnCallFrame-emulateUserGesture-userIsInteracting.html:75 > + <p>Tests for Debugger.evaluateOnCallFrame emulateUserGesture option.</p> Style: We normally drop this leading whitespace. > LayoutTests/inspector/debugger/evaluateOnCallFrame-emulateUserGesture.html:75 > + <p>Tests for Debugger.evaluateOnCallFrame emulateUserGesture option.</p> Ditto.
Devin Rousso
Comment 4 2019-07-31 20:39:07 PDT
Comment on attachment 375167 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=375167&action=review >> Source/WebInspectorUI/UserInterface/Controllers/RuntimeManager.js:136 >> + // COMPATIBILITY (iOS 13): "emulateUserGesture" did not exist. > > I thought we normally say "Before iOS 13 ... did not exist". I was matching the same text as the existing comment above. I only see examples of "Before ..." in two places. >> LayoutTests/ChangeLog:11 >> + * inspector/debugger/evaluateOnCallFrame-emulateUserGesture-userIsInteracting-expected.txt: Added. > > The other tests are named "userGestureEmulation". I like this name though. Maybe we should rename the others. I like it!
Devin Rousso
Comment 5 2019-07-31 20:39:40 PDT
WebKit Commit Bot
Comment 6 2019-07-31 22:19:34 PDT
Comment on attachment 375287 [details] Patch Clearing flags on attachment: 375287 Committed r248097: <https://trac.webkit.org/changeset/248097>
WebKit Commit Bot
Comment 7 2019-07-31 22:19:35 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 8 2019-07-31 22:22:59 PDT
Yury Semikhatsky
Comment 9 2019-10-01 17:00:46 PDT
Reopening to attach new patch.
Yury Semikhatsky
Comment 10 2019-10-01 17:00:47 PDT
Devin Rousso
Comment 11 2019-10-02 08:16:15 PDT
Comment on attachment 379970 [details] Patch rs=me, nice catch!
WebKit Commit Bot
Comment 12 2019-10-02 08:33:54 PDT
Comment on attachment 379970 [details] Patch Clearing flags on attachment: 379970 Committed r250605: <https://trac.webkit.org/changeset/250605>
WebKit Commit Bot
Comment 13 2019-10-02 08:33:56 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.