Commit Graph

563 Commits

Author SHA1 Message Date
Bobby Holley
64fff27cc1 Bug 860941 - Use DialogValueHolder for returnValue. r=jst
The spec currently has returnValue as a DOMString, but this doesn't match
reality given my testing. I filed [1] to fix it.

Note that nsGlobalModalWindow is already set up to CC mReturnValue. Since
we're swapping in another CC-ed container class, we don't need to make any
changes here.

[1] https://www.w3.org/Bugs/Public/show_bug.cgi?id=21771
2013-05-16 23:33:15 -07:00
Bobby Holley
dcff86037c Bug 860941 - Separate the handling of |dialogArguments| and |arguments|, and use IDL for the |dialogArguments| getter. r=jst
This patch is bigger than I'd like it to be, but there are a lot of interlocked
dependencies and I eventually decided it was easier to just lump it together.

The semantics of |showModalDialog|/|window.dialogArguments| (an web-exposed
HTML5 feature) and |openDialog|/|window.arguments| (a XUL-proprietary feature)
are quite different. The former is essentially a security-checked JSVal, while
the latter gets converted into an array. We handled them together in the old
world, which led to a lot of confusion and muddled semantics. This patch
separates them.

This patch also eschews the roundabout resolve hook for dialogArguments in favor
of returning them directly from the XPIDL getter. This better matches the
behavior in the spec, especially because it allows dialogArguments to live on
the outer as they're supposed to, rather than the first inner that happens to
end up in the docshell. All in all, this should make this all very
straightforward to convert WebIDL when the time comes.

The current spec on the origin checks here is pretty fictional, so I've filed
https://www.w3.org/Bugs/Public/show_bug.cgi?id=21932 to fix it. This patch
should more or less preserve the current security behavior.
2013-05-16 23:33:14 -07:00
Bobby Holley
7f92c87a6d Bug 860941 - Remove mArgumentsLast. r=jst
I'm not sure what it used to do, but it sure doesn't do a damn thing now.
2013-05-16 23:33:13 -07:00
David Zbarsky
679cefe081 Bug 868312 - Some more rooting fixes for dom r=bz 2013-05-10 22:39:45 -04:00
Terrence Cole
afa7e6700f Bug 777548 - Make non-cc-participant tracing indirect; r=smaug,billm,jst 2013-03-28 13:37:22 -07:00
Ms2ger
462a4185fa Bug 868727 - Pass an nsAString to nsGlobalWindow::GetChildWindow; r=bz 2013-05-05 09:03:19 +02:00
Andrew McCreight
21b8e1e732 Bug 798165 - Make nsTimeout more of a real cycle collected class. r=smaug 2013-04-30 10:41:23 -07:00
Ms2ger
cad3cfe2bf Bug 864166 - Part d: Outparamdel nsGlobalWindow::GetWebBrowserChrome; r=mounir 2013-04-26 08:51:04 +02:00
Ms2ger
6e6a5d9b29 Bug 864166 - Part c: Outparamdel nsGlobalWindow::GetTreeOwner; r=mounir 2013-04-26 08:51:01 +02:00
Ms2ger
7e1f7b7388 Bug 864166 - Part b: Don't return nsresult from infallible helper functions in nsGlobalWindow; r=mounir 2013-04-26 08:50:54 +02:00
Boris Zbarsky
ebafdd1727 Bug 864727 part 5. Make all the WrapObject methods take a handle for the scope object. r=ms2ger 2013-04-25 12:29:54 -04:00
Boris Zbarsky
14516ad542 Bug 704063. Add an unprefixed version of requestAnimationFrame. r=roc, sr=smaug 2013-04-25 11:13:21 -04:00
David Zbarsky
96800c4570 Bug 861729 - Remove nsPIDOMWindow::GetExtantDocument r=Ms2ger 2013-04-24 00:22:37 -04:00
Boris Zbarsky
dab80b3782 Bug 835643 part 4. Put in place all the infrastructure to switch EventListener to WebIDL codegen. r=smaug 2013-04-16 17:16:08 -04:00
Honza Bambas
bfdde0b947 Bug 600307 - localStorage and sessionStorage implementation overhaul, r=mak77+smaug, sr=smaug 2013-04-15 14:38:48 +02:00
Ryan VanderMeulen
4ff6d23854 Backed out 2 changesets (bug 850362, bug 600307) for Windows XP leaks on a CLOSED TREE. 2013-04-11 17:00:28 -04:00
Honza Bambas
2b5babae31 Bug 600307 - localStorage and sessionStorage implementation overhaul, r=mak77+smaug, sr=smaug 2013-04-11 18:26:06 +02:00
Andrea Marchesini
72bcfd51ed Bug 858893 - Rename nsIDOMDesktopNotification to DesktopNotification. r=Ms2ger 2013-04-10 10:20:43 -04:00
Olli Pettay
628a68a6c0 Bug 858014, make sure nsPIDOMWindow can be used in external apps, like TB/SM, r=neil 2013-04-07 15:19:56 +03:00
David Zbarsky
3102d80ccb Bug 857884 - Use dom::EventTarget more in content/ and dom/ r=Ms2ger 2013-04-05 20:44:15 -04:00
Eitan Isaacson
9999f6869b Bug 858136 - Rename nsIDOMSpeechSynthesisGetter as nsISpeechSynthesisGetter. r=smaug 2013-04-04 15:12:34 -07:00
Ms2ger
4869d976ab Merge m-c to m-i. 2013-04-04 14:15:56 +02:00
Ms2ger
90e0846f3d Bug 575431 - Followup: remove obsoleted comment. 2013-04-04 09:02:16 +02:00
Ms2ger
e176830e0d Bug 853814 - Make nsDocShell::mScriptGlobal an nsGlobalWindow; r=bz 2013-04-04 09:02:11 +02:00
Eitan Isaacson
f1f4aea26b Bug 525444 - (Part 1/3) Basic SpeechSynthesis setup and voice registration. r=smaug 2013-04-03 15:13:16 -07:00
Ehsan Akhgari
f013f1eca9 Bug 579517 follow-up: Remove NSPR types that crept in 2013-04-02 20:59:27 -04:00
Bill McCloskey
1327a4ae6a Bug 856849 - Poison nsGlobalWindow::mJSObject when it's finalized (r=mrbkap) 2013-04-02 13:08:41 -07:00
Gabor Krizsanits
e0e4891e24 Bug 820170 - nsIGlobalObject. r=bholley 2013-04-04 11:27:06 +02:00
Jan Varga
07aa8b4003 Bug 854323 - Move IDBFactory to Paris bindings. r=khuey 2013-03-31 10:18:30 +02:00
David Zbarsky
1623a8ecd6 Bug 847007: Remove nsIContent includes r=Ms2ger 2013-03-21 20:05:20 -04:00
Terrence Cole
362aeadb6e Bug 850293 - Remove nsScriptObjectHolder; r=mccr8,bholly sr=smaug
nsScriptObjectHolder is not needed with either conservative or exact rooting.
2013-03-20 13:09:09 -07:00
Ted Mielczarek
8a2ebe0370 bug 604039 - Add DOM Gamepad APIs. r=smaug 2011-08-03 14:12:08 -04:00
Trevor Saunders
9daa5c300f bug 852379 - remove unecessary nsHashtable.h includes r=Ms2ger 2013-03-18 21:18:26 -04:00
Bobby Holley
154aa77bef Bug 850517 - Factor out child window lookup into a helper. r=mrbkap 2013-03-14 22:38:26 -07:00
Masatoshi Kimura
7878ea38fd Bug 848339 - Remove the vestigial boolean outparam from nsWrapperCache::WrapObject. r=bz 2013-03-12 08:03:47 +09:00
David Dahl
fe353ddb08 Bug 683262 - window.crypto throws if MOZ_DISABLE_DOMCRYPTO is turned on - revert nsIWindowCrypto patch - r=jst 2013-02-16 22:43:19 -06:00
David Dahl
e123849519 Bug 683262 - window.crypto throws if MOZ_DISABLE_DOMCRYPTO is turned on - window.crypto patch - r=jst 2013-02-16 22:43:16 -06:00
Phil Ringnalda
831705d590 Back out 236ba87c0a9f (bug 440046) and d3b7606d94a6:895a7efc978d (bug 683262) for b2g mochitest failures 2013-02-15 23:33:45 -08:00
David Dahl
20976b1aef Bug 683262 - window.crypto throws if MOZ_DISABLE_DOMCRYPTO is turned on - revert nsIWindowCrypto patch r=jst 2013-02-15 23:34:18 -06:00
David Dahl
fc0b16a7c4 Bug 683262 - window.crypto throws if MOZ_DISABLE_DOMCRYPTO is turned on - window.crypto patch r=jst 2013-02-15 23:34:15 -06:00
Boris Zbarsky
7fd53b910e Bug 829252 part 2. Make nsGlobalWindow inherit from dom::EventTarget and ensure that all the things that inherit from it correctly QI to it. r=peterv 2013-01-29 08:44:01 -05:00
Boris Zbarsky
4c4e5fbac4 Bug 829252 part 1. Change nsGlobalWindow to use nsIDOMEventTarget as the canonical isupports instead of nsIScriptGlobalObject. We'll need this to be able to cast to it properly in binding code. r=peterv 2013-01-29 08:44:01 -05:00
Daniel Holbert
f5a9d0d369 Bug 825949: Make nsGlobalWindow::InitTimer directly take a uint32_t, rather than a uint64_t. r=smaug 2013-01-03 13:48:01 -08:00
Masatoshi Kimura
013c98f6d9 Bug 824247 - Part 1: Fix common source of warning spam (dom). r=smaug 2013-01-03 00:55:05 +09:00
Boris Zbarsky
712812f5ce Bug 824517. Quickstub window.performance. r=peterv 2012-12-25 14:00:15 -08:00
Peter Van der Beken
10cdb20170 Fix for bug 818219 (Replace HTMLElement quickstubs with new binding methods). r=bz. 2012-11-26 15:19:02 +01:00
Peter Van der Beken
5e8230e9a9 Back out 79fc9d732bf7 (bug 818219) for orange. 2012-12-06 16:09:55 +01:00
Peter Van der Beken
cb66aa394f Fix for bug 818219 (Replace HTMLElement quickstubs with new binding methods). r=bz. 2012-11-26 15:19:02 +01:00
Fabrice Desré
983bd325e8 Bug 778668 - Bubble the application name/origin/manifest in the desktop-notification mozChromeEvent [r=wchen] 2012-11-28 22:36:15 -08:00
Robert O'Callahan
46c9fcb36a Bug 812517. Part 2: Call ScrollToCSSPixelsApproximate when TabChild scrolls. r=mats 2012-11-23 14:25:28 +13:00