170 Commits

Author SHA1 Message Date
dveditz%cruzio.com
8219fc4bee Bug 343473: UniversalXPConnect privs should allow access to chrome DOM nodes
(regression from bug 340107). r=bzbarsky, sr=sicking, a=mconnor


git-svn-id: svn://10.0.0.236/trunk@203599 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-25 01:04:33 +00:00
dveditz%cruzio.com
0cc75e8cec bug 340107 save wasted cycles checking permissions if we're just going to deny access anyway. r=mrbkap, sr=sicking
git-svn-id: svn://10.0.0.236/trunk@200986 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-27 00:56:41 +00:00
peterv%propagandism.org
40c612fc40 Fix for bug 337704 (Clean up files moved from xmlextras). r/sr=bz.
git-svn-id: svn://10.0.0.236/trunk@200030 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-15 20:30:44 +00:00
mhammond%skippinet.com.au
e96b5e495a Land DOM_AGNOSTIC3_BRANCH, bug 255942. r=a few people, sr=brendan.
git-svn-id: svn://10.0.0.236/trunk@199778 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-13 03:07:47 +00:00
bzbarsky%mit.edu
13b92c95bf Cache the list of form controls, so loading a large page with lots of form
controls outside forms is not O(N^2).  Bug 336062, r+sr=sicking


git-svn-id: svn://10.0.0.236/trunk@199489 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-08 04:28:20 +00:00
mrbkap%gmail.com
76bebc65c0 Protect against null contexts. bug 340602, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@199426 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-07 17:15:51 +00:00
roc+%cs.cmu.edu
ff28dae929 Bug 336674. Fire JS "script context done" notifications when a context exits even if there is another context above it on the stack. r+sr=jst
git-svn-id: svn://10.0.0.236/trunk@199154 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-06 21:37:32 +00:00
Olli.Pettay%helsinki.fi
7c801d8db3 Bug 338954, Make .innerHTML to work without DOM Ranges, r=sicking, sr=jst
git-svn-id: svn://10.0.0.236/trunk@199056 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-05 20:32:48 +00:00
peterv%propagandism.org
521549ddb0 Try to fix Windows bustage.
git-svn-id: svn://10.0.0.236/trunk@198873 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-02 15:07:22 +00:00
peterv%propagandism.org
e8ed6e24c3 Fix for bug 339239 (Remove UserData functions from nsIDocument). r/sr=sicking.
git-svn-id: svn://10.0.0.236/trunk@198868 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-02 13:28:14 +00:00
cvshook%sicking.cc
83253303c8 Bug 90983: Don't fire mutation events during parsing, i.e. when aNotify is false. Also make us fire mutation events on nodes that are in an orphaned subtree. r/sr=jst
git-svn-id: svn://10.0.0.236/trunk@198844 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-02 00:58:04 +00:00
cvshook%sicking.cc
e96a4f70c3 Bug 337543: Use nsINode more. r/sr+peterv
git-svn-id: svn://10.0.0.236/trunk@197985 18797224-902f-48f8-a5cc-f745e15eee43
2006-05-19 10:01:22 +00:00
cvshook%sicking.cc
1ac65a91fa Bug 335913: Reimplement CompareDocumentPosition using nsINode interfaces. r/sr=bz
git-svn-id: svn://10.0.0.236/trunk@196673 18797224-902f-48f8-a5cc-f745e15eee43
2006-05-16 14:51:52 +00:00
cvshook%sicking.cc
98f1d1c517 Bug 334075: Push mFlagsOrSlots to nsINode to allow storing flags and (in the future) slots on nsGenericDOMDataNodes. r=mrbkap sr=bz
git-svn-id: svn://10.0.0.236/trunk@196502 18797224-902f-48f8-a5cc-f745e15eee43
2006-05-15 07:03:15 +00:00
darin%meer.net
42edf059cf landing patch for bug 326273 "Implement nsIThreadManager" (Mac portions by Mark Mentovai) with reviews from bienvenu, bsmedberg, bzbarsky, josh, roc, and ssieb
git-svn-id: svn://10.0.0.236/trunk@196254 18797224-902f-48f8-a5cc-f745e15eee43
2006-05-10 17:30:15 +00:00
cvshook%sicking.cc
cec9ea1123 Bug 335911: Change nsIContent::IsContentOfType to nsINode::IsNodeOfType. r/sr=bz
git-svn-id: svn://10.0.0.236/trunk@196009 18797224-902f-48f8-a5cc-f745e15eee43
2006-05-05 06:52:21 +00:00
bzbarsky%mit.edu
bf19ef708d Rename GetNodePrincipal to NodePrincipal. Bug 327246, r+sr=sicking
git-svn-id: svn://10.0.0.236/trunk@195579 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-27 18:21:11 +00:00
mrbkap%gmail.com
b8f2621c76 When a document's scope object changes (e.g., for a call to document.open), actually change the scope object and move all of the wrappers in the old scope into the new one. bug 333697, r+sr=jst
git-svn-id: svn://10.0.0.236/trunk@195456 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-26 19:53:27 +00:00
jst%mozilla.jstenback.com
9b996cb876 Removing unused variable as pointed out by dbaron at https://bugzilla.mozilla.org/show_bug.cgi?id=321299#c29
git-svn-id: svn://10.0.0.236/trunk@195334 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-25 04:04:27 +00:00
bzbarsky%mit.edu
24d1be29e9 Dispatch mutation events even in documents that are not rendered in a window.
Bug 201236, patch by Alex Vincent <ajvincent@gmail.com>, r=smaug, sr=peterv


git-svn-id: svn://10.0.0.236/trunk@195285 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-24 19:52:21 +00:00
dbaron%dbaron.org
859638354c Disconnect and release the event listener manager after removing the entry from the hash table to avoid crashes caused re-entry into hash table code. b=334177 r+sr=jst
git-svn-id: svn://10.0.0.236/trunk@194624 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-18 20:59:28 +00:00
peterv%propagandism.org
78cadf3883 Better fix for bug 47852 (NAMESPACE_ERR not being thrown when setting Node.prefix). r/sr=sicking.
git-svn-id: svn://10.0.0.236/trunk@194509 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-17 17:13:11 +00:00
jst%mozilla.jstenback.com
197612f082 Fixing bug 321299. Make sure XPConnect wrappers get properly reparented when moving nodes from document to document. r=mrbkap@gmail.com, sr=bzbarsky@mit.edu
git-svn-id: svn://10.0.0.236/trunk@194099 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-11 03:49:44 +00:00
darin%meer.net
70deb5f58d fixes bug 328925 "Replace NS_WARN_IF_FALSE with NS_ASSERTION (where appropriate)" r=dbaron
git-svn-id: svn://10.0.0.236/trunk@193272 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-30 18:40:56 +00:00
roc+%cs.cmu.edu
a6877ac98a Bug 326501. Mark tree views as being suitable for untrusted code. r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@193019 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-26 20:59:03 +00:00
roc+%cs.cmu.edu
61d6f777a5 Bug 326501. Mark tree views as being suitable for untrusted code. r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@193018 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-26 20:57:53 +00:00
bryner%brianryner.com
1de3fc0366 Clean up header includes (bug 331050). This round of changes deals with some of the public content headers, and factors nsDOMClassInfoID out of nsIDOMClassInfo.h so that nsContentUtils.h doesn't have to bring in XPConnect. r+sr=jst.
git-svn-id: svn://10.0.0.236/trunk@192794 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-22 18:36:36 +00:00
Olli.Pettay%helsinki.fi
b6cdf7cb60 Bug 234455, Centralize event dispatch r=jst, sr=bz
git-svn-id: svn://10.0.0.236/trunk@191900 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-07 17:08:51 +00:00
bzbarsky%mit.edu
c51ebb6a17 Don't set the "exception pending" boolean on the XPCCallContext if we actually
set the exception on some other unrelated JSContext.  Bug 328851, r=jst, sr=brendan


git-svn-id: svn://10.0.0.236/trunk@191460 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-01 03:54:15 +00:00
dbaron%dbaron.org
9352850db6 Change finalization of event listener manager hash to deal with interactions with preserved wrapper table and dangling pointers. b=325279 r=bzbarsky sr=jst
git-svn-id: svn://10.0.0.236/trunk@190421 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-17 23:41:44 +00:00
bzbarsky%mit.edu
6d2a981e38 Use nsContentUtils helpers for some localizing in nsGlobalWindow. Bug 326972,
r+sr=jst


git-svn-id: svn://10.0.0.236/trunk@189917 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-14 02:06:48 +00:00
peterv%propagandism.org
f067801d10 Bustage fix
git-svn-id: svn://10.0.0.236/trunk@189308 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-07 15:12:08 +00:00
peterv%propagandism.org
32838fc08a Fix for bug 315901 (Move RangeList and EventListenerManager hashes to nsContentUtils). r/sr=jst.
git-svn-id: svn://10.0.0.236/trunk@189306 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-07 14:34:10 +00:00
cbiesinger%web.de
6322c04952 bug 183156 remove *UCS2* functions, replacing them with *UTF16* ones
r+sr=darin


