59 Commits

Author SHA1 Message Date
bzbarsky%mit.edu
dce306232a Add a version of CheckLoadURI that takes a source principal instead of a source
URI.  Update a bunch of callers to use it.  Bug 233108, r=caillon, sr=dveditz


git-svn-id: svn://10.0.0.236/trunk@155487 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-25 16:55:27 +00:00
gerv%gerv.net
98831918fc Bug 236613: change to MPL/LGPL/GPL tri-license.
git-svn-id: svn://10.0.0.236/trunk@155044 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-17 21:52:36 +00:00
jst%mozilla.jstenback.com
0d2cabc6e7 Fixing regression crasher bug 235209. Make sure we have a strong reference to a nsIScriptContext we're touching *after* we've executed scripts on it. r=danm-moz@comcast.net, sr=bzbarsky@mit.edu
git-svn-id: svn://10.0.0.236/trunk@153258 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-26 02:35:30 +00:00
darin%meer.net
55688e6410 landing string defragmentation patch for bug 231995, r/sr=dbaron,jst,dougt
git-svn-id: svn://10.0.0.236/trunk@152905 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-19 02:44:03 +00:00
jst%mozilla.jstenback.com
854468a176 Fixing bug 233307. deCOMtaminating nsIScript* and related interfaces. r+sr=bryner@brianryner.com.
git-svn-id: svn://10.0.0.236/trunk@152565 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-09 22:48:53 +00:00
jst%mozilla.jstenback.com
6629ad58f7 Fixing bug 232503. Start using Empty[C]String() to save a bit on code-size. r+sr=peterv@propagandism.org
git-svn-id: svn://10.0.0.236/trunk@152045 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-29 22:04:45 +00:00
jshin%mailaps.org
0e4760c894 bug 230104 : fall back to ISO-8859-1 in the script loader when charset name is not recognized or no Unicode decoder is available (r=smontagu, sr=bz)
git-svn-id: svn://10.0.0.236/trunk@151208 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-12 20:41:58 +00:00
jst%mozilla.jstenback.com
803e4eb910 General deCOMtamination of nsIDocument, nsIContent, and nsIFormSubmission. Eliminating nsIAttributeContent, and doing some URL->URI changes. r+sr=peterv@propagandism.org
git-svn-id: svn://10.0.0.236/trunk@151115 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-09 23:54:21 +00:00
bryner%brianryner.com
98fb7d2529 deCOMtaminate nsINodeInfo and nsINodeInfoManager. See bug 225060 for details. r=sicking, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@149340 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-15 05:27:37 +00:00
jst%mozilla.jstenback.com
efdc7bfac3 Silly whitespace cleanup.
git-svn-id: svn://10.0.0.236/trunk@149234 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-13 04:15:25 +00:00
jshin%mailaps.org
9c4ba03cbb bug 222346 : streamline JS script loading code (deleegate charset alias resolution to GetUnicodeDecoder()) (r=smontagu, sr=bz)
git-svn-id: svn://10.0.0.236/trunk@149212 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-12 19:51:12 +00:00
hpradhan%hotpop.com
5024f10b1e bug 223108 : Syntax error when loading non-existant external javascript file
r+sr=bzbarsky


git-svn-id: svn://10.0.0.236/trunk@149099 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-10 05:53:48 +00:00
bryner%brianryner.com
eeddf02bde deCOMtaminate nsIDocument by changing methods to use return value instead of out-params, eliminating unused nsresult return values, moving some members to nsIDocument and inlining the getters/setters. Bug 222134, r=bzbarsky, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@148257 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-22 06:09:48 +00:00
caillon%returnzero.com
c1914505cb Re-land patch for bug 83536, merging principal objects.
Also includes fixes from bug 216041.
r=bzbarsky
sr=jst


git-svn-id: svn://10.0.0.236/trunk@148229 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-21 22:11:49 +00:00
jst%mozilla.jstenback.com
ef67a47aab Fixing bug 215981. DeCOMtaminating nsIContent and nsIDocument some, and also some minor changes to other related interfaces. r=caillon@aillon.org, sr=peterv@propagandism.org.
git-svn-id: svn://10.0.0.236/trunk@147354 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-27 04:18:26 +00:00
caillon%returnzero.com
d55b44719f Backing out the patch to bug 83536.
I will reland this when 1.6a re-opens.
r+sr=jst@netscape.com
a=chofmann


git-svn-id: svn://10.0.0.236/trunk@146256 18797224-902f-48f8-a5cc-f745e15eee43
2003-08-22 03:06:53 +00:00
bzbarsky%mit.edu
7e4a765816 Fix bug 214874. Script should not execute while innerHTML is being set.
r+sr=jst, a=dveditz


