Commit Graph

355 Commits

Author SHA1 Message Date
Nicholas Nethercote
75f194c48c Bug 921923 (part 3) - Make multi-output sizeOfFoo() functions more consistent in content/, dom/ and layout/. r=till.
--HG--
extra : rebase_source : ac8aebe86b4b7ee5acc0f541be5645abf73b6a98
2013-09-30 16:20:23 -07:00
Boris Zbarsky
48946a9621 Bug 862627 part 1. Switch EventListener to WebIDL codegen. r=smaug 2013-09-23 20:25:17 -04:00
Olli Pettay
9283cd2a76 Bug 916879, remove SetterThrows from eventhandlers, r=emk 2013-09-17 14:01:28 +03:00
Kyle Huey
b248805896 Bug 910924: Give workers an nsIGlobalObject. r=bent,bholley 2013-09-08 20:28:48 -07:00
Benoit Jacob
4dbb3d0ca3 Bug 913603 - Avoid needlessly including nsRect.h - r=jrmuizel 2013-09-06 22:15:49 -04:00
Ehsan Akhgari
82b9523028 Bug 913531 - Remove the unnecessary #includes from nsIXPConnect.idl; r=bholley 2013-09-06 13:50:24 -04:00
Robert O'Callahan
03e7828db2 Bug 910989. Remove nsTHashtable::Init, fallible allocation, and MT hashtables. r=ehsan,bsmedberg
--HG--
extra : rebase_source : 0787130b1814c74bfb38dc178de94022f0b2e64e
2013-09-02 20:41:57 +12:00
Kan-Ru Chen (陳侃如)
f742e5eb23 Bug 891763 - Browser API: mozbrowserresize event. r=jlebar
--HG--
extra : rebase_source : ba426c66e1fb6f108107c44c64fd170ea384a6db
2013-08-16 19:16:20 +08:00
Ms2ger
609e778c1f Bug 905739 - Remove nsIDOMStorageIndexedDB; r=khuey 2013-08-22 08:33:59 +02:00
Ms2ger
c6ed78509a Bug 904178 - Part f: Remove some includes from nsPIDOMWindow.h; r=mounir 2013-08-22 08:30:55 +02:00
Olli Pettay
05d99e99a0 Bug 887241, Use strings, not atoms, for worker events, r=khuey
--HG--
extra : rebase_source : 3e294b1bde05a127db0a9fa1c31c48e9a514e11d
2013-08-16 13:06:24 +03:00
Ehsan Akhgari
99058b577c Bug 905353 - Minimize the #includes in dom/base; r=jst
--HG--
extra : rebase_source : e7a1d2262bf6d8c9b78057b8eb6cdbfd98262f68
2013-08-15 14:17:48 -04:00
Kyle Huey
859692a042 Bug 890304 - Remove the indexeddb.feature.enabled pref. r=sicking 2013-08-13 08:49:11 -04:00
Bobby Holley
3ed72e3e52 Bug 901364 - Remove a bunch of now-unused modal state tracking machinery. r=mrbkap 2013-08-12 12:54:51 -07:00
Bobby Holley
3b168e2acb Bug 901364 - Hoist slow script prompt machinery into nsGlobalWindow. r=mrbkap 2013-08-12 12:54:49 -07:00
Peter Van der Beken
ac70c03afa Bug 895758. Make the global scope polluter a proxy. r=bzbarsky 2013-07-09 10:45:13 -04:00
Ryan VanderMeulen
16b56dc94d Bug 901416 - Follow-up fix for Werror bustage. 2013-08-07 20:45:54 -04:00
Jeremy Kim
6e650bb86b Bug 901416 - Don't add multiple instances of the network-blip observer to nsGlobalWindow. r=jlebar 2013-08-07 20:07:41 -04:00
David Zbarsky
267331a573 Bug 898105 - Remove nsIDOMTouch r=reuben 2013-08-05 00:51:22 -04:00
David Zbarsky
11ac59e6e6 Bug 898930 - Remove nsIDOMTouchEvent r=smaug 2013-08-05 00:51:21 -04:00
Bill McCloskey
b4ad5a68ec Bug 899812 - Error reporters should consistently report errors to stderr (r=bholley) 2013-07-31 17:04:49 -07:00
Bobby Holley
3b00d12f0a Bug 893324 - Invoke CleanUp synchronously and unconditionally for modal dialog windows. r=jst
Historically, we've had a bunch of complicated machinery to delay the call to
CleanUp() for modal dialogs, since we needed to harvest the return value after
the window closed. But in the current world we don't actually null out
mReturnValue in CleanUp() at all, which presumably happened sometime around the
time mReturnValue became cycle-collected. So this stuff can just go away. \o/

That simplification is righteous in itself. But it also fixes the bug here as-
filed. When the user quits while a modal dialog is currently being displayed,
a failure code ends up bubbling up through windowWatcher to the OpenInternal call
in nsGlobalWindow::ShowModalDialog, which means that we're unable to do our
delayed CleanUp() call for the outer modal window. At first it seemed like a hard
problem to solve, but with the above it becomes trivial.
2013-07-26 15:46:13 -07:00
Jon Coppeard
e526358777 Bug 888338 - 1 - Add TenuredHeap<T> class r=terrence r=bz 2013-07-23 10:58:26 +01:00
Ms2ger
85fe8f6af4 Bug 888318 - Use CSSIntPoint for nsGlobalWindow::ScrollTo; f=kats r=mrbkap 2013-07-01 09:14:34 +02:00
Ms2ger
7b039691eb Bug 888235 - Use CSSIntSize for nsGlobalWindow::GetInnerWidth/Height; f=kats r=mrbkap 2013-07-01 09:14:24 +02:00
Ehsan Akhgari
47c6136bd4 Bug 579517 follow-up: Remove NSPR types that crept in 2013-06-23 20:58:53 -04:00
Ted Mielczarek
ec8eea352e bug 690935 - implement navigator.getGamepads(). r=smaug
--HG--
rename : content/events/src/nsDOMGamepad.cpp => dom/gamepad/Gamepad.cpp
rename : content/events/src/nsDOMGamepad.h => dom/gamepad/Gamepad.h
rename : dom/system/GamepadService.cpp => dom/gamepad/GamepadService.cpp
rename : dom/system/GamepadService.h => dom/gamepad/GamepadService.h
extra : rebase_source : da536e09d6c09c605db28e4af4ccccf824efc20d
2012-02-15 19:47:13 -05:00
Jon Coppeard
a30b14261f Bug 877762 - GC: Post-barrier cycle collector participants - 7 Convert most JSObect to use Heap<T> (ex. XBL) r=bz 2013-06-18 11:00:38 +01:00
Andrea Marchesini
323b7f4c12 Bug 858524 - Move BarProp objects to Paris bindings, r=ms2ger, r=smaug 2013-06-01 01:53:00 -07:00
Andrea Marchesini
6ee7756be1 Bug 858524 - Rename nsBarProp to BarProp, r=ms2ger
--HG--
rename : dom/base/nsBarProps.cpp => dom/base/BarProps.cpp
rename : dom/base/nsBarProps.h => dom/base/BarProps.h
2013-05-31 03:30:00 -07:00
Boris Zbarsky
6871042269 Bug 865377. Give EventTarget a chrome-only getter that returns its global. r=smaug
The idea is that you then do things like t.dispatchEvent(new t.ownerGlobal.Event("something")).
2013-05-30 17:46:39 -04:00
Bobby Holley
a46b3fe9f2 Bug 841312 - Replace the scripted closing unblocker termination function with an runnable. r=bz
The main idea behind this thing seems to be that we don't want script to quickly
close the window before the user has time to read the notification. Given the
fuzziness of the constraint here, I think we can (and maybe even should) unblock
a little bit later in the event loop, rather than immediately after the script
terminates.

Note that, due to modal dialogs and their event loop spinning shenanigans, we
want to do this only when the stack frame is popped.
2013-05-21 11:45:56 -06:00
Bobby Holley
78c5ff8572 Bug 841312 - Remove window close termination function, and fall through to PostCloseEvent(). r=bz
This is a more jaded version of my previous attempt.
2013-05-21 11:45:56 -06:00
Bobby Holley
e6b1e8ff46 Bug 860941 - Stop clearing return values on navigation. r=jst
Since this stuff is a property on the browsing context, this only makes sense
as a security check. But now that we're using a DialogValueHolder, the origin
checks are taken care of. So we can kill this off.
2013-05-17 10:43:19 -07:00
Bobby Holley
dcd1c14b55 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-17 10:43:19 -07:00
Bobby Holley
cce2e96e58 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-17 10:43:19 -07:00
Bobby Holley
4378070396 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-17 10:43:18 -07:00
Ed Morley
478afea680 Backed out changeset 70c3a3a74362 (bug 860941) for mochitest-3 timeouts on a CLOSED TREE 2013-05-17 09:09:21 +01:00
Ed Morley
4521aa4875 Backed out changeset 0ad1a92ca568 (bug 860941) 2013-05-17 09:08:44 +01:00
Ed Morley
7cad02c90f Backed out changeset 95006bb32743 (bug 860941) 2013-05-17 09:08:38 +01:00
Ed Morley
b0fa1fd657 Backed out changeset de30d8faf09a (bug 860941) 2013-05-17 09:08:36 +01:00
Bobby Holley
3d0e47e04e Bug 860941 - Stop clearing return values on navigation. r=jst
Since this stuff is a property on the browsing context, this only makes sense
as a security check. But now that we're using a DialogValueHolder, the origin
checks are taken care of. So we can kill this off.
2013-05-16 23:33:15 -07:00
Bobby Holley
ea304d6343 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
7b7f24f6d5 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
6dd0992a9b 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
e35c65d6d0 Bug 868312 - Some more rooting fixes for dom r=bz 2013-05-10 22:39:45 -04:00
Terrence Cole
b6490325af Bug 777548 - Make non-cc-participant tracing indirect; r=smaug,billm,jst 2013-03-28 13:37:22 -07:00
Ms2ger
bb6fd0a4ee Bug 868727 - Pass an nsAString to nsGlobalWindow::GetChildWindow; r=bz 2013-05-05 09:03:19 +02:00
Andrew McCreight
f8f443ed5c Bug 798165 - Make nsTimeout more of a real cycle collected class. r=smaug 2013-04-30 10:41:23 -07:00
Ms2ger
9a7742a5f9 Bug 864166 - Part d: Outparamdel nsGlobalWindow::GetWebBrowserChrome; r=mounir 2013-04-26 08:51:04 +02:00