Closed Bug 250067 Opened 20 years ago Closed 20 years ago

cannot mark text on website

Categories

(Core :: DOM: Selection, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: floeff, Unassigned)

References

()

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; de-DE; rv:1.7) Gecko/20040626 Firefox/0.9.1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; de-DE; rv:1.7) Gecko/20040626 Firefox/0.9.1

I cannot mark text on the above website. Works fine with Opera and IE.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Assignee: bugs → selection
Component: Web Site → Selection
Product: Firefox → Browser
Version: unspecified → Trunk
Is this at all valid..

The site loads this script to prevent selection and context menus:

<script language="JavaScript">
document.oncontextmenu = function(){return false}
if(document.layers) {
    window.captureEvents(Event.MOUSEDOWN);
    window.onmousedown = function(e){
        if(e.target==document)return false;
    }
}
else {
    document.onmousedown = function(){return false}
}
</script>


You can prevent sites from blocking at least the context menu in preferences:

Edit->Preferences->Advanced->Scripts & Plugins:
Uncheck "Allow Scripts to...": "Disable or replace context menus"

Reload and you can use "select all" and "copy" from the context menu.

If you disable javascript entirely (for the browser), you can select as you wish
on the page.
Oh, sorry, didn't notice that. Then the other browsers make mistakes. ;)
are the other browsers javascript enabled?
Related: bug 174795
a workaround: see http://bugzilla.mozilla.org/show_bug.cgi?id=167396#c11
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
They are.
You need to log in before you can comment on or make changes to this bug.