git-svn-id: svn://10.0.0.236/trunk@145874 18797224-902f-48f8-a5cc-f745e15eee43
2003-08-11 18:13:16 +00:00
bzbarsky%mit.edu
91bfd993dc Fix issues with ScriptAvailable() not firing for some scripts. Bug 214081, r+sr=jst
git-svn-id: svn://10.0.0.236/trunk@145410 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-31 01:28:16 +00:00
caillon%returnzero.com
cd46cbbaad Bug 83536.
Merge script principal implementations into one class.
Should reduce footprint, speed up calls to caps a little bit, and fixes several memory leaks.
Also fixes bugs 211174 and 211263
r=jst@netscape.com
sr=bzbarsky@mit.edu
moa=mstoltz@netscape.com (he looked at an earlier patch and said it looked fine, and will do a retroactive review when he returns from vacation as well)


git-svn-id: svn://10.0.0.236/trunk@145137 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-24 05:15:20 +00:00
jaggernaut%netscape.com
36ab3d76a9 Bug 212272: Switch some Substring users over to String(Begins|Ends)With. r=dwitte, sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@144817 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-14 07:37:39 +00:00
bzbarsky%mit.edu
760dbdd94a Random array stuff in nsScriptLoader; fix a leak. Bug 212271, r=caillon, sr=jst
git-svn-id: svn://10.0.0.236/trunk@144751 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-11 22:47:17 +00:00
bzbarsky%mit.edu
50802bdf22 Add nsIContent::GetBaseURL; get rid of similar functions on nsIXMLContent and
nsIHTMLContent.  Bug 209573, r=caillon, sr=jst.


git-svn-id: svn://10.0.0.236/trunk@144415 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-03 02:45:34 +00:00
alecf%flett.org
71e5d724e5 fix for bug 209220 - now that i18n APIs take ASCII charset names, update consumers to avoid excess conversions.. which usually means storing charset names as ASCII and updating a few other APIs
r=jkeiser, sr=jst and some great comments from jshin@mailaps.org


git-svn-id: svn://10.0.0.236/trunk@143800 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-17 16:40:34 +00:00
caillon%returnzero.com
0a6d1ae509 Bug 209087
Content interface out-parameters should use ptr-to-ptrs instead of ref-to-ptrs and some small deCOMtamination.
r+sr=jst@netscape.com


git-svn-id: svn://10.0.0.236/trunk@143683 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-13 20:10:01 +00:00
alecf%flett.org
1c89787dc0 fix for bug 206379:
- combine nsICharsetConverterManager2 and nsICharsetConverterManager
- get rid of nsIAtom in most of the methods
- provide versions of getUnicodeDecoder/Encoder which don't do alias resolution
- change all charset types to ASCII strings
- clean up some other i18n APIs which could be simplified
- fix all consumers of all changed i18n interfaces
r=jshin, smontagu
rs=sfraser


git-svn-id: svn://10.0.0.236/trunk@143589 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-11 18:16:03 +00:00
dwitte%stanford.edu
dc7e857400 bug 100649: Length() being used where IsEmpty() is meant
treewide changes to convert incorrect usages of string.Length() to string.IsEmpty().

thanks to afatecha@idea.com.py (Ariel Fatecha) for the patch. r=dwitte, sr=jst.

got the ok from Asa to land into a closed tree.


git-svn-id: svn://10.0.0.236/trunk@142828 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-23 21:34:47 +00:00
jst%netscape.com
c301c412b0 Checking in dbradley@netscape.com's fix for bug 198995. Make sure we default to the default charset if the server gives us one we don't know. r=jst@netscape.com, sr=peterv@netscape.com
git-svn-id: svn://10.0.0.236/trunk@140314 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-26 01:26:38 +00:00
sicking%bigfoot.com
5ed56f29ad Bug 184159: Make scripts with for- and event-attributes not lock up the xml-contentsink.
r=peterv sr=jst


git-svn-id: svn://10.0.0.236/trunk@138858 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-04 12:12:48 +00:00
sfraser%netscape.com
6f87b85c6b Fix bug 195160: remove static NS_DEFINE_IID from header files. r=cls, sr=alecf.
git-svn-id: svn://10.0.0.236/trunk@138693 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-28 05:47:36 +00:00
dbaron%dbaron.org
30879d2c9e Bug 178643: Remove uses of NS_INIT_ISUPPORTS, since it's no longer needed. r=timeless sr=jag
git-svn-id: svn://10.0.0.236/trunk@135991 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-08 19:24:38 +00:00
peterv%netscape.com
d103a96ada Fix for bug 176610 (Make nsNameSpaceManager a service). r=caillon, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@134587 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-29 23:44:07 +00:00
darin%netscape.com
b59017f198 fixes bug 157133 "HTTP Interfaces need to be frozen" r=dougt sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@134319 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-22 07:40:16 +00:00
bzbarsky%mit.edu
47c119bdef CheckLoadURI should use document uri, not base uri. Bug 177237,
r=mstoltz, sr=jst, a=blizzard


