Closed Bug 864155 Opened 11 years ago Closed 7 years ago

Click on the right/bottom border of panel will select the content

Categories

(Add-on SDK Graveyard :: General, defect, P3)

defect

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: beringstrait, Unassigned)

References

Details

(Keywords: css-moz)

User Agent: Mozilla/5.0 (Windows NT 6.2; Win64; x64; rv:23.0) Gecko/20130421 Firefox/23.0
Build ID: 20130421031002

Steps to reproduce:

1. Create a widget with a panel using following code:
    require("sdk/widget").Widget({
        id: "foo",
        label: "foo",
        content: "bar",
        panel: require("sdk/panel").Panel({
            width: 220,
            height: 136,
            contentURL: require("sdk/self").data.url("panel.html")
        })
    });
and the panel.html
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
    <style>
        .html, .body {
            width: 100%;
            height: 100%;
            margin: 0;
        }
        
        * {
            -moz-user-select: none !important;
        }
    </style>
</head>
<body>
    <div>Foo</div>
    <div>Bar</div>
</body>
</html>
2. Install the addon and click on the widget, the panel popups, then click on the right/bottom border of the panel.


Actual results:

All contents are selected.
If there is no "-moz-user-select: none" property, the click will insert a cursor at the end of the contents.


Expected results:

In panel.html, all elements has "-moz-user-select: none" property, they won't be selected.
Keywords: css-moz
https://bugzilla.mozilla.org/show_bug.cgi?id=1399562
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.