[Webkit-unassigned] [Bug 114745] New: Browser crashes on shift-click when using -webkit-user-select: none;

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Apr 17 08:40:29 PDT 2013


https://bugs.webkit.org/show_bug.cgi?id=114745

           Summary: Browser crashes on shift-click when using
                    -webkit-user-select: none;
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Macintosh
        OS/Version: Mac OS X 10.8
            Status: UNCONFIRMED
          Severity: Major
          Priority: P2
         Component: Event Handling
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: bjnortier at shapesmith.net


I have an example where "-webkit-user-select: none;" interacts with a shift-click and crashes the browser (Webkit or Safari or Chrome).

This happens if a focussed input field is deleted, and a subsequent shift-click is performed (normally a shift-click would select all text up to the cursor)

Steps to reproduce:
1. Open the attached html file in Webkit/Safari/Chrome, or use the html below
2. Click in the input field to give it focus
3. Press any key (this event will remove the input element)
4. SHIFT + click anywhere in the window

VERSIONS: Webkit 6.0.4 (8536.29.13, 537+), Chrome 28.0.1481.0 canary, Chrome 26.0.1410.65
PLATFORM: Mac
OS: OS X 10.8.3


<!DOCTYPE html>
<html >
<head>

    <style type="text/css">
        body {
            -webkit-user-select: none;
        }
    </style>

</head>
<body>

    1. Click here to focus -> <input id="a"/><br/>
    2. Press any key (the input will be deleted)<br/>
    3. SHIFT + click anywhere<br/>

    <script type="text/javascript">
        var a = document.getElementById('a');
        a.addEventListener('keyup', function(event) {
           document.body.removeChild(a);
        }, false);
    </script>

</body>

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list