41 Commits

Author SHA1 Message Date
bzbarsky%mit.edu
3811c88532 Use the principal doing the load to decide on the URI to pass to content
policies.  This will help do the right thing for data:/javascript:/about:blank,
as well as allow us to skip content policies altogether if the caller is
system.  Bug 388597, r+sr=sicking


git-svn-id: svn://10.0.0.236/trunk@231622 18797224-902f-48f8-a5cc-f745e15eee43
2007-08-08 01:16:12 +00:00
bzbarsky%mit.edu
6522f5db39 Pass through loader principal and URI to LoadSheet(). Bug 387317, r+sr=peterv
git-svn-id: svn://10.0.0.236/trunk@229735 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-11 19:44:27 +00:00
bzbarsky%mit.edu
829c92df27 Add an API to observe all loads in a CSSLoader. Change XML prettyprinting to
not start layout till after the prettyprinter stylesheet is loaded, so we don't
reflow and reconstruct the whole thing twice.  Bug 380612, r+sr=sicking


git-svn-id: svn://10.0.0.236/trunk@227308 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-31 01:42:48 +00:00
bzbarsky%mit.edu
9b9e29922e Stop blocking the parser on CSS stylesheet loads. We still block script
execution on them, however.  Bug 84582, r+sr=sicking


git-svn-id: svn://10.0.0.236/trunk@224813 18797224-902f-48f8-a5cc-f745e15eee43
2007-04-20 22:59:18 +00:00
bzbarsky%mit.edu
fa36ed56f9 Rev nsICSSLoader IID too. Bug 319654.
git-svn-id: svn://10.0.0.236/trunk@215170 18797224-902f-48f8-a5cc-f745e15eee43
2006-11-11 22:28:09 +00:00
bzbarsky%mit.edu
3d914aab06 Create DOM nodes for processing instructions in XUL, take 2. Still bug 319654, patch by
Nickolay Ponomarev <asqueella@gmail.com>, r+sr=bzbarsky.


git-svn-id: svn://10.0.0.236/trunk@215169 18797224-902f-48f8-a5cc-f745e15eee43
2006-11-11 22:27:00 +00:00
roc+%cs.cmu.edu
29cf24ae1d Bug 331883. Restrict anonymous box selectors to agent/user style sheets. r+sr=dbaron/bzbarsky
git-svn-id: svn://10.0.0.236/trunk@199937 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-15 03:20:19 +00:00
dbaron%dbaron.org
a02fd2d2f8 File comments that show up in LXR and provide a quick summary of what's in each file.
git-svn-id: svn://10.0.0.236/trunk@192979 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-25 05:47:31 +00:00
bsmedberg%covad.net
0217e2f9a9 Bug 313309 part 2 - change the NS_DEFINE_STATIC_IID_ACCESSOR macro to NS_DECLARE, and make a NS_DEFINE_ macro that's outside the class declaration, r=shaver
git-svn-id: svn://10.0.0.236/trunk@184456 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-11 14:36:26 +00:00
bzbarsky%mit.edu
dfe3e9b0bc Improve the CSSLoader API: make it clear which methods return results
sync and which return async, move the handling of alternates more completely
into the CSSLoader, make it possible for observers to tell whether the load
actually succeeded.  Bug 293825, r+sr=peterv


git-svn-id: svn://10.0.0.236/trunk@180035 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-12 18:41:15 +00:00
bzbarsky%mit.edu
5fab1e95f2 Clean up includes a bit in CSSLoader. Bug 290107, r+sr=dbaron, a=brendan
git-svn-id: svn://10.0.0.236/trunk@172224 18797224-902f-48f8-a5cc-f745e15eee43
2005-04-14 15:27:16 +00:00
dbaron%dbaron.org
be07cbe034 Consolidate and deCOMtaminate parsing and storage of media lists. b=156716 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@171350 18797224-902f-48f8-a5cc-f745e15eee43
2005-03-30 00:36:57 +00:00
dbaron%dbaron.org
d116431504 Pass line number information for style elements through to the CSS parser so we can give correct line numbers in error reports. b=240420 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@161992 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-09 17:32:35 +00:00
neil%parkwaycc.co.uk
0bbab9b402 Bug 32372 should be possible to completely disable CSS p=fantasai@inkedblade.net r=me (xpfe) r/sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@160395 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-05 11:38:42 +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
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
darin%meer.net
d512bb2e4d fixes bug 239038 "rev IIDs for all interfaces modified since Mozilla 1.6" r=bsmedberg sr=jst
git-svn-id: svn://10.0.0.236/trunk@154957 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-15 23:30:05 +00:00
bzbarsky%mit.edu
3e32bc588c Don't use HTML rules to parse (redundantly) media strings in CSS @import
rules.  Bug 153755, r+sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@151128 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-10 02:27:41 +00:00
caillon%returnzero.com
e69f301e32 Bug 212504. Removal of the default namespace arguments from CSSStyleSheet and CSSLoader.
r=bzbarsky@mit.edu, sr=dbaron@dbaron.org


