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
Ms2ger
58d00148c2
Bug 864166 - Part c: Outparamdel nsGlobalWindow::GetTreeOwner; r=mounir
2013-04-26 08:51:01 +02:00
Ms2ger
3e815fd7e5
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
b834439797
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
d22f45504a
Bug 704063. Add an unprefixed version of requestAnimationFrame. r=roc, sr=smaug
2013-04-25 11:13:21 -04:00
David Zbarsky
720289e06b
Bug 861729 - Remove nsPIDOMWindow::GetExtantDocument r=Ms2ger
2013-04-24 00:22:37 -04:00
Boris Zbarsky
de948b12f3
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
f29df2e52f
Bug 600307 - localStorage and sessionStorage implementation overhaul, r=mak77+smaug, sr=smaug
2013-04-15 14:38:48 +02:00
Ryan VanderMeulen
60dbee1a3e
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
26d97547b7
Bug 600307 - localStorage and sessionStorage implementation overhaul, r=mak77+smaug, sr=smaug
2013-04-11 18:26:06 +02:00
Andrea Marchesini
304bfb8f5b
Bug 858893 - Rename nsIDOMDesktopNotification to DesktopNotification. r=Ms2ger
...
--HG--
rename : dom/src/notification/nsDesktopNotification.cpp => dom/src/notification/DesktopNotification.cpp
rename : dom/src/notification/nsDesktopNotification.h => dom/src/notification/DesktopNotification.h
2013-04-10 10:20:43 -04:00
Olli Pettay
47910b2a56
Bug 858014, make sure nsPIDOMWindow can be used in external apps, like TB/SM, r=neil
...
--HG--
extra : rebase_source : 5c3bfc5bb175efba465be834974d26df34207568
2013-04-07 15:19:56 +03:00
David Zbarsky
59707ec484
Bug 857884 - Use dom::EventTarget more in content/ and dom/ r=Ms2ger
2013-04-05 20:44:15 -04:00
Eitan Isaacson
d1abd880d7
Bug 858136 - Rename nsIDOMSpeechSynthesisGetter as nsISpeechSynthesisGetter. r=smaug
...
--HG--
rename : dom/interfaces/base/nsIDOMSpeechSynthesisGetter.idl => dom/interfaces/base/nsISpeechSynthesisGetter.idl
2013-04-04 15:12:34 -07:00
Ms2ger
97ae827742
Merge m-c to m-i.
2013-04-04 14:15:56 +02:00
Ms2ger
b0653199d8
Bug 575431 - Followup: remove obsoleted comment.
2013-04-04 09:02:16 +02:00
Ms2ger
5df9b240a6
Bug 853814 - Make nsDocShell::mScriptGlobal an nsGlobalWindow; r=bz
2013-04-04 09:02:11 +02:00
Eitan Isaacson
998738aff3
Bug 525444 - (Part 1/3) Basic SpeechSynthesis setup and voice registration. r=smaug
...
--HG--
rename : content/media/webspeech/moz.build => content/media/webspeech/synth/moz.build
rename : content/media/webspeech/moz.build => content/media/webspeech/synth/test/moz.build
2013-04-03 15:13:16 -07:00
Ehsan Akhgari
3e4289068c
Bug 579517 follow-up: Remove NSPR types that crept in
2013-04-02 20:59:27 -04:00
Bill McCloskey
9e97f5666b
Bug 856849 - Poison nsGlobalWindow::mJSObject when it's finalized (r=mrbkap)
...
--HG--
extra : rebase_source : 687f1f3662d066ab05f3421625968ca1005f229f
2013-04-02 13:08:41 -07:00
Gabor Krizsanits
2662f735eb
Bug 820170 - nsIGlobalObject. r=bholley
2013-04-04 11:27:06 +02:00
Jan Varga
f6d1ba4c72
Bug 854323 - Move IDBFactory to Paris bindings. r=khuey
2013-03-31 10:18:30 +02:00
David Zbarsky
46284ae633
Bug 847007: Remove nsIContent includes r=Ms2ger
2013-03-21 20:05:20 -04:00
Terrence Cole
cd9b9a5a15
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
281489a00e
bug 604039 - Add DOM Gamepad APIs. r=smaug
...
--HG--
extra : rebase_source : ffffdc4549da1b25ea263b623c05ae1afb3d46a0
2011-08-03 14:12:08 -04:00
Trevor Saunders
9c54e14d23
bug 852379 - remove unecessary nsHashtable.h includes r=Ms2ger
2013-03-18 21:18:26 -04:00
Bobby Holley
50d03b1925
Bug 850517 - Factor out child window lookup into a helper. r=mrbkap
2013-03-14 22:38:26 -07:00
Masatoshi Kimura
23ba391ec1
Bug 848339 - Remove the vestigial boolean outparam from nsWrapperCache::WrapObject. r=bz
2013-03-12 08:03:47 +09:00
David Dahl
cd4de3d8d1
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
e04136004d
Bug 683262 - window.crypto throws if MOZ_DISABLE_DOMCRYPTO is turned on - window.crypto patch - r=jst
...
--HG--
rename : dom/interfaces/base/nsIDOMCrypto.idl => dom/interfaces/base/nsIDOMCryptoLegacy.idl
2013-02-16 22:43:16 -06:00
Phil Ringnalda
c71c586441
Back out 236ba87c0a9f (bug 440046) and d3b7606d94a6:895a7efc978d (bug 683262) for b2g mochitest failures
2013-02-15 23:33:45 -08:00
David Dahl
52c440b803
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
a29fc61d9f
Bug 683262 - window.crypto throws if MOZ_DISABLE_DOMCRYPTO is turned on - window.crypto patch r=jst
...
--HG--
rename : dom/interfaces/base/nsIDOMCrypto.idl => dom/interfaces/base/nsIDOMCryptoLegacy.idl
2013-02-15 23:34:15 -06:00
Boris Zbarsky
27b4736d69
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
94a48e89d4
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
abd2c13da0
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
31c72ca660
Bug 824247 - Part 1: Fix common source of warning spam (dom). r=smaug
2013-01-03 00:55:05 +09:00
Boris Zbarsky
51aee98e93
Bug 824517. Quickstub window.performance. r=peterv
2012-12-25 14:00:15 -08:00
Peter Van der Beken
ea0c0a9788
Fix for bug 818219 (Replace HTMLElement quickstubs with new binding methods). r=bz.
...
--HG--
rename : layout/reftests/backgrounds/background-referrer-ref.html => image/test/reftest/generic/accept-image-catchall-ref.html
rename : layout/reftests/backgrounds/background-referrer.html => image/test/reftest/generic/accept-image-catchall.html
rename : layout/reftests/backgrounds/background-referrer.sjs => image/test/reftest/generic/check-header.sjs
rename : layout/reftests/backgrounds/background-referrer-image.png => image/test/reftest/generic/green.png
rename : toolkit/components/places/tests/browser/browser_favicon_setAndFetchFaviconForPage.js => toolkit/components/places/tests/favicons/test_setAndFetchFaviconForPage.js
extra : rebase_source : 45715d6abe3155a6bcd1d21e5cc3f7b048180eb6
2012-11-26 15:19:02 +01:00
Peter Van der Beken
94b0fea563
Back out 79fc9d732bf7 (bug 818219) for orange.
...
--HG--
extra : rebase_source : 862b4c446f9b454c4c72e7536e73b9d9ede9feb6
2012-12-06 16:09:55 +01:00
Peter Van der Beken
4ff672c1a5
Fix for bug 818219 (Replace HTMLElement quickstubs with new binding methods). r=bz.
...
--HG--
extra : rebase_source : ddbedbaea030272ce8fc1ac7245175f7fd3edaa4
2012-11-26 15:19:02 +01:00
Fabrice Desré
7ba8fb1e08
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
8e2f98a952
Bug 812517. Part 2: Call ScrollToCSSPixelsApproximate when TabChild scrolls. r=mats
...
--HG--
extra : rebase_source : e4c9db69125d21a84400a062630a0c62c3f450d8
2012-11-23 14:25:28 +13:00
Nathan Froyd
f4ba419a2e
Bug 803665 - followup - dispense with nsGlobalWindow::{First,Last}Timeout and nsTimeout::{Next,Previous}; r=bz
2012-11-01 10:07:22 -04:00
Nathan Froyd
0fb97bb8ee
Bug 803665 - convert nsGlobalWindow's timeout list to use mozilla::LinkedList; r=bz
2012-11-01 10:06:22 -04:00
Robert O'Callahan
ab861f5738
Bug 792675. Part 1: Make the URL interface use WebIDL. r=bz
...
--HG--
extra : rebase_source : dbb7a3158b71446930400ad523a2896b6306de40
2012-09-25 15:24:43 +12:00
Ms2ger
4ab9ce9903
Merge backout on a CLOSED TREE.
2012-11-08 09:20:52 +01:00
Ms2ger
3345abbb79
Bug 809756 - Backout bug 803665, bug 803668, bug 803666 and bug 803669 on a CLOSED TREE.
2012-11-08 09:20:25 +01:00
Nathan Froyd
cfe9f42302
Bug 803665 - followup - dispense with nsGlobalWindow::{First,Last}Timeout and nsTimeout::{Next,Previous}; r=bz
2012-11-01 10:07:22 -04:00
Nathan Froyd
7742c1eb59
Bug 803665 - convert nsGlobalWindow's timeout list to use mozilla::LinkedList; r=bz
2012-11-01 10:06:22 -04:00
Mounir Lamouri
5a334278ca
Bug 795715 - Remove B2G-specific stuff from nsIDOMWindow. r=khuey,fabrice sr=smaug
2012-11-07 18:10:40 +00:00
Brad Lassey
d9cdcd3130
bug 805017 - Disable screen timeout when DOMFullscreen is enabled r=jst
2012-11-01 08:40:11 -04:00
Nathan Froyd
24b0d73288
Backout 57d8f6cd245a (bug 803669), fb673c95d56b (bug 803665), 24d8e0cb73f2 (bug 803665), ac46bd0d9fba (bug 803669), c9c67b62799b (bug 803666), b3314c0ddaac (bug 803668) for debug build test failures
2012-10-31 13:23:17 -04:00
Nathan Froyd
84ecbe8651
Bug 803665 - part 2 - dispense with nsGlobalWindow::{First,Last}Timeout and nsTimeout::{Next,Previous}; r=bz
2012-10-22 11:24:27 -04:00
Nathan Froyd
7770a497fa
Bug 803665 - convert nsGlobalWindow's timeout list to use mozilla::LinkedList; r=bz
2012-10-19 12:22:35 -04:00
Ryan VanderMeulen
0e22196909
Backout b6089a8b78d3 (bug 782547) to see if it fixes Flash hangs.
2012-10-28 00:24:02 -04:00
Tim Taubert
c0ec641283
merge m-c to fx-team
2012-10-25 21:23:58 +02:00
Mihai Sucan
bdae941449
Bug 803964 - Cannot show window object with inspect viewer in remote web console; r=bz
2012-10-24 13:01:54 +03:00
Neil Deakin
e76c2ec778
Bug 782547, allow killfocus and deactivate messages to arrive in any order, remove blur suppression code, r=jmathies
2012-10-24 16:05:29 -04:00
Boris Zbarsky
05fd81befd
Bug 800983. Expose a getter for default computed style. r=dbaron
...
An alternative implementation strategy is to add "default-only"
versions of ResolveStyleFor and ResolvePseudoElementStyle and then
modify FileRules to support those, or use a cut-down custom version of
FileRules for them. That would be faster, but more complicated on the
style set side. We can always make that switch if we need to, I guess.
2012-10-17 17:01:56 -04:00
Olli Pettay
2cdba3cfd5
Bug 799592 nsDOMWindowUtils::AllowScriptsToClose to bypass dom.allow_scripts_to_close_windows, r=jst
2012-10-12 13:17:56 +03:00
Mounir Lamouri
3a8f11a3f5
Bug 795725 - Remove booleans that prevents calling RemoveObserver() twice. r=smaug
2012-10-03 10:39:23 +01:00
Ms2ger
29e93229d9
Bug 780161 - Part c: Introduce nsGlobalWindow::IndexedGetter(); r=bz
2012-10-02 10:07:36 +02:00
Ms2ger
f479d0161a
Bug 780161 - Part b: Introduce nsGlobalWindow::GetLength(); r=bz
2012-10-02 10:07:35 +02:00
Mounir Lamouri
8b69632999
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
5f194e2f32
Bug 714358: Time manager implementation. r=jlebar
2012-09-11 02:05:00 -04:00
Ms2ger
14092e417a
Bug 785067 - Outparamdel nsGlobalWindow::SaveWindowState; r=mrbkap
2012-09-06 09:20:26 +02:00
Bobby Holley
76dfb3183c
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
Bobby Holley
b54ef01adf
Bug 774633 - Remove dead mOpenerScriptPrincipal. r=jst
...
This value is initialized to null and never set, so we can get rid of it.
2012-09-05 11:32:06 -07:00
Bobby Holley
e864c2fca6
Bug 774633 - Wean SetInitialPrincipalToSubject off some parameters and clean it up. r=jst
...
We can remove the fallback to the principal of aParent because we already push the
cx for aParent (callerContextGuard) whenever we're concerned about using its principal.
2012-09-05 11:32:06 -07:00
Bobby Holley
9a637e122b
Bug 774633 - Factor nsWindowWatcher call to SetOpenerScriptPrincipal into a method on nsGlobalWindow. r=jst
...
This doesn't change any functionality in the code. Note that the name is currently
a bit of a misnomer, but we change that in the next patch when we rip out the
arguments.
2012-09-05 11:32:06 -07:00
Philipp von Weitershausen
d158b5747c
Bug 776825 - Separate message managers into senders and broadcasters. r=smaug
...
--HG--
rename : content/base/public/nsIFrameMessageManager.idl => content/base/public/nsIMessageManager.idl
2012-08-27 11:13:02 -03:00
Andrew McCreight
c063a3e54c
Bug 750570, part 4 - Switch most native CC classes to use the purple buffer. r=smaug
...
This patch actually converts over most of the existing native CC classes
to use the participant. This is done by converting them to use
the newly generalized nsCycleCollectingAutoRefCnt instead of their usual
ref count.
This is mostly a matter of defining new macros defining AddRef() and Release()
for native CC classes with the CC ref count.
nsTimeout is left as a legacy native CC class because it is a weird class,
but hopefully eventually it too can be converted over. See bug 774874.
2012-08-24 09:50:06 -07:00
Matt Brubeck
cdd4612f38
Back out 670c8a2695b3 (bug 771354), 134557d57e6e 4ad52e488977 (bug 774607), and...
...
036eb8c2a08a d4d36e3b948f 35334e820632 6bd07fd5147d d49e7c0d762c 407f19deb14c d84551808abb (bug 774633)
on a CLOSED TREE
2012-08-23 21:34:27 -07:00
Bobby Holley
1a9db39ccc
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-08-23 16:44:52 -07:00
Bobby Holley
248ddad9f4
Bug 774633 - Remove dead mOpenerScriptPrincipal. r=jst
...
This value is initialized to null and never set, so we can get rid of it.
2012-08-23 16:44:52 -07:00
Bobby Holley
133acda80d
Bug 774633 - Wean SetInitialPrincipalToSubject off some parameters and clean it up. r=jst
...
We can remove the fallback to the principal of aParent because we already push the
cx for aParent (callerContextGuard) whenever we're concerned about using its principal.
2012-08-23 16:44:52 -07:00
Bobby Holley
3bd2492b71
Bug 774633 - Factor nsWindowWatcher call to SetOpenerScriptPrincipal into a method on nsGlobalWindow. r=jst
...
This doesn't change any functionality in the code. Note that the name is currently
a bit of a misnomer, but we change that in the next patch when we rip out the
arguments.
2012-08-23 16:44:52 -07:00
Ehsan Akhgari
e368dc9c85
Bug 579517 - Part 1: Automated conversion of NSPR numeric types to stdint types in Gecko; r=bsmedberg
...
This patch was generated by a script. Here's the source of the script for
future reference:
function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
! -wholename "*security/nss*" \
! -wholename "*/.hg*" \
! -wholename "obj-ff-dbg*" \
! -name nsXPCOMCID.h \
! -name prtypes.h \
-type f \
\( -iname "*.cpp" \
-o -iname "*.h" \
-o -iname "*.c" \
-o -iname "*.cc" \
-o -iname "*.idl" \
-o -iname "*.ipdl" \
-o -iname "*.ipdlh" \
-o -iname "*.mm" \) | \
xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}
convert PRInt8 int8_t
convert PRUint8 uint8_t
convert PRInt16 int16_t
convert PRUint16 uint16_t
convert PRInt32 int32_t
convert PRUint32 uint32_t
convert PRInt64 int64_t
convert PRUint64 uint64_t
convert PRIntn int
convert PRUintn unsigned
convert PRSize size_t
convert PROffset32 int32_t
convert PROffset64 int64_t
convert PRPtrdiff ptrdiff_t
convert PRFloat64 double
2012-08-22 11:56:38 -04:00
Justin Lebar
74befa949f
Bug 769254 - Part 2: Modify nsPIWindowWatcher::OpenWindowJS (renamed to OpenWindow2) so we can pass in the URL for target=_blank links without navigating the opened window to that URL. r=bz
2012-08-14 10:58:00 -04:00
Neil Deakin
953592e2fe
Bug 391834, don't allow prompts in beforeunload, unload and pagehide events,r=smaug,patch mostly by gavin
2012-08-13 15:05:34 -04:00
Neil Deakin
293dbd7ee1
Bug 391834, rearrange some popup dialog code to be simpler,r=smaug,patch mostly by gavin
2012-08-13 15:03:59 -04:00
Justin Lebar
25c5e67049
Bug 777135 - Part 3: Remove nsDOMWindowUtils::GetIsApp and friends. r=mounir
...
--HG--
extra : rebase_source : ac3db88b7eb03397c4ae514624e1f3021947c396
2012-08-13 12:58:38 -04:00
Boris Zbarsky
71ec9e6ab2
Bug 703855. Don't update performance timing or navigation timing state during document.open. r=jst
2012-08-08 23:47:04 -04:00
Chris Jones
a6ec6f5d33
Revert e3e9040a6eb9 for M2 failures
2012-08-08 21:58:23 -07:00
Boris Zbarsky
cc86c6a349
Bug 703855. Don't update performance timing or navigation timing state during document.open. r=jst
2012-08-08 23:47:04 -04:00
Phil Ringnalda
aa790aa109
Backout 5439489dc320, 983f76488e59, 7a92558a8dec (Bug 714358) for debug build assertions and leaks
2012-08-07 22:18:27 -07:00
Steven Lee
2a3357c97f
Bug 714358: Time manager implementation. r=jlebar
2012-08-07 19:11:00 -04:00
Chris Pearce
cd61327986
Bug 684620 - Implement cross process fullscreen API for B2G apps and web content. r=jlebar
...
* * *
Bug 684620 - Fix in-process fullscreen in B2G. r=?
2012-07-31 14:09:31 +12:00
Aryeh Gregor
d0ad5a7d0c
Bug 777292 part 2 - Change all nsnull to nullptr
2012-07-30 17:20:58 +03:00
Nathan Froyd
e1ccd4902c
Bug 776979 - consolidate InitWithFuncCallback calls into nsTimeout::InitTimer; r=bz
2012-07-24 13:50:45 -04:00
Matt Brubeck
867c5f52a6
Back out fbdb3104c9e5, d2fe54ae00a8, d378362cbe01, fe623d60bea1 (bug 769254) on suspicion of causing Windows debug mochitest-plain-3 timeouts
2012-07-23 20:30:12 -07:00
Justin Lebar
3a202f9009
Bug 769254 - Part 2: Modify nsPIWindowWatcher::OpenWindowJS (renamed to OpenWindow2) so we can pass in the URL for target=_blank links without navigating the opened window to that URL. r=bz
...
--HG--
extra : rebase_source : 96a53a1a8b34f41bfe59f00141d598c5394cb0c1
2012-07-23 10:44:13 -04:00
Bonnie Surender
b70b75ec44
Fix for bug 771967. OS idle api active to briefly idle to active notification fix. r=jst
2012-07-13 15:39:46 -07:00
Bonnie Surender
d43d53eaee
fixing bug 770656, idle fuzz time for idle notifications. r=jst@mozilla.com
2012-07-04 13:21:40 -07:00
Fabrice Desré
c5aa869164
Bug 755245 - Implement System Message Handler : Part 2, Add a getApp() method to nsGlobalWindow [r=mounir]
2012-07-02 17:16:55 -07:00
Bonnie Surender
2b42bacc22
Fixing bug 715041. Add support for Idle API. r=bent, jst
2012-06-29 01:32:21 -07:00
Vivien Nicolas
72c90c5473
Bug 760102 - Authorize web applications to use fullscreen by default. r=cpearce
2012-06-28 20:54:37 +12:00
Ms2ger
a95f5295e7
Bug 762455 - Make nsGlobalWindow::InnerSetNewDocument not return nsresult; r=peterv
2012-06-17 10:11:16 +02:00
Bobby Holley
3f91fbc21e
Bug 764389 - Update compartment principals on inner window reuse and on document.write. r=bz
2012-06-15 08:31:27 +02:00
Justin Lebar
5fb435f5c4
Bug 741587 - Part 1: Make alert/prompt/confirm work with <iframe mozbrowser>. r=smaug
...
--HG--
extra : rebase_source : f418da542453f8b0f5853a8da48bea1c8c95969e
2012-06-07 10:43:23 -04:00
Nathan Froyd
8578a20583
Bug 748464 - refactor nsGlobalWindow::RunTimeout; r=bz
2012-04-24 14:16:29 -04:00
Kyle Huey
b1b7277c0a
Bug 751999: Split SetDocShell apart to make this code easier to read. r=jst
2012-05-25 12:00:32 -07:00
Justin Lebar
7be4d1c875
Bug 754997 - For <iframe mozbrowser>, override window.{top,parent,frameElement} in C++. r=bz
...
--HG--
extra : rebase_source : 66d2ef018234eaa71e49d927eefdd3a8aa01bb41
2012-05-23 11:27:10 -04:00
Alexander Surkov
4378030fb4
Bug 756381 - make FocusManager::FocusedDOMNode faster, r=tbsaunde, smaug
2012-05-22 18:25:44 +09:00
Gervase Markham
82ff7027aa
Bug 716478 - update licence to MPL 2.
2012-05-21 12:12:37 +01:00
Mounir Lamouri
27ddcf683c
Bug 754141 (3/4) - Get the application object from an AppsService based on the manifest URL and save it on the window object. r=fabrice,jlebar
2012-05-16 12:40:47 +02:00
Mounir Lamouri
ec077a5c28
Bug 754141 (2/4) - Add a SetApp() method that takes the manifest URL value. r=jlebar
2012-05-16 12:40:09 +02:00
Mounir Lamouri
16367bdebc
Bug 753978 - Be able to know if a window is part of an application. r=jlebar
2012-05-10 17:56:21 -07:00
Kyle Huey
cb5a51f0ba
Bug 752877: Ensure that wrapper cutting happens after [inner|outer]-window-destroyed, to give code a chance to clean up. r=bz
2012-05-09 08:10:18 -07:00
Ms2ger
92edad47c8
Bug 745211 - Remove SetScriptContext from nsIScriptGlobalObject; r=mrbkap
2012-05-05 11:00:04 +02:00
Josh Aas
b48fb8b460
Bug 748343: Remove support for "java" and "packages" objects from the DOM. r=jst sr=smaug a=ehsan CLOSED TREE
2012-05-01 16:47:35 -04:00
Rafael Ávila de Espíndola
a2a9aa260f
Bug 743680 - nsGlobalWindow.h uses GetWrapper, include nsWrapperCacheInlines.h. r=dbolter.
...
--HG--
extra : rebase_source : 9e0b59c3b4929b7c48767be1732269133cb4e18f
2012-04-20 16:43:48 -04:00
Ms2ger
ff14126f30
Bug 732708 - Part c: Remove dom-storage-changed observer topic; r=honzab
2012-04-14 15:06:32 +02:00
Ms2ger
dfc44fcf97
Bug 742837 - Remove dead code and cleanup around nsDOMScriptObjectFactory; r=bz
2012-04-14 15:03:16 +02:00
Ms2ger
77ca860259
Backing out bf0a78471e5e:dc7022e2d807 for inexplicable windows crashes.
2012-04-14 17:52:34 +02:00
Ms2ger
b55e2f9d8c
Bug 732708 - Part c: Remove dom-storage-changed observer topic; r=honzab
2012-04-14 15:06:32 +02:00
Ms2ger
1abb5a381a
Bug 742837 - Remove dead code and cleanup around nsDOMScriptObjectFactory; r=bz
2012-04-14 15:03:16 +02:00
Gabor Krizsanits
0ac891d865
Bug 733035 - postMessage support for sandboxes. r=khuey
2012-04-05 18:33:20 -04:00
Nathan Froyd
4e2c3da6af
Bug 732708 - remove nsIDOMStorageList; r=honzab
2012-03-28 12:33:41 -04:00
Kyle Huey
7a529aca86
Bug 722428: Fix leaks in mochitest by reworking SpecialPowers and nsDOMWindowUtils. r=mounir,ctalbert
2012-04-01 19:23:51 -07:00
Tim Taubert
122a604242
Bug 727446 - Let the window owning a storage dispatch an event when the storage changes; r=smaug
2012-03-30 19:31:16 +02:00
Justin Lebar
e71a362f01
Bug 736688 - Part 5: Remove window.{top,parent,frameElement} mozbrowser changes in nsGlobalWindow (undoes changes from bug 725796). r=smaug
...
--HG--
extra : rebase_source : fdeccb7e995229cdbc6ebd945109fe8441f9f525
2012-03-28 11:36:49 -07:00
Doug Turner
7bc438e9f5
Bug 734855 - Rename DeviceMotion to DeviceSensors. Review comments address r=mwu
2012-03-24 17:30:03 -07:00
Doug Turner
ec38c98821
Bug 734855 - Device Orientation - Make EnableDeviceMotion finer grain. r=mwu
2012-03-24 17:29:49 -07:00
Matt Brubeck
626f101539
Merge mozilla-central and mozilla-inbound
2012-03-24 09:05:27 -07:00
Ms2ger
87769c19ad
Bug 734029 - Move nsJSContext::{Set,Create}OuterObject to nsGlobalWindow; r=bholley
2012-03-24 09:18:21 +01:00
Hessam Salehi
2bda7efc98
Bug 474505 - Replace uses of nsVoidPtrHashkey with nsPtrHashKey<T>; r=bsmedberg
2012-03-21 14:07:31 -04:00
Mark Capella
8721036540
Bug 734023 - Remove language arguments from nsIScriptGlobalObject methods, r=jst, f=ms2ger
2012-03-23 18:13:29 +01:00
Blake Kaplan
662d0db31b
Bug 727884 - Make nsWrapperCache::WrapObject take a JSObject scope instead of XPCWrappedNativeScope. r=peterv
2012-03-14 16:25:40 +01:00
Olli Pettay
b063392a27
Bug 734057 - Make nsDOMEventTargetHelper to not have strong pointer to window, r=jst,bent
2012-03-13 02:56:07 +02:00
Justin Lebar
fd4cfccc63
Bug 725796 - Make window.{top,parent,frameElement} respect <iframe mozbrowser>. r=bz
2012-03-04 11:02:00 -05:00
Matheus Kerschbaum
71d2922dd0
Bug 687579 part 1: Remove globalStorage implementation. r=jst
...
Bug 687579 part 1: Remove globalStorage implementation. r=jst
2011-10-09 22:14:00 -04:00
Nicholas Nethercote
da738c5677
Bug 723799 - Use mallocSizeOf in the DOM memory reporters. r=mounir.
...
--HG--
extra : rebase_source : 2eb96d2f901bbe4cc1ff6dbccdec4dc4099b08fc
2012-02-01 13:58:01 -08:00
David Mandelin
3588ac5aae
Bug 730511: remove obsolete typedefs intN, uintN, r=luke
2012-02-28 15:11:11 -08:00
Peter Van der Beken
34f61797c8
Fix for bug 637099 (Remove JS_ClearScope calls on windows). r=mrbkap.
...
--HG--
extra : rebase_source : 8bdadc72a0b28c78e21758fab8f1035ee1dd9f3d
2011-03-15 12:06:39 +01:00
Chris Pearce
75e3ace854
Bug 727303 - Add nsPIDOMWindow::SetFullScreenInteral. r=roc
2012-02-20 10:02:08 +13:00
Nicholas Nethercote
0709e1673b
Bug 671299 (part 3) - Add style sheet memory reporters. r=dbaron.
2012-01-02 18:19:14 -08:00
Olli Pettay
0ee8497d4d
Bug 720808 - Add nsJSEventListener and nsGlobalWndow to BBP, r=mccr8
...
--HG--
extra : rebase_source : e6512fe1b8b19b3ddd959b992ce0f2672b0b072f
2012-01-26 16:03:21 +01:00
Ms2ger
d717a67336
Bug 698420 - Make nsScriptObjectHolder typesafe; r=bz
2011-12-18 11:05:12 +01:00
Ms2ger
95157cd23b
Bug 704593 - Remove JS-specific nsGlobalWindow::ClearTimeoutOrInterval(); r=jst
2011-11-26 11:23:25 +01:00
Ms2ger
2bb7bda363
Bug 698402 - Store JSObjects in nsGlobalWindow::mCachedXBLPrototypeHandlers; r=peterv
2011-11-26 11:14:47 +01:00
Ms2ger
6f293c463f
Bug 698400 - Use setObject in nsXBLPrototypeHandler::EnsureEventHandler; r=jst
2011-11-26 11:14:29 +01:00
Chris Pearce
f4c97fdcf9
Bug 604682 - Remove unnecessary copy of audio data when there's no MozAudioAvailable event listener. r=smaug,kinetik
2011-11-22 13:34:21 +13:00
Mounir Lamouri
b4c7d284fb
Bug 695287 - Move Navigator declaration and definition outside of nsGlobalWindow.{h,cpp}. r=Ms2ger
...
This patch is creating Navigator.h and Navigator.cpp and makes Navigator part
of the mozilla::dom namespace.
2011-11-02 14:44:16 +01:00
Ms2ger
a8dba5714a
Bug 694769 - Remove nsIScriptContext::GetScriptGlobal in favour of GetGlobalJSObject; r=smaug
2011-10-29 22:09:04 +02:00
Ehsan Akhgari
92064e6d3f
Bug 690892 - Replace PR_TRUE/PR_FALSE with true/false on mozilla-central; rs=dbaron
...
Landing on a CLOSED TREE
2011-10-17 10:59:28 -04:00
Peter Van der Beken
0d28b21bc4
Fix for bug 694009 (crash mozilla::dom::binding::instanceIsProxy) - clear cache when wrapper is finalized. r=mrbkap.
...
--HG--
extra : rebase_source : 5edfb2299cf7ba4d6a86382459d045cf52999c27
2011-10-13 15:36:09 +02:00
Peter Van der Beken
5a37eca29e
Fix for bug 693301 (Remove ConstructProxyObject) - switch outer window creation to nsWrapperCache::WrapObject. r=mrbkap.
2011-08-20 15:53:34 +02:00
Fabrice Desré
bcf5f06efe
Bug 676595 - Android orientation manager is never shut down [r=dougt]
2011-10-06 10:27:41 -07:00
Matt Brubeck
644a223e89
Back out 2780356be1a1 (bug 675574) and 9928fb9a32b1 (bug 690220) on suspicion of causing browser-chrome shutdown hangs
2011-09-29 14:44:36 -07:00
Michael Wu
d2b70213ac
Bug 675553 - Switch from PRBool to bool on a CLOSED TREE , r=bsmedberg,khuey,bz,cjones
...
--HG--
rename : tools/trace-malloc/bloatblame.c => tools/trace-malloc/bloatblame.cpp
2011-09-28 23:19:26 -07:00
Mounir Lamouri
aac1c5db8b
Bug 675574 - Do not allow more than one call to window.open() when we allow popups. r=jst
2011-09-28 23:23:36 +02:00
Luke Wagner
b49c9e1267
Bug 683361, part 1 - Strip JS prefix from proxy names since they are already in namespace js (r=gal)
...
--HG--
extra : rebase_source : 5eded8e02c36991322c94fca1092970910c2ceea
2011-09-08 20:29:15 -07:00
Josh Matthews
1587312eda
Bug 683945 - Avoid using a deleted hashtable for finding window IDs. r=jst
2011-09-03 19:43:22 -04:00
Blake Kaplan
d8de08f4ca
Bug 684135 - Protect against calling this function during shutdown. r=bzbarsky
2011-09-02 16:49:08 -07:00
Mounir Lamouri
617706ea28
Bug 667183 - Create a static nsGlobalWindow::Init method to do one-shot initializations currently in nsGlobalWindow ctor. r=jst
2011-08-31 16:54:39 +02:00
Mihai Sucan
47eca82a8c
Bug 670896 - Add inner window ID and timestamp to nsIScriptError2; r=bzbarsky
2011-08-24 23:44:35 +03:00
Boris Zbarsky
1c9abe2f8d
Bug 659350 part 5. The guts of the change to move from storing inline event handlers on the JSObject to storing them in the event listener manager directly, so we can easily set/read them via IDL.
...
The changes here are as follows:
1) nsIJSEventListener now stores the handler. This is guaranteed to be already bound properly, if needed, before being set in the nsIJSEventListener.
2) The old classinfo glue to deal with on* properties is gone.
3) IDL-based methods for on* properties have been added.
2011-08-24 15:49:25 -04:00
Boris Zbarsky
65b18775af
Bug 659350 part 2. Add nsITouchEventReceiver for windows. r=smaug
2011-08-24 15:49:25 -04:00
Ms2ger
fe7e298f75
Bug 675075 - Reinstate nsIDOMWindowInternal; r=smaug
...
* * *
Bug 675075 - Followup: remove nsIDOMWindowInternal.h includes; r=bustage
2011-08-14 19:22:29 +02:00
Ms2ger
352b5b2d9d
Backout bug 675075 for bustage
2011-08-14 20:05:20 +02:00
Ms2ger
a74e67b366
Bug 675075 - Reinstate nsIDOMWindowInternal; r=smaug
2011-08-14 19:22:29 +02:00
Mounir Lamouri
d6059627f3
Bug 674112 - Make nsNavigator participate to the DOM Memory Reporter. r=jst
2011-08-09 14:58:41 +02:00
Mounir Lamouri
9746f972e4
Bug 670986 - Create nsLocation.h to declare nsLocation instead of doing that in nsGlobalWindow.h. r=jst
2011-08-02 21:22:40 -07:00
Ms2ger
292cb94b42
Bug 670331 - Remove nsIDOMStorageWindow; r=sicking
2011-07-15 12:32:37 +02:00
Ms2ger
8c78d3f478
Bug 670235 - Remove nsIDOMWindowInternal; r=sicking
2011-07-15 12:31:34 +02:00
Boris Zbarsky
5c4d6b1e7b
Bug 648045. Mark the currently selected tab in a minimized window as inactive. r=gavin,smaug
2011-07-11 09:14:08 -04:00
Marco Bonardo
fa3cd9704a
Backout changesets 9e4ab3907b29, 3abc0dbbf710 due to m-oth permaorange
2011-07-11 10:27:58 -07:00