Commit Graph

119282 Commits

Author SHA1 Message Date
Bobby Holley
08c058f711 Bug 823348 - Precompute various parameters in Rewrap. r=mrbkap
This is generally cleaner, and avoids potentially calling these functions
multiple times when we start moving this stuff around.
2013-01-23 06:04:39 +01:00
Bobby Holley
39b3f7c72e Bug 823348 - Use GetXrayType for content->chrome Xray wrappers. r=mrbkap
There's no reason to do this any different than we do for XOWs and such. The
only thing this might conceivably support would be certain chrome XPWNs-as-COWs.
But that would require that they forced a parent in precreate without being
flagged as DOM objects in classinfo. And it's not clear why we'd want to support
that. And we're generally moving away from COWs anyway.
2013-01-23 06:04:39 +01:00
Bobby Holley
69822a012d Bug 823348 - Use EnsureCompartmentPrivate In Rewrap and stop checking for null. r=mrbkap 2013-01-23 06:04:39 +01:00
Bobby Holley
c3882ecf88 Bug 823348 - Flip off the wantXrays for chrome sandboxes. r=mrbkap
wantXrays means that the sandbox wants Xray wrappers even when accessing same-
origin content. The default is true, which Blake says has something to do with
GreaseMonkey and days of old.

This flag never had an effect for chrome, because the chrome->chrome case always
short-circuited to &CrossCompartmentWrapper::singleton. But once we start
respecting the flag as a general-purpose indicator that Xrays should be applied
same-origin, we need to either add a special case in Rewrap or make the flag reflect
reality. The latter seems cleaner and more sane.

However, things are complicated by the fact that there's also a completely different,
orthogonal usage, whereby setting wantXrays to false implicitly waives Xray on the
returned sandbox _and_ on any results returned from evalInSandbox. This is just nuts.
The former can be accomplished by callers manually using .wrappedJSObject, and the
latter by having EvalInSandbox transitively apply waivers from their sandbox arguments.

I've updated the documentation on the MDN page so that it only describes the
reasonable usage. The next step is to get rid of the crazy behavior. I think the
best path of migration is to have wantXrays: false keep implicitly waiving, but
waive return values from EvalInSandbox based on whether the argument was waived. This
patch does that.
2013-01-23 06:04:39 +01:00
Bobby Holley
44a21fc15a Bug 823348 - Make NNXOWs use an explicitly opaque Policy. r=mrbkap
There's no reason to be doing a dynamic check here, given that the JSClasses
will never match. Lets be explicit and safe.
2013-01-23 06:04:38 +01:00
Bobby Holley
ddece7045a Bug 823348 - Do a better job of lying about the holder and make assertions fatal. r=mrbkap
I noticed this nonfatal assertion firing, unrelated to my patches. Leaking
the holder is not so great. Let's fix this for real.
2013-01-23 06:04:38 +01:00
Bobby Holley
d0a9794947 Bug 823348 - Remove broken and unused __scriptOnly__ check. r=mrbkap
__scriptOnly__ is unused on mxr and addons-mxr. Morevoer, the current
implementation is totally broken, because we check for NNXOW, which only
happens when a random content JS object ends up in some other cross-origin
scope (via addons, presumably), whereas chrome objects use ChomeObjectWrapper.

I'm soon going to replace SCRIPT_ACCESS_ONLY with checked unwrapping, and mark
all COWs as unsafe to unwrap (see bug 821573 and bug 658909). So let's just kill
this thing here.
2013-01-23 06:04:38 +01:00
Bobby Holley
c0cc2fa626 Bug 823348 - Don't set universalXPConnectEnabled for chrome compartments. r=mrbkap
There's a browser-chrome test that does this, which means that _all_ subsequent
browser-chrome tests inherit it. So depending on the ordering of cases in
WrapperFactory, we might end up using a CrossCompartmentWrapper rather than an
XrayWrapper, meaning that stuff like nodePrincipal doesn't work anymore.

The semantics of UniversalXPConnect are now entirely dicatated by what makes
our test suite go green. So let's not force ourselves to bend over backwards
during wrapping to handle this case. And let's fix that stupid test while
we're at it.
2013-01-23 06:04:38 +01:00
Bobby Holley
71cfd0816b Bug 823348 - Uninline UniversalXPConnect management. r=mrbkap
Every time the layout of CompartmentPrivate changes, I forget to rebuild in
caps/ and spend half an hour wondering what the heck is going on. :-(
2013-01-23 06:04:38 +01:00
Phil Ringnalda
a5faa58c98 Back out 30b9fbf49c01:c7fc23428c3b (bug 823010) for being rotted by 8 hours
--HG--
extra : rebase_source : 0dde2f719d4963113b578d07a17a8001fb4e0f63
2013-01-22 21:02:58 -08:00
Kartikaya Gupta
4ae2c313a8 Bug 803791 - Guard against allocating a zero-capacity direct buffer. r=cpeterson 2013-01-23 00:00:22 -05:00
Robert O'Callahan
cd0a72d12e Bug 830192. Integrate GetFixedContainingBlock into GetAbsoluteContainingBlock and ensure only elements which can be abs-pos containing blocks are turned into fixed-pos containing blocks when transformed. r=bzbarsky
--HG--
extra : rebase_source : 4d9bd92b23b1011a8ffba33d009615eb7f42a8a7
2013-01-23 17:06:12 +13:00
Shian-Yow Wu
a8f1c1e23c Bug 817985 - mobile data connection is not disconnected when we are connected to Wifi network. r=vicamo 2013-01-23 12:05:34 +08:00
Anthony Jones
f506fe3c49 Bug 831973 - Remove extra scroll compensation code; r=roc 2013-01-22 17:04:41 +13:00
Patrick Wang
553746677d Bug 832925 - Use DeactivateDataCallByType to close SUPL connection. r=dougt 2013-01-21 19:30:54 +08:00
Daniel Holbert
9916d31251 Bug 833547: Mark extensions/gio and toolkit/system/gnome as FAIL_ON_WARNINGS. r=karlt 2013-01-22 18:15:40 -08:00
Justin Lebar
4e79ff3f80 Bug 833629 - Rebucket memory telemetry histograms. r=njn 2013-01-22 21:10:49 -05:00
Philipp von Weitershausen
f871383144 Bug 823010 - Fix test cases. r=jgriffin 2013-01-22 18:06:23 -08:00
Philipp von Weitershausen
b82feffcbb Bug 823010 - B2G SMS: We should not ack reception when there's a storage error. r=vicamo, ferjm a=blocking-b2g 2013-01-18 16:30:24 -08:00
Wes Johnston
44afd81e98 backout 3167daa05ef4 2013-01-22 17:27:01 -08:00
Nick Alexander
ae8d2e89f2 Bug 833508 - Make GlobalSyncStage construction process two phased. r=rnewman
--HG--
extra : rebase_source : a635e9fd45bff609b1b5ced5b6f54d10b51aecee
2013-01-22 17:23:33 -08:00
Ehsan Akhgari
94b2981ab9 Bug 833631 - Unprefix mozAudioContext; r=roc
--HG--
extra : rebase_source : 3c477a97ea842a806f6fad6f5c3a81d6e50b27c3
2013-01-22 20:12:21 -05:00
Gina Yeh
af7eb8c24b Bug 827230 - [Bluetooth] [Hfp] Support feature 'Query Operator Selection' (AT+COPS?), r=echou, a=nonlibxul 2013-01-23 09:22:08 +08:00
Wes Johnston
c82fc48410 Bug 832321 - Use Light Android theme in all of Fennec. r=sriram 2013-01-22 16:40:13 -08:00
Yiming Yang
8c84c67a85 Bug 830637 - Increase pageload timeout, r=jgriffin 2013-01-22 15:42:07 -08:00
Eddy Bruel
06d31700df Bug 568953 - Fix for build warning; r=Ms2ger 2013-01-21 19:02:41 +01:00
Sunny
2c7422f72e Bug 832900 - Fix MathML elements creation tests. r=fredw 2013-01-23 18:30:48 -05:00
Rimas Kudelis
5d0b164270 Bug 832763 - Update license of the Lithuanian spellchecker dictionary. r=gerv 2013-01-23 18:30:48 -05:00
Steve Singer
d5d8c2cac5 Bug 832711 - Add header for ElfW(auxv_t) missed by bug 817153. r=jmuizelaar 2013-01-23 18:30:48 -05:00
Joe Drew
441cdfe6be Bug 832446 - Don't use the high-quality downscaler on multipart images. r=jrmuizel 2013-01-21 11:37:54 -05:00
Oleg Romashin
f45b8b872b Bug 832159 - Move internal part of InputData (nsEvent conversion) out from the header. r=drs, r=smaug 2013-01-23 18:30:48 -05:00
Ekanan Ketunuti
d7e0cebd97 Bug 832139 - Replace '-moz-transition' with 'transition' in browser/. r=dao 2013-01-18 10:29:43 +07:00
Glenn Randers-Pehrson
896db8e72a Bug 833594 - Disable TEXT support in libpng. r=joe 2013-01-23 18:30:48 -05:00
Ryan VanderMeulen
736ce65b82 Merge m-c to inbound. 2013-01-23 18:30:46 -05:00
Wes Johnston
6e2b3f4a3e Bug 830404 - Re-insert accidently removed string. r=mfinkle 2013-01-22 15:26:39 -08:00
Wes Johnston
0e34ba5032 Bug 830760 - Don't zoom into fields on tablets or pages with metaviewports. r=kats 2013-01-22 15:26:09 -08:00
Soumya Deb
063c6bee84 Bug 829992 - Un-prefix gradients from per-theme preferences/*.css. r=dao 2013-01-23 18:08:16 -05:00
Soumya Deb
c9e08d25ec Bug 829988 - Un-prefix gradients from per-theme tabview.css. r=dao 2013-01-23 18:08:16 -05:00
Sotaro Ikeda
1ab3e09511 Bug 826756 - Update video image size. r=cdouble 2013-01-23 18:08:16 -05:00
Oleg Romashin
d496a1e052 Bug 824642 - PlanarYCbCrImage::GetAsSurface does not create surface optimized for platform. r=joe, r=nsilva 2013-01-23 18:08:16 -05:00
Steven Lee
18cbda81f3 Bug 818843 - Media changes. r=rjesup 2013-01-23 18:08:16 -05:00
Steven Lee
e712555f2a Bug 818843 - configure.in changes. r=rjesup 2013-01-23 18:08:15 -05:00
Owen Coutts
1601c74b00 Bug 808054 - Don't anchor the Downloads Panel to the tabs toolbar. r=mconley 2013-01-23 18:08:15 -05:00
Ryan VanderMeulen
4d0c41a297 Bug 832995 - Update pdf.js to version 0.7.82. r=bdahl 2013-01-23 18:08:15 -05:00
Olli Pettay
e5d7c86f9b Bug 822849 - Don't run CC/GC timers during shutdown, r=mccr8
--HG--
extra : rebase_source : 173e02106457b6867db8c4cf734a93366f4b31dd
2013-01-22 21:17:48 +02:00
wfernandom2004@gmail.com
acb8bfaff9 Bug 710546 - Server sent events Once the end of the file is reached, any pending data must be discarde, r=smaug
--HG--
extra : rebase_source : 320ae8e0ca66c1eae7cefe2b1c075c2cc32c7a3b
2013-01-22 21:09:13 +02:00
Jonathan Kew
8397961c25 bug 832615 - make reftest-analyzer ignore timestamps in b2g reftest logs. r=dbaron a=nonlibxul DONTBUILD 2013-01-22 18:41:40 +00:00
Ehsan Akhgari
0a9feb2bc9 Merge the latest PGO green changeset of mozilla-inbound into mozilla-central; a=pgo-ectomy 2013-01-22 12:49:52 -05:00
Armen Zambrano Gasparnian
76bd62ba3d Bug 833096: Update b2g panda snapshot. a=nonlibxul, r=catlee, DONTBUILD 2013-01-22 09:41:07 -05:00
Tim Taubert
58ece0e851 merge m-c to fx-team; a=nonlibxul 2013-01-22 13:02:43 +01:00