Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(306)

Issue 2656903005: ChromeDriver: Handle key events properly on Mac (Closed)

Created:
3 years, 11 months ago by allada
Modified:
3 years, 5 months ago
CC:
chromium-reviews, tfarina, mac-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

ChromeDriver: Handle key events properly on Mac Fixes devtool's emulation of key input events to emulate os key event for OSX. BUG=667387 Review-Url: https://codereview.chromium.org/2656903005 Cr-Commit-Position: refs/heads/master@{#478407} Committed: https://chromium.googlesource.com/chromium/src/+/fa84ab9619de73a61d305c7459fc186e99b0d291

Patch Set 1 : ChromeDriver: Handle key events properly on Mac #

Total comments: 6

Patch Set 2 : changes #

Total comments: 2

Patch Set 3 : changes #

Total comments: 8

Patch Set 4 : changes #

Total comments: 12

Patch Set 5 : changes #

Total comments: 2

Patch Set 6 : fixes #

Patch Set 7 : fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+208 lines, -2 lines) Patch
M chrome/browser/devtools/devtools_sanity_browsertest.cc View 1 2 3 4 5 3 chunks +47 lines, -0 lines 0 comments Download
A chrome/test/data/devtools/dispatch_key_event_shows_auto_fill.html View 1 chunk +22 lines, -0 lines 0 comments Download
M content/browser/BUILD.gn View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/devtools/protocol/input_handler.cc View 1 2 3 4 5 3 chunks +3 lines, -2 lines 0 comments Download
A content/browser/devtools/protocol/native_input_event_builder.h View 1 2 3 4 1 chunk +30 lines, -0 lines 0 comments Download
A content/browser/devtools/protocol/native_input_event_builder_mac.mm View 1 2 3 4 5 1 chunk +49 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/Tests.js View 1 2 3 4 5 1 chunk +55 lines, -0 lines 0 comments Download

Messages

