12 Commits

Author SHA1 Message Date
bzbarsky%mit.edu
cc24d0fe78 Add an internal security-check-less method for adding rules to stylesheets to
fix bug 386939.  r+sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@243422 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-18 05:23:44 +00:00
bzbarsky%mit.edu
19f3323d77 Make the "href" property of stylesheets reflect the original URI that was
reflected to load the sheet.  Bug 397427, r=dbaron,biesi, sr=dbaron, a=dsicore


git-svn-id: svn://10.0.0.236/trunk@238046 18797224-902f-48f8-a5cc-f745e15eee43
2007-10-23 21:56:43 +00:00
bzbarsky%mit.edu
4e2bfe0308 Propagate the principal responsible an image load all the way to
CanLoadImage/LoadImage in nsContentUtils, and use it for security checks
there.  Bug 310165, r=sicking, sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@229261 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-03 18:45:40 +00:00
bzbarsky%mit.edu
6e86d03b2e Stylesheets should know what their principal is, and it should be based on the
URI the sheet was loaded from, its certificate (if any) and the loader
principal, not just on the page the sheet is being applied to.  Propagate this
principal as the loading principal to @import loads from stylesheets.  Change
sheet access checks to use this principal instead of the sheet URI.  Bug
221428, r+sr=peterv


git-svn-id: svn://10.0.0.236/trunk@225401 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-01 19:26:15 +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
bryner%brianryner.com
604090c485 Convert CSSGroupRule and CSSStyleSheet to use nsCOMArray. Bug 312491, r+sr=bzbarsky.
git-svn-id: svn://10.0.0.236/trunk@182319 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-15 20:21:20 +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
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
bryner%brianryner.com
5379a88c76 Rename nsNameSpaceMap to nsXMLNameSpaceMap to avoid symbol collision in static builds (bug 281728). r=dbaron.
git-svn-id: svn://10.0.0.236/trunk@169449 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-19 00:10:38 +00:00
bryner%brianryner.com
32c824e02b Remove nsINameSpace and replace with a simple array-based list of namespace mappings for CSS. Bug 281728, r+sr=bzbarsky.
git-svn-id: svn://10.0.0.236/trunk@169414 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-18 19:18:37 +00:00
dbaron%dbaron.org
a4ca9058c6 Separate concept of stylesheet URI into base URI (for resolving relative links) and sheet URI (for everything else), since they can differ for style elements (and inline style and style set from script, but that's for the next patch). Some other things (relating to external stylesheets, where it doesn't make a difference) that probably should use the sheet URL are left as the base URL for now because I didn't want to change too much at once. b=255538 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@162059 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-10 06:45:59 +00:00
dbaron%dbaron.org
03b3717bb3 Give nsCSSStyleSheet a header file and rename the class in preparation for deCOMtamination. b=239008 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@160332 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-04 03:27:28 +00:00