Commit Graph

204 Commits

Author SHA1 Message Date
Ms2ger
bef4398890 Bug 968804 - Part b: Add outer window assertions to {Can,Force,Final}Close; r=peterv 2014-05-20 21:50:58 +02:00
Matthew Gregan
8897789e29 Bug 927245 - Remove deprecated Audio Data API implementation. r=cajbir,smaug 2014-04-03 10:53:39 +13:00
Andrea Marchesini
7a5f892fe5 Bug 923247 - patch 2 - mute and volume per window, r=ehsan, r=roc 2014-03-11 10:46:55 +00:00
Ed Morley
0f932ab486 Backed out changeset 98f7e8789561 (bug 923247) 2014-03-10 17:04:04 +00:00
Andrea Marchesini
b40fc5d8f1 Bug 923247 - patch 2 - mute and volume per window, r=ehsan, r=roc 2014-03-10 16:36:15 +00:00
Boris Zbarsky
05033709ef Bug 952596 followup to fix dumb typo and reopen CLOSED TREE. 2014-02-28 09:09:11 -05:00
Boris Zbarsky
995aed7645 Bug 952596. HasActiveDocument should just clearly assert that it's only called on inner windows. r=smaug 2014-02-28 08:57:14 -05:00
Oleg Romashin
b3563459ee Bug 822898 - Implement pointer events. Detect Pointer Listeners. r=smaug 2014-02-10 22:33:29 -08:00
Ms2ger
f86b1e51ad Bug 952016 - Part a: Disallow calling nsPIDOMWindow::SetChromeEventHandler on inner windows; r=smaug 2014-01-20 08:58:23 +01:00
Ms2ger
666152f195 Bug 866689 - Add more inner / outer window assertions; r=mrbkap 2013-11-28 15:07:55 +01:00
Boris Zbarsky
9b5ce18da4 Bug 943418. Check for active documents, not current inners, in History APIs. r=bholley 2013-11-27 11:16:07 -05:00
Olli Pettay
4ecffccb67 Bug 942240 - Improve the skippability of nsGlobalWindow, r=mccr8 2013-11-24 21:35:34 +02:00
Peter Van der Beken
2c2250cdb9 Bug 932309 - Don't null out mDoc in nsGlobalWindow::FreeInnerObjects. r=smaug. 2013-10-16 18:11:24 +02:00
Ryan VanderMeulen
cf79a52cef Backed out 3 changesets (bug 932309, bug 932322) for Linux mochitest-bc timeouts on a CLOSED TREE.
Backed out changeset aea34e69d171 (bug 932322)
Backed out changeset 2b99a0f6ff1b (bug 932309)
Backed out changeset 0e3bcb78784e (bug 932309)
2013-11-04 14:31:21 -05:00
Peter Van der Beken
9a2cc6abb1 Bug 932309 - Don't null out mDoc in nsGlobalWindow::FreeInnerObjects. r=smaug. 2013-10-16 18:11:24 +02:00
Robert O'Callahan
8bb3a0b5ee Bug 911889. Part 4. Add API to detect whether an nsGlobalWindow is running a timeout handler. r=bz 2013-09-04 23:37:46 +12:00
Phil Ringnalda
a2ef7eae17 Back out 0a88dee3b92b:dc5cc7d7b84d (bug 911889) for beaucoup unexpected assertions 2013-10-28 23:38:02 -07:00
Robert O'Callahan
fbb6dc7c65 Bug 911889. Part 4. Add API to detect whether an nsGlobalWindow is running a timeout handler. r=bz 2013-09-04 23:37:46 +12:00
Masayuki Nakano
c97e23707c Bug 912956 part.2 Rename nsEvent.h to mozilla/EventForwards.h and sort out it r=roc 2013-09-24 19:04:14 +09:00
Karl Tomlinson
01007ca41f b=914030 don't keep alive used AudioContexts from the window r=ehsan,bz 2013-09-12 16:16:53 +12:00
Nicholas Nethercote
d0f640378a Bug 911020 - Introduce js/TypeDecls.h, which holds very commonly used type declarations from the JS engine. r=luke. 2013-08-27 19:59:14 -07:00
Ms2ger
24f9ba0400 Bug 904178 - Part f: Remove some includes from nsPIDOMWindow.h; r=mounir 2013-08-22 08:30:55 +02:00
Bobby Holley
2059b8d584 Bug 901364 - Remove a bunch of now-unused modal state tracking machinery. r=mrbkap 2013-08-12 12:54:51 -07:00
Trevor Saunders
92887f065a bug 659722 - remove _IMPL_NS_LAYOUT r=bz 2013-03-16 00:31:38 -04:00
David Zbarsky
2dc6c7f6e8 Bug 894646 - Various dom deCOM cleanups r=Ms2ger 2013-07-23 16:39:17 -07:00
Drew Willcoxon
d8d53974d2 Bug 879111 - Mute Web Audio when allowMedia is false on the docshell. r=ehsan 2013-07-03 17:44:32 -07:00
Boris Zbarsky
437dd22420 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
0dd25b5a1f 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
Ed Morley
6d0c9e05ad Backed out changeset 0ad1a92ca568 (bug 860941) 2013-05-17 09:08:44 +01: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
Boris Zbarsky
0b50592673 Bug 866545. Remove the obsolete dom.enable_performance preference, so we can rely on things like performance.now() existing. r=smaug 2013-05-01 23:44:11 -04:00
Ryan VanderMeulen
bc68a8e80b Bug 861605 - Rev uuids. r=Ms2ger 2013-04-29 09:33:06 -04:00
David Zbarsky
580c75d263 Bug 861729 - Remove nsPIDOMWindow::mDocument r=Ms2ger 2013-04-24 00:22:37 -04:00
David Zbarsky
96800c4570 Bug 861729 - Remove nsPIDOMWindow::GetExtantDocument r=Ms2ger 2013-04-24 00:22:37 -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
f1f4aea26b Bug 525444 - (Part 1/3) Basic SpeechSynthesis setup and voice registration. r=smaug 2013-04-03 15:13:16 -07: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
Masatoshi Kimura
708fff2827 Bug 820841 - Cache the document URI on the window so that DOMParser() can refer. r=bz 2012-12-26 20:00:05 +09:00
Boris Zbarsky
712812f5ce Bug 824517. Quickstub window.performance. r=peterv 2012-12-25 14:00:15 -08:00
Ehsan Akhgari
a96b86a914 Bug 814789 - Tie the life-time of the AudioContext to the life-time of the document owning it; r=bzbarsky 2012-11-23 18:33:41 -05:00
Daniel Holbert
fb637b210c Backed out changeset 704c91d3e7fa (Bug 814789) because of mac build-bustage 2012-11-26 20:34:10 -08:00
Ehsan Akhgari
1b71b1831f Bug 814789 - Tie the life-time of the AudioContext to the life-time of the document owning it; r=bzbarsky 2012-11-23 18:33:41 -05:00
Robert O'Callahan
bac0aef69c Bug 792675. Part 1: Make the URL interface use WebIDL. r=bz 2012-09-25 15:24:43 +12:00
Mounir Lamouri
151ae8fcea Bug 795715 - Remove B2G-specific stuff from nsIDOMWindow. r=khuey,fabrice sr=smaug 2012-11-07 18:10:40 +00:00
Mounir Lamouri
a53d65799b Bug 795136 - 1/2 - Add events notifying the window if upload/download happen on the system. r=smaug sr=sicking 2012-09-30 14:47:48 +01:00
Steven Lee
f351dca6fa Bug 714358: Time manager implementation. r=jlebar 2012-09-11 02:05:00 -04:00
Ms2ger
595591b549 Bug 785067 - Outparamdel nsGlobalWindow::SaveWindowState; r=mrbkap 2012-09-06 09:20:26 +02:00
Bobby Holley
0e9010073a Bug 774633 - Fold SetOpenerScriptPrincipal into SetInitialPrincipalToSubject, and make it indempotent and callable without an existing document. r=jst
There's no reason it has to fail if there's no mDoc, since any document is promptly
blown away with the new about:blank document.

The indempotence is important because we want to be able to call this method
unconditionally in OpenJSWindowInternal (since we may not have gone through
RegisterTopLevelWindow) without worrying about whether we've called it already.
2012-09-05 11:32:06 -07:00