git-svn-id: svn://10.0.0.236/trunk@188844 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-03 14:18:39 +00:00
bzbarsky%mit.edu
1510aacc39 Push up GetPrincipal to nsINode (as GetNodePrincipal). This way all nsINodes
(content, documents, attr nodes) can return their principal as needed.
Eliminate lazy allocation of principals in nsDocument.  Bug 324600, r=sicking, sr=jst


git-svn-id: svn://10.0.0.236/trunk@188770 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-02 20:02:34 +00:00
cvshook%sicking.cc
ceaf7bdebc Bug 323910: Merge atom lists in gklayout
r/sr=jst


git-svn-id: svn://10.0.0.236/trunk@187798 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-19 00:58:12 +00:00
roc+%cs.cmu.edu
b662160399 Bug 323230. Add FindAttrValueIn as an efficient way to look up an attribute value in a table of atoms. r=sicking,sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@187743 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-18 04:09:33 +00:00
bzbarsky%mit.edu
c71ffe9cf2 Fix wrapper reparenting to work with splitwindow... Bug 318678, r+sr=jst
git-svn-id: svn://10.0.0.236/trunk@185634 18797224-902f-48f8-a5cc-f745e15eee43
2005-12-03 06:27:45 +00:00
timeless%mozdev.org
fa5ac36667 Bug 246604 - lookupNamespaceURI should probably be aware of xml prefix
patch by ajvincent@gmail.com r=peterv sr=peterv


git-svn-id: svn://10.0.0.236/trunk@185487 18797224-902f-48f8-a5cc-f745e15eee43
2005-12-01 02:55:19 +00:00
bzbarsky%mit.edu
cf434cba7f Remove content ids. Bug 166637, r=sicking, sr=peterv
git-svn-id: svn://10.0.0.236/trunk@185376 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-29 16:47:18 +00:00
jst%mozilla.jstenback.com
895df6e6ca Fixing bug 316794. Moving HandleDOMEvent() and Get/SetDocShell from nsIScriptGlobalObject to nsPIDOMWindow. r=mrbkap@gmail.com, sr=peterv@propagandism.org
git-svn-id: svn://10.0.0.236/trunk@185351 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-28 23:56:44 +00:00
bzbarsky%mit.edu
b2f82fd14b Switch the name and id hashtable from strings to atoms. Atomize names in
general.  Bug 315771, r=sicking, sr=jst


git-svn-id: svn://10.0.0.236/trunk@184748 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-16 02:55:29 +00:00
mrbkap%gmail.com
12e878ae6e bug 312363: Use the security info of the dynamic context instead of the static context. r=jst sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@184115 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-03 22:47:06 +00:00
cvshook%sicking.cc
b26f9f52fb Bug 311827: Make GetAttr return a bool rather then an nsresult.
r/sr=bz


git-svn-id: svn://10.0.0.236/trunk@183185 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-28 11:25:24 +00:00
bzbarsky%mit.edu
09f59f232b Optimize MatchElementId some. Bug 313082, r=sicking, sr=peterv
git-svn-id: svn://10.0.0.236/trunk@182698 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-21 15:17:15 +00:00
roc+%cs.cmu.edu
3aa042c0b4 Bug 309020. SVG content references in XBL anonymous content should reference content copied from the binding document. This is a partial fix. We also refactor some code to make it shareable in nsContentUtils. r=biesi,tor sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@182487 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-18 20:33:35 +00:00
Olli.Pettay%helsinki.fi
1bfba761e6 Bug 306974, Remove some duplicate event dispatching code r=sicking, sr=peterv
git-svn-id: svn://10.0.0.236/trunk@181915 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-10 18:38:57 +00:00
peterv%propagandism.org
ece86246b0 Fix for bug 308706 (1.5 Beta crashes Immediately upon double-clicking on the Icon. [@ nsContentUtils::SplitExpatName]). r/sr=jst.
git-svn-id: svn://10.0.0.236/trunk@181580 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-04 09:00:41 +00:00
bzbarsky%mit.edu
5615bc55af Make nsDocument::InsertBefore and nsDocument::ReplaceChild do the right thing
as far as removing kids from their old parent, working with document fragments,
etc.  Mostly just makes nsDocument and nsGenericElement share code.  Bug
278472, r=peterv, sr=jst


git-svn-id: svn://10.0.0.236/trunk@181315 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-30 20:06:33 +00:00
peterv%propagandism.org
86ac4d2e8f Fix for bug 27382 (ownerDocument of orphan text and attr nodes is null). Patch by sicking, updated by peterv, r=bz, sr=peterv.
git-svn-id: svn://10.0.0.236/trunk@180911 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-24 18:43:15 +00:00