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)
Core
XBL
Tracking
()
VERIFIED
FIXED
People
(Reporter: Gijs, Assigned: brendan)
References
Details
(Keywords: regression, testcase)
Attachments
(4 files)
816 bytes,
application/xhtml+xml
|
Details | |
1.35 KB,
application/xhtml+xml
|
sayrer
:
review+
|
Details |
1.20 KB,
patch
|
mrbkap
:
review+
|
Details | Diff | Splinter Review |
2.42 KB,
patch
|
Details | Diff | Splinter Review |
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.
Comment 1•18 years ago
|
||
Reporter | ||
Comment 2•18 years ago
|
||
Maybe bug 369404?
Comment 3•18 years ago
|
||
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.
Reporter | ||
Comment 4•18 years ago
|
||
As noted on that bug, backing out the patch for bug 369404 fixes this one.
Assignee | ||
Comment 5•18 years ago
|
||
Updated•18 years ago
|
Attachment #256473 -
Flags: review?(mrbkap) → review+
Assignee | ||
Comment 6•18 years ago
|
||
Fixed on trunk:
js/src/jsobj.c 3.330
/be
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 7•18 years ago
|
||
Er, that was rev 3.331, not 3.330.
/be
Reporter | ||
Comment 8•18 years ago
|
||
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 9•18 years ago
|
||
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 10•18 years ago
|
||
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+
Updated•18 years ago
|
Flags: in-testsuite?
Comment 11•18 years ago
|
||
Updated•18 years ago
|
Comment 12•18 years ago
|
||
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.
Description
•