597 Commits

Author SHA1 Message Date
igor%mir2.org
642c0ea402 Bug 338678: For source compatibility fields "uint16 extra,spare" in JSFunctionSpec are replaced by singe "uint32 extra". In this way we do need to update the current sources that list just 5 fields to include the additional ",0" corresponding to "spare" field. To quell GCC warnings all sources that list less then 5 fields of JSFunctionSpec are updated to explicitly list all 5 fields. r=mrbkap, s=brendan
git-svn-id: svn://10.0.0.236/trunk@198222 18797224-902f-48f8-a5cc-f745e15eee43
2006-05-22 22:58:31 +00:00
bzbarsky%mit.edu
d81cffda8c Make GetOrigin dig into nested URIs. Bug 336303, r=dveditz, sr=jst
git-svn-id: svn://10.0.0.236/trunk@196360 18797224-902f-48f8-a5cc-f745e15eee43
2006-05-12 00:05:40 +00:00
bzbarsky%mit.edu
08786350f4 Create our URIs by hand (since we have our own scheme), instead of going
through the ioService.  Also fixes some threadsafety stuff.  Bug 337513,
r=dveditz, sr=darin.


git-svn-id: svn://10.0.0.236/trunk@196312 18797224-902f-48f8-a5cc-f745e15eee43
2006-05-11 16:06:35 +00:00
cbiesinger%web.de
8d9f96359d bug 335180 Remove win32.order, mozilla-bin.order, --enable-reorder, and
associated code. These options do not really work anymore.

r=bsmedberg


git-svn-id: svn://10.0.0.236/trunk@196108 18797224-902f-48f8-a5cc-f745e15eee43
2006-05-06 17:53:51 +00:00
bzbarsky%mit.edu
a553da6bbb Disable optimization that relies on invariants we don't maintain. Bug 317240
wallpaper, r+sr=jst


git-svn-id: svn://10.0.0.236/trunk@195964 18797224-902f-48f8-a5cc-f745e15eee43
2006-05-04 15:23:43 +00:00
bzbarsky%mit.edu
c0ef817e7c Deal with null subject URIs in SecurityCompareURIs. Bug 336432, r=dveditz, sr=jst
git-svn-id: svn://10.0.0.236/trunk@195949 18797224-902f-48f8-a5cc-f745e15eee43
2006-05-04 02:29:46 +00:00
darin%meer.net
78b4d016b3 fixes bug 214672 "Further optimization and correctness improvements of libjar: streamlining nsJarInputStream" patch by Alfred Kayser <alfredkayser@nl.ibm.com>, r=jwalden, sr=darin
git-svn-id: svn://10.0.0.236/trunk@195829 18797224-902f-48f8-a5cc-f745e15eee43
2006-05-02 19:33:09 +00:00
bzbarsky%mit.edu
c4f7acfe09 Add an interface for nested URIs (like jar:, view-source:, etc) to implement
and use it in various places.  Create null principals if asked for a codebase
principal for a codebase that doesn't have an inherent security context (eg
data: or javascript:).  Bug 334407, r=biesi,dveditz, sr=darin


git-svn-id: svn://10.0.0.236/trunk@195823 18797224-902f-48f8-a5cc-f745e15eee43
2006-05-02 18:54:19 +00:00
bzbarsky%mit.edu
f736a7bab0 Deal with checkLoadURI better in the face of URI fixup. Bug 334341, r=biesi, sr=dveditz
git-svn-id: svn://10.0.0.236/trunk@195330 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-25 03:24:43 +00:00
bzbarsky%mit.edu
b5178addb1 Check rv before looking at port. Bug 334210, r+sr+branch181=jst
git-svn-id: svn://10.0.0.236/trunk@194554 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-17 23:19:54 +00:00
bzbarsky%mit.edu
07f561af8d Allow redirects to data: URIs. Bug 211999, r=dveditz, jruderman; sr=darin
git-svn-id: svn://10.0.0.236/trunk@194551 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-17 23:13:33 +00:00
bzbarsky%mit.edu
7a842b50b9 Fix refcounting bug. Followup to bug 327176; reviews pending.
git-svn-id: svn://10.0.0.236/trunk@193604 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-05 16:48:51 +00:00
bzbarsky%mit.edu
f8006936fc Followup to bug 326506 -- this comment got lost somehow.
git-svn-id: svn://10.0.0.236/trunk@193402 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-02 22:00:08 +00:00
bzbarsky%mit.edu
9ff3edeea6 Init the system principal singleton when we init the security manager -- no
need for lazy init here.  Bug 327176, r=mrbkap, sr=dveditz


git-svn-id: svn://10.0.0.236/trunk@193400 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-02 21:10:23 +00:00
bzbarsky%mit.edu
e1ba63aa5f Create a powerless non-principal and start using it. Bug 326506, r=mrbkap,
sr=dveditz


