232 Commits

Author SHA1 Message Date
bzbarsky%mit.edu
c3731640d3 Make the CSSLoader correctly order stylesheets as they are dynamically added
and removed via the DOM.  Clean up the nsIDocument stylesheet accessors.  Clean
up nsIDocumentObserver stylesheet stuff a bit.  Make style sheets visible in
the CSSOM (though not completely accessible) from the moment the load is kicked
off.  Make us have sheet objects that can be manipulated via CSSOM even for
failed loads. Bug 107567, bug 47734, bug 57225, bug 178407.
r=sicking,  sr=peterv.


git-svn-id: svn://10.0.0.236/trunk@134667 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-03 05:48:14 +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
8fd8d79350 Prioritize data-sniffing over extension-sniffing for ftp and http. Bug
177026, r=rpotts, sr=darin


git-svn-id: svn://10.0.0.236/trunk@133205 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-06 22:29:17 +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
dougt%netscape.com
e289284076 166917. Clean up xpcom SDK includes. r=rpotts@netscape.com, sr=alecf@netscape.com, a=rjesup@wgate.com
git-svn-id: svn://10.0.0.236/trunk@129050 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-07 17:13:19 +00:00
axel%pike.org
6f2a873b95 fix MOZ_TIMELINE bustage by bzbarzky, bug 119321. code by peterv, r=me
git-svn-id: svn://10.0.0.236/trunk@128334 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-28 12:18:26 +00:00
bzbarsky%mit.edu
8b530edf64 Bug 119321 and bug 80106. Create a generic nsIUnicharStreamLoader that
makes two callbacks -- one to determine the charset and one to provide
an nsIUnicharInputStream.  Use this in the CSSLoader instead of
allocating a single big buffer for the sheet.  Clean up the way we look
for the @charset charset in the sheet data.

r=rpotts for netwerk/, r=peterv for content/, r=smontagu for intl/,
sr=darin for the whole thing.


git-svn-id: svn://10.0.0.236/trunk@128310 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-27 23:47:25 +00:00
bzbarsky%mit.edu
c2ec1d4ec6 dynamically adding @import rules does not trigger all the updates it
should.  Bug 160065, r=peterv, sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@126440 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-06 05:08:47 +00:00
dbaron%fas.harvard.edu
8b645001a0 Guess at fixing orange builds. b=148046
git-svn-id: svn://10.0.0.236/trunk@124467 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-02 03:56:08 +00:00
dbaron%fas.harvard.edu
d829c90453 For stylesheet loads with text/css or empty advisory type, end error message to error console when we don't load a stylesheet (standards mode) or warning message when we do load it (quirks mode). b=154942 r=bzbarsky sr=waterson
git-svn-id: svn://10.0.0.236/trunk@124461 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-02 03:11:57 +00:00
dbaron%fas.harvard.edu
a2358254b9 Allow page to display when @import-ing a malformed URL by incrementing mPendingChildren only if LoadSheet succeeds. b=148046 r=bzbarsky sr=waterson
git-svn-id: svn://10.0.0.236/trunk@124457 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-02 02:34:57 +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
dbaron%fas.harvard.edu
7c4652cc16 Split strict mode into almost-standards and full-standards mode, where the only quirk in almost standards mode is the quirky inline box model. Remove previous fix for bug 151620. Tweak mode detection to use almost-standards for XHTML Transitional, HTML 4.01 transitional with system ID, and for IBM system DOCTYPE. b=153032 r=karnaze, bzbarsky, harishd sr=waterson
git-svn-id: svn://10.0.0.236/trunk@124017 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-25 21:16:17 +00:00
bzbarsky%mit.edu
adea31703d Check the status code of HTTP channels before blindly loading the
sheet.  Bug 112644, r=bbaetz, sr=darin