git-svn-id: svn://10.0.0.236/trunk@144937 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-18 01:26:47 +00:00
peterv%netscape.com
c96c6fa64f Fix for bug 195153 (Remove bogus 'extern' decls from NS_New* functions.). Patch by jst, r=sicking, sr=peterv.
git-svn-id: svn://10.0.0.236/trunk@138957 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-05 15:08:41 +00:00
bzbarsky%mit.edu
fbeccbf189 Change nsICSSLoader to nsAString instead of nsString (build bustage).
git-svn-id: svn://10.0.0.236/trunk@134673 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-03 06:46:46 +00:00
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
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
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
dbaron%fas.harvard.edu
7e821aaa94 Convert handwritten GetIID methods to use NS_DEFINE_STATIC_IID_ACCESSOR and add |const| to GetCID methods so that static |nsID|s are declared as |const|. b=153525 sr=jag r=bryner
git-svn-id: svn://10.0.0.236/trunk@124073 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-26 03:38:55 +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
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
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
dougt%netscape.com
1f7520e927 Extraneous Symbol Removal. Patch by Jon Smirl jonsmirl@mediaone.net. r=dougt@netscape.com, sr=alecf@netscape.com. Bug 104172, 104316, 104420, 104426, 104461, 104511, 104527
git-svn-id: svn://10.0.0.236/trunk@105810 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-19 20:59:33 +00:00
gerv%gerv.net
ed9b258739 License changes, take 2. Bug 98089. mozilla/content/.
git-svn-id: svn://10.0.0.236/trunk@103682 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-25 01:32:19 +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
peterv%netscape.com
b5b28ccdae Fixing regression bug 81918 (Setting preferred style sheet via HTTP headers is broken). r=glazman, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@95596 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-21 13:01:41 +00:00
peterv%netscape.com
f74c7ea12a Fix for bug 7515 (load stylesheets inserted dynamically through the DOM). r=heikki, harishd. sr=jst.
git-svn-id: svn://10.0.0.236/trunk@95505 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-19 02:59:15 +00:00
attinasi%netscape.com
3c5099c351 Added support for @charset in external stylesheets, as well as support for charset being set byt HTML document for parsing HTML style attributes in other charsets. r=ftang b=2870,28500
git-svn-id: svn://10.0.0.236/trunk@66894 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-23 02:01:40 +00:00
vidur%netscape.com
6eb67e93bd For bug 17325: Added nsICSSLoaderObserver as a way to see when style sheets complete loading. r=pierre.
git-svn-id: svn://10.0.0.236/trunk@55251 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-04 01:27:14 +00:00
dmose%mozilla.org
92d791b7b0 updated license boilerplate to xPL 1.1, a=chofmann@netscape.com,r=endico@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@52908 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-06 03:40:37 +00:00
peterl%netscape.com
7ac7ac6b56 hooked up quirk mode
git-svn-id: svn://10.0.0.236/trunk@38546 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-07 01:28:04 +00:00
warren%netscape.com
06d707be48 Renamed nsIURL to nsIURI in preperation for necko. More NECKO ifdefs too.
git-svn-id: svn://10.0.0.236/trunk@36440 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-23 03:29:44 +00:00
peterl%netscape.com
da190bcd66 added default namespace ID to loading
git-svn-id: svn://10.0.0.236/trunk@35392 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 06:18:23 +00:00
peterl%netscape.com
ca3b3a5c45 added drop doc reference
added load agent sheet
added usage notes


git-svn-id: svn://10.0.0.236/trunk@32807 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 23:51:25 +00:00
peterl%netscape.com
dd4beafc1d added css loader
git-svn-id: svn://10.0.0.236/trunk@32154 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 23:15:10 +00:00