703 Commits

Author SHA1 Message Date
bzbarsky%mit.edu
2ed6c9fac8 Eliminate nsIContent::SetDocument/SetParent/SetBindingParent in favor of
BindToTree and UnbindFromTree methods.  Bug 286000, r=sicking, sr=jst


git-svn-id: svn://10.0.0.236/trunk@171749 18797224-902f-48f8-a5cc-f745e15eee43
2005-04-05 23:54:35 +00:00
neil%parkwaycc.co.uk
fec5d215eb Bustage fix for b=225563 (patch hunk inadvertently excluded)
git-svn-id: svn://10.0.0.236/trunk@171384 18797224-902f-48f8-a5cc-f745e15eee43
2005-03-30 13:32:47 +00:00
neil%parkwaycc.co.uk
d1fbcc24a5 Bustage fix for b=225563 (patch hunk inadvertently excluded)
git-svn-id: svn://10.0.0.236/trunk@171383 18797224-902f-48f8-a5cc-f745e15eee43
2005-03-30 12:53:52 +00:00
neil%parkwaycc.co.uk
c82cb0c74e Implement group="system" for XBL handlers so that we don't try to handle events if <a> <textarea> or <xul:button> have already processed them r=jst sr=bryner
git-svn-id: svn://10.0.0.236/trunk@171381 18797224-902f-48f8-a5cc-f745e15eee43
2005-03-30 12:26:02 +00:00
dbaron%dbaron.org
8bfdc8e8be Change how we preserve XPConnect wrappers on which JS properties have been set or that are otherwise needed by XBL: instead of rooting those wrappers until the document stops being displayed, mark them from GC hooks only if the nodes are reachable (via DOM node traversal, optimizing based on symmetry of reachability between DOM nodes) from the document or from nodes already marked. b=283129 r=jst sr=brendan
git-svn-id: svn://10.0.0.236/trunk@171344 18797224-902f-48f8-a5cc-f745e15eee43
2005-03-29 23:26:56 +00:00
bzbarsky%mit.edu
c8940f23bc Relanding, since this did not affect the orange. Still bug 282537.
git-svn-id: svn://10.0.0.236/trunk@170387 18797224-902f-48f8-a5cc-f745e15eee43
2005-03-08 18:10:38 +00:00
bzbarsky%mit.edu
88eb5df673 Backing out bug 282537 patch to see whether it fixes the orange.
git-svn-id: svn://10.0.0.236/trunk@170382 18797224-902f-48f8-a5cc-f745e15eee43
2005-03-08 17:05:34 +00:00
bzbarsky%mit.edu
656b9526f2 Don't add entries for <xbl:children> tags to our attr change table, since those
are removed from the anonymous content.  Bug 282537, r+sr=bryner


git-svn-id: svn://10.0.0.236/trunk@170350 18797224-902f-48f8-a5cc-f745e15eee43
2005-03-08 02:31:27 +00:00
bzbarsky%mit.edu
fd4731c636 Fix GetImmediateChild to only get kids in the XBL namespace, and consolidate
some code.  Bug 284342, r+sr=jst


git-svn-id: svn://10.0.0.236/trunk@170074 18797224-902f-48f8-a5cc-f745e15eee43
2005-03-02 03:20:00 +00:00
bzbarsky%mit.edu
77cb09d7fb Stash our bindings in an array before destroying them, in case someone decides
to try to add a binding to the hashtable from a binding destructor.  Bug
283698, r+sr=bryner


git-svn-id: svn://10.0.0.236/trunk@169947 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-27 17:24:53 +00:00
bryner%brianryner.com
165fa3ff89 Remove nsIXBLBinding (bug 194834). r+sr=bzbarsky.
git-svn-id: svn://10.0.0.236/trunk@169873 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-25 22:07:01 +00:00
bzbarsky%mit.edu
f16e852429 XBL should not treat <children> in other namespaces as magical; only
<xbl:children> is.  Bug 282735, r+sr=jst


git-svn-id: svn://10.0.0.236/trunk@169718 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-24 04:23:55 +00:00
bsmedberg%covad.net
b6fcc19b80 Bug 278534, try #2 - Make tooklit chrome registry use plaintext manifests instead of an RDF cache (get rid of contents.rdf!) r=darin/dveditz/ben
git-svn-id: svn://10.0.0.236/trunk@169615 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-22 21:49:45 +00:00
bsmedberg%covad.net
b28a40ed78 Backout bug 278534 due to tinderbox orange.
git-svn-id: svn://10.0.0.236/trunk@169510 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-20 01:47:13 +00:00
bsmedberg%covad.net
63797e23b3 From bug 278534 - binding manager headers don't declare all the types they use, and mis-use the chrome registry. r=build-bustage, I will get ex-post-facto review on this.
git-svn-id: svn://10.0.0.236/trunk@169495 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-19 16:38:47 +00:00
bryner%brianryner.com
066919535f Guarantee that a document's binding manager is non-null. Bug 282792, r+sr=bzbarsky.
git-svn-id: svn://10.0.0.236/trunk@169489 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-19 10:31:27 +00:00
mrbkap%gmail.com
fd2fe9656b bug 281336: Don't rely on the aIsCompiled flag to tell us if we've compiled our getter and setter, since if one of them was successfully compiled and the other wasn't, then the parameter is incorrect. r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@168929 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-07 19:38:10 +00:00
bzbarsky%mit.edu
efc0b7b7b4 Add some debug members to XBL to catch cases where things are treated as
compiled when they're not and vice versa.  Bug 280089, r+sr=bryner


git-svn-id: svn://10.0.0.236/trunk@168881 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-06 20:34:15 +00:00
bryner%brianryner.com
9861051f37 Clean up unneeded REQUIRES (bug 73353). r+sr=dbaron.
git-svn-id: svn://10.0.0.236/trunk@168768 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-03 23:01:54 +00:00
bzbarsky%mit.edu
9c888c49a9 Make sure to not try to run constructors/destructors when scripts are not
enabled.  Bug 275232, r+sr=bryner


git-svn-id: svn://10.0.0.236/trunk@168402 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-27 19:21:14 +00:00
bzbarsky%mit.edu
32010a4164 Fix crash if getter or setter is encountered outside a property. Bug 279697,
r+sr=jst


git-svn-id: svn://10.0.0.236/trunk@168310 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-25 19:34:56 +00:00
bzbarsky%mit.edu
9a9f9e8017 Don't add XBL properties if they have no name. Bug 277950, r+sr=bryner
git-svn-id: svn://10.0.0.236/trunk@168061 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-20 16:44:00 +00:00
bzbarsky%mit.edu
b06d2f7705 Make XBL constructors/destructors check whether JS is enabled before running
once again. Bug 276205, r+sr=jst


git-svn-id: svn://10.0.0.236/trunk@167280 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-05 01:02:13 +00:00
neil%parkwaycc.co.uk
e0bc5a8a1e Bug 51444 Make xbl:inherits work with namespaced attributes p=smaug@welho.com r+sr=bz
git-svn-id: svn://10.0.0.236/trunk@167167 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-01 18:02:03 +00:00
ginn.chen%sun.com
660ecc3321 Bug 143996 in caret browsing, home/end must go to start/end of line
r=brade sr=neil.parkwaycc.co.uk


git-svn-id: svn://10.0.0.236/trunk@167127 18797224-902f-48f8-a5cc-f745e15eee43
2004-12-31 03:12:17 +00:00
peterv%propagandism.org
04f06673f3 Fix for bug 192139 (Integrate latest Expat). r=bz, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@166747 18797224-902f-48f8-a5cc-f745e15eee43
2004-12-15 15:37:23 +00:00
bsmedberg%covad.net
3edf9d37c8 Bug 275605 - libxul step 3 (all of tier 9, except libmozjs.so which will remain separate indefinitely) r=darin
git-svn-id: svn://10.0.0.236/trunk@166737 18797224-902f-48f8-a5cc-f745e15eee43
2004-12-15 04:07:01 +00:00
bryner%brianryner.com
b0242fa4f1 deCOMtaminate nsIContent::GetNameSpaceID. Bug 272079, r+sr=jst
git-svn-id: svn://10.0.0.236/trunk@166648 18797224-902f-48f8-a5cc-f745e15eee43
2004-12-13 04:14:28 +00:00
dbaron%dbaron.org
de6591306e Bug 272151: reorganize files within layout, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@166440 18797224-902f-48f8-a5cc-f745e15eee43
2004-12-08 19:41:48 +00:00
bsmedberg%covad.net
519b71db1f Centralize layout/ and content/ locale files. See bug 271324.
git-svn-id: svn://10.0.0.236/trunk@166250 18797224-902f-48f8-a5cc-f745e15eee43
2004-12-04 20:10:51 +00:00
bzbarsky%mit.edu
0f9b7ce5cc Convert various GetDocument() callers in XBL to using GetOwnerDoc() or
GetCurrentDoc() depending on which they want.  This lays the groundwork for
attaching bindings to nodes that are not in documents.  Bug 265086, r=bryner,
sr=jst


git-svn-id: svn://10.0.0.236/trunk@166127 18797224-902f-48f8-a5cc-f745e15eee43
2004-12-02 02:24:28 +00:00
bzbarsky%mit.edu
3c615b2340 Fix XBL error-handling to not close tags that shouldn't be closed yet (and thus
crash when a PR_Assert in the XML content sink is hit).  Bug 265184, r=bryner,
sr=jst


