New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 609020 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
Closed: Jun 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows
Pri: 1
Type: Bug-Regression

Blocked on:
issue 255



Sign in to add a comment

Regression: Urls of synced history doesn't open in newtab on using mid click

Project Member Reported by sc00335...@techmahindra.com, May 4 2016

Issue description

Version: 52.0.2724.0 dev
OS: Ubunut 12.04,14.04,windows

What steps will reproduce the problem?
(1) Sign in to chrome so that synced history is seen in chrome://history
(2) Now midclick using mouse wheel on any of the url in synced history and observe

Expected: On using midclick url should be opened in new tab.
Actual: Instead nothing happens on using midclick.

Note: 1.This works fine with normal history[which is not synced] 
2. Double clicking opens urls in new tab.[Both synced and non-synced]

This is a regression issue broken in M52.

Good Build: 52.0.2718.0 dev
Bad Build: 52.0.2719.0 dev

Unable to tool bisect as we can't sign in to chromium builds to check synced history.
Hence providing manual changelog

Cr: https://chromium.googlesource.com/chromium/src/+log/52.0.2718.0..52.0.2719.0?pretty=fuller&n=10000

Suspecting https://codereview.chromium.org/1894253002 from changelog

@nzolghadr: Please help in re-assigning if it is not related to your change.

 
Actual_history.ogv
689 KB Download
Expected_history.ogv
532 KB Download
Able to reproduce the issue on Mac 10.11.4 using 52.0.2724.0.
Cc: dtapu...@chromium.org
Cc: nyerramilli@chromium.org
just to update, able to reproduce the issue on Win7, Ubuntu 14.04 using Chrome # 52.0.2735.0

nzolghadr@ could you please check and update.
There is a similar issue in new tap page and I was just waiting that CL to land and hopefully share the same logic for this CL as well.
Blockedon: 255
Just to update:

Able to reproduce the issue on win8.1 using chrome version canary 52.0.2741.0
Still able to reproduce the issue on Windows 7, Ubuntu 14.04 using 52.0.2743.3.
Cc: rnimmagadda@chromium.org
Just to update.

Still able to repro this issue on Windows 7 using the Chrome Canary Version - 53.0.2751.0 
Project Member

Comment 9 by bugdroid1@chromium.org, Jun 2 2016

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

commit a154aed1a3813cf28c6f477579ed7974a2528570
Author: nzolghadr <nzolghadr@chromium.org>
Date: Thu Jun 02 21:37:13 2016

Fix history page middle click action

Send synthetic middle click in history page and also
prevent default it as the links in history page will
trigger twice if we don't prevent default it.

BUG= 609020 
CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:closure_compilation

Review-Url: https://codereview.chromium.org/2018943003
Cr-Commit-Position: refs/heads/master@{#397512}

[modify] https://crrev.com/a154aed1a3813cf28c6f477579ed7974a2528570/chrome/browser/resources/history/history.js
[modify] https://crrev.com/a154aed1a3813cf28c6f477579ed7974a2528570/chrome/browser/resources/ntp4/new_tab.html
[rename] https://crrev.com/a154aed1a3813cf28c6f477579ed7974a2528570/chrome/browser/resources/synthetic_middleclick.js

Labels: Merge-Request-52

Comment 11 by tin...@google.com, Jun 6 2016

Labels: -Merge-Request-52 Merge-Approved-52 Hotlist-Merge-Approved
Your change meets the bar and is auto-approved for M52 (branch: 2743)
Project Member

Comment 12 by bugdroid1@chromium.org, Jun 6 2016

Labels: -merge-approved-52 merge-merged-2743
The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/20cd211911527a6aa2c20486738a9870a0b40824

commit 20cd211911527a6aa2c20486738a9870a0b40824
Author: Dave Tapuska <dtapuska@chromium.org>
Date: Mon Jun 06 18:31:02 2016

Fix history page middle click action

Send synthetic middle click in history page and also
prevent default it as the links in history page will
trigger twice if we don't prevent default it.

BUG= 609020 
CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:closure_compilation

Review-Url: https://codereview.chromium.org/2018943003
Cr-Commit-Position: refs/heads/master@{#397512}
(cherry picked from commit a154aed1a3813cf28c6f477579ed7974a2528570)

Review URL: https://codereview.chromium.org/2040813003 .

Cr-Commit-Position: refs/branch-heads/2743@{#242}
Cr-Branched-From: 2b3ae3b8090361f8af5a611712fc1a5ab2de53cb-refs/heads/master@{#394939}

[modify] https://crrev.com/20cd211911527a6aa2c20486738a9870a0b40824/chrome/browser/resources/history/history.js
[modify] https://crrev.com/20cd211911527a6aa2c20486738a9870a0b40824/chrome/browser/resources/ntp4/new_tab.html
[rename] https://crrev.com/20cd211911527a6aa2c20486738a9870a0b40824/chrome/browser/resources/synthetic_middleclick.js

Labels: TE-Verified-52.0.2743.33 TE-Verified-M52
Tested the issue on windows 7, Linux Ubuntu 14.04 using chrome version 52.0.2743.33.able to open the synced URLs with mouse middle click.
Please find the attached screen cast for the same.

Adding TE-Verified label.

Thanks,
609020.mp4
866 KB View Download
Status: Fixed (was: Assigned)
Labels: Hotlist-Input-Dev

Comment 16 Deleted

The "click" event is no longer dispatched for non-primary buttons as per UI events spec. This will ensure the pages that don't check the buttons attribute on their click handlers don't show unexpected behaviors when middle clicking for example.
Instead there will be new event "auxclick" event for non-primary buttons that will be useful for some apps that truly care about click action for non-primary buttons. For example in case someone wants to prevent opening a new tab when middle clicking a link or adobt any other actions on click behavior of any non-primary button. Here is the spec for the event and some examples:
https://navidz.github.io/auxclick/
Labels: auxclick

Sign in to add a comment