git-svn-id: svn://10.0.0.236/trunk@123493 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-18 02:46:11 +00:00
smontagu%netscape.com
2d59d4d21b Make stylesheet loading recover from decoding errors. Bug 128896, r=ftang, sr=attinasi, a=asa
git-svn-id: svn://10.0.0.236/trunk@118504 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-09 00:29:03 +00:00
dbaron%fas.harvard.edu
b447eec349 Convert users of nsAReadable[C]String and nsAWritable[C]String typedefs to [const] nsA[C]String. b=131899 r=scc sr=jag a=asa
git-svn-id: svn://10.0.0.236/trunk@117348 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-23 22:56:05 +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
2d59fcc183 Alternate sheets should be able to import other alternate sheets with no
trouble.  Bug 52105, r=dbaron, sr=attinasi, a=shaver


git-svn-id: svn://10.0.0.236/trunk@115324 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-25 22:26:26 +00:00
alecf%netscape.com
f85a67075e one part of fix for bug 107575 - clean up consumers of nsString::EqualsIgnoreCase and nsString::EqualsWithConversion, to be explicit about case-insensitive compares
r=timeless sr=jag


git-svn-id: svn://10.0.0.236/trunk@114971 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-19 22:49:12 +00:00
bzbarsky%mit.edu
f68919f405 Relanding the Compare --> Equals conversion. a=mcafee
git-svn-id: svn://10.0.0.236/trunk@114163 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-10 15:49:46 +00:00
bzbarsky%mit.edu
2ab4074373 Testing performance impact of backout of part of patch from bug 115289.
See bug 123947 for details.


git-svn-id: svn://10.0.0.236/trunk@114146 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-09 16:10:51 +00:00
bzbarsky%mit.edu
2fd80b82c9 Convert Compare() to Equals() where possible now that we can do
case-insensitive Equals().  Bug 115289, r=alecf, sr=jag


git-svn-id: svn://10.0.0.236/trunk@113665 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-05 02:03:07 +00:00
bzbarsky%mit.edu
ad1fb22926 Change users of Length() to IsEmpty() where the code really cares about
the latter in content/.  Bug 100649, r=jag, sr=jst


git-svn-id: svn://10.0.0.236/trunk@112623 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 02:03:19 +00:00
jst%netscape.com
901f0df3ef Fixing bug 118202. Make <link href='http://...'> send a HTTP referrer to the server. r=bzbarsky@mit.edu, sr=darin@netscape.com
git-svn-id: svn://10.0.0.236/trunk@111649 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-09 05:56:43 +00:00
rjesup%wgate.com
15d98882e8 Bug 96108: Inline ElementAt(), add SafeElementAt(), voidarray usage fixes,
assertions for bad voidarray indexes.  r=jst, sr=waterson


git-svn-id: svn://10.0.0.236/trunk@110938 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-21 01:10:07 +00:00
sfraser%netscape.com
ff5c1dcc81 Fix for bug 115157 -- shrink data structures by converting PRBool to PRPackedBool. r=dp, sr=waterson
git-svn-id: svn://10.0.0.236/trunk@110494 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-14 23:10:42 +00:00
bzbarsky%mit.edu
d8dc8592bc Add an assertion to the CSS loader for cases when sheet decoding fails.
stopgap measure for bug 106843, r=pierre, sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@110201 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-11 02:48:49 +00:00
dp%netscape.com
e1a23ad8a5 bug 110555 Ignoring error when user css files not found. r=dveditz,
sr=hyatt


git-svn-id: svn://10.0.0.236/trunk@110132 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-09 16:14:02 +00:00
alecf%netscape.com
728ab648ca fix for bug 110531, r=dougt, jag, sr=darin - moving ConverterInputStream into uconv, and changing the one in XPCOM into an UTF8-only converter
git-svn-id: svn://10.0.0.236/trunk@109591 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 01:10:43 +00:00
alecf%netscape.com
104971899d part of fix for bug 110531 - move CSS loader over to using nsIConverterStream instead of nsIUnicharInputStream
sr=darin, r=dougt


git-svn-id: svn://10.0.0.236/trunk@109558 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-03 23:03:18 +00:00
bzbarsky%mit.edu
945c775af1 Check the mimetype on the stylesheet channel and only
load the sheet if the type is text/css (strict mode change
only). bug 46225, r=dbaron, sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@108487 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-19 20:30:29 +00:00
rbs%maths.uq.edu.au
5553e08c9e bug 110417 - no need to special-case the viewsource protocol anymore since security now knows about it. r=bzbasrky sr=jst
git-svn-id: svn://10.0.0.236/trunk@108341 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-17 02:36:05 +00:00
kin%netscape.com
9673ca95ec Backout glazman's fix for bug 107567, pending investigation
on why it causes the tinderbox Leak count to go up.

