Closed Bug 1123875 Opened 11 years ago Closed 11 years ago

Setting a readonly attribute on a proxy no longer throws in strict mode.

Categories

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

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla40
Tracking Status
firefox35 --- ?
firefox36 --- ?
firefox37 - affected
firefox38 - affected
firefox40 --- fixed
firefox-esr31 --- unaffected

People

(Reporter: Ms2ger, Assigned: jorendorff)

References

Details

(Keywords: regression)

Attachments

(2 files, 1 obsolete file)

Attached file Test
I suspect because bug 1103368 didn't update DOMProxyHandler::defineProperty. I confirmed that it still worked in the Fx34.0 release and didn't work in a 37 build from last week or so.
[Tracking Requested - why for this release]:
Flags: needinfo?(jorendorff)
jorendorff and ms2ger confirmed via irc that this is a small issue. We're simply not throwing an exception in one case where we should. As such, I don't think this warrants tracking. I'm happy to consider an uplift request.
This is fixed, and I did a *ton* of work on SetProperty paths so I imagine that fixed it at some point. We should have a test for this, so I'm leaving it open and taking.
Flags: needinfo?(jorendorff)
Assignee: nobody → jorendorff
Status: NEW → ASSIGNED
Use a testharness.js mochitest with assert_throws(new TypeError(), function() { .. }) to reduce boilerplate.
Thanks for the nudge. That's a big difference. Building now to retest.
Attachment #8583754 - Attachment is obsolete: true
Attachment #8583754 - Flags: review?(peterv)
Attachment #8584540 - Flags: review?(peterv) → review+
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla40
Flags: needinfo?(Ms2ger)
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: