Commit Graph

611 Commits

Author SHA1 Message Date
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
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
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
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
bzbarsky%mit.edu
07e10f17ab Change XBL constructor/destructor back to having "this" in the scope chain like
they did when they were event handlers (to avoid breaking bindings where people
forgot to use "this" in the constructor or destructor).  Bug 258833, r=bryner,
sr=jst


git-svn-id: svn://10.0.0.236/trunk@162148 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-12 01:41:34 +00:00
bzbarsky%mit.edu
a6a65a4697 Make <constructor> and <destructor> methods, not handlers. Bug 230816,
r=bryner, sr=brendan


git-svn-id: svn://10.0.0.236/trunk@162081 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-10 15:29:19 +00:00
bryner%brianryner.com
cb8e82ab99 Hook up gtk2 native keybindings for editor. This gets rid of htmlBindings.xml and instead makes the platform-neutral base bindings be included via the preprocessor, allowing the editorBase bindings to not be applied on gtk2. Also, removed obsolete mac CFM package files. Bug 257405, r=bzbarsky, sr=ben.
git-svn-id: svn://10.0.0.236/trunk@162060 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-10 07:17:31 +00:00
dbaron%dbaron.org
a4ca9058c6 Separate concept of stylesheet URI into base URI (for resolving relative links) and sheet URI (for everything else), since they can differ for style elements (and inline style and style set from script, but that's for the next patch). Some other things (relating to external stylesheets, where it doesn't make a difference) that probably should use the sheet URL are left as the base URL for now because I didn't want to change too much at once. b=255538 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@162059 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-10 06:45:59 +00:00
bzbarsky%mit.edu
b74edc231a Combine WalkRules and UseDocumentRules into one function. Bug 244252,
r=bryner, sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@162054 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-10 04:57:30 +00:00
jst%mozilla.jstenback.com
d204ca55c8 Fixing bug 257431. Make the tabbrowser code only listen to events initiated by the user. r=trev@gtchat.de, sr=bzbarsky@mit.edu
git-svn-id: svn://10.0.0.236/trunk@161660 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-02 15:25:39 +00:00
jst%mozilla.jstenback.com
87ca11ea1a Fixing bug 257523. Only handle XBL commands if they're triggerd by events initiated by the user. Patch by trev@gtchat.de, r=jst@mozilla.org, sr=dveditz@cruzio.com, a=chofmann@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@161626 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-02 00:33:51 +00:00
brendan%mozilla.org
baaf231ef6 Use new JS_LookupPropertyWithFlags API passing new JSRESOLVE_CLASSNAME, to avoid triggering doc search for IE global scope pollution quirk, just for the scrollbar XBL binding used in content pages (257602, r=bzbarsky, sr=jst).
git-svn-id: svn://10.0.0.236/trunk@161607 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-01 20:53:11 +00:00
jst%mozilla.jstenback.com
57e55d8a58 Fixing bug 248065. Make sure errors in nested scripts don't disrupt the containing script. r+sr=bzbarsky@mit.edu
git-svn-id: svn://10.0.0.236/trunk@161580 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-01 16:50:12 +00:00
brade%comcast.net
f33fddb67a bug 252750; add VK_HELP to list of global keys (r=caillon, sr=bryner, patch=steffen.wilberg)
git-svn-id: svn://10.0.0.236/trunk@160741 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-13 20:59:54 +00:00
peterv%propagandism.org
ca3bbc8275 Fix for bug 27382 (ownerDocument of orphan text and attr nodes is null). r/sr=jst.
git-svn-id: svn://10.0.0.236/trunk@160598 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-10 10:22:36 +00:00
bryner%brianryner.com
865734bf2f Change nsIPresContext to nsPresContext globally, follow-up to bug 253470. rs=roc
git-svn-id: svn://10.0.0.236/trunk@160184 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-31 23:15:21 +00:00