bzbarsky%mit.edu
e369c02a93
Make security manager API more useful from script. Make more things
...
scriptable, and add a scriptable method for testing whether a given principal
is the system principal. Bug 383783, r=dveditz, sr=jst
git-svn-id: svn://10.0.0.236/trunk@228234 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-18 15:12:09 +00:00
bzbarsky%mit.edu
ce268ae2a9
Optimize immutability of codebase/domain a little bit. Bug 380475, r=dveditz, sr=biesi
...
git-svn-id: svn://10.0.0.236/trunk@228233 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-18 15:07:02 +00:00
bzbarsky%mit.edu
393b09b776
Make nsPrincipal::Equals compare codebases, not just certs, for certificate
...
principals. Bug 369201, r=dveditz, sr=jst
git-svn-id: svn://10.0.0.236/trunk@228232 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-18 15:01:53 +00:00
benjamin%smedbergs.us
7262cdad6d
Bug 376636 - Building with gcc 4.3 and -pendatic fails due to extra semicolons, patch by Art Haas <ahaas@airmail.net>, rs=me
...
git-svn-id: svn://10.0.0.236/trunk@224885 18797224-902f-48f8-a5cc-f745e15eee43
2007-04-23 14:22:04 +00:00
dbaron%dbaron.org
8043a5c9c7
Remove GetKeyPointer method from nsTHashtable key types. b=374906 r=bsmedberg
...
git-svn-id: svn://10.0.0.236/trunk@222464 18797224-902f-48f8-a5cc-f745e15eee43
2007-03-27 15:35:02 +00:00
dbaron%dbaron.org
30f83072c5
Remove unused getKey callback from PLDHashTableOps/JSDHashTableOps. b=374906 r=bsmedberg
...
git-svn-id: svn://10.0.0.236/trunk@222462 18797224-902f-48f8-a5cc-f745e15eee43
2007-03-27 15:33:45 +00:00
bzbarsky%mit.edu
f5956a5fd5
When getting codebase principals, install the passed-in codebase on them even
...
if they come from the hashtable. Bug 269270, r=dveditz, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@219846 18797224-902f-48f8-a5cc-f745e15eee43
2007-02-09 04:52:44 +00:00
bzbarsky%mit.edu
05a7c81642
Get the source scheme from the right URI object. Bug 368160, r+sr=dveditz
...
git-svn-id: svn://10.0.0.236/trunk@218954 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-26 04:33:02 +00:00
bzbarsky%mit.edu
43d470b66b
Make the redirect check get principals the same way we get them elsewhere.
...
Clean up some code to use the new security manager method. Bug 354693,
r=dveditz, sr=sicking
git-svn-id: svn://10.0.0.236/trunk@215685 18797224-902f-48f8-a5cc-f745e15eee43
2006-11-22 18:27:54 +00:00
gavin%gavinsharp.com
e09148e054
Bug 202198: fix possible leak in nsScriptSecurityManager::InitPrefs(), patch by Ryan Jones <sciguyryan+bugzilla@gmail.com>, r+sr=dveditz
...
git-svn-id: svn://10.0.0.236/trunk@215668 18797224-902f-48f8-a5cc-f745e15eee43
2006-11-22 17:22:40 +00:00
sayrer%gmail.com
87a1867328
Bug 360840. allocator mismatch in nsIScriptSecurityManager. r=timeless, sr=bz
...
git-svn-id: svn://10.0.0.236/trunk@215363 18797224-902f-48f8-a5cc-f745e15eee43
2006-11-16 18:25:52 +00:00
bzbarsky%mit.edu
d9cf9faf6c
Remove securityCompareURIs() from nsIScriptSecurityManager. Bug 327243, r+sr=jst
...
git-svn-id: svn://10.0.0.236/trunk@215290 18797224-902f-48f8-a5cc-f745e15eee43
2006-11-14 22:46:45 +00:00
bzbarsky%mit.edu
3f520eaa49
Make it possible for protocol handlers to configure how CheckLoadURI should
...
treat them via their protocol flags. Remove the protocol list we used before.
Bug 120373, r=dveditz, sr=darin
git-svn-id: svn://10.0.0.236/trunk@215130 18797224-902f-48f8-a5cc-f745e15eee43
2006-11-10 23:49:08 +00:00
cbiesinger%web.de
a09ce7942d
Bug 351876 Move nsICryptoHash into necko
...
r=darin
git-svn-id: svn://10.0.0.236/trunk@211837 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-15 22:06:31 +00:00
bzbarsky%mit.edu
bf296918cd
Introduce CheckLoadURIStrWithPrincipal(). Bug 348559, r=dveditz, sr=jst
...
git-svn-id: svn://10.0.0.236/trunk@208054 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-21 22:15:20 +00:00
pkasting%google.com
fe4d307f5c
Bug 337223: Don't expose moz-anno protocol to web pages.
...
Patch by brettw
r=jst
sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@207869 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-18 21:35:16 +00:00
bzbarsky%mit.edu
0583386559
Remove special-casing of about:blank for security purposes; give about:blank
...
pages the principal of whoever is responsible for loading them, when possible.
Bug 332182, r=mrbkap, sr=jst
git-svn-id: svn://10.0.0.236/trunk@207471 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-15 17:31:16 +00:00
dveditz%cruzio.com
0cc75e8cec
bug 340107 save wasted cycles checking permissions if we're just going to deny access anyway. r=mrbkap, sr=sicking
...
git-svn-id: svn://10.0.0.236/trunk@200986 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-27 00:56:41 +00:00
bzbarsky%mit.edu
bcc60a49cd
Fiox the special-casing for about:blank to deal with it now being
...
moz-safe-about:blank as far as the security manager is concerned. Bug 342108,
r=darin, sr=jst
git-svn-id: svn://10.0.0.236/trunk@200563 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-22 02:21:06 +00:00
bzbarsky%mit.edu
cc155c0109
Allow about: modules to just set a flag to force script execution to be allowed
...
for particular about: URIs, instead of hardcoding checks in the security
manager. Bug 341313, r=darin, sr=jst
git-svn-id: svn://10.0.0.236/trunk@200562 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-22 02:19:49 +00:00
bzbarsky%mit.edu
faa9044fad
Make the URIs of principals immutable. Bug 339822, r=dveditz, sr=darin
...
git-svn-id: svn://10.0.0.236/trunk@200404 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-20 03:17:41 +00:00
bzbarsky%mit.edu
6aa4a59940
Save the principal in the session history entry so that reloading a data: URL
...
will do the right thing. Also, change CheckLoadURI to allow null
principals to load things that anyone can load (e.g. http:// URIs). Bug
337260, r=dveditz, sr=jst
git-svn-id: svn://10.0.0.236/trunk@200350 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-19 21:08:45 +00:00
bzbarsky%mit.edu
dcd8a3a053
Move the safe vs unsafe about: distinction out of the security manager and into
...
nsIAboutModule implementations. Bug 337746, r=dveditz, sr=darin
git-svn-id: svn://10.0.0.236/trunk@200348 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-19 21:02:12 +00:00
mhammond%skippinet.com.au
e96b5e495a
Land DOM_AGNOSTIC3_BRANCH, bug 255942. r=a few people, sr=brendan.
...
git-svn-id: svn://10.0.0.236/trunk@199778 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-13 03:07:47 +00:00
mrbkap%gmail.com
0b7523274b
Checking in Ben Turner <bent.mozilla@gmail.com> and timeless's patch to make Gecko use the JS engine's request model to help multithreaded embedders avoid GC races and crashes. bug 176182, r=mrbkap assumed-rs=brendan
...
git-svn-id: svn://10.0.0.236/trunk@199768 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-12 22:39:55 +00:00
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