Closed Bug 371724 Opened 18 years ago Closed 18 years ago

Writing to xbl properties marked readonly no longer throws an exception

Categories

(Core :: XBL, defect)

defect
Not set
major

Tracking

()

VERIFIED FIXED

People

(Reporter: Gijs, Assigned: brendan)

References

Details

(Keywords: regression, testcase)

Attachments

(4 files)

Attached file Testcase
As in summary. The specific xbl this is about is tabbox.xml: writing to the readonly "selected" property of a tab doesn't seem to throw any errors in the latest nightly:

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a3pre) Gecko/20070225 Minefield/3.0a3pre

Not sure if this is a bug in XBL or in JS.

This worked in the 20070223 Mac build, so it broke somewhere this weekend. I haven't tried to get a smaller regression range yet, but it should be possible.
Maybe bug 369404?
I think this Mochikit testcase is correct. However, it doesn't work in current trunk builds, because of bug 371743 (which I found out because of this).
Also depends on getting the test from bug 366770 checked in, first.
Depends on: 369404
As noted on that bug, backing out the patch for bug 369404 fixes this one.
Assignee: general → brendan
Status: NEW → ASSIGNED
Attachment #256473 - Flags: review?(mrbkap)
Attachment #256473 - Flags: review?(mrbkap) → review+
Fixed on trunk:

js/src/jsobj.c 3.330

/be
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Er, that was rev 3.331, not 3.330.

/be
The test passes on my build with this fix. Thanks for the quick fix, Brendan!

I think it'd still be nice to get the mochikit-test in, but I have no idea what would need to happen in order to do that. Martijn, I'm assuming you know more?
Status: RESOLVED → VERIFIED
Comment on attachment 256460 [details]
mochikit version of Gijs's testcase

I guess the "Success!" in the bound element doesn't make sense.
I have this test in content/xbl/test/.
Like I said, this test depends on bug 371743 and the mochipatch from bug 366770 getting checked in (more or less).
Attachment #256460 - Flags: review?(sayrer)
Comment on attachment 256460 [details]
mochikit version of Gijs's testcase

looks ok, but please check the exception type if there is a detailed one.
Attachment #256460 - Flags: review?(sayrer) → review+
Flags: in-testsuite?
Blocks: 369404
No longer depends on: 369404
Checking in Makefile.in;
/cvsroot/mozilla/content/xbl/test/Makefile.in,v  <--  Makefile.in
new revision: 1.3; previous revision: 1.2
done
RCS file: /cvsroot/mozilla/content/xbl/test/test_bug371724.xhtml,v
done
Checking in test_bug371724.xhtml;
/cvsroot/mozilla/content/xbl/test/test_bug371724.xhtml,v  <--  test_bug371724.xh
tml
initial revision: 1.1
done

Bug 371743 was fixed, so I checked the Mochikit test in.
Flags: in-testsuite? → in-testsuite+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: