New issue
Advanced search Search tips

Issue 870341 link

Starred by 4 users

Issue metadata

Status: Fixed
Owner:
Closed: Aug 3
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 1
Type: Bug



Sign in to add a comment

Left-clicking textbox selects a word

Project Member Reported by ellyjo...@chromium.org, Aug 2

Issue description

A left-click in the omnibox while editing selects an entire word in 70.0.3510.0. This doesn't happen in other textfields, or in the omnibox when not editing.

1. Click in the omnibox to focus it (if necessary)
2. Type "abc def"
3. Left-click on "abc" - it gets selected.
 
SelectionController::OnMousePressed is called twice per click. First stack:

0   libbase.dylib                       0x000000011275ce9c base::debug::StackTrace::StackTrace(unsigned long) + 28
1   libviews.dylib                      0x000000011b139862 views::SelectionController::OnMousePressed(ui::MouseEvent const&, bool, views::SelectionController::InitialFocusStateOnMousePress) + 226
2   libchrome_dll.dylib                 0x000000010c5a21b7 OmniboxViewViews::OnMousePressed(ui::MouseEvent const&) + 135
3   libviews.dylib                      0x000000011b142dc4 views::View::ProcessMousePressed(ui::MouseEvent const&) + 260
4   libviews.dylib                      0x000000011b142bf6 views::View::OnMouseEvent(ui::MouseEvent*) + 54
5   libevents.dylib                     0x00000001195925de ui::EventDispatcher::ProcessEvent(ui::EventTarget*, ui::Event*) + 238
6   libevents.dylib                     0x00000001195922fe ui::EventDispatcherDelegate::DispatchEvent(ui::EventTarget*, ui::Event*) + 222
7   libviews.dylib                      0x000000011b14f8ef views::internal::RootView::OnMousePressed(ui::MouseEvent const&) + 735
8   libviews.dylib                      0x000000011b156e92 views::Widget::OnMouseEvent(ui::MouseEvent*) + 274
9   libchrome_dll.dylib                 0x000000010c5a596c non-virtual thunk to (anonymous namespace)::TopBackgroundView::OnMouseEvent(ui::MouseEvent*) + 60
10  libevents.dylib                     0x00000001195925de ui::EventDispatcher::ProcessEvent(ui::EventTarget*, ui::Event*) + 238
11  libevents.dylib                     0x00000001195922fe ui::EventDispatcherDelegate::DispatchEvent(ui::EventTarget*, ui::Event*) + 222
12  libviews.dylib                      0x000000011b14f8ef views::internal::RootView::OnMousePressed(ui::MouseEvent const&) + 735
13  libviews.dylib                      0x000000011b156e92 views::Widget::OnMouseEvent(ui::MouseEvent*) + 274
14  libviews.dylib                      0x000000011b0ae1eb -[BridgedContentView mouseEvent:] + 235
15  AppKit                              0x00007fff32215d6d -[NSWindow(NSEventRouting) _handleMouseDownEvent:isDelayedEvent:] + 5891
16  AppKit                              0x00007fff322129c4 -[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:] + 2359
17  AppKit                              0x00007fff32211c70 -[NSWindow(NSEventRouting) sendEvent:] + 497
18  libviews.dylib                      0x000000011b0bac11 -[NativeWidgetMacNSWindow sendEvent:] + 161
19  AppKit                              0x00007fff32073236 -[NSApplication(NSEvent) sendEvent:] + 2462
20  libchrome_dll.dylib                 0x000000010add3cac __34-[BrowserCrApplication sendEvent:]_block_invoke + 172
21  libbase.dylib                       0x0000000112661e4a base::mac::CallWithEHFrame(void () block_pointer) + 10
22  libchrome_dll.dylib                 0x000000010add395d -[BrowserCrApplication sendEvent:] + 797
23  AppKit                              0x00007fff318d38b5 -[NSApplication run] + 812
24  libbase.dylib                       0x000000011268079c base::MessagePumpNSApplication::DoRun(base::MessagePump::Delegate*) + 364
25  libbase.dylib                       0x000000011267ea0e base::MessagePumpCFRunLoopBase::Run(base::MessagePump::Delegate*) + 110
26  libbase.dylib                       0x00000001126796f4 base::MessageLoop::Run(bool) + 132
27  libbase.dylib                       0x00000001126b8be9 base::RunLoop::Run() + 249
28  libchrome_dll.dylib                 0x000000010add9e8b ChromeBrowserMainParts::MainMessageLoopRun(int*) + 267
29  libcontent.dylib                    0x0000000114f0bf14 content::BrowserMainLoop::RunMainMessageLoopParts() + 52
30  libcontent.dylib                    0x0000000114f0efb6 content::BrowserMainRunnerImpl::Run() + 102
31  libcontent.dylib                    0x0000000114f082c9 content::BrowserMain(content::MainFunctionParams const&) + 233
32  libcontent.dylib                    0x0000000115b1546d content::ContentMainRunnerImpl::Run(bool) + 1005
33  libembedder.dylib                   0x00000001121a813c service_manager::Main(service_manager::MainParams const&) + 3036
34  libcontent.dylib                    0x0000000115b14594 content::ContentMain(content::ContentMainParams const&) + 68
35  libchrome_dll.dylib                 0x000000010a6e4413 ChromeMain + 179
36  Chromium                            0x000000010a665de1 main + 385
37  libdyld.dylib                       0x00007fff5c227015 start + 1