Total messages: 81 (58 generated)
allada
PTL
3 years, 10 months ago (2017-02-08 02:45:47 UTC) #29
pfeldman
https://codereview.chromium.org/2656903005/diff/300001/content/browser/devtools/protocol/native_input_event_builder_mac.mm File content/browser/devtools/protocol/native_input_event_builder_mac.mm (right): https://codereview.chromium.org/2656903005/diff/300001/content/browser/devtools/protocol/native_input_event_builder_mac.mm#newcode16 content/browser/devtools/protocol/native_input_event_builder_mac.mm:16: NSData* data = [[[NSData alloc] initWithBytes:&event.text[0] Use SysUTF16ToNSString. Also, ...
3 years, 10 months ago (2017-02-08 18:57:57 UTC) #45
allada
PTaL https://codereview.chromium.org/2656903005/diff/300001/content/browser/devtools/protocol/native_input_event_builder_mac.mm File content/browser/devtools/protocol/native_input_event_builder_mac.mm (right): https://codereview.chromium.org/2656903005/diff/300001/content/browser/devtools/protocol/native_input_event_builder_mac.mm#newcode16 content/browser/devtools/protocol/native_input_event_builder_mac.mm:16: NSData* data = [[[NSData alloc] initWithBytes:&event.text[0] On 2017/02/08 ...
3 years, 10 months ago (2017-02-10 03:10:11 UTC) #46
pfeldman
https://codereview.chromium.org/2656903005/diff/320001/base/strings/sys_string_conversions.h File base/strings/sys_string_conversions.h (right): https://codereview.chromium.org/2656903005/diff/320001/base/strings/sys_string_conversions.h#newcode71 base/strings/sys_string_conversions.h:71: BASE_EXPORT NSString* SysUTF16ToNSString(const string16& utf16, string16 has a length, ...
3 years, 10 months ago (2017-02-10 19:39:27 UTC) #47
allada
PTaL https://codereview.chromium.org/2656903005/diff/320001/base/strings/sys_string_conversions.h File base/strings/sys_string_conversions.h (right): https://codereview.chromium.org/2656903005/diff/320001/base/strings/sys_string_conversions.h#newcode71 base/strings/sys_string_conversions.h:71: BASE_EXPORT NSString* SysUTF16ToNSString(const string16& utf16, On 2017/02/10 19:39:27, ...
3 years, 10 months ago (2017-02-10 20:25:47 UTC) #49
pfeldman
https://codereview.chromium.org/2656903005/diff/360001/content/browser/devtools/protocol/native_input_event_builder.h File content/browser/devtools/protocol/native_input_event_builder.h (right): https://codereview.chromium.org/2656903005/diff/360001/content/browser/devtools/protocol/native_input_event_builder.h#newcode16 content/browser/devtools/protocol/native_input_event_builder.h:16: static gfx::NativeEvent Build(const NativeWebKeyboardEvent& event); These are the same, ...
3 years, 10 months ago (2017-02-10 22:59:08 UTC) #50
rohitrao (ping after 24h)
erikchen would be a better reviewer than me for event-related code.
3 years, 10 months ago (2017-02-13 19:20:31 UTC) #52
allada
PTL https://codereview.chromium.org/2656903005/diff/360001/content/browser/devtools/protocol/native_input_event_builder.h File content/browser/devtools/protocol/native_input_event_builder.h (right): https://codereview.chromium.org/2656903005/diff/360001/content/browser/devtools/protocol/native_input_event_builder.h#newcode16 content/browser/devtools/protocol/native_input_event_builder.h:16: static gfx::NativeEvent Build(const NativeWebKeyboardEvent& event); On 2017/02/10 22:59:07, ...
3 years, 10 months ago (2017-02-14 02:48:06 UTC) #54
allada
ping @erikchen
3 years, 10 months ago (2017-02-15 21:47:20 UTC) #58
erikchen
only reviewed content/ https://codereview.chromium.org/2656903005/diff/380001/content/browser/devtools/protocol/native_input_event_builder_mac.mm File content/browser/devtools/protocol/native_input_event_builder_mac.mm (right): https://codereview.chromium.org/2656903005/diff/380001/content/browser/devtools/protocol/native_input_event_builder_mac.mm#newcode24 content/browser/devtools/protocol/native_input_event_builder_mac.mm:24: textStartAddr + NativeWebKeyboardEvent::textLengthCap, '\0') - What ...
3 years, 10 months ago (2017-02-15 22:21:16 UTC) #59
allada
PTaL @erikchen https://codereview.chromium.org/2656903005/diff/380001/content/browser/devtools/protocol/native_input_event_builder_mac.mm File content/browser/devtools/protocol/native_input_event_builder_mac.mm (right): https://codereview.chromium.org/2656903005/diff/380001/content/browser/devtools/protocol/native_input_event_builder_mac.mm#newcode24 content/browser/devtools/protocol/native_input_event_builder_mac.mm:24: textStartAddr + NativeWebKeyboardEvent::textLengthCap, '\0') - On 2017/02/15 ...
3 years, 10 months ago (2017-02-17 18:30:58 UTC) #60
erikchen
https://codereview.chromium.org/2656903005/diff/380001/content/browser/devtools/protocol/native_input_event_builder_mac.mm File content/browser/devtools/protocol/native_input_event_builder_mac.mm (right): https://codereview.chromium.org/2656903005/diff/380001/content/browser/devtools/protocol/native_input_event_builder_mac.mm#newcode24 content/browser/devtools/protocol/native_input_event_builder_mac.mm:24: textStartAddr + NativeWebKeyboardEvent::textLengthCap, '\0') - On 2017/02/17 18:30:58, allada ...
3 years, 10 months ago (2017-02-17 19:15:50 UTC) #61
pfeldman
ping
3 years, 10 months ago (2017-02-23 01:11:24 UTC) #62
erikchen
On 2017/02/23 01:11:24, pfeldman wrote: > ping I asked a question that was never responded ...
3 years, 10 months ago (2017-02-23 01:39:06 UTC) #63
pfeldman
(Yes, I was pinging allada@, sorry for the confusion!)
3 years, 9 months ago (2017-02-27 17:49:28 UTC) #64
allada
PTaL @erikchen Sorry for the long delay, I had some stuff I had to get ...
3 years, 9 months ago (2017-03-06 23:34:34 UTC) #65
allada
I'm getting pinged about this because it's blocking others. Can I get another review?
3 years, 6 months ago (2017-06-08 23:39:01 UTC) #66
erikchen
lgtm
3 years, 6 months ago (2017-06-08 23:48:53 UTC) #67
dgozman
devtools lgtm https://codereview.chromium.org/2656903005/diff/400001/third_party/WebKit/Source/devtools/front_end/Tests.js File third_party/WebKit/Source/devtools/front_end/Tests.js (right): https://codereview.chromium.org/2656903005/diff/400001/third_party/WebKit/Source/devtools/front_end/Tests.js#newcode713 third_party/WebKit/Source/devtools/front_end/Tests.js:713: SDK.multitargetConsoleModel.addEventListener(SDK.ConsoleModel.Events.MessageAdded, onConsoleMessage, this); This is ConsoleModel.consoleModel now.
3 years, 6 months ago (2017-06-08 23:52:27 UTC) #68
allada
done https://codereview.chromium.org/2656903005/diff/400001/third_party/WebKit/Source/devtools/front_end/Tests.js File third_party/WebKit/Source/devtools/front_end/Tests.js (right): https://codereview.chromium.org/2656903005/diff/400001/third_party/WebKit/Source/devtools/front_end/Tests.js#newcode713 third_party/WebKit/Source/devtools/front_end/Tests.js:713: SDK.multitargetConsoleModel.addEventListener(SDK.ConsoleModel.Events.MessageAdded, onConsoleMessage, this); On 2017/06/08 23:52:27, dgozman wrote: ...
3 years, 6 months ago (2017-06-09 18:19:00 UTC) #69
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2656903005/440001
3 years, 6 months ago (2017-06-09 18:48:40 UTC) #77
commit-bot: I haz the power
Committed patchset #6 (id:440001) as https://chromium.googlesource.com/chromium/src/+/fa84ab9619de73a61d305c7459fc186e99b0d291
3 years, 6 months ago (2017-06-09 20:52:24 UTC) #80
Nico
3 years, 6 months ago (2017-06-10 18:10:30 UTC) #81
Message was sent while issue was closed.
A revert of this CL (patchset #6 id:440001) has been created in
https://codereview.chromium.org/2932223002/ by thakis@chromium.org.

The reason for reverting is: Speculative, might have caused
https://crbug.com/732053.

Powered by Google App Engine
This is Rietveld 408576698