Last Comment Bug 383383 - Remove nsIScriptEventManager and nsIScriptEventHandler
: Remove nsIScriptEventManager and nsIScriptEventHandler
: dev-doc-complete
Product: Core
Classification: Components
Component: DOM (show other bugs)
: Trunk
: All All
-- enhancement (vote)
: mozilla7
Assigned To: Matheus Kerschbaum
: Andrew Overholt [:overholt]
Depends on: 662023
  Show dependency treegraph
Reported: 2007-06-05 15:33 PDT by Olli Pettay [:smaug]
Modified: 2011-09-08 05:22 PDT (History)
9 users (show)
Ms2ger: in‑testsuite+
See Also:
Crash Signature:
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---

patch (37.43 KB, patch)
2011-03-20 21:40 PDT, Matheus Kerschbaum
bugs: review-
Details | Diff | Splinter Review
patch v2 (33.46 KB, patch)
2011-06-24 03:04 PDT, Matheus Kerschbaum
bugs: review+
Details | Diff | Splinter Review
test (1.97 KB, patch)
2011-06-28 11:48 PDT, Matheus Kerschbaum
bugs: review+
Details | Diff | Splinter Review
Followup (1.93 KB, patch)
2011-07-02 12:21 PDT, :Ms2ger (⌚ UTC+1/+2)
bugs: review+
Details | Diff | Splinter Review

Description User image Olli Pettay [:smaug] 2007-06-05 15:33:32 PDT
nsIScriptEventManager is used only by activex component. If that
component wants to support <script for="foo" event="bar"> it should
implement the functionality outside content/. Adding some hooks to
script element handling may be needed.
Comment 1 User image Matheus Kerschbaum 2011-03-20 21:40:05 PDT
Created attachment 520597 [details] [diff] [review]
Comment 2 User image Boris Zbarsky [:bz] (still a bit busy) 2011-03-20 21:51:53 PDT
Comment on attachment 520597 [details] [diff] [review]

Olli, feel free to send back my way if needed, but you're a better reviewer for this, I think.
Comment 3 User image Olli Pettay [:smaug] 2011-03-21 03:26:57 PDT
The patch seems to remove the checks for for and event attributes.
Those need still special handling
Comment 4 User image Olli Pettay [:smaug] 2011-03-21 03:28:09 PDT
Benjamin, how alive is ?
Comment 5 User image Benjamin Smedberg [:bsmedberg] 2011-03-21 06:00:42 PDT
I plan on removing it, I think there's a reviewed patch somewhere even.
Comment 6 User image Olli Pettay [:smaug] 2011-03-21 08:21:27 PDT
Matheus, would be great if you could add back those for/event checks and
write some tests for for/event attributes.
Comment 7 User image Matheus Kerschbaum 2011-06-24 03:04:13 PDT
Created attachment 541645 [details] [diff] [review]
patch v2
Comment 8 User image Olli Pettay [:smaug] 2011-06-27 08:35:55 PDT
Comment on attachment 541645 [details] [diff] [review]
patch v2

Could you please add some tests for 'for' and 'event' attributes.
Comment 9 User image Matheus Kerschbaum 2011-06-28 11:48:30 PDT
Created attachment 542536 [details] [diff] [review]

Really stupid test, but I didn't know of any better way to test this.
Comment 11 User image Matheus Kerschbaum 2011-06-30 13:42:15 PDT
(In reply to comment #10)
> Matheus, can I submit your test to the HTML test suite?

Comment 13 User image :Ms2ger (⌚ UTC+1/+2) 2011-07-02 12:21:04 PDT
Created attachment 543622 [details] [diff] [review]

Turns out that NS_ERROR_DOM_NOT_SUPPORTED_ERR wasn't correct.
Comment 14 User image :Ms2ger (⌚ UTC+1/+2) 2011-07-03 08:11:57 PDT
Comment on attachment 543622 [details] [diff] [review]
Comment 15 User image Ioana (away) 2011-09-08 05:22:08 PDT
Verified fixed on:
Mozilla/5.0 (Windows NT 6.1; rv:7.0) Gecko/20100101 Firefox/7.0
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:7.0) Gecko/20100101 Firefox/7.0
Mozilla/5.0 (X11; Linux i686; rv:7.0) Gecko/20100101 Firefox/7.0
Mozilla/5.0 (Windows NT 5.1; rv:7.0) Gecko/20100101 Firefox/7.0
Build ID: 20110902161802

The bug was verified using the test referred in the link from the above comment (test_bug383383_2.xhtml), which has passed.

Note You need to log in before you can comment on or make changes to this bug.