Carsten "Tomcat" Book
ae1ff01d28
Backed out changeset 33ff09852b0a (bug 1039162) for ics emulator opt/debug test failures
2014-07-17 09:18:16 +02:00
Nicholas Nethercote
c6a865ac70
Bug 1039162 - Don't use |for each| in XPCOMUtils.jsm. r=mrbkap.
...
|for ... each| loops create an Iterator object each time they execute. They're
also an E4X hangover. Converting them to vanilla arrays avoids the creation of
almost 6,000 Iterator objects when starting up B2G, mostly due to makeQI().
--HG--
extra : rebase_source : f3a3fe2d64a045dacf70461611d9a0b72a38a210
2014-07-16 22:45:29 -07:00
Birunthan Mohanathas
a4ac396211
Bug 1038535 - Flatten caps/{idl,include,src}/ directories. r=bholley,gps
...
--HG--
rename : caps/src/DomainPolicy.cpp => caps/DomainPolicy.cpp
rename : caps/include/DomainPolicy.h => caps/DomainPolicy.h
rename : caps/idl/nsIDomainPolicy.idl => caps/nsIDomainPolicy.idl
rename : caps/idl/nsIPrincipal.idl => caps/nsIPrincipal.idl
rename : caps/idl/nsIScriptSecurityManager.idl => caps/nsIScriptSecurityManager.idl
rename : caps/src/nsJSPrincipals.cpp => caps/nsJSPrincipals.cpp
rename : caps/include/nsJSPrincipals.h => caps/nsJSPrincipals.h
rename : caps/src/nsNullPrincipal.cpp => caps/nsNullPrincipal.cpp
rename : caps/include/nsNullPrincipal.h => caps/nsNullPrincipal.h
rename : caps/src/nsNullPrincipalURI.cpp => caps/nsNullPrincipalURI.cpp
rename : caps/src/nsNullPrincipalURI.h => caps/nsNullPrincipalURI.h
rename : caps/src/nsPrincipal.cpp => caps/nsPrincipal.cpp
rename : caps/include/nsPrincipal.h => caps/nsPrincipal.h
rename : caps/src/nsScriptSecurityManager.cpp => caps/nsScriptSecurityManager.cpp
rename : caps/include/nsScriptSecurityManager.h => caps/nsScriptSecurityManager.h
rename : caps/src/nsSystemPrincipal.cpp => caps/nsSystemPrincipal.cpp
rename : caps/include/nsSystemPrincipal.h => caps/nsSystemPrincipal.h
2014-07-15 11:12:59 -07:00
Jan de Mooij
6675f63031
Bug 1037886 - Report Latin1 and TwoByte strings separately in about:memory. r=njn
2014-07-16 19:11:50 +02:00
Jon Coppeard
e02ddd1af3
Bug 1038274 - Really fix previous problem with landing r=me
2014-07-16 12:04:33 +01:00
Jon Coppeard
2ed8ff7bfc
Bug 1038274 - Add max heap size constants to pass to JS_NewRuntime() r=terrence
2014-07-16 10:01:20 +01:00
Jon Coppeard
0136e9a714
Backed out changeset 5290e42e8345 (bug 1038274) for disabling GC malloc trigger
2014-07-16 11:34:49 +01:00
Jon Coppeard
948a1ddf13
Bug 1038274 - Add max heap size constants to pass to JS_NewRuntime() r=terrence
2014-07-16 10:01:20 +01:00
Bobby Holley
52d26b4f2d
Bug 1037264 - Add an 8-bit short-lived string cache. r=neil
2014-07-15 16:30:51 -07:00
Bobby Holley
bad841d721
Bug 1037264 - Factor out short-lived string buffer into a templated helper class. r=neil
2014-07-15 16:30:50 -07:00
Bobby Holley
d5bc7cc4b8
Bug 940323 - Mode strictMode to RuntimeOptions. r=jandem
2014-07-15 09:04:20 -07:00
Bobby Holley
e6562f0ffa
Bug 1036185 - Clean up logic in IsPermitted (bonus fix). r=gabor
2014-07-15 09:04:19 -07:00
Bobby Holley
5153c3cf9f
Bug 1036185 - Remove XPCCallContext::UnwrapThisIfAllowed. r=gabor
2014-07-15 09:04:19 -07:00
Jan de Mooij
cfcce18b5a
Bug 1037613 - rm js_GetLocalizedErrorMessage, localeGetErrorMessage callback. r=jorendorff
2014-07-15 15:14:38 +02:00
Bill McCloskey
c0cc070864
Bug 1017323 - Fix more non-unified build bustage
2014-07-14 23:12:18 -07:00
Bill McCloskey
47a7769d00
Bug 1017323 - Fix some non-unified build bustage
2014-07-14 22:49:09 -07:00
Bill McCloskey
926f8bfdd8
Bug 1017323 - Add-on interposition (r=bholley)
2014-07-14 22:10:05 -07:00
Andrew McCreight
c3a80ae7ac
Bug 1038207 - Fix various classes that reimplement nsISupports. r=ehsan
2014-07-14 12:21:34 -07:00
Bobby Holley
2b91ca141d
Bug 856067 - Actually push the test. r=me CLOSED TREE
2014-07-14 10:22:51 -07:00
Bobby Holley
b37b624cfa
Bug 856067 - Tests. r=me
2014-07-14 10:09:07 -07:00
Bobby Holley
d65aa88546
Bug 856067 - Add some helpful logging to the console when we deny access to a non-Xrayable object. r=gabor
2014-07-14 10:09:07 -07:00
Bobby Holley
2fac4671d3
Bug 856067 - Remove special case for content XBL scopes. r=gabor
...
This is now the default behavior. \o/
2014-07-14 10:09:07 -07:00
Bobby Holley
1ef8a86459
Bug 856067 - Make unwaived non-Xrayable objects opaque from privileged code. r=gabor
2014-07-14 10:09:07 -07:00
Bobby Holley
65bed4527b
Bug 856067 - Fix up test_xrayToJS.xul. r=gabor
2014-07-14 10:09:06 -07:00
Octoploid
393cf7b755
Bug 1035092 - "bool functions shouldn't return nullptr" [r=sfink]
...
--HG--
extra : rebase_source : 0a0f2549b0a34c759384d8293f6227e112610147
2014-07-12 06:26:00 -07:00
Bobby Holley
999a47cf8c
Bug 1036777 - Fix string casts to be safe per-XPIDL. r=neil
...
These types map to nsAString and nsACString respectively.
2014-07-11 19:21:23 -07:00
Ms2ger
89cf0e3900
Bug 1036777 - Remove the useAllocator argument to XPCConvert::JSData2Native; r=bholley
...
It turns out the useAllocator argument is only used for the dipper types
(nsXPTType::{T_ASTRING, T_DOMSTRING, T_UTF8STRING, T_CSTRING}), while we
only pass true in cases where we don't have a dipper type:
* XPCConvert::JSArray2Native errors on those types;
* GetNamedPropertyAsVariantRaw() passes an interface type;
* nsXPCWrappedJSClass::CallMethod passes !param.IsDipper() for the first
calls and only reaches the last call for dependent types, which do not
include any of the dipper types;
* CallMethodHelper::ConvertIndependentParam handles dipper types earlier
* and CallMethodHelper::ConvertDependentParam handles dependent types.
2014-07-11 19:21:23 -07:00
Bobby Holley
de1ac1f4bd
Bug 1036777 - Stop relying on useAllocator for 'in' string classes in ConvertIndependentParam. r=neil
2014-07-11 19:21:22 -07:00
Boris Zbarsky
4330519678
Bug 832014 part 9. Switch AccessCheck to using the generated LocationBinding::IsPermitted method. r=bholley
2014-07-11 19:34:44 -04:00
Boris Zbarsky
618671a12c
Bug 832014 part 8. Switch Location to WebIDL bindings. r=peterv,bholley
2014-07-11 19:32:46 -04:00
Bobby Holley
4776e65d38
Bug 1034682 - Set wantXrays to false for content XBL scopes. r=billm
2014-07-11 15:56:27 -07:00
Bobby Holley
a510cbf751
Bug 1034682 - Move remaining wacky wantXrays behavior to the JS entry point so that we don't have to worry about it when creating Sandboxes from C++. r=peterv
2014-07-11 15:56:27 -07:00
Bobby Holley
38ba3e44e0
Bug 1034682 - Remove nonsensical sandboxProto waiving in the wantXrays case. r=peterv
...
This doesn't make sense. wantXrays means that the WrapperFactory machinery gives
us Xrays in the same-origin case. When it's false, we don't have Xrays to
same-origin objects to begin with, so the waive is useless. Its only observable
effect comes in the situation of privileged (i.e. nsEP) sandboxes with a
less-privileged sandboxPrototype. And I see no reason why these things should get
a waived prototype.
It looks like this was added in 2010 for the Web Console in bug 611401. None of
that is applicable anymore.
2014-07-11 15:56:27 -07:00
Bobby Holley
e7024b77c9
Bug 987669 - Just use macros because MSVC and gcc don't have real constexpr support. r=me CLOSED TREE
2014-07-11 09:37:00 -07:00
Jan de Mooij
680e7363ee
Bug 1034627 part 8 - Fix XPCConvert to work with Latin1 strings and nursery strings. r=bholley
2014-07-11 16:22:39 +02:00
Jan de Mooij
10540962e8
Bug 1034627 part 5 - Make quick stubs work with Latin1 strings and nursery strings. r=bz
2014-07-11 16:22:35 +02:00
Bobby Holley
05fbd0d662
Bug 987669 - Tests. r=gabor
2014-07-11 09:09:22 -07:00
Bobby Holley
c4700e5072
Bug 987669 - Turn on Xrays for Error objects. r=gabor
2014-07-11 09:09:22 -07:00
Bobby Holley
83fe833e66
Bug 987669 - Add Xray support for FooError.prototype.name. r=gabor
2014-07-11 09:09:22 -07:00
Bobby Holley
d4e5d6b652
Bug 987669 - Implement Xray support for the data properties on ErrorObject instances. r=gabor
2014-07-11 09:09:21 -07:00
Bobby Holley
d2fd703dac
Bug 987669 - Implement IsErrorObjectKey and do more at compile-time. r=gabor
2014-07-11 09:09:21 -07:00
Bobby Holley
d204a01c8f
Bug 940316 - Move werror to RuntimeOptions. r=jandem
2014-07-11 08:30:47 -07:00
Ed Morley
d8704a83d2
Backed out changeset 8f50bc05d337 (bug 1034627) for debug build failures
2014-07-11 15:46:53 +01:00
Ed Morley
9af578991f
Backed out changeset bcba40acc0ac (bug 1034627)
2014-07-11 15:46:29 +01:00
Jan de Mooij
4e84888995
Bug 1034627 part 8 - Fix XPCConvert to work with Latin1 strings and nursery strings. r=bholley
2014-07-11 16:22:39 +02:00
Jan de Mooij
bcdc561427
Bug 1034627 part 5 - Make quick stubs work with Latin1 strings and nursery strings. r=bz
2014-07-11 16:22:35 +02:00
Jan de Mooij
cda5c814db
Bug 1034627 part 6 - Fix XPCVariant to work with Latin1 strings and nursery strings. r=bholley
...
--HG--
extra : rebase_source : be029c174195192570da688250583157825e9e06
2014-07-11 09:38:55 +02:00
Jan de Mooij
42fd43e50e
Bug 1034627 part 4 - Fix XPCComponents and XPCWrappedJSClass to work with Latin1 strings and nursery strings. r=bholley
...
--HG--
extra : rebase_source : 82d0a3ab83d9f10391da38c5c658627d1701f07a
2014-07-11 09:36:20 +02:00
Carsten "Tomcat" Book
ce57787693
Backed out changeset cf85693280c7 (bug 886570) frequent mochitest-3 errors on windows
2014-07-11 14:15:29 +02:00
Carsten "Tomcat" Book
4a0de0298f
Backed out changeset f78470faff8e (bug 1034627) Valgrind Test failures on a CLOSED TREE
2014-07-11 11:00:52 +02:00