git-svn-id: svn://10.0.0.236/trunk@193399 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-02 20:58:26 +00:00
darin%meer.net
70deb5f58d fixes bug 328925 "Replace NS_WARN_IF_FALSE with NS_ASSERTION (where appropriate)" r=dbaron
git-svn-id: svn://10.0.0.236/trunk@193272 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-30 18:40:56 +00:00
martijn.martijn%gmail.com
8243740c9d Bug 330037 - First check if script/data url's are allowed, r=dveditz, sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@192414 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-15 11:03:25 +00:00
bryner%brianryner.com
7ec5e10667 Remove dependency on nsIClassInfo.h from nsISupports.h (bug 330420). This adds a new nsIClassInfoImpl.h file which can be included to get the CI implementation macros. Also, removes unneeded inclusion of nsIProgrammingLanguage.h from nsIClassInfo.h. r=darin.
git-svn-id: svn://10.0.0.236/trunk@192401 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-15 04:59:42 +00:00
bzbarsky%mit.edu
d1faccd8b4 Followup fix for bug 307867 -- make sure to update our pointers to hashtable
entries when the entries move. r=dveditz, sr=brendan


git-svn-id: svn://10.0.0.236/trunk@191131 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-24 04:38:46 +00:00
timeless%mozdev.org
af51e73d0e Bug 106386 Correct misspellings in source code
r=bernd rs=brendan


git-svn-id: svn://10.0.0.236/trunk@191013 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-23 09:36:43 +00:00
bzbarsky%mit.edu
f1e9911556 Make nsIPrincipal and some methods that use it scriptable. Bug 327242, r=jst,
sr=dveditz


git-svn-id: svn://10.0.0.236/trunk@190358 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-17 16:12:17 +00:00
bzbarsky%mit.edu
71dde5ebcd Backing out since tree is closed.
git-svn-id: svn://10.0.0.236/trunk@190330 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-17 03:33:03 +00:00
bzbarsky%mit.edu
c8f8cb26e0 Make nsIPrincipal and some methods that use it scriptable. Bug 327242, r=jst,
sr=dveditz


git-svn-id: svn://10.0.0.236/trunk@190329 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-17 03:26:03 +00:00
bzbarsky%mit.edu
9f067136f3 Remove dead code. Bug 327171, r=mrbkap, sr=shaver
git-svn-id: svn://10.0.0.236/trunk@189996 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-14 21:08:15 +00:00
bzbarsky%mit.edu
588387679c Fix debug code to assert the right thing. r=timeless
git-svn-id: svn://10.0.0.236/trunk@189987 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-14 20:20:49 +00:00
bzbarsky%mit.edu
7db1feab23 Fix bug 325991 -- spinning event queues requires more care. r=jst, sr=shaver
git-svn-id: svn://10.0.0.236/trunk@189362 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-07 22:24:47 +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
2a67af918b Fixing tinderbox orange. Make caps work right again when dealing with a script global object that's not a window. r+sr=bzbarsky@mit.edu
git-svn-id: svn://10.0.0.236/trunk@185368 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-29 06:00:36 +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
timeless%mozdev.org
f9bdb44b34 Bug 106386 Correct misspellings in source code
patch by unknown@simplemachines.org r=timeless rs=brendan


git-svn-id: svn://10.0.0.236/trunk@185269 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-25 08:16:51 +00:00
brettw%gmail.com
0420e64f2f Bug 316077, r=annie.sullivan, sr=darin
Protocol handler allowing access to binary annotations.


git-svn-id: svn://10.0.0.236/trunk@184829 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-17 18:39:00 +00:00
bzbarsky%mit.edu
90c17667d8 Get principals for XPConnect wrapped natives off their scope instead of walking
their parent chain.  Add some asserts to check that this actually does give the
same result, which it should with splitwindow.  Bug 289655, r=dbradley, sr=jst


git-svn-id: svn://10.0.0.236/trunk@184744 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-16 02:12:21 +00:00
cbiesinger%web.de
eaf06b8983 Bug 248052 Add a contract ID for a global channeleventsink. Make the
scriptsecuritymanager register for that and implement nsIChannelEventSink. Veto
redirects if CheckLoadURI fails. Remove the explicit usage of
nsIScriptSecurityManager from nsHttpChannel.cpp.

This eliminates js and xpconnect from REQUIRES, and brings us closer to remove
caps.

r=darin sr=bz


git-svn-id: svn://10.0.0.236/trunk@184313 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-08 20:47:16 +00:00
bzbarsky%mit.edu
d14d1f2475 Remove nsIStyledContent. Bug 313968, r=sicking, r=dbaron on nsCSSStyleSheet
changes, sr=jst


