Scripted event handlers run in designMode documents, even though "scripts are disabled"

RESOLVED INVALID

Status

()

RESOLVED INVALID
6 years ago
5 years ago

People

(Reporter: jruderman, Unassigned)

Tracking

({testcase})

Trunk
x86_64
Mac OS X
testcase
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

6 years ago
Created attachment 692901 [details]
testcase based on Martijn's

It seems bug 386495 was not fixed completely:

When setting designMode to 'on', timers and onclick attributes are disabled, but event listeners installed using addEventListener remain active.  (And the original script continues running as well, which may or may not be a bug.)

See also bug 765780, where we are considering changing our policy, and just allowing scripts to run in designMode.
I think this is a dup.
Indeed.  And one that might get fixed by 822470.
Depends on: 822470
Whiteboard: DUPEME
We no longer disable script in designmode documents.
Status: NEW → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → INVALID

Updated

5 years ago
Whiteboard: DUPEME
You need to log in before you can comment on or make changes to this bug.