New issue
Advanced search Search tips

Issue 661771 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: Apr 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug
M56

Blocked on:
issue 372245

Blocking:
issue 651853



Sign in to add a comment

Odd combination of video, track, and textarea elements leads to a crash

Reported by adamjmci...@gmail.com, Nov 2 2016

Issue description

UserAgent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36

Steps to reproduce the problem:
1. Check this fiddle: https://jsfiddle.net/_ajm/r717hqus/13/
2. Attempt to select text in the textarea
3. The tab will crash

What is the expected behavior?
The user should be able to select textarea text.

What went wrong?
This is a reduced case based on something we noticed happening in a production app. In our app, we have a video and textarea appearing in an overlay. When users click in the textarea for any reason (to select text, just because they happened to), that tab will crash.

I can fix the issue in the test case in any of the following ways:
1. Remove display: table from the outer containing div. (I've done this in our app as that container doesn't need that type of display set.)
2. Remove the track element entirely.
3. Remove the default attribute from the track element.
4. Set the display of the video element to inline-block.

Doing any one of these things in the reduced test case in the fiddle will cause the issue not to appear. It seems like there's some weird interplay between display: table and the track element or the track element and event handling on the textarea, as odd as that sounds.

Did this work before? N/A 

Does this work in other browsers? N/A

Chrome version: 54.0.2840.71  Channel: n/a
OS Version: 6.3
Flash Version: Shockwave Flash 23.0 r0

This certainly isn't a major issue by any means, but it seems very odd and the ways that I've found to resolve it seem even odder. I figured it was worth reporting.
 
Cc: jmukthavaram@chromium.org
Components: Blink>Forms>Textarea
Labels: M56
Status: Untriaged (was: Unconfirmed)
Able to reproduce this issue on windows 10, Mac 10.11.4,Linux Ubuntu 14.04 with Chrome stable version-53.0.2785.143 and Canary.

Manual Bisect:
--------------
Bad Build—43.0.2340.0-Revision(321672)

Good Build—43.0.2339.0-Revison(321544)

Bisect Tool Info:
--------------------
You are probably looking for a change made after 321638 (known good), but no later than 321662 (first known bad).

NOTE: There is a Blink roll in the range, you might also want to do a Blink bisect.

CHANGELOG URL:
  https://chromium.googlesource.com/chromium/src/+log/f13db8145e325782133a16f4317242602eab480a..a9114da32c8ecf1eb8a80ba609290c09bbad1300


Blink Bisect CL:
------------------------
http://build.chromium.org/f/chromium/perf/dashboard/ui/changelog_blink.html?url=/trunk&range=192267%3A192260

Unable to find the suspect from the above CL's .Can anyone from dev team please look into this issue.

Thanks.!

Comment 2 by tkent@chromium.org, Nov 4 2016

Components: -Blink>Forms>Textarea Blink>Editing>Selection
Labels: Needs-Feedback
Can you provide a crash ID?
https://www.chromium.org/for-testers/bug-reporting-guidelines/reporting-crash-bug

Comment 3 by yosin@chromium.org, Nov 7 2016

Status: Available (was: Untriaged)
In debug build, we hit DCHECK(!document.needsLayoutTreeUpdate()); during LayoutView::commitPendingSelection()
Due by font-size CSS property change in LayoutTextTrackContainer::layout()

Here is automated test case:

<style>
div{
    background: rgba(0, 0, 0, 0.45);
    height: 100%;
    display: table;
    position: fixed;
    width: 100%;
}

video, textarea{
    display: block;
    height: 45%;
    margin: 2.5% auto;
}
</style>
<div><video><track default></video><textarea>hello world

asdfasdf
</textarea></div>
<script>
document.querySelector('textarea').focus();
document.querySelector('textarea').setSelectionRange(0, 20);
</script>

Components: -Blink>Editing>Selection Blink>CSS Blink>Layout Blink>Media
Labels: -Needs-Feedback
Mergedinto: 696561
Status: Duplicate (was: Available)
Status: Available (was: Duplicate)
I think this bug is different from bug 696561, though this is also a lifecycle violation. The fix method might be very different.
Blocking: 651853
Labels: Update-Weekly

Comment 8 by suzyh@chromium.org, Mar 27 2017

Components: -Blink>CSS -Blink>Layout
Labels: -Update-Weekly
Status: Untriaged (was: Available)
It's not clear that this is a CSS (or layout) issue. Blink>Media folks, can you triage this please?
Cc: f...@opera.com mlamouri@chromium.org
+fs@ would removing LayoutTextTrackContainer solve this issue?

Comment 10 by f...@opera.com, Apr 9 2017

Blockedon: 372245
Sounds likely, I'll set it to block on  issue 372245  (fix will land RSN.) Would be good to know what's causing the crash though - a CHECK somewhere?
fs@, yes the crash is caused by a CHECK(), see comment #3.

Comment 12 by f...@opera.com, Apr 10 2017

No, that's a DCHECK - which wouldn't crash in a release in build (which I assume the reporter was running.) So presumably something CHECKs (sans the 'D' prefix) something else/related later on, which causes the crash. It's good to know the exact crash (and whether it's "controlled" or not.)
Just tried on trunk with a non-debug build and it doesn't crash. Possibly the CHECK() was changed/removed or whatever underlying bug was fix as the Chrome version from OP was 54.
Status: WontFix (was: Untriaged)
This has indeed been fixed by  bug 372245 .

Sign in to add a comment