a=beard@netscape.com,jj@netscape.com


git-svn-id: svn://10.0.0.236/trunk@106834 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-31 19:03:46 +00:00
glazman%netscape.com
8c9c7abf8d Remove useless mSheetMap table from nsCSSLoader; b=107567, r=peterv,rjesup@wgate.com; sr=kin
git-svn-id: svn://10.0.0.236/trunk@106832 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-31 15:53:25 +00:00
bzbarsky%mit.edu
c180e28886 Improve how we get our charset for stylesheets. Look at HTTP header,
charset attribute on <link> or <?xml-stylesheet?> and at the document's
charset.  Bugs 57164, 72658, 83207.  r=pierre, sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@106217 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-25 00:34:20 +00:00
hyatt%netscape.com
ab0e4e56d4 Fix for 104336, deCOMtaminate rulenode, rulewalker, frames, r=dbaron, sr=waterson
git-svn-id: svn://10.0.0.236/trunk@106100 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-24 00:01:09 +00:00
bzbarsky%mit.edu
316ec70207 Make setting element.style.foo just parse the value instead of creating
a property:value pair and parsing that.  Speeds up setting of
element.style.top by about 5%.  Bug 99797, r=attinasi, sr=jst


git-svn-id: svn://10.0.0.236/trunk@104060 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-28 01:38:36 +00:00
dp%netscape.com
ad73acbae3 Fixing build bustage.
git-svn-id: svn://10.0.0.236/trunk@102599 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-08 22:01:22 +00:00
dp%netscape.com
eb731f9c5d bug# 98786 Eliminating url cloning r=gagan,sr=jst
git-svn-id: svn://10.0.0.236/trunk@102596 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-08 21:13:20 +00:00
rjesup%wgate.com
0202c4da49 Bug 96710: (try 2). Right() takes number-of-chars-to-return, not position.
r=jag, sr=jst


git-svn-id: svn://10.0.0.236/trunk@102509 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-07 03:44:33 +00:00
rjesup%wgate.com
977fe6eac8 Bug 96710: Misuse of string.Mid() - uses should be string.Right().
r=kin, sr=jst


git-svn-id: svn://10.0.0.236/trunk@102436 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 19:38:20 +00:00
rjesup%wgate.com
3d0a34aaca Bug 92575: voidarray->autovoidarray changes in content/*, minus mChildren
changes in nsXULContentSink.cpp and nsGenericElement.cpp as per jst.
  r=hyatt r=pierre sr=jst


git-svn-id: svn://10.0.0.236/trunk@102430 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 19:16:03 +00:00
dbaron%fas.harvard.edu
3485888237 Replace uses of deprecated NS_IMPL_ISUPPORTS and NS_IMPL_QUERYINTERFACE macros with NS_IMPL_{ISUPPORTS,QUERYINTERFACE}{1,0}. r=jag rs=brendan b=45797
git-svn-id: svn://10.0.0.236/trunk@101462 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 01:48:11 +00:00
cathleen%netscape.com
f541238cb0 enable MOZ_TIMELINE tool, bug 78793, r=rogc, sr=waterson
git-svn-id: svn://10.0.0.236/trunk@101263 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 02:03:34 +00:00
cls%seawood.org
3b8b92a2e8 Use NS_PTR_TO_INT32 macros to do 64-bit safe pointer conversions.
Bug #20860 r=Roland.Mainz@informatik.med.uni-giessen.de sr=brendan@mozilla.org


git-svn-id: svn://10.0.0.236/trunk@101008 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-14 07:59:59 +00:00
bzbarsky%mit.edu
8cca381b47 Making import rules implement the nsIDOMCSSImportRule interface. Bug 90290, r=pierre, sr=jst
git-svn-id: svn://10.0.0.236/trunk@100358 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-04 21:19:53 +00:00