39 Commits

Author SHA1 Message Date
bzbarsky%mit.edu
93c4cc49f1 Bug 416942. Give user and ua sheets the system principal. r+sr=sicking
git-svn-id: svn://10.0.0.236/trunk@256566 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-17 22:17:51 +00:00
dwitte%stanford.edu
b90c2e300d (final) relanding since this has no Ts impact.
git-svn-id: svn://10.0.0.236/trunk@241998 18797224-902f-48f8-a5cc-f745e15eee43
2007-12-22 00:56:28 +00:00
dwitte%stanford.edu
23ed84684d reverting change.
git-svn-id: svn://10.0.0.236/trunk@241911 18797224-902f-48f8-a5cc-f745e15eee43
2007-12-21 15:02:13 +00:00
dwitte%stanford.edu
0d0a1c333d reland part of bug 407442.
git-svn-id: svn://10.0.0.236/trunk@241898 18797224-902f-48f8-a5cc-f745e15eee43
2007-12-21 11:22:18 +00:00
dwitte%stanford.edu
d62beece33 relanding part of 407442.
git-svn-id: svn://10.0.0.236/trunk@241831 18797224-902f-48f8-a5cc-f745e15eee43
2007-12-20 07:30:06 +00:00
dwitte%stanford.edu
7094b241c3 back out changes.
git-svn-id: svn://10.0.0.236/trunk@241739 18797224-902f-48f8-a5cc-f745e15eee43
2007-12-19 11:07:42 +00:00
dwitte%stanford.edu
90bc683a3f reland nsTObserverArray changes only.
git-svn-id: svn://10.0.0.236/trunk@241732 18797224-902f-48f8-a5cc-f745e15eee43
2007-12-19 06:03:06 +00:00
dwitte%stanford.edu
5de2d1ee12 backing out to investigate Ts increase
git-svn-id: svn://10.0.0.236/trunk@241730 18797224-902f-48f8-a5cc-f745e15eee43
2007-12-19 04:12:13 +00:00
dwitte%stanford.edu
50e90b27e7 implement nsTObserverArray using nsTArray, clean up the interface, provide an nsAutoTObserverArray, and use it to reduce allocations in
nsEventListenerManager. b=407442, r+sr=sicking, a=beltzner


git-svn-id: svn://10.0.0.236/trunk@241726 18797224-902f-48f8-a5cc-f745e15eee43
2007-12-19 01:06:36 +00:00
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
jwalden%mit.edu
dda6ff3c99 Bug 348748 - Replace all instances of NS_STATIC_CAST and friends with C++ casts (and simultaneously bitrot nearly every patch in existence). r=bsmedberg on the script that did this. Tune in next time for Macro Wars: Episode II: Attack on the LL_* Macros.
git-svn-id: svn://10.0.0.236/trunk@229504 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-08 07:08:56 +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
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
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
eb4de59882 Simplify the posted events setup now that they're owned through dispatch by the
target thread. Bug 369247, r+sr=peterv


git-svn-id: svn://10.0.0.236/trunk@219506 18797224-902f-48f8-a5cc-f745e15eee43
2007-02-05 18:09:26 +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
darin%meer.net
42edf059cf landing patch for bug 326273 "Implement nsIThreadManager" (Mac portions by Mark Mentovai) with reviews from bienvenu, bsmedberg, bzbarsky, josh, roc, and ssieb
git-svn-id: svn://10.0.0.236/trunk@196254 18797224-902f-48f8-a5cc-f745e15eee43
2006-05-10 17:30: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
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
timeless%mozdev.org
5f942cda70 Bug 253539 Report origin url for css mime warnings/errors
r=bz sr=bz a=asa


git-svn-id: svn://10.0.0.236/trunk@160886 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-18 02:32:25 +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
bzbarsky%mit.edu
50d5ce0bc2 Switch context back to being nsISupports, but make it clear that it's expected
to be an nsIDOMNode or nsIDOMWindow.  Bug 252027, r=mvl, sr=shaver


git-svn-id: svn://10.0.0.236/trunk@159916 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-27 17:15:53 +00:00
mvl%exedo.nl
c0b2e4667b Make content policy api (nsIContentPolicy) not suck.
bug 191839. Original patch and hard work by Tim <riceman+bmo@mail.rit.edu>, r=bzbarsky (on backend stuff), r=neil (on the tabbrowser stuff), sr=bzbarsky


git-svn-id: svn://10.0.0.236/trunk@156366 18797224-902f-48f8-a5cc-f745e15eee43
2004-05-13 18:34:18 +00:00
gerv%gerv.net
5a6ece6544 Bug 236613: change to MPL/LGPL/GPL tri-license.
git-svn-id: svn://10.0.0.236/trunk@155064 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-18 13:54: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
bzbarsky%mit.edu
59d6abe4a5 Make pretty-printing stylesheets force UTF-8 for themselves. Update charset
stuff in CSSLoader to look at the parent sheet charset and use NSPR logging.
Bug 230660, r=sicking, sr=peterv


git-svn-id: svn://10.0.0.236/trunk@151254 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-13 19:01:26 +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
bzbarsky%mit.edu
4651d2cebb Make sure that sheets in a document always know their URL. Bug 218031, r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@147623 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-06 13:24:55 +00:00
bsmedberg%covad.net
2c2c23dd44 Bug 211470 - need a common nsURIHashKey r=darin sr=bz
git-svn-id: svn://10.0.0.236/trunk@145253 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-27 15:20:11 +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
bzbarsky%mit.edu
7c1787f026 Make the URI of a sheet be its final URI after all the redirects, not the URI
linked to from the original document.  Bug 96858, r+sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@144934 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-18 00:35:49 +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
bzbarsky%mit.edu
27037022c0 CSSLoader should check content policy. Bug 190653, r=mvl, sr=peterv
git-svn-id: svn://10.0.0.236/trunk@140730 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-04 23:57:06 +00:00
bzbarsky%mit.edu
a99c8b3055 Make the parser recycling list in the loader a class static. Bug 190658,
r=sicking, sr=peterv


git-svn-id: svn://10.0.0.236/trunk@138219 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-22 19:36:32 +00:00