43 Commits

Author SHA1 Message Date
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
valeski%netscape.com
3f6710f86f bugscape 7647. sorry no bugzilla bug. r=rpotts, sr=vidur. protect usage of the global script context by putting it inside a null check. this was causing a crash when a javascript window.close() pull the context out from underneath documents
git-svn-id: svn://10.0.0.236/trunk@100717 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-10 01:46:41 +00:00
dbaron%fas.harvard.edu
9359000a40 Header include dependency cleanup. b=64023 r=jag rs=brendan
git-svn-id: svn://10.0.0.236/trunk@99299 18797224-902f-48f8-a5cc-f745e15eee43
2001-07-16 02:40:48 +00:00
dbaron%fas.harvard.edu
88810ef1eb Fix bad getters on nsIDocument and nsIScriptContext to use out params rather than return |AddRef|ed pointers. b=81289 r=jaggernaut sr=jst a=asa
git-svn-id: svn://10.0.0.236/trunk@97540 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-20 03:27:48 +00:00
jst%netscape.com
855319209e Checking in vidur@netscape.com's fix for bug 81994 which caused scripts on webpages to be executed twice when calling DemoteContainer() in the html content sink. r=nisheeth@netscape.com, sr=jband@netscape.com, a=asa@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@95899 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-25 07:03:04 +00:00
valeski%netscape.com
e2736d6096 sr=vidur/shaver@mozilla.org on the content policy callsite and implementation mods (81260). Update of the nsIContentPolicy interface to provide more generic context, a nsIURI instead of a URI wstring, and a nsIDOMWindow for window level context. Existing Callsites have been updated to reflect the new changes, and nsIDOMWindows are now passed into the new API.
git-svn-id: svn://10.0.0.236/trunk@95620 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-21 22:40:10 +00:00
mkaply%us.ibm.com
b938c3af0e OS/2 AIX bustage - need cast
git-svn-id: svn://10.0.0.236/trunk@95262 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-17 17:27:01 +00:00
jst%netscape.com
caf8fac923 Trying to fix SunOS bustage...
git-svn-id: svn://10.0.0.236/trunk@95247 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-17 09:08:50 +00:00
vidur%netscape.com
51d5bb6a4a Fix for bug 18843. Dynamically added SCRIPT elements are now processed through a per-document script loader. Script execution that originally occured in the content sinks is now done by the script loader. r=heikki sr=jst
git-svn-id: svn://10.0.0.236/trunk@95228 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-17 05:54:16 +00:00
vidur%netscape.com
b7fe451e66 Part of fix for bug 18843. Dynamically added SCRIPT elements are now processed through a per-document script loader. Script execution that originally occured in the content sinks is now done by the script loader. r=heikki sr=jst
git-svn-id: svn://10.0.0.236/trunk@95213 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-17 05:20:51 +00:00