git-svn-id: svn://10.0.0.236/trunk@132995 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-05 03:45:28 +00:00
heikki%netscape.com
5bee27e8e8 Bug 172372, when loading XML as data, we need to disable scripts and styles. r=sicking, sr=bzbarsky, a=asa.
git-svn-id: svn://10.0.0.236/trunk@131749 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-11 00:38:29 +00:00
darin%netscape.com
e56625b347 fixes bug 170789 "HTTP Accept: header should be tailored to context of the
request" r=dougt sr=bzbarsky


git-svn-id: svn://10.0.0.236/trunk@130569 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-27 04:22:13 +00:00
darin%netscape.com
8fa070e5cd fixes bug 170648 "eliminate referrer type from nsIHttpChannel in preparation
for freezing" r=dougt sr=rpotts


git-svn-id: svn://10.0.0.236/trunk@130442 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-25 21:28:53 +00:00
mkaply%us.ibm.com
61fa910d14 PR_FALSE people NOT false
git-svn-id: svn://10.0.0.236/trunk@129967 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-18 22:05:09 +00:00
shanjian%netscape.com
7b1a394f70 #152814 detecting BOM when loading script
r=ftang, sr=jst


git-svn-id: svn://10.0.0.236/trunk@129939 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-18 19:44:19 +00:00
bzbarsky%mit.edu
e9887172a9 Make the scriptloader check the HTTP status and not load 404 pages and
such as scripts.  Bug 139040, r=jst, sr=rpotts


git-svn-id: svn://10.0.0.236/trunk@124438 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-01 23:12:13 +00:00
jst%netscape.com
f062933ad6 Removing duplicate #include...
git-svn-id: svn://10.0.0.236/trunk@122270 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-29 19:15:50 +00:00
brendan%mozilla.org
843653e566 Fix script attribute handling so type trumps language (135493, r=heikki, sr=jst).
git-svn-id: svn://10.0.0.236/trunk@120893 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-06 22:59:42 +00:00
peterv%netscape.com
19d065539b Fix for bug 34849 (dynamically added STYLE element doesn't alter style). r=sicking, sr=jst, a=roc+moz, adt=jaimejr.
git-svn-id: svn://10.0.0.236/trunk@118245 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-05 11:29:40 +00:00
darin%netscape.com
8defbf5d26 b=128508 "freeze nsIChannel nsIRequest" r=gagan, sr=rpotts, a=asa
git-svn-id: svn://10.0.0.236/trunk@117002 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-20 22:50:33 +00:00
darin%netscape.com
04849998e1 fixes bug 124042 "support internationalized URIs" r=dougt, sr=alecf, a=asa
git-svn-id: svn://10.0.0.236/trunk@115936 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-06 07:48:55 +00:00
bzbarsky%mit.edu
bcc31f85dd Don't let an empty intl.charset.default pref set the document charset to
the empty string.  Fall back to ISO-8859-1 in the script loader if there
is no other charset set.  Bug 118404, r=harishd, sr=jst


git-svn-id: svn://10.0.0.236/trunk@113444 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-01 21:36:00 +00:00
jst%netscape.com
3d2587b3bb Fixing bug 64248. Making the loading of external scripts pass the referrer to the server when requesting the script. r=gagan@netscape.com, sr=darin@netscape.com
git-svn-id: svn://10.0.0.236/trunk@111558 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-08 06:32:36 +00:00
nhotta%netscape.com
3bce18c334 Fixed a problem of a charset attribute for Script element is ignored,
request->mElement->GetCharset(charset) succeeded but the returned value 'charset' was ignored, fixed that problem,
bug 106360, r=ftang, sr=jst.


git-svn-id: svn://10.0.0.236/trunk@107041 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 02:07:08 +00:00
nhotta%netscape.com
3351684d08 For unicode conversion, changed to proceed for decoder errors instead of stop the process, bug 103954, r=ftang, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@106749 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 23:53:52 +00:00
shanjian%netscape.com
3881b34635 #88363 Site with duplicate Content-Type loads with incorrect encoding
r=yokoyama sr=waterson


git-svn-id: svn://10.0.0.236/trunk@105116 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-10 23:37:18 +00:00
heikki%netscape.com
a265cb4587 Bug 95489, attempting to fix this topcrash with a null-check. r=harishd, sr=vidur.
git-svn-id: svn://10.0.0.236/trunk@103732 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-25 22:16:41 +00:00