Closed Bug 1098628 Opened 10 years ago Closed 10 years ago

Remove ReportPendingException call in nsXBLProtoImplAnonymousMethod::Execute

Categories

(Core :: XUL, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla36

People

(Reporter: terrence, Assigned: terrence)

References

Details

Attachments

(1 file)

Once again the hard part will be finding a test that touches the right code.
You could steal something like http://mxr.mozilla.org/mozilla-central/source/dom/xbl/test/test_bug389322.xhtml with everything except the <constructor> bit removed from the binding and make the code in <constructor> throw.
Thanks, Boris! You saved me a /ton/ of time this morning!
Attachment #8523081 - Flags: review?(bobbyholley)
>+ <script>var ctorRan = false;</script> Don't think you need this part.
Comment on attachment 8523081 [details] [diff] [review] xblprotoimplanonymousmethod-v0.diff Review of attachment 8523081 [details] [diff] [review]: ----------------------------------------------------------------- ::: dom/xbl/test/test_bug1098628_throw_from_construct.xhtml @@ +5,5 @@ > +<head> > + <title>Test for Bug 1098628</title> > + <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> > + <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" /> > + <script>var ctorRan = false;</script> As bz noted, this is spurious.
Attachment #8523081 - Flags: review?(bobbyholley) → review+
D'oh! I landed this with the wrong bug#, so the resolution got dropped in bug 1070049 by mistake. https://hg.mozilla.org/mozilla-central/rev/659549fa7af0
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla36
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: