Bug 837957 - Implement ICU dependent functions of Intl.Collator, Intl.NumberFormat, Intl.DateTimeFormat (part 2). r=jwalden

--HG--
extra : rebase_source : 4e248934ddd241284423b1d1e76957e65ca844ba
Bug 837957 - Implement ICU dependent functions of Intl.Collator, Intl.NumberFormat, Intl.DateTimeFormat (part 3). r=jwalden

--HG--
extra : rebase_source : 2e0f9f61c23e8318133eca54c5f74e9b9a8cfff9
Bug 837957 - Remove the suppress-unused attribute from a bunch of functions that now have uses.  r=trivial

--HG--
extra : rebase_source : fee0a5c45182407059812c2f5b5c03341de34fbd
Bug 847480 - Convert DeprecatedAbs use in NS_LUMINOSITY_DIFFERENCE to Abs.  r=dbaron

--HG--
extra : rebase_source : dc7af2a8d93070887a98287d70ab4d68cc956551
Bug 847480 - Convert DeprecatedAbs uses in animation code.  r=dbaron

--HG--
extra : rebase_source : 25658f793054005db84485849d9205f56489830a
Bug 847480 - Remove unused (verified by manual inspection and try) DeprecatedAbs overloads so it's harder for new uses to pop up.  r=Ms2ger

--HG--
extra : rebase_source : dff4d6d2c7006fbc296c9ae0b08d3e66219f7846
Bug 817638 - Add content mochitests to B2G, r=jgriffin
Bug 846257 - Robocop: Extend 'Web Content Context Menu' test to cover the context menu options for images. r=jmaher
Bug 853283 - Grab the window directly from the navigator in nsNavigatorSH::NewResolve. r=mrbkap
Bug 658909 - Force |this| computation in SandboxCallableProxyHandler::call when using Xrays. r=bz

Comment says it all.
Bug 658909 - Make isSafeToUnwrap pseudo-dynamic for SOWs. r=mrbkap

This can go away as soon as XBL scopes are no longer behind a pref.
Bug 658909 - Remove unnecessary ccx param. r=mrbkap
Bug 658909 - Initialize the same fields in both XPCCallContext constructors. r=mrbkap

This is a huge footgun. XPCCallContext is hot, but it's not too hot to be safe
here. Garbage XPCWN and JSObject pointers are bad.
Bug 658909 - Set args at XPCCallContext construct time in XPC_WN_GetterSetter. r=mrbkap

It's not clear to me why it's done this way, but it confuses our ability to
determine during wrapper lookup whether we're doing a set or a get. This aligns
the behavior with XPC_WN_CallMethod, including passing JSID_VOID for the name
(which is safe because XPCCallContext explicitly special-cases JSID_VOID and
doesn't call SetName in that case).
Bug 658909 - Implement carefully-checked unwrapping in XPCCallContext. r=mrbkap
Bug 658909 - Use JS_{,Strict}PropertyOp instead of null when defining value props in nsDOMClassInfo. r=mrbkap

Using JSPropertyOp means a null shape getter, whereas null means that the shape
uses the class getter. This means that stuff like window.top, which is defined
as a non-configurable |own| property in nsDOMClassInfo, was getting set up with
XPC_WN_Helper_GetProperty as its get operation. But this confused
SandboxProxyHandler, which explicitly avoids rebinding class getters/setters,
which in turn meant that our sandboxPrototype feature was relying on the crazy
prototype-climbing behavior of GetWrappedNativeOfJSObject to make stuff like
|this.top| work. We're removing this behavior, so we need to fix nsDOMClassInfo
here.

Here are some DefineProperty cases that I left with null getters/setters:
* nsDOMClassInfo::ResolveConstructor
* The child window stuff at the bottom of nsWindowSH::NewResolve
* Named item resolution in nsNamedArraySH::NewResolve
* document.all stuff (scary!)
* nsHTMLDocumentSH::NewResolve
* nsHTMLFormElementSH::NewResolve
* nsStorage2SH::NewResolve
Bug 658909 - Add a hack to support calling nohelper XPCWN methods without the proper |this|. r=mrbkap
Bug 658909 - Stop doing all the crazy stuff in GetWrappedNativeOfJSObject. r=mrbkap
Bug 658909 - Add a new, much simpler API for getting WNs from JS objects. r=mrbkap
Bug 658909 - Remove GWNOJO from MarkWrappedNative. r=mrbkap