Second stack:

0   libbase.dylib                       0x000000011275ce9c base::debug::StackTrace::StackTrace(unsigned long) + 28
1   libviews.dylib                      0x000000011b139862 views::SelectionController::OnMousePressed(ui::MouseEvent const&, bool, views::SelectionController::InitialFocusStateOnMousePress) + 226
2   libchrome_dll.dylib                 0x000000010c5a21b7 OmniboxViewViews::OnMousePressed(ui::MouseEvent const&) + 135
3   libviews.dylib                      0x000000011b142dc4 views::View::ProcessMousePressed(ui::MouseEvent const&) + 260
4   libviews.dylib                      0x000000011b142bf6 views::View::OnMouseEvent(ui::MouseEvent*) + 54
5   libevents.dylib                     0x00000001195925de ui::EventDispatcher::ProcessEvent(ui::EventTarget*, ui::Event*) + 238
6   libevents.dylib                     0x00000001195922fe ui::EventDispatcherDelegate::DispatchEvent(ui::EventTarget*, ui::Event*) + 222
7   libviews.dylib                      0x000000011b14f6e1 views::internal::RootView::OnMousePressed(ui::MouseEvent const&) + 209
8   libviews.dylib                      0x000000011b156e92 views::Widget::OnMouseEvent(ui::MouseEvent*) + 274
9   libchrome_dll.dylib                 0x000000010c5a56c1 non-virtual thunk to RoundedOmniboxResultsFrame::OnMouseEvent(ui::MouseEvent*) + 65
10  libevents.dylib                     0x00000001195925de ui::EventDispatcher::ProcessEvent(ui::EventTarget*, ui::Event*) + 238
11  libevents.dylib                     0x00000001195922fe ui::EventDispatcherDelegate::DispatchEvent(ui::EventTarget*, ui::Event*) + 222
12  libviews.dylib                      0x000000011b14f8ef views::internal::RootView::OnMousePressed(ui::MouseEvent const&) + 735
13  libviews.dylib                      0x000000011b156e92 views::Widget::OnMouseEvent(ui::MouseEvent*) + 274
14  libviews.dylib                      0x000000011b0ae1eb -[BridgedContentView mouseEvent:] + 235
15  AppKit                              0x00007fff32215d6d -[NSWindow(NSEventRouting) _handleMouseDownEvent:isDelayedEvent:] + 5891
16  AppKit                              0x00007fff322129c4 -[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:] + 2359
17  AppKit                              0x00007fff32211c70 -[NSWindow(NSEventRouting) sendEvent:] + 497
18  libviews.dylib                      0x000000011b0bac11 -[NativeWidgetMacNSWindow sendEvent:] + 161
19  AppKit                              0x00007fff32073236 -[NSApplication(NSEvent) sendEvent:] + 2462
20  libchrome_dll.dylib                 0x000000010add3cac __34-[BrowserCrApplication sendEvent:]_block_invoke + 172
21  libbase.dylib                       0x0000000112661e4a base::mac::CallWithEHFrame(void () block_pointer) + 10
22  libchrome_dll.dylib                 0x000000010add395d -[BrowserCrApplication sendEvent:] + 797
23  AppKit                              0x00007fff318d38b5 -[NSApplication run] + 812
24  libbase.dylib                       0x000000011268079c base::MessagePumpNSApplication::DoRun(base::MessagePump::Delegate*) + 364
25  libbase.dylib                       0x000000011267ea0e base::MessagePumpCFRunLoopBase::Run(base::MessagePump::Delegate*) + 110
26  libbase.dylib                       0x00000001126796f4 base::MessageLoop::Run(bool) + 132
27  libbase.dylib                       0x00000001126b8be9 base::RunLoop::Run() + 249
28  libchrome_dll.dylib                 0x000000010add9e8b ChromeBrowserMainParts::MainMessageLoopRun(int*) + 267
29  libcontent.dylib                    0x0000000114f0bf14 content::BrowserMainLoop::RunMainMessageLoopParts() + 52
30  libcontent.dylib                    0x0000000114f0efb6 content::BrowserMainRunnerImpl::Run() + 102
31  libcontent.dylib                    0x0000000114f082c9 content::BrowserMain(content::MainFunctionParams const&) + 233
32  libcontent.dylib                    0x0000000115b1546d content::ContentMainRunnerImpl::Run(bool) + 1005
33  libembedder.dylib                   0x00000001121a813c service_manager::Main(service_manager::MainParams const&) + 3036
34  libcontent.dylib                    0x0000000115b14594 content::ContentMain(content::ContentMainParams const&) + 68
35  libchrome_dll.dylib                 0x000000010a6e4413 ChromeMain + 179
36  Chromium                            0x000000010a665de1 main + 385
37  libdyld.dylib                       0x00007fff5c227015 start + 1
Owner: a...@chromium.org
Mac triage: actually, over to Avi. This one's pretty bad so let's aim to merge a fix to M69 if we can.
Status: Started (was: Assigned)
Definitely my https://chromium-review.googlesource.com/1144225 fix for the shadow overlap.
My understanding was incorrect. Even though the TopBackgroundView has mouse event handling, OnMouseEvent is getting double-processed.
Project Member

