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

Issue 602541 link

Starred by 4 users

Issue metadata

Status: Fixed
Owner:
Last visit 29 days ago
Closed: Apr 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 1
Type: Bug-Regression



Sign in to add a comment

Regression : In devtools, page goes unresponsive after dragging the devtools window from left to right.

Reported by mni...@etouch.net, Apr 12 2016

Issue description

Chrome Version : 51.0.2704.4 5bcb06bd733f10474ea2f719aa594b13883a393e-refs/branch-heads/2704@{#6} (32/64-bit)
OS : All(Win 7 aero enabled).

What steps will reproduce the problem?
1. Launch chrome, open NTP and go to devtools.
2. Now select emulated view and open 'Sources' section and drag the devtools window from Left to right.
3. Now try to click any where on the page and observe.

Actual: Page goes unresponsive after dragging the devtools window from left to right.
Expected: Page should not go unresponsive after dragging the devtools window from left to right.

This is a regression issue broken in 'M-51' and below is the manual regression and Narrow bisect info :
Good Build: 51.0.2702.0
Bad Build:  51.0.2704.0

Narrow bisect:
https://chromium.googlesource.com/chromium/src/+log/0b46091cb37b8fdd73a02675e2ab86850d51cb09..c0dfd6b2d5be7951bc1dfa61053f67d2514889f5?pretty=fuller&n=100

Suspecting: r385872  from Narrow bisect

@lushnikov : Kindly help to re-assign, if your changes are not cause for this issue.

	
 
Actual_video.mp4
609 KB Download
Expected_video.mp4
781 KB Download
Labels: ReleaseBlock-Stable
Adding release block label, please undo if not the case.
This happens due to exception in the following code:

/**
 * @return {boolean}
 */
Element.prototype.isInsertionCaretInside = function()
{
    var selection = this.getComponentSelection();
    if (!selection.rangeCount || !selection.isCollapsed)
        return false;
    var selectionRange = selection.getRangeAt(0);
    return selectionRange.startContainer.isSelfOrDescendant(this);
}

The code assumes that the selectionRange is not a null, since selection.rangeCount is non-zero.
However, this is not the case, and thus an exception in the main thread is thrown.


Status: Started (was: Assigned)
https://codereview.chromium.org/1881233002/
Labels: M-50
This should be merged to M-50 and M-51.
Project Member

Comment 5 by bugdroid1@chromium.org, Apr 13 2016

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

commit 7eb9fc98d4038fc256ab580bb7f61ce796117d68
Author: lushnikov <lushnikov@chromium.org>
Date: Wed Apr 13 22:21:51 2016

DevTools: workaround bug in Blink selection API

The patch works around the bug in the blink selection API, when the
selection.rangeCount returns 1, but selection.getRangeAt(0) still returns
null.

BUG= 602541 ,  595100 
R=dgozman, pfeldman_ooo

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

Cr-Commit-Position: refs/heads/master@{#387121}

[modify] https://crrev.com/7eb9fc98d4038fc256ab580bb7f61ce796117d68/third_party/WebKit/Source/devtools/front_end/platform/DOMExtension.js

Cc: lushnikov@chromium.org durga.behera@chromium.org ajha@chromium.org kavvaru@chromium.org alph@chromium.org brajkumar@chromium.org
 Issue 602247  has been merged into this issue.
Labels: TE-Verified-M52 TE-Verified-52.0.2709.0
Tested on Windows and Mac on version 52.0.2709.0 - Page is responsive when dragging devtools from left to right as shown in screenshot. please note that this issue not verified on linux.
Expected.png
229 KB View Download
Labels: -M-50 Merge-Request-51
Verified working on Mac Chrome Canary 52.0.2709.0
Luckily, the current Beta 50 seems to be not affected - so would be nice to merge to 51 only.

Comment 9 by gov...@chromium.org, Apr 15 2016

Labels: -Merge-Request-51 Merge-Approved-51
Approving merge to M51 branch 2704 based on Comment #7 & #8.

Comment 10 Deleted

Please merge your change to M51 branch 2704 ASAP (before 5:00 PM PST, today) so we can take it in for M51 last Dev release tomorrow.
Project Member

Comment 12 by bugdroid1@chromium.org, Apr 18 2016

Labels: -merge-approved-51 merge-merged-2704
The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/fd81d5ade7fec37084a344302667df257eb25993

commit fd81d5ade7fec37084a344302667df257eb25993
Author: Andrey Lushnikov <lushnikov@chromium.org>
Date: Mon Apr 18 22:25:50 2016

DevTools: workaround bug in Blink selection API

The patch works around the bug in the blink selection API, when the
selection.rangeCount returns 1, but selection.getRangeAt(0) still returns
null.

BUG= 602541 ,  595100 
R=dgozman, pfeldman_ooo

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

(cherry picked from commit 7eb9fc98d4038fc256ab580bb7f61ce796117d68)

Cr-Original-Commit-Position: refs/heads/master@{#387121}
Cr-Commit-Position: refs/branch-heads/2704@{#114}
Cr-Branched-From: 6e53600def8f60d8c632fadc70d7c1939ccea347-refs/heads/master@{#386251}

[modify] https://crrev.com/fd81d5ade7fec37084a344302667df257eb25993/third_party/WebKit/Source/devtools/front_end/platform/DOMExtension.js

Status: Fixed (was: Started)
Labels: TE-Verified-51.0.2704.19 TE-Verified-M51
Verified the issue on Windows 7, Ubuntu 14.04 and Mac OS 10.11.4 using chrome latest Dev M51-51.0.2704.19. Observed the Dev tools are totally responsive and able to click menus after dragging the windows left to right. Hence adding TE-Verified label.
Devtools.mp4
1.1 MB Download

Sign in to add a comment