gecko/js/xpconnect/wrappers
Bobby Holley 011c97a205 Bug 733984 - Use the Location security policy even for content accessing chrome. r=mrbkap
I'm adding asserts about when we do and don't have a Location object behind the wrapper, and this case was hitting them. What we do here doesn't so much matter given how this stuff all works. On the one hand, statically using a restrictive policy is slightly more defense-in-depth. On the other hand, if this stuff is broken we're screwed in much more serious ways than content reading chrome locations, and using a consistent wrapper scheme allows us to make stronger asserts and assumptions.

I opted for stronger assumptions and more understandable security code. If Blake feels strongly though, I could go the other way and sprinkle '|| isChrome(obj)' throughout the asserts though.
2012-03-23 14:59:19 -07:00
..
AccessCheck.cpp Bug 733984 - Clarify the security characteristics of Location objects. r=mrbkap 2012-03-23 14:59:07 -07:00
AccessCheck.h Bug 733984 - Clarify the security characteristics of Location objects. r=mrbkap 2012-03-23 14:59:07 -07:00
CrossOriginWrapper.cpp Bug 730511: remove obsolete typedefs intN, uintN, r=luke 2012-02-28 15:11:11 -08:00
CrossOriginWrapper.h Bug 730511: remove obsolete typedefs intN, uintN, r=luke 2012-02-28 15:11:11 -08:00
FilteringWrapper.cpp Bug 733984 - Clarify the security characteristics of Location objects. r=mrbkap 2012-03-23 14:59:07 -07:00
FilteringWrapper.h Bug 730511: remove obsolete typedefs intN, uintN, r=luke 2012-02-28 15:11:11 -08:00
Makefile.in Bug 714057 - Remove uintn users from XPConnect; r=bholley+khuey 2012-01-02 19:05:19 +01:00
WrapperFactory.cpp Bug 733984 - Use the Location security policy even for content accessing chrome. r=mrbkap 2012-03-23 14:59:19 -07:00
WrapperFactory.h Bug 733984 - Clarify the security characteristics of Location objects. r=mrbkap 2012-03-23 14:59:07 -07:00
XrayWrapper.cpp Bug 733984 - Stop specializing createHolder, and simplify holder creation in WrapperFactory::Rewrap. r=mrbkap 2012-03-23 14:59:04 -07:00
XrayWrapper.h Bug 733984 - Stop specializing createHolder, and simplify holder creation in WrapperFactory::Rewrap. r=mrbkap 2012-03-23 14:59:04 -07:00