git-svn-id: svn://10.0.0.236/trunk@183371 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-02 00:41:51 +00:00
jst%mozilla.jstenback.com
07d2395134 Fixing bug 313373. Pass *vp through untouched to the checkAccess hook when checking for write access. r=mrbkap@gmail.com, sr=brendan@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@182933 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-25 00:29:28 +00:00
bzbarsky%mit.edu
a06f72a2d9 Don't call nsIClassInfo::GetClassDescription unless we really have to. Bug
313157, r=dveditz, sr=jst


git-svn-id: svn://10.0.0.236/trunk@182663 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-20 23:49:59 +00:00
mrbkap%gmail.com
1ce421fc5b bug 312124: Make Subsume treat about:blank principals as being weaker than other, non-about:blank principals, since that's how other code treats them. r=caillon sr=brendan
git-svn-id: svn://10.0.0.236/trunk@182260 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-14 18:57:26 +00:00
bzbarsky%mit.edu
b4a5294710 Make wildcards work for the default policy too. Bug 307867, r=caillon, sr=dveditz
git-svn-id: svn://10.0.0.236/trunk@181269 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-30 03:30:40 +00:00
dbaron%dbaron.org
c1699761ee Improve consistency of conversion from about URI to about module. b=306261 r=darin sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@180174 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-14 04:16:27 +00:00
bzbarsky%mit.edu
151ce36b21 Remove the security.checkloaduri preference. Please to be using the
checkloaduri CAPS policy instead, since that's less likely to let you shoot
yourself in the foot.

Bug 307382, r=caillon, sr=dveditz


git-svn-id: svn://10.0.0.236/trunk@179918 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-09 18:43:45 +00:00
dougt%meer.net
94085e172f Bug 302284. add xpi hash support to InstallTrigger.install(). r=dveditz, sr=shaver, a=asa
git-svn-id: svn://10.0.0.236/trunk@179031 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-26 06:46:21 +00:00
peterv%propagandism.org
2b66b3502d Fix for bug 290100 (XMLHttpRequest affected by document.domain setting). r=caillon, sr=brendan.
git-svn-id: svn://10.0.0.236/trunk@178930 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-25 11:51:42 +00:00
mconnor%steelgryphon.com
bc56b295fd bug 300830 - new error page (about:neterror) can load privileged about: urls, patch by dveditz, r=bsmedberg, sr=shaver
git-svn-id: svn://10.0.0.236/trunk@178594 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-22 05:09:11 +00:00
gavin%gavinsharp.com
d54b52ab08 Bug 298823: JAR URIs (and other types missing the host part) are not properly handled by nsScriptSecurityManager::LookupPolicy(), patch by Giorgio Maone <g.maone@informaction.com>, r=caillon, sr=dveditz
git-svn-id: svn://10.0.0.236/trunk@177957 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-17 16:55:00 +00:00
timeless%mozdev.org
ae4ec1442e Bug 304085 crash [@ JS_ValueToString - JSValIDToString] with DEBUG_CAPS_HACKER
r=caillon sr=dveditz


git-svn-id: svn://10.0.0.236/trunk@177932 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-17 07:40:39 +00:00
timeless%mozdev.org
7eec49b5ff Bug 304054 nsScriptSecurityManager.cpp doesn't build ifdef DEBUG_CAPS_HACKER unless defined DEBUG
r=dveditz sr=dveditz


git-svn-id: svn://10.0.0.236/trunk@177669 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-12 23:13:46 +00:00
timeless%mozdev.org
bb2751407b Bug 304240 Make noAccess/allAccess/sameOrigin consistently intercaps in the source tree
r=caillon sr=dveditz


git-svn-id: svn://10.0.0.236/trunk@177665 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-12 23:11:32 +00:00
bzbarsky%mit.edu
55a6daf516 Comment-only fixes I forgot to make. Bug 240661.
git-svn-id: svn://10.0.0.236/trunk@176464 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-22 20:49:12 +00:00
bzbarsky%mit.edu
354647c8df Expose the subject name for the cert and an nsISupports pointer to the cert on
nsIPrincipal that represents a certificate principal.  Change preference
storage to ensure matches in not only the fingerprint but also the subjectName
before applying privileges from preferences to a certificate principal.  Remove
possibility for creating certificate principals without a useful identifying
name and make sure that names don't get munged by being forced to ASCII.  Bug
240661, r=caillon, sr=dveditz, a=bsmedberg


git-svn-id: svn://10.0.0.236/trunk@176458 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-22 19:05:42 +00:00
timeless%mozdev.org
310bcc516c Bug 300853 Caps crash on cleanup [@ DomainPolicy::Drop]
patch by g.maone@informaction.com r=caillon sr=dveditz a=bsmedberg


git-svn-id: svn://10.0.0.236/trunk@176283 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-19 21:55:36 +00:00