git-svn-id: svn://10.0.0.236/trunk@166125 18797224-902f-48f8-a5cc-f745e15eee43
2004-12-02 02:15:37 +00:00
dbaron%dbaron.org
4bbdb86a7a Back out 252703 due to Txul / Ts regression.
git-svn-id: svn://10.0.0.236/trunk@166118 18797224-902f-48f8-a5cc-f745e15eee43
2004-12-02 01:26:20 +00:00
dbaron%dbaron.org
4152e1ae96 Fix theme switching bugs related to insufficient change handling when entry points to themes are stylesheet links (processing instructions or XBL stylesheet elements) or xul:image src attributes by giving the chrome: protocol its own URL implementation that remembers the URL to which the chrome: URL was resolved and uses that resolved URL as part of equality testing. Fix various fastload issues arising from this change. b=252703 r=darin sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@166102 18797224-902f-48f8-a5cc-f745e15eee43
2004-12-01 22:39:17 +00:00
cls%seawood.org
ccb05e556c mkdir -p is not portable. Use nsinstall -D instead.
Fixing otaku bustage.
Bug #261426


git-svn-id: svn://10.0.0.236/trunk@165829 18797224-902f-48f8-a5cc-f745e15eee43
2004-11-27 06:02:57 +00:00
bzbarsky%mit.edu
91c825c2cc Use nsContentUtils for error-reporting for <area> parsing. Bug 269697,
r+sr=jst


git-svn-id: svn://10.0.0.236/trunk@165646 18797224-902f-48f8-a5cc-f745e15eee43
2004-11-23 17:45:37 +00:00
timeless%mozdev.org
5546241967 Bug 267311 netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect") in a XBL constructor make mozilla crash. [@ JS_FrameIterator]
r=jst sr=bz


git-svn-id: svn://10.0.0.236/trunk@165011 18797224-902f-48f8-a5cc-f745e15eee43
2004-11-05 15:39:58 +00:00
bzbarsky%mit.edu
f1455a8d69 Fix binding teardown to clear out insertion parent entries for nodes that no
longer have insertion parents.  Bug 261818, r=bryner, sr=jst


git-svn-id: svn://10.0.0.236/trunk@164281 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-24 17:30:47 +00:00
jst%mozilla.jstenback.com
9d6ccf10b4 More followup changes to my fix for bug 69070. Use docURL since it's available in stead of calling GetDocumentUIR() one more time, as suggested by cbiesinger@gmx.at.
git-svn-id: svn://10.0.0.236/trunk@163704 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-14 01:44:50 +00:00
jst%mozilla.jstenback.com
70ffb182a9 Followup to my fix for bug 69070. Use the documents character set when creating image URI (per bz's suggestion), and fixing build bustage.
git-svn-id: svn://10.0.0.236/trunk@163698 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-13 23:45:22 +00:00
jst%mozilla.jstenback.com
d56483a286 Fixing bug 69070. Don't allow loading of images from file: URIs from web content. r+sr=bzbarsky@mit.edu
git-svn-id: svn://10.0.0.236/trunk@163691 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-13 23:16:58 +00:00
bzbarsky%mit.edu
ceb3b814ae Fix up uses of GetOwnerDoc/GetCurrentDoc to use the right one, with an eye
towards general sanity on the one hand and sXBL/XBL2 on the other.  Bug 263200,
r+sr=peterv


git-svn-id: svn://10.0.0.236/trunk@163529 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-11 16:14:27 +00:00
bryner%brianryner.com
eed32e5db7 Fix UMRs in nsXBLWindowKeyHandler::WalkHandlers. Bug 260312, r+sr=bzbarsky.
git-svn-id: svn://10.0.0.236/trunk@162991 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-30 03:36:15 +00:00
pinkerton%aol.net
c87e9e96bb cmd-up/down go to top and bottom of page (bug 241142)
git-svn-id: svn://10.0.0.236/trunk@162747 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-24 17:13:44 +00:00
bzbarsky%mit.edu
649ff418b5 Pass aShared=PR_TRUE when compiling brutally shared methods and properties.
Bug 258832, r+sr=brendan


git-svn-id: svn://10.0.0.236/trunk@162467 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-16 18:30:04 +00:00
bzbarsky%mit.edu
1750c516b0 Don't crash on <binding> elements with no "id" attribute. Bug 255715, r+sr=bryner
git-svn-id: svn://10.0.0.236/trunk@162465 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-16 18:26:18 +00:00
dbaron%dbaron.org
6e83e3f7a9 Fix XBL destructors. b=258832 r+sr=brendan
git-svn-id: svn://10.0.0.236/trunk@162343 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-15 02:19:24 +00:00
dbaron%dbaron.org
e8bca4edc1 Add function to nsContentUtils to report a localized error message to the error console, and use it from the three places that were doing pretty much the same thing. b=187007 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@162314 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-14 17:26:35 +00:00
bzbarsky%mit.edu
ab9d28b860 Don't use the global object as the scope object when setting up the class for
the proto functions on the a binding.  Patch arises from discussion in bug
258832, r+sr=brendan


git-svn-id: svn://10.0.0.236/trunk@162301 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-14 13:33:54 +00:00
bryner%brianryner.com
bd84e4e32f Fix ctrl+a emacs keybinding for gtk1 (bug 259011), r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@162252 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-13 22:35:39 +00:00