Fix test_bug440572.html to not rely on silent failure to pass

RESOLVED FIXED in mozilla34

Status

()

defect
RESOLVED FIXED
5 years ago
4 months ago

People

(Reporter: peterv, Assigned: peterv)

Tracking

Trunk
mozilla34
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

Posted patch v1Splinter Review
dom/tests/mochitest/bugs/test_bug440572.html is supposed to test access through Xrays to iframes by name, even if they would shadow a WebIDL property. We've switched away from that behaviour, so it should be failing. It doesn't fail because the code that deals with the exception from accessing the property tries to postMessage the exception directly, which throws another exception. The test doesn't count the number of messages it gets, so the missing postMessage's are just ignored.
Attachment #8458319 - Flags: review?(bzbarsky)
Comment on attachment 8458319 [details] [diff] [review]
v1

r=me
Attachment #8458319 - Flags: review?(bzbarsky) → review+
https://hg.mozilla.org/mozilla-central/rev/f89bd78b1fc7
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
QA Whiteboard: [qa-]
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.