Commit Graph

125493 Commits

Author SHA1 Message Date
Bobby Holley
97e20a07a5 Bug 658909 - Add a new, much simpler API for getting WNs from JS objects. r=mrbkap 2013-03-21 08:20:43 -07:00
Bobby Holley
83c251ef6c Bug 658909 - Stop doing all the crazy stuff in GetWrappedNativeOfJSObject. r=mrbkap 2013-03-21 08:20:43 -07:00
Bobby Holley
70e352f480 Bug 658909 - Add a hack to support calling nohelper XPCWN methods without the proper |this|. r=mrbkap 2013-03-21 08:20:43 -07:00
Bobby Holley
725ea26262 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
2013-03-21 08:20:42 -07:00
Bobby Holley
c651a918fd Bug 658909 - Implement carefully-checked unwrapping in XPCCallContext. r=mrbkap 2013-03-21 08:20:42 -07:00
Bobby Holley
ef68a202d1 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).
2013-03-21 08:20:42 -07:00
Bobby Holley
a0f79166c0 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.
2013-03-21 08:20:42 -07:00
Bobby Holley
957a69a405 Bug 658909 - Remove unnecessary ccx param. r=mrbkap 2013-03-21 08:20:42 -07:00
Bobby Holley
821b04d2d6 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.
2013-03-21 08:20:41 -07:00
Bobby Holley
8be761a0f4 Bug 658909 - Force |this| computation in SandboxCallableProxyHandler::call when using Xrays. r=bz
Comment says it all.
2013-03-21 08:20:41 -07:00
Bobby Holley
b4904b5e9c Bug 853283 - Grab the window directly from the navigator in nsNavigatorSH::NewResolve. r=mrbkap 2013-03-21 08:20:41 -07:00
Kartikaya Gupta
ff7fe4d6fe Bug 847839 - Remove some remnants of XUL fennec from the android widget codebase. r=cpeterson 2013-03-21 16:19:49 +01:00
Aryeh Gregor
973691f4a3 Bug 849661 - Remove support for Node.hasAttributes(); r=bz 2013-03-21 14:48:32 +02:00
Ioana Budnar
9ee90091fd Bug 633691 - Add automated test. r=jaws 2013-03-21 16:36:09 +02:00
Ryan VanderMeulen
2d6efebe06 Backed out changeset 46519785800d (bug 847809) for B2G bustage. 2013-03-21 10:41:07 -04:00
Ekanan Ketunuti
865da17876 Bug 853428 - Use spaces instead of tabs for indentation in search.xml. r=jAwS 2013-03-21 21:11:40 +07:00
Jim Mathies
3b86720fbf Bug 795630 - Remove CapturePicker and related files. r=mbrubeck 2013-03-21 09:23:13 -05:00
Jim Mathies
25ce68ec73 Bug 852967 - Simplify marker selection changes for text inputs. r=mbrubeck 2013-03-21 08:55:16 -05:00
Jim Mathies
25e1971b0c Bug 852619 - Tap off form input to clear caret selection should clear focus. r=ally 2013-03-21 08:55:16 -05:00
Jim Mathies
e88bfad5c0 Bug 852088 - Add drag caret to select text support. r-fryn 2013-03-21 08:55:16 -05:00
Chris Coulson
d958db6681 Bug 852540 - Store the file extension on the nsMIMEInfoUnix returned from nsGNOMERegistry::GetFromExtension. r=karlt 2013-03-21 09:51:30 -04:00
Shelly Lin
980d7af474 Bug 847809 - Add audio/amr to the supported decode type of OMX, but disable it if this AMR is loaded from Web pages. r=roc 2013-03-18 11:33:32 +08:00
Richard Marti
5abd5f2f05 Bug 814041 - Fix menulist item padding and active text color on Windows XP. r=fryn 2013-03-02 11:30:44 +01:00
Brandon Waterloo
23041c4c78 Bug 719318 - Better default window sizes. r=dolske 2013-03-21 09:30:16 -04:00
Joel Maher
8caf21a371 Bug 827446 - update mochitest, reftest, xpcshell to use mozcrash. r=jhammel 2013-03-21 09:19:34 -04:00
Jon Coppeard
6d69a696e4 Bug 853028 - GC: Fix some rooting issues found by static analysis r=terrence
--HG--
extra : rebase_source : a1d340a00516ae890c98fa7420497e85526823fc
2013-03-21 12:56:58 +00:00
Jon Coppeard
d9af4c2271 Bug 853028 - Add JSID_VOIDHANDLE and JSID_EMPTYHANDLE r=terrence
--HG--
extra : rebase_source : df2040a51dff433c59356092d55dad65097b8994
2013-03-21 12:56:39 +00:00
Neil Deakin
41bd53e4d7 Bug 480356, move content page tooltip text generation code into tooltip binding so that it can be shared, r=neil,mratcliffe 2013-03-21 08:58:07 -04:00
Jim Mathies
ec632f9dc2 Bug 852087 - Trivial update, register for the correct message mgr msgs after they were changed durring review. r=me 2013-03-21 07:28:19 -05:00
Ehsan Akhgari
32208f91c5 Merge mozilla-central into mozilla-inbound 2013-03-21 08:27:27 -04:00
Mark Banner
6a4576c991 Bug 834179 - Stop trying to package jetpack.xpt, since it was removed by bug 711838 (port to b2g/android). r=glandium 2013-03-21 12:25:46 +00:00
Ed Morley
5eda760084 Merge latest green inbound changeset to mozilla-central 2013-03-21 11:49:34 +00:00
Tim Taubert
91c0270f30 merge m-c to fx-team 2013-03-21 12:35:58 +01:00
Tim Taubert
477c197cab Bug 851845 - Intermittent (NS_ERROR_NOT_AVAILABLE) [nsIDOMWindowUtils.getScrollbarSize]; r=jaws 2013-03-21 09:23:02 +01:00
Gene Lian
f0195440ce Bug 853329 - B2G MMS: other Android phones cannot read attachments sent from FFOS. r=vicamo 2013-03-21 16:19:20 +08:00
Gene Lian
0517e30d1d Bug 852911 - B2G MMS: fail to expose correct nsIDOMMozMmsMessage.attachments. r=smaug 2013-03-21 14:49:23 +08:00
Ehsan Akhgari
7613175e14 Bug 852817 - Don't do anything special when the JS binding to AudioDestinationNode gets finalized; r=roc 2013-03-20 21:35:44 -04:00
Chris Lord
ba90002039 Bug 852565 - Don't expand the viewport for small pages. r=kats
Only expand the CSS viewport when a page reaches the screen size. If it's
smaller than the screen size, lock the dynamic toolbar and keep the same,
smaller CSS viewport. This 'fixes' sites that try to size themselves to the
size of the screen and get it wrong.
2013-03-21 11:23:49 +00:00
Olli Pettay
1f7c24b170 Bug 849601, no need to have explicit AutoMutationBatch when setting outerHTML, r=bz 2013-03-21 11:37:14 +01:00
Aaron Klotz
310d42403f Bug 810151: readahead for ordered jar files r=taras 2013-03-21 10:28:13 +01:00
Chris Lord
ead1fe5b4c Bug 849573 - Handle interrupted tabs tray animation. r=sriram
If the tabs tray animation is interrupted to run in the opposite direction,
run the animation from the point the tray currently is, rather than snapping
it to the open or closed position first.
2013-03-20 23:43:47 +00:00
Daniel Holbert
8d901c5a86 Bug 842179 followup: fix typo in comment. Comment-only, DONTBUILD 2013-03-20 23:41:32 -07:00
David Zbarsky
58c48a85b7 [Bug 852843] SVGZoomAndPan interface object not being instantiated r=bz 2013-03-21 01:33:56 -04:00
Justin Dolske
bd3838bc8e Bug 851846 - Update password manager's logging function. r=mattn 2013-03-20 21:54:45 -07:00
Phil Ringnalda
02042aac36 Back out d77773a8abf9 and eca6b3ea3e8d (bug 853169) for Linux xpcshell crashes
CLOSED TREE
2013-03-20 21:33:03 -07:00
Matthew Gregan
b511c8003f Bug 852831 - Unbreak media volume control on Android. r=mchen 2013-03-21 15:36:29 +13:00
Matthew Gregan
b4726f7844 Backout bug 852831 (07e459058893) on a CLOSED TREE. 2013-03-21 16:42:23 +13:00
Matt Woodrow
66180dc4c1 Bug 822086 - Handle a nullptr ContainerLayer in nsDisplayTransform::BuildLayer. r=bustage CLOSED TREE 2013-03-21 16:27:02 +13:00
Johnny Stenback
0b39e48388 Fixing bug 781310. Change nsPluginHost::GetInst() to return already_AddRefed<nsPluginHost> to make it harder to write leaky code. r=jschoenick@mozilla.com 2013-03-20 11:29:00 -07:00
Matthew Gregan
aa8fcee0b5 Bug 852831 - Unbreak media volume control on Android. r=mchen 2013-03-21 15:36:29 +13:00