Closed
Bug 242212
Opened 21 years ago
Closed 21 years ago
Remove useless nsISecurityCheckedComponent code from nsXULTemplateBuilder
Categories
(Core :: XUL, enhancement)
Tracking
()
RESOLVED
FIXED
People
(Reporter: timeless, Assigned: timeless)
References
Details
Attachments
(1 file)
3.15 KB,
patch
|
janv
:
review+
shaver
:
superreview+
|
Details | Diff | Splinter Review |
The code doesn't seem to be needed, doron has tested mozilla and content samples
without regressions
Attachment #147401 -
Flags: superreview?(shaver)
Attachment #147401 -
Flags: review?(varga)
Comment 2•21 years ago
|
||
Comment on attachment 147401 [details] [diff] [review]
remove code
r=varga, but please check with peterv, jst or any other security guy
Attachment #147401 -
Flags: review?(varga) → review+
![]() |
||
Comment 3•21 years ago
|
||
This absolutely needs review from one of the people mentioned in comment 2.
Comment 4•21 years ago
|
||
Comment on attachment 147401 [details] [diff] [review]
remove code
sr=shaver.
Attachment #147401 -
Flags: superreview?(shaver) → superreview+
Comment 5•21 years ago
|
||
Pike, does this affect your RDF-from-untrusted-sources changes?
Comment 6•21 years ago
|
||
I wouldn't know. I just checked with doron on irc, he did not check any remote
templates. (Which isn't easy with xulplanet being down and all.)
I can't evaluate the implications of this change from mere looking, I'd prefer
to see a detailed list of stuff that got tested before and after this patch.
Anyway, nsIXULTemplateBuilder was not part of my scriptable-rdf patch.
Comment 7•21 years ago
|
||
I did a quick smoketest, making sure I hit chrome rdf/xul templates parts such
as bookmarks, email, etc.
Also ran a local xul template/rdf example I took off xulplanet and it worked fine.
Comment 8•21 years ago
|
||
Ok, I'm fine with removing this code as long as noone can think of a reason why
we'd need it. It's been there since version 1.1, so nothing very helpful in CVS
blame about this either.
mozilla/content/xul/templates/src/nsXULTemplateBuilder.cpp 1.296
mozilla/content/xul/templates/src/nsXULTemplateBuilder.h 1.21
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Comment 10•21 years ago
|
||
This shouldn't affect chrome or the displaying of templates, but I'm pretty sure
this change would break somenode.builder.rebuild() and friends from remote xul.
That doesn't sound like the intention of this bug.
Comment 11•21 years ago
|
||
Doron, wanna whip up a testcase that tests if that's now broken? If it is, we'll
need to either put this code back, or give this class classinfo and say that
it's a "DOM object" and it's fine to access it from web content.
Comment 12•21 years ago
|
||
Testcase is at:
http://xulplanet.mozdev.org/tutorials/xultu/examples/builder-test.xul
Doron and AnnVanK confirm that the patch breaks builder.rebuild for remote content.
Comment 13•21 years ago
|
||
Whoa! that's not good... builder method should definitely be available to
same-origin script.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Comment 14•21 years ago
|
||
timeless, wanna back out this change or go fix bug 242467?
Assignee | ||
Comment 15•21 years ago
|
||
i'd rather fix bug 242467. this isn't on the branch so would people please give
me until freeze for 1.8a is imminent before backing me out?
It looks like there are three derived impls of this creature, will it be enough
to add classinfo with DOM_OBJECT to nsXULTemplateBuilder?
Status: REOPENED → RESOLVED
Closed: 21 years ago → 21 years ago
Resolution: --- → FIXED
Component: XP Toolkit/Widgets: Trees → XUL
QA Contact: xptoolkit.widgets
You need to log in
before you can comment on or make changes to this bug.
Description
•