Closed Bug 121171 Opened 23 years ago Closed 23 years ago

nsJSEnvironment::CallEventHandler ignores mScriptsEnabled

Categories

(Core :: DOM: Core & HTML, defect)

x86
All
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla0.9.9

People

(Reporter: rginda, Assigned: rginda)

References

Details

Attachments

(1 file)

I'm trying to call nsIScriptContext::SetScriptsEnabled(NS_FALSE) to disable the
debug target while we're stopped.  This isn't working because
jsJSEnvironment::CallEventHandler ignores the current state of mScriptsEnabled.

Patch coming up.
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla0.9.9
Seems like the right thing to do as long as this doesn't cause chrome event
handlers to break (like right click n' such) when scripts are disabled.
With JavaScript disabled I can still bring up context menus over content,
everything else looks fine too.
Comment on attachment 65949 [details] [diff] [review]
patch to nsJSEnvironment.cpp

sr=jst
Attachment #65949 - Flags: superreview+
thanks jst, anyone free to r=?
Comment on attachment 65949 [details] [diff] [review]
patch to nsJSEnvironment.cpp

r=brendan@mozilla.org for 0.9.9.

/be
Attachment #65949 - Flags: review+
Blocks: 121318
Blocks: 120746
checked in
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
*** Bug 85242 has been marked as a duplicate of this bug. ***
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: