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
b9d92a233a
Make NS_CheckContent(Load|Process)Policy only take a principal, not a principal
...
and a uri. Get the URI from the principal. Bug 391438, r+sr+a=sicking
git-svn-id: svn://10.0.0.236/trunk@231781 18797224-902f-48f8-a5cc-f745e15eee43
2007-08-10 05:35:09 +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
c6a333df55
Propagate a stylesheet's principal to the URI and Image CSSValues derived from
...
that sheet. Bug 377091, r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@225504 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-03 01:15:54 +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
asqueella%gmail.com
81e3a0b9ee
decomtaminate nsIXULPrototypeCache (bug 364329)
...
r=smaug, sr=roc
git-svn-id: svn://10.0.0.236/trunk@221763 18797224-902f-48f8-a5cc-f745e15eee43
2007-03-12 05:53:33 +00:00
joshmoz%gmail.com
c65f7936f7
remove unused variables, other warning fixes. no bug. r/sr=bz
...
git-svn-id: svn://10.0.0.236/trunk@220399 18797224-902f-48f8-a5cc-f745e15eee43
2007-02-16 08:04:44 +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
8c351facb0
Implement the proposed Web Apps 1.0 API for changing the selected style sheet
...
set, querying the available sets, etc. Bug 200930, r=sicking, sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@218215 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-11 19:32:31 +00:00
timeless%mozdev.org
c778d21502
Bug 355300 There should be only one nsGkAtoms creature
...
r=dbaron
git-svn-id: svn://10.0.0.236/trunk@217425 18797224-902f-48f8-a5cc-f745e15eee43
2006-12-26 17:47:52 +00:00
bzbarsky%mit.edu
f0caa7c822
Report the right URI in the warning. Bug 360863, patch by Nickolay Ponomarev
...
<asqueella@gmail.com>, r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@215415 18797224-902f-48f8-a5cc-f745e15eee43
2006-11-17 22:45:52 +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
bzbarsky%mit.edu
2d7539378c
Make nsIStreamLoader and nsIUnicharStreamLoader be stream listeners. Bug
...
281153, patch by Son Le <son.le0@gmail.com>, r=biesi, sr=darin
git-svn-id: svn://10.0.0.236/trunk@214092 18797224-902f-48f8-a5cc-f745e15eee43
2006-10-24 21:47:40 +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
cvshook%sicking.cc
5a27cf2ab0
Bug 335913: Reimplement CompareDocumentPosition using nsINode interfaces. r/sr=bz
...
git-svn-id: svn://10.0.0.236/trunk@196677 18797224-902f-48f8-a5cc-f745e15eee43
2006-05-16 15:52:45 +00:00
cvshook%sicking.cc
805a3ca029
Bug 335913: Reimplement CompareDocumentPosition using nsINode interfaces. r/sr=bz
...
git-svn-id: svn://10.0.0.236/trunk@196676 18797224-902f-48f8-a5cc-f745e15eee43
2006-05-16 15:50:47 +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
bryner%brianryner.com
1de3fc0366
Clean up header includes (bug 331050). This round of changes deals with some of the public content headers, and factors nsDOMClassInfoID out of nsIDOMClassInfo.h so that nsContentUtils.h doesn't have to bring in XPConnect. r+sr=jst.
...
git-svn-id: svn://10.0.0.236/trunk@192794 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-22 18:36:36 +00:00
cbiesinger%web.de
6322c04952
bug 183156 remove *UCS2* functions, replacing them with *UTF16* ones
...
r+sr=darin
git-svn-id: svn://10.0.0.236/trunk@188844 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-03 14:18:39 +00:00
jst%mozilla.jstenback.com
895df6e6ca
Fixing bug 316794. Moving HandleDOMEvent() and Get/SetDocShell from nsIScriptGlobalObject to nsPIDOMWindow. r=mrbkap@gmail.com, sr=peterv@propagandism.org
...
git-svn-id: svn://10.0.0.236/trunk@185351 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-28 23:56:44 +00:00
peterv%propagandism.org
8c33ea74e1
Fix for bug 308328 (crash in [@ nsDocument::GetPrincipal] when closing browser). r/sr=bz.
...
git-svn-id: svn://10.0.0.236/trunk@182242 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-14 09:07:29 +00:00
bzbarsky%mit.edu
dcb6244b69
Make sure not to access members of deleted SheetLoadDatas. Bug 308766, r+sr=jst
...
git-svn-id: svn://10.0.0.236/trunk@180394 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-16 15:38:04 +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
peterv%propagandism.org
b64b04886f
Fix for bug 306363 (Clean up nsContentUtils service getters). r/sr=bz.
...
git-svn-id: svn://10.0.0.236/trunk@179982 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-11 10:08:43 +00:00
bzbarsky%mit.edu
e79cce1c42
Allow passing a cached nsIContentPolicy service pointer to
...
NS_CheckContent*Policy if the caller has one. Bug 304845, r=biesi, sr=jst
git-svn-id: svn://10.0.0.236/trunk@178242 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-19 15:00:01 +00:00
cbiesinger%web.de
12a01dec29
Bug 295047 Want unicode stream readers/writers: Makes nsIUnicharInputStream and
...
nsIConverterInputStream scriptable, and adds nsIUnicharOutputStream and
nsIConverterOutputStream (together with implementations).
r=jshin sr=darin a=chofmann
git-svn-id: svn://10.0.0.236/trunk@175107 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-24 19:44:50 +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
bzbarsky%mit.edu
91c825c2cc
Use nsContentUtils for error-reporting for <area> parsing. Bug 269697,
...
r+sr=jst
git-svn-id: svn://10.0.0.236/trunk@165646 18797224-902f-48f8-a5cc-f745e15eee43
2004-11-23 17:45:37 +00:00
dbaron%dbaron.org
e8bca4edc1
Add function to nsContentUtils to report a localized error message to the error console, and use it from the three places that were doing pretty much the same thing. b=187007 r+sr=bzbarsky
...
git-svn-id: svn://10.0.0.236/trunk@162314 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-14 17:26:35 +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
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
dbaron%dbaron.org
59572fab24
Move things that aren't author stylesheets out of nsDocument's mStyleSheets array to simplify stylesheet management code. Add a level of the cascade for style attributes and ensure that there's only one rule processor per level of the cascade, and simplify the logic of nsCSSRuleProcessor creation. b=252578 r+sr=bzbarsky
...
git-svn-id: svn://10.0.0.236/trunk@159965 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-28 07:08:41 +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
dbaron%dbaron.org
7d1892d30f
Ensure chrome: URLs stay that way so theme switching code doesn't get confused, even though most chrome: stylesheet loads don't come through this codepath. b=226791 r+sr=bzbarsky
...
git-svn-id: svn://10.0.0.236/trunk@159203 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-14 22:21:07 +00:00
dbaron%dbaron.org
876fe15a8a
Send correct HTTP Referer header for CSS @import. b=249171 r+sr=bzbarsky
...
git-svn-id: svn://10.0.0.236/trunk@159194 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-14 21:52:19 +00:00
roc+%cs.cmu.edu
0b0fa89131
Bug 226439. Convert codebase to use AppendLiteral/AssignLiteral/LowerCaseEqualsLiteral. r+sr=darin
...
git-svn-id: svn://10.0.0.236/trunk@157992 18797224-902f-48f8-a5cc-f745e15eee43
2004-06-17 00:13:25 +00:00
bsmedberg%covad.net
41d6e4ccc6
Bug 239925 - fix static initializers in DOM/widget/libpr0n so that we can restart XPCOM safely r=jst sr=darin
...
git-svn-id: svn://10.0.0.236/trunk@157668 18797224-902f-48f8-a5cc-f745e15eee43
2004-06-09 18:36:25 +00:00
roc+%cs.cmu.edu
bdc7e5f59b
Bug 226439. Convert Seamonkey to EqualsLiteral. rs=darin
...
git-svn-id: svn://10.0.0.236/trunk@156785 18797224-902f-48f8-a5cc-f745e15eee43
2004-05-22 22:15:22 +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
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
af98e4f306
landing dbaron's patch for bug 235735 "fix callers that cast away const on result of ns[C]String::get" r+sr=darin
...
git-svn-id: svn://10.0.0.236/trunk@153357 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-28 22:34:07 +00:00
jst%mozilla.jstenback.com
6629ad58f7
Fixing bug 232503. Start using Empty[C]String() to save a bit on code-size. r+sr=peterv@propagandism.org
...
git-svn-id: svn://10.0.0.236/trunk@152045 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-29 22:04:45 +00:00