Comment 5 by bugdroid1@chromium.org, Aug 3

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/4bbcb6d9a77ca05e2cb7ab2cb8dde5beb8b3ab25

commit 4bbcb6d9a77ca05e2cb7ab2cb8dde5beb8b3ab25
Author: Avi Drissman <avi@chromium.org>
Date: Fri Aug 03 17:13:31 2018

Only process an omnibox click once when the results pane is showing.

BUG= 870341 
TEST=as in bug

Change-Id: Ia9ede9c30d95b9f569890eff242582129967dd11
Reviewed-on: https://chromium-review.googlesource.com/1161251
Reviewed-by: Leonard Grey <lgrey@chromium.org>
Commit-Queue: Avi Drissman <avi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#580577}
[modify] https://crrev.com/4bbcb6d9a77ca05e2cb7ab2cb8dde5beb8b3ab25/chrome/browser/ui/views/omnibox/rounded_omnibox_results_frame.cc

Labels: Proj-MacViews Merge-Request-69
Status: Fixed (was: Started)
Issue 870544 has been merged into this issue.
Project Member

Comment 8 by sheriffbot@chromium.org, Aug 4

Labels: -Merge-Request-69 Merge-Review-69 Hotlist-Merge-Review
This bug requires manual review: M69 has already been promoted to the beta branch, so this requires manual review
Please contact the milestone owner if you have questions.
Owners: amineer@(Android), kariahda@(iOS), cindyb@(ChromeOS), govind@(Desktop)

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Cc: ellyjo...@chromium.org
Labels: ReleaseBlock-Stable
How is the change listed at #5 looking canary? Is it safe to merge to M69?


"RBS" for M69 as this is P1 and blocking MacViews launch.
This is looking good on 70.0.3513.0 and was written to be a simple and safe merge.
Labels: -Merge-Review-69 Merge-Approved-69
Approving merge for CL listed at #5 to M69 branch 3497 based on comments #10. Please merge by 4:00 PM PT, Monday (08/06) so we can pick it up for next week M69 beta release. Thank you.
Project Member

Comment 12 by bugdroid1@chromium.org, Aug 5

Labels: -merge-approved-69 merge-merged-3497
The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/36e0a66898307b02953da55eea788ee39d7d9739

commit 36e0a66898307b02953da55eea788ee39d7d9739
Author: Avi Drissman <avi@chromium.org>
Date: Sun Aug 05 23:35:56 2018

Only process an omnibox click once when the results pane is showing.

BUG= 870341 
TEST=as in bug

Change-Id: Ia9ede9c30d95b9f569890eff242582129967dd11
Reviewed-on: https://chromium-review.googlesource.com/1161251
Reviewed-by: Leonard Grey <lgrey@chromium.org>
Commit-Queue: Avi Drissman <avi@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#580577}(cherry picked from commit 4bbcb6d9a77ca05e2cb7ab2cb8dde5beb8b3ab25)
Reviewed-on: https://chromium-review.googlesource.com/1163262
Reviewed-by: Avi Drissman <avi@chromium.org>
Cr-Commit-Position: refs/branch-heads/3497@{#404}
Cr-Branched-From: 271eaf50594eb818c9295dc78d364aea18c82ea8-refs/heads/master@{#576753}
[modify] https://crrev.com/36e0a66898307b02953da55eea788ee39d7d9739/chrome/browser/ui/views/omnibox/rounded_omnibox_results_frame.cc

Sign in to add a comment