Ehsan Akhgari
22ed390f77
Bug 950659 - Remove nsIDOMMediaQueryList and nsIDOMMediaQueryListListener; r=bzbarsky
...
X-Git-Commit-ID: 8584a27a3b3f2a749273cf6c56057b0276854f3b
2013-12-17 08:40:06 -05:00
Ehsan Akhgari
b5e08b6467
Bug 950523 - Part 2: Move MediaQueryList to WebIDL bindings; r=bzbarsky
2013-12-16 09:03:34 -05:00
Trevor Saunders
907dfc4528
bug 949821 - use MOZ_UTF16 more and NS_LITERAL_STRING less r=froydnj
2013-12-12 20:50:01 -05:00
Peter Van der Beken
6136a7c202
Bug 938640 - Make forwarding to outer conditional on current inner. r=bz.
2013-12-14 18:52:13 +01:00
Peter Van der Beken
528dba0d42
Bug 938640 - Move GetTopImpl. r=bz.
2013-12-14 18:52:12 +01:00
Eric Faust
e1ed4ead58
Bug 926012 - Part 3: Convert wrappers to using dynamic prototype hooks. (r=bholley)
2013-12-13 12:01:30 -08:00
Steve Fink
be4b9213bd
Bug 937317 - Root around GC call GetIncumbentGlobal. r=bz
2013-12-11 17:51:58 -08:00
Bobby Holley
a7395d2ec6
Bug 937317 - Replace all instance of null cx pushing with AutoSystemCaller. r=bz
...
This is an easy bonus chunk of the work to phase out cx pushing in the browser.
2013-12-11 17:51:58 -08:00
Bobby Holley
904374035f
Bug 937317 - When invoking a callback object, restore the incumbent script settings object from when the callback was created. r=bz
...
See the 'incumbent script' stuff in the WebIDL spec.
2013-12-11 17:51:58 -08:00
Nathan Froyd
cc206f7727
Bug 946781 - part 4 - revert measuring the proto and iface cache on nsGlobalWindow (bug 922094); r=me
2013-12-06 13:11:53 -05:00
Peter Van der Beken
b742139fb8
Bug 936129 - nsGlobalWindow::InnerForSetTimeoutOrInterval is a no-op for bareword setTimeout. r=bz.
...
--HG--
extra : rebase_source : 3a7875435f6443c67af9030fa4e39cac6aac8a49
2013-11-26 16:28:34 +01:00
Birunthan Mohanathas
2a97f4dc0d
Bug 713082 - Part 1: Remove unnecessary Util.h includes. r=Waldo
2013-12-08 21:52:33 -05:00
Phil Ringnalda
e2e1627d17
Back out 35371620801a:bf2019278b77 (bug 937317) for gaia-ui-test bustage and frequent timeouts in its own test
2013-12-07 11:08:56 -08:00
Phil Ringnalda
ec57391e9c
Merge m-c to m-i
2013-12-06 21:11:17 -08:00
Shu-yu Guo
691c4d7088
Bug 946641 - Part 1: Clear delayed events on closed documents. (r=smaug)
2013-12-06 19:31:09 -08:00
Phil Ringnalda
b8c995c10c
Back out 567d2bba4f97 (bug 933483) for causing bug 946726
2013-12-06 19:11:11 -08:00
Bobby Holley
4d56f0a83d
Bug 937317 - Replace all instance of null cx pushing with AutoSystemCaller. r=bz
...
This is an easy bonus chunk of the work to phase out cx pushing in the browser.
2013-12-06 12:01:42 -08:00
Bobby Holley
0b02f5ecfa
Bug 937317 - When invoking a callback object, restore the incumbent script settings object from when the callback was created. r=bz
...
See the 'incumbent script' stuff in the WebIDL spec.
2013-12-06 12:01:42 -08:00
Carsten "Tomcat" Book
22b9fc1982
Backed out changeset 767065f0560b (bug 937317) WinXP Build Bustage on a CLOSED TREE
2013-12-06 08:41:59 +01:00
Carsten "Tomcat" Book
f0d2b953c5
Backed out changeset 374e44c835a8 (bug 937317) WinXP Build Bustage on a CLOSED TREE
2013-12-06 08:41:42 +01:00
Bobby Holley
c8308277c1
Bug 937317 - Replace all instance of null cx pushing with AutoSystemCaller. r=bz
...
This is an easy bonus chunk of the work to phase out cx pushing in the browser.
2013-12-05 21:34:17 -08:00
Bobby Holley
8ca6ed8d97
Bug 937317 - When invoking a callback object, restore the incumbent script settings object from when the callback was created. r=bz
...
See the 'incumbent script' stuff in the WebIDL spec.
2013-12-05 21:34:17 -08:00
Ryan VanderMeulen
f006eb0ddb
Merge m-c to inbound.
2013-12-05 17:56:44 -05:00
Blake Kaplan
4baa66b222
Bug 933483 - Don't fire events (and especially request animation frame events) when we're in a modal dialog. r=smaug
2013-12-04 21:03:21 -05:00
Nathan Froyd
84d844bb51
Bug 922094 - part 2 - make nsGlobalWindow report its proto/iface cache size, if appropriate; r=bz
2013-11-20 08:55:09 -05:00
Mark Hammond
56c3838e3f
Bug 943668 - ensure window.screenX and .screenY return css pixels. r=roc
2013-12-03 16:36:33 +11:00
Ryan VanderMeulen
f5648e07cc
Backed out changeset 77c1f23afc1c (bug 933483) for mochitest-bc failures.
2013-12-02 20:31:18 -05:00
Blake Kaplan
72f57b32df
Bug 933483 - Don't fire events (and especially request animation frame events) when we're in a modal dialog. Also protect ourselves from resuming events on a closed window. r=smaug
2013-12-02 15:38:36 -08:00
Ms2ger
878b32ec4a
Bug 866689 - Add more inner / outer window assertions; r=mrbkap
2013-11-28 15:07:55 +01:00
Jan Beich
2e6dfb3be8
Bug 942921 - Explicitly include unistd.h for getpid() for non-Linux debug builds. r=smaug
2013-11-26 17:25:24 -05:00
Olli Pettay
fa64f21519
Bug 942240 - Improve the skippability of nsGlobalWindow, r=mccr8
...
--HG--
extra : rebase_source : ed7e687229a92075657d9b665fbc7af42d9eb5cc
2013-11-24 21:35:34 +02:00
Boris Zbarsky
4c293cf8e4
Bug 941437 part 2. Remove the unused cx argument from UNWRAP_OBJECT and UNWRAP_WORKER_OBJECT. r=smaug
2013-11-21 07:51:16 -05:00
"Kan-Ru Chen (陳侃如)"
0db54ecb73
Bug 931746 - Make sure all mozbrowser mm are in the target chain. r=smaug
...
---
dom/base/nsGlobalWindow.cpp | 8 ++
dom/base/test/file_empty.html | 1 +
dom/base/test/mochitest.ini | 2 +
dom/base/test/test_messagemanager_targetchain.html | 129 ++++++++++++++++++++
4 files changed, 140 insertions(+)
create mode 100644 dom/base/test/file_empty.html
create mode 100644 dom/base/test/test_messagemanager_targetchain.html
2013-11-17 01:07:24 +08:00
Ryan VanderMeulen
25f4dc9657
Merge m-c to inbound on a CLOSED TREE.
2013-11-14 20:58:52 -05:00
Peter Van der Beken
86181bcd60
Bug 935786 - Assertion failure: !IsInnerWindow() || IsCurrentInnerWindow() at nsGlobalWindow.cpp:8909. r=smaug
...
CLOSED TREE
2013-11-13 09:47:37 +01:00
Bobby Holley
15add0796f
Bug 840488 - Remove per-JSContext script toggling. r=bz
...
Note that the checks in nsJSEnvironment::EvaluateString and EvalInWindow
can safely go away, because we call ssm->ScriptAllowed() in
nsJSUtils::EvaluateString.
2013-11-12 16:43:35 -08:00
Bobby Holley
70289cf621
Bug 840488 - Directly mark compartments whose docshells disable script execution. r=bz
2013-11-12 16:43:33 -08:00
Bobby Holley
2c448611f5
Bug 840488 - Introduce a mechanism to temporarily or permanently block script for a given scope, and use it for unsafe channels. r=bz
2013-11-12 16:43:33 -08:00
Michael Henretty
6e5f233f7d
Bug 882186 - [System] Replace blue offline error page with new UX. Window.close part. r=fabrice
2013-11-07 17:42:32 -08:00
Vendelin Ruzicka
be972363d7
Bug 933563 - Consolidate ReportUseOfDeprecatedMethod and WarnOnceAbout. r=sicking, r=ms2ger
2013-11-11 16:12:18 -05:00
Ms2ger
5e1bd894df
No bug - Fix some style issues in DOM code.
2013-11-11 09:04:41 +01:00
Carsten "Tomcat" Book
a88ea70081
merge mozilla-inbound to mozilla-central
2013-11-11 08:50:14 +01:00
Tim Taubert
0e601d49eb
Bug 934091 - Add current process ID to the {++|--}{DOMWINDOW|DOCSHELL} debug output r=smaug
...
From cbc766c3d5bae69f438bdc096f935c40e23b0f36 Mon Sep 17 00:00:00 2001
2013-11-07 09:53:04 +01:00
Jeff Walden
04e9645fc3
Bug 903332 - Make watch/unwatch into proxy hooks and such, and make watching/unwatching work on DOM proxies and windows (or at least work as much as it ever did, which is to say kinda-sorta-ish). r=bhackett, r=efaust
...
--HG--
extra : rebase_source : 58dc71e7e58208a2cfa12b265adca7b189e5e5bd
2013-10-29 16:39:09 -07:00
Vendelin Ruzicka
2fa356509c
Bug 933040 - Warn for showModalDialog uses. r=jst, r=sicking
2013-11-06 08:59:54 -05:00
Kyle Huey
2789485d96
Bug 928312: Convert the worker global object and all remaining EventTargets to new DOM bindings. r=bent,peterv,smaug
2013-11-05 22:16:26 +08:00
Kyle Huey
f66e59b158
Bug 934785: Only change the popup control state on the main thread. r=smaug
2013-11-05 22:16:26 +08:00
Kyle Huey
50ee3b3331
Bug 933099: Banish <windows.h> from nsGlobalWindow.cpp. r=bz
2013-11-05 22:16:25 +08:00
Peter Van der Beken
e25a09035c
Bug 932309 - Don't null out mDoc in nsGlobalWindow::FreeInnerObjects, additional fixes. r=smaug.
...
--HG--
extra : rebase_source : 40c7cdbe6baa9c7596ecf9eb67c917c95f9b2351
2013-11-01 14:31:00 +01:00
Peter Van der Beken
73baebc372
Bug 932309 - Don't null out mDoc in nsGlobalWindow::FreeInnerObjects. r=smaug.
...
--HG--
extra : rebase_source : add310c90bafed468345647c61404c8e9971087b
2013-10-16 18:11:24 +02:00
Ryan VanderMeulen
78649cfa0f
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
ac05751a06
Bug 934203 - Windows-only startup crash in JS_WrapValue(JSContext*, JS::MutableHandle<JS::Value>) with Twitter Disconnect / Facebook Disconnect. r=bz.
...
--HG--
extra : rebase_source : 2ee7a6f417ea3611d21d5e8efd01caf2b9692a0c
2013-11-04 14:18:01 +01:00
Peter Van der Beken
4b78652e22
Bug 932309 - Don't null out mDoc in nsGlobalWindow::FreeInnerObjects, additional fixes. r=smaug.
...
--HG--
extra : rebase_source : 71604344bd4d50dbce7d1364ab2d88f0ee5d2175
2013-11-01 14:31:00 +01:00
Peter Van der Beken
4ae17a0b14
Bug 932309 - Don't null out mDoc in nsGlobalWindow::FreeInnerObjects. r=smaug.
...
--HG--
extra : rebase_source : 21c472ff3917bc386664050e761b4297cbdfa3a9
2013-10-16 18:11:24 +02:00
Ryan VanderMeulen
9d31989c15
Backed out changeset 471db633b20c (bug 903332) for B2G desktop mochitest-1 failures.
2013-11-07 16:10:21 -05:00
Jeff Walden
39bee2a91f
Bug 903332 - Make watch/unwatch into proxy hooks and such, and make watching/unwatching work on DOM proxies and windows (or at least work as much as it ever did, which is to say kinda-sorta-ish). r=bhackett, r=efaust
...
--HG--
extra : rebase_source : b5bae3832b7718b579abb7c09f36c9c46907d7cc
2013-10-29 16:39:09 -07:00
Boris Zbarsky
ad9d365422
Bug 932421. Stop including windows.h (via Hal.h) in Screen.h, so we don't screw up our bindings code. r=smaug
...
Also stops Hal.h bootlegging Observer.h.
2013-10-31 22:07:10 -04:00
Terrence Cole
967c793419
Bug 932466 - Fix two exact rooting hazards in dom; r=smaug
...
--HG--
extra : rebase_source : 8085170b6ab76912962c19dce9e409e2f6026058
2013-10-28 12:35:52 -07:00
Peter Van der Beken
1ebee7f524
Bug 931794 - startup crash in mozilla::dom::WindowBinding::get_content with Twitter Disconnect, Facebook Disconnect, or Google Disconnect on 2013-10-28 nightly. r=bz.
...
--HG--
extra : rebase_source : f3a20721f5333fbf6f5e16deb045f4aff4df9955
2013-10-28 22:03:07 +01:00
Birunthan Mohanathas
7a599eb1ae
Bug 784739 - Switch from NULL to nullptr in dom/ (1/2); r=ehsan
2013-10-28 10:04:12 -04:00
Kyle Huey
65052d91b0
Bug 904720: Count event listeners. r=njn,smaug
2013-10-28 17:47:18 +08:00
Nicholas Nethercote
ba1e9bce90
Bug 925584 - Remove some unnecessary jsapi.h inclusions from .cpp files. r=Ms2ger.
...
--HG--
extra : rebase_source : 41fcb0e922a519ef679c1c1b6293c2b638e83a48
2013-10-10 15:22:35 -07:00
Peter Van der Beken
cbf7a0c800
Bug 918345 - Turn on WebIDL binding generation for Window and hook it up to quickstubs. r=bz.
...
--HG--
extra : rebase_source : 7bde7ddfe297e189ffa678ca1d9c34000bc904ec
2013-10-08 17:51:42 +02:00
Tom Schuster
306cb13efc
Bug 930782 - Handlify JS_WrapValue. r=terrence
2013-10-26 18:19:05 +02:00
Ms2ger
34f7a76bb1
Backout changeset 2e466ccc7bd0 for devtools test failures.
2013-10-26 17:02:20 +02:00
Peter Van der Beken
a521d7eace
Bug 918345 - Turn on WebIDL binding generation for Window and hook it up to quickstubs. r=bz.
...
--HG--
extra : rebase_source : 673c08ef093339e6bfb1418366af5cc5fabe7c4d
2013-10-08 17:51:42 +02:00
Olli Pettay
b015635ca8
Bug 930498 - BarProps should be got from the inner window not from the outer, r=peterv
2013-10-25 14:12:01 +03:00
Terrence Cole
40bc663533
Bug 929800 - Handlify the structured clone interface; r=sfink,smaug
...
--HG--
extra : rebase_source : 4f21dd799ad27dc665997d4912996a500ae8a2f2
2013-10-22 17:18:32 -07:00
Olli Pettay
75b26dc9a5
Bug 917026, remove few bogus NS_NOTREACHEDs from TabChild and make window.blur() not throw, r=felipe
...
--HG--
extra : rebase_source : feee4546e52bf2b92f92c63d31538aadef7ad877
2013-10-24 23:57:19 +03:00
Peter Van der Beken
17b2c2776e
Bug 922160 - Bring EventHandler.webidl more in line with the spec, rename BeforeUnloadEventHandler to OnBeforeUnloadEventHandler. r=bz.
...
--HG--
extra : rebase_source : e4bed124f36e94e1aa646b24783f7f2c682e31b5
2013-10-08 17:51:15 +02:00
Olli Pettay
891eae48f1
Bug 927901, bind .crypto to inner, not outer window, r=khuey
...
--HG--
extra : rebase_source : 801a257d7ca697c200537647f89302e84c1636ba
2013-10-24 19:25:39 +03:00
Ed Morley
f84da565ad
Backed out changeset fd177e58f30b (bug 922160)
2013-10-23 15:51:21 +01:00
Peter Van der Beken
770ee58c74
Bug 922160 - Bring EventHandler.webidl more in line with the spec, rename BeforeUnloadEventHandler to OnBeforeUnloadEventHandler. r=bz
...
--HG--
extra : rebase_source : acb2edc950b13a16621421801779caf496663595
2013-10-08 17:51:15 +02:00
Kyle Huey
ed10f7b8b4
Bug 915757: Split GetListenerManager into two functions for more const-correctness. r=smaug
2013-10-23 07:32:04 +08:00
Nathan Froyd
963afd7689
Bug 928916 - use services::GetObserverService more in dom/; r=smaug
2013-10-21 08:58:12 -04:00
Masayuki Nakano
40483897f3
Bug 920425 part.28 Use mozilla::WidgetEvent::AsMouseEvent() r=smaug
2013-10-22 17:55:20 +09:00
Steve Fink
123565e1c6
Bug 925916 - Random minor code cleanups, r=smaug
2013-10-15 15:34:13 -07:00
Steve Fink
a3274806e4
Bug 925916 - Handlify WrapNative, r=smaug
2013-10-11 22:02:39 -07:00
Tom Schuster
a513788fdb
Bug 8844105 - Handlify JS_WrapObject. r=terrence
2013-10-15 20:02:23 -04:00
Ryan VanderMeulen
e9e247b525
Backed out 2 changesets (bug 915757, bug 919885) for frequent Android Armv6 mochitest-8 crashes.
...
Backed out changeset 04610078280c (bug 915757)
Backed out changeset db9190b3ce60 (bug 919885)
2013-10-14 14:38:54 -04:00
Kyle Huey
b98758cdbd
Bug 915757: Split GetListenerManager into two functions for more const-correctness. r=smaug
2013-10-14 19:58:25 +08:00
Phil Ringnalda
7f4c6bd321
Backed out 2 changesets (bug 915757, bug 919885) for xpcshell bustage
...
Backed out changeset 5d17d90b838d (bug 915757)
Backed out changeset 91495d3a91c8 (bug 919885)
2013-10-13 21:59:58 -07:00
Kyle Huey
d9a28b7f74
Bug 915757: Split GetListenerManager into two functions for more const-correctness. r=smaug
2013-10-14 11:10:44 +08:00
Ehsan Akhgari
d26e049233
Bug 924248 - Make nsIDocument.h go on a diet; r=jst
...
The nsMacShellService code is rewritten to stop using GetLoadContext
which will now only be available in libxul.
2013-10-07 22:21:07 -04:00
Boris Zbarsky
48ef79b3bb
Bug 817194. Make WebIDL dictionary types sanely initialized by default; add a new Fast subclass to handle cases when we can skip the initialization safely. r=khuey
2013-10-09 12:05:22 -04:00
Ed Morley
2c635d5d0c
Backed out changeset 8fa0cbe4a54d (bug 817194) for build failures
2013-10-09 17:48:13 +01:00
Boris Zbarsky
cf8ba5ee47
Bug 817194. Make WebIDL dictionary types sanely initialized by default; add a new Fast subclass to handle cases when we can skip the initialization safely. r=khuey
2013-10-09 12:05:22 -04:00
Tim Abraldes
5290e038f7
bug 910501. Remove the rate-limiting behavior of the "Prevent this page from creating additional dialogs" checkbox. That behavior was unintentionally added and is confusing. r=bz,gavin
2013-10-08 14:00:12 -07:00
Tim Abraldes
cb1a14e52c
bug 856977. Alert should not be possible from beforeunload. r=bbondy,bz
2013-10-08 14:00:12 -07:00
Ben Turner
7b97102c91
Bug 643325 - Implement SharedWorker. r=khuey.
...
--HG--
extra : transplant_source : %D6%8C%9Ajc%3C%F0%0E%DB%C6%7E2%AA%97%B8%AA%B2%7EY%B6
2013-06-05 07:04:23 -07:00
Masayuki Nakano
e46624e0ca
Bug 920377 part.32 Get rid of nsMouseEvent r=roc
2013-10-02 15:38:27 +09:00
Masayuki Nakano
5e5853070a
Bug 920377 part.31 Get rid of nsEvent r=roc
2013-10-02 12:46:04 +09:00
Kartikaya Gupta
06b2ab5226
Bug 919437 - Use the scrollport size as the inner size if it is set. r=tn, roc
2013-10-01 21:21:00 -04:00
Nicholas Nethercote
258c2f4cdf
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
Kan-Ru Chen (陳侃如)
3ed33419af
Bug 914026 - Check mDocShell before use. r=khuey
2013-09-26 17:13:41 +08:00
David Anderson
a588b6e3c0
Fix window.focus() in content processes (bug 902715, r=enndeakin).
2013-09-20 15:07:51 -07:00
Masayuki Nakano
f827f4667b
Bug 912956 part.14 mozilla/MouseEvents.h should be included directly r=roc
2013-09-25 20:21:18 +09:00
David Anderson
52f9444d10
Don't rely on legacy crypto calls in e10s content processes (bug 919089, r=bz).
...
--HG--
extra : rebase_source : 96a4b8f475c2e6e8b4f3a082e8efdc32fc8b08b6
2013-09-24 14:08:25 -07:00
Masayuki Nakano
9586dcc4ba
Bug 912956 part.12 All event utils (macros and inline methods) should be methods of mozilla::WidgetEvent r=roc
2013-09-24 19:04:16 +09:00
Boris Zbarsky
145b4483f7
Bug 862627 part 1. Switch EventListener to WebIDL codegen. r=smaug
2013-09-23 20:25:17 -04:00
Ehsan Akhgari
45d655ec96
Bug 919325 - Minimize the #includes in content/ IDL files; r=bzbarsky
...
--HG--
extra : rebase_source : 923a665eadc62046c9d5398a25187a3331fd8d25
2013-09-22 19:23:30 -04:00
Jon Coppeard
8c99b0611f
Bug 918373 - GC: Handlify various public APIs r=sfink r=bholley r=smaug
2013-09-20 10:22:59 +01:00
Bobby Holley
8696b88eb9
Bug 874502 part 6. Remove IsCallerChrome path for tearing down windows synchronously. r=bzbarsky
2013-09-17 17:45:48 -04:00
Tom Schuster
e512bc4ffb
Bug 914353 - Use the new window.crypto implementation in e10s. r=khuey
2013-09-17 12:54:34 -04:00
Olli Pettay
d3863cecc5
Bug 916879, remove SetterThrows from eventhandlers, r=emk
2013-09-17 14:01:28 +03:00
Karl Tomlinson
5751aaa536
b=914030 don't keep alive used AudioContexts from the window r=ehsan,bz
...
--HG--
extra : transplant_source : %9D%94%FF%AA%92%C7%5B8%FA%C7%DD%3A%E3W%9E%BD%7F%25%5C%19
2013-09-12 16:16:53 +12:00
Terrence Cole
09f12ae71d
Bug 912813 - Do not store an unrooted object in CompartmentOptions; r=bholley
...
--HG--
extra : rebase_source : b14639e8c2c2806401077c6bea3d4ce21be51886
2013-09-10 10:01:10 -07:00
Steven Michaud
7adfee67b5
Bug 892547 - Sheets on Mac don't have a default option selected. r=enndeakin
2013-09-10 20:35:47 -05:00
Andrea Marchesini
12b0fc30b0
Bug 913761 - Something is wrong when transferring MessagePort object via MessageChannel. r=smaug
...
CLOSED TREE
2013-09-10 13:42:22 -04:00
Kyle Huey
abebd382da
Bug 910937: Remove xpc_UnmarkGrayObject and use JSAPI directly. r=mccr8
2013-09-08 20:28:48 -07:00
Robert O'Callahan
33cdb42706
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
Bobby Holley
b8f437054d
Bug 899367 - Make GetNativeGlobal consumers call GetWindowProxy and rm the former. r=mccr8
...
Some of the uses of this are a bit nonsensical now, but that's a problem for
another day.
2013-09-04 14:06:57 -07:00
Bobby Holley
7932b397fb
Bug 899367 - Have nsGlobalWindow go through nsJSContext to access the outer. r=mccr8
2013-09-04 14:06:55 -07:00
Andrew McCreight
4723c7c5e3
Bug 883920 - use templates for {Hold,Drop}JSObjects. r=peterv
2013-08-16 13:10:17 -07:00
Andrea Marchesini
aa3daea368
Bug 677638 - MessageChannel and MessagePort disabled by pref, r=smaug
2013-09-03 14:39:03 +02:00
Andrea Marchesini
861af1ae77
Bug 677638 - MessagePorts in Structured Clone Algorithm, r=smaug
2013-09-03 14:38:51 +02:00
Kan-Ru Chen (陳侃如)
4ad4688f38
Bug 910088 - Follow up: Return false if failed to get JS::Value. r=bz
2013-08-29 22:38:56 +08:00
Kan-Ru Chen (陳侃如)
bb0801e102
Bug 910088 - Use webIDL dictionaries for DOMWindowResize event details r=bz
2013-08-29 11:54:31 +08:00
Boris Zbarsky
03d632d917
Bug 909645 part 2. Don't include ipdl headers in Hal.h. r=ms2ger
2013-08-28 00:14:57 -04:00
Ed Morley
470c8ac4f9
Merge latest green b2g-inbound changeset and mozilla-central
2013-08-28 12:22:00 +01:00
Boris Zbarsky
a6ce34f2cf
Back out revisions 042d50591265:69f4af72765c (bug 909645) due to Windows bustage causing a CLOSED TREE.
2013-08-28 01:46:00 -04:00
Boris Zbarsky
d7e2aadfa7
Bug 909645 part 2. Don't include ipdl headers in Hal.h. r=ms2ger
2013-08-28 00:14:57 -04:00
Nicholas Nethercote
3f5d413d90
Bug 909597 (part 2) - Rename jsdbgapi.{h,cpp} as {js,vm}OldDebugAPI.{h,cpp}. r=luke.
...
--HG--
rename : js/src/jsdbgapi.h => js/public/OldDebugAPI.h
rename : js/src/jsdbgapi.cpp => js/src/vm/OldDebugAPI.cpp
extra : rebase_source : 9cd65a698e726c43d88d650f40823367bf98feae
2013-08-26 19:05:20 -07:00
Kan-Ru Chen (陳侃如)
a7e64cb3fe
Bug 891763 - Browser API: mozbrowserresize event. r=jlebar
...
--HG--
extra : rebase_source : ba426c66e1fb6f108107c44c64fd170ea384a6db
2013-08-16 19:16:20 +08:00
Ryan VanderMeulen
2f3de4dea0
Backed out 12 changesets (bug 899367) for Windows and OSX mochitest failures on a CLOSED TREE.
...
Backed out changeset 46cf4c3eb447 (bug 899367)
Backed out changeset d8a876219fc7 (bug 899367)
Backed out changeset d930333f95a7 (bug 899367)
Backed out changeset efae8cc0fff8 (bug 899367)
Backed out changeset 1dd262d146a6 (bug 899367)
Backed out changeset 4c396b8a51d0 (bug 899367)
Backed out changeset c8c30176639a (bug 899367)
Backed out changeset aaa8fbcf9aaf (bug 899367)
Backed out changeset d1a782044a4b (bug 899367)
Backed out changeset b2672ab55046 (bug 899367)
Backed out changeset fc4deb0b06fa (bug 899367)
Backed out changeset b9f1018a609c (bug 899367)
2013-08-27 21:14:54 -04:00
Bobby Holley
6274710e79
Bug 899367 - Make GetNativeGlobal consumers call GetWindowProxy and rm the former. r=mccr8
...
Some of the uses of this are a bit nonsensical now, but that's a problem for
another day.
2013-08-27 15:21:40 -07:00
Bobby Holley
5fe7a003d5
Bug 899367 - Have nsGlobalWindow go through nsJSContext to access the outer. r=mccr8
2013-08-27 15:21:39 -07:00
Ms2ger
8bfa279bb1
Merge m-c to inbound
2013-08-22 10:38:48 +02:00
Ms2ger
87ae95251c
Merge PGO-green changeset from inbound to m-c.
2013-08-22 10:31:44 +02:00
Ms2ger
44830af93b
Bug 905739 - Remove nsIDOMStorageIndexedDB; r=khuey
2013-08-22 08:33:59 +02:00
Ms2ger
dd5239111f
Bug 904178 - Part f: Remove some includes from nsPIDOMWindow.h; r=mounir
2013-08-22 08:30:55 +02:00
Ehsan Akhgari
1e7ca5d13f
Bug 904695 - #include fewer headers in nsContentUtils.h; r=jst
2013-08-21 15:28:26 -04:00
Nicholas Nethercote
42ccf38dcd
Bug 905017 (part 1) - Minimize inclusions of JS engine headers in .h and .idl files. r=billm.
...
--HG--
extra : rebase_source : 984c61ab12f46be0509b1ce0d458d9a6e5841c64
2013-08-17 15:50:18 -07:00
Bobby Holley
7c26851804
Bug 901106 - Make nsJSRuntime initialization infallible and do it implicitly in the nsJSContext constructor. r=mrbkap
...
We also move the runtime out of the namespace, which requires some updates.
2013-08-19 16:24:29 -07:00
Bobby Holley
d192e30f6e
Bug 901106 - Get rid of vestigial nsJSRuntime instance and make it a namespace. r=mrbkap
...
We'll rename the namespace shortly.
2013-08-19 16:24:29 -07:00
Bobby Holley
684f16b450
Bug 901106 - Remove nsIScriptRuntime. r=mrbkap
...
All this stuff is now for nsGlobalWindow's use only.
2013-08-19 16:24:28 -07:00
Masatoshi Kimura
431087ee79
Bug 856424 - Unpref Components for content. r=bholley
2013-08-20 02:44:31 +09:00
Ehsan Akhgari
3ec2c9b451
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
5905c6e3c8
Bug 890304 - Remove the indexeddb.feature.enabled pref. r=sicking
2013-08-13 08:49:11 -04:00
Bobby Holley
81026a6fdf
Bug 901364 - Remove a bunch of now-unused modal state tracking machinery. r=mrbkap
2013-08-12 12:54:51 -07:00
Bobby Holley
e923703302
Bug 901364 - Make operation callbacks runtime-wide. r=mrbkap
2013-08-12 12:54:50 -07:00
Bobby Holley
3e44192004
Bug 901364 - Switch to the XPConnect operation callback for DOM windows. r=mrbkap
2013-08-12 12:54:49 -07:00
Bobby Holley
962b3d3ad7
Bug 901364 - Hoist slow script prompt machinery into nsGlobalWindow. r=mrbkap
2013-08-12 12:54:49 -07:00
Johnny Stenback
4c163e91d9
Bug 859707. Convert History to WebIDL bindings. r=bz
2013-08-09 23:47:59 -07:00
Peter Van der Beken
3256529063
Bug 895758. Make the global scope polluter a proxy. r=bzbarsky
2013-07-09 10:45:13 -04:00
Terrence Cole
61b15c2fbb
Bug 862115 - Use Rooted<JSPropertyDescriptor> in favor of JSPropertyDescriptor::AutoRooter r=terrence r=smaug r=bholley
2013-04-30 10:29:40 -07:00
Nicholas Nethercote
b756f6b258
Bug 898914 (part 1) - Remove JSBool.
...
--HG--
extra : rebase_source : 2d202e0e5005a7f54724b1540481c15cde3ad52e
2013-08-08 15:53:04 -07:00
Carsten "Tomcat" Book
2e9c4e6c35
merge b2g-inbound to mozilla-central
2013-08-08 13:33:12 +02:00
Carsten "Tomcat" Book
637a43421b
merge mozilla-inbound to mozilla-central
2013-08-08 13:13:05 +02:00
Marco Castelluccio
502d6e1f10
Bug 769848 - window.resizeTo fails is blocked in apps. r=jst
2013-08-07 20:17:34 -04:00
Jeremy Kim
25f99068c5
Bug 901416 - Don't add multiple instances of the network-blip observer to nsGlobalWindow. r=jlebar
2013-08-07 20:07:41 -04:00
Nicholas Nethercote
25d70fdd97
Bug 902332 - Replace JS_{FALSE,TRUE} with {false,true} almost everywhere. r=luke,bz.
...
--HG--
extra : rebase_source : 25f4de1bfae830b0af6407d260a70b787ab1dc9b
2013-08-06 23:59:54 -07:00
Yoshi Huang
3a8a76e455
Bug 883741 - Part 1: WebCrypto: Move Crypto to WebIDL. r=bz
2013-08-01 14:57:25 +08:00
Mike Hommey
d01b5df996
Bug 881323 - Re-implement CycleCollectorParticipant with actual vtables, with constexpr to avoid static initializers. r=mccr8
2013-08-02 10:29:05 +09:00
Masatoshi Kimura
93b88d2366
Bug 673919 - Remove routeEvent, enableExternalCapture and disableExternalCapture. r=smaug
2013-08-01 23:48:18 +09:00
Bill McCloskey
ca26060518
Bug 899812 - Error reporters should consistently report errors to stderr (r=bholley)
2013-07-31 17:04:49 -07:00
Masatoshi Kimura
b85aa29a35
Backed out changeset 2aa62db58f24 (bug 673919) due to Web compat
2013-08-01 06:44:51 +09:00
Tom Schuster
0b021a6fa2
Bug 884410 - Handlify JS_GetPrototype. r=terrence
2013-07-31 12:20:33 -04:00
Bobby Holley
c00f6379ec
Bug 899245 - Rename JS_GetGlobalForScopeChain to JS::CurrentGlobalOrNull. r=luke
...
This was done with perl/grep.
2013-07-29 16:45:27 -07:00
Bobby Holley
9dbd7cffb9
Bug 899245 - Rename JS_SetGlobalObject and move it into jsfriendapi. r=luke
2013-07-29 16:45:26 -07:00
Bobby Holley
38ba111543
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
David Zbarsky
040dbd4c2b
Bug 894646 - Various dom deCOM cleanups r=Ms2ger
2013-07-23 16:39:17 -07:00
Jon Coppeard
1bb7f2a908
Bug 888338 - 1 - Add TenuredHeap<T> class r=terrence r=bz
2013-07-23 10:58:26 +01:00
Tom Schuster
8e3e74bfea
Bug 868859 - Make chromeWindow.content work in e10s. r=bz
2013-05-08 23:16:46 +02:00
Bobby Holley
9c6a589771
Bug 887334 - Stop setting the compartment to defaultCompartmentObject_->compartment(). r=luke
...
With this change, defaultCompartmentObject_ is just an opaque (though traced)
piece of embedder state on the cx.
2013-07-17 11:53:54 -07:00
Bobby Holley
e90ffdfc21
Bug 887334 - Push a JSContext in nsGlobalWindow::SecurityCheckURL. r=gabor
2013-07-17 11:53:54 -07:00
Bobby Holley
b6dac750a0
Bug 887334 - Miscellaneous JSAutoCompartments. r=luke
2013-07-17 11:53:53 -07:00
Ryan VanderMeulen
5131a6768c
Backed out 4 changesets (bug 893858, bug 868859, bug 886903) for Linux debug mochitest-other crashes on a CLOSED TREE.
...
Backed out changeset 0ded4854067b (bug 886903)
Backed out changeset ca8afb897e13 (bug 893858)
Backed out changeset c15f503a96cc (bug 868859)
Backed out changeset 6a788f399a7f (bug 868859)
2013-07-17 12:43:59 -04:00
Drew Willcoxon
2107f8a4cc
Bug 894234 - Guard against audioContext->IsOffline(). r=ehsan
2013-07-17 09:59:08 -04:00
Tom Schuster
cb80974d17
Bug 868859 - Make chromeWindow.content work in e10s. r=bz
2013-05-08 23:16:46 +02:00
Ryan VanderMeulen
aaee3cf638
Merge m-c to inbound.
2013-07-10 09:45:16 -04:00
Ms2ger
5db9476062
Bug 890821 - Make nsIScrollableFrame::GetScrollPositionCSSPixels return CSSIntPoint; r=roc
2013-07-10 11:58:13 +02:00
Drew Willcoxon
9a245e82e1
Bug 879111 - Mute Web Audio when allowMedia is false on the docshell. r=ehsan
2013-07-03 17:44:32 -07:00
Johnny Stenback
7209a4a1c5
Fixing bug 855611. Convert navigator.plugins and navigator.mimeTypes to use new DOM bindings. r=peterv@propagandism.org.
2013-07-09 06:58:21 -07:00
Jeff Walden
296b917e73
Bug 888106 - Add too-much-recursion detection to isExtensible tests, and make the isExtensible hook capable of failing. r=bholley, r=ejpbruel
...
--HG--
extra : rebase_source : fe7345322f87dd214aa5122ea8704750e8b2375a
2013-06-28 14:01:09 -07:00
Ms2ger
9a38df8e56
Bug 888321 - Pass CSSIntPoint to ScrollToCSSPixels; f=kats r=roc
2013-07-01 09:14:36 +02:00
Ms2ger
7b4e543404
Bug 888318 - Use CSSIntPoint for nsGlobalWindow::ScrollTo; f=kats r=mrbkap
2013-07-01 09:14:34 +02:00
Ms2ger
4019955ea2
Bug 888235 - Use CSSIntSize for nsGlobalWindow::GetInnerWidth/Height; f=kats r=mrbkap
2013-07-01 09:14:24 +02:00
Bobby Holley
d337596c9c
Bug 865745 - Remove mContext from nsFrameMessageManager. r=smaug
2013-06-30 09:00:19 -06:00
Phil Ringnalda
154f8fcd88
Back out 9a57cd3e5a93:b62548e26499 (bug 865745) for causing an unexpected exception in a mochiperf test
2013-06-29 20:27:48 -07:00
Bobby Holley
43e05e2159
Bug 865745 - Remove mContext from nsFrameMessageManager. r=smaug
2013-06-29 18:44:05 -06:00
Bobby Holley
f5f7bf3be5
Bug 880917 - Generalize JS_NewGlobalObject API to take CompartmentOptions. r=luke
...
This will be useful for versioning, as well as JIT options and all the other
stuff that eventually needs to move out of the JSContext.
2013-06-29 09:11:17 -06:00
Andrew McCreight
5205d3798d
Bug 886213 - Cycle collect Navigator more better. r=smaug
2013-06-28 11:06:39 -07:00
Catalin Iacob
4f03e5bb1a
Bug 798914 (part 5) - Use newly introduced mozilla::MallocSizeOf instead of nsMallocSizeOfFun. r=njn.
...
--HG--
extra : rebase_source : fc472490dd978d165f02f77ed37f07aed6e5bb61
2013-06-23 14:03:39 +02:00
Gabor Krizsanits
756a8f8c8c
Bug 864335 - Remove GetScriptGlobalObject. r=mrbkap
2013-06-21 16:25:20 +02:00
Terrence Cole
0ae404a1ee
Bug 884410 - Handlify the JS_TransplantObject interfaces; r=jonco
...
--HG--
extra : rebase_source : f1c2adc7380e5806ce6b4fce5bb41f9400b9e1b1
2013-06-13 17:09:55 -07:00
Ted Mielczarek
aa974a78e0
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
586c7b4514
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
Timothy Nikkel
778a0e6989
Bug 641188. Ensure that delayed resizes are flushed from the view subsystem to the prescontext's visible area before using the visible area for innerWidth/Height. r=bz
2013-06-12 10:25:32 -05:00
Kyle Huey
274e56e33b
Bug 854739: Ensure that messages are delivered in order when suspending and resuming workers. r=bent+bholley
2013-06-06 10:28:47 -07:00
Andrea Marchesini
1ead46dece
Bug 858524 - Move BarProp objects to Paris bindings, r=ms2ger, r=smaug
2013-06-01 01:53:00 -07:00
Andrea Marchesini
42942f5604
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
Bobby Holley
7e3223c299
Bug 877390 - Do a blind null check. r=bz
...
Who knows why this happens, but this appears to be the culprit per crash
reports.
2013-05-30 14:49:13 -07:00
Ms2ger
1d57226508
Bug 876282 - Add unprefixed cancelAnimationFrame; r=bz
...
--HG--
rename : content/base/test/test_bug647518.html => content/base/test/test_bug876282.html
2013-05-28 19:31:31 +02:00
Jon Coppeard
8a68ce4b84
Bug 874691 - Make CC participant tracing indirect r=mccr8 r=smaug r=bz
2013-05-27 12:50:49 +01:00
Aryeh Gregor
18866d81dc
Bug 867101 - Fix more implicit conversion to already_AddRefed; r=Ms2ger
2013-04-28 14:52:10 +03:00
Bobby Holley
91448a9dac
Bug 868130 - Remove the lion's share of JSAutoRequests in gecko. r=gabor
...
There are still a handful that either are used with other runtimes, or that
happen very early/late in cx the lifetime of various things where it doesn't
necessarily make sense to have a cx on the stack. This should definitely ensure
that we're not doing double-duty with the nsCxPusher change, though.
2013-05-22 10:05:28 -06:00
Bobby Holley
54ef3d2952
Bug 868130 - Include nsCxPusher.h everywhere we need it, and stop including it from nsContentUtils.h. r=gabor
2013-05-22 10:05:26 -06:00
Bobby Holley
bfc9221094
Bug 868130 - Use an AutoSafeJSContext in hueyfix. r=gabor
2013-05-22 10:05:23 -06:00
Bobby Holley
e255f6dc87
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
480517c906
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
Boris Zbarsky
85b06d58a3
Bug 873735 part 2. Change nsIXPConnectJSObjectHolder::GetJSObject to return a JSObject*. r=bholley
2013-05-20 08:44:18 -04:00
Bobby Holley
9efad784c9
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
9e433c7319
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
8025727a78
Bug 860941 - Make dialogArguments default to |undefined| rather than |null|. r=jst
...
This is correct by my reading of the spec. Quoting:
The dialogArguments IDL attribute, on getting, must check whether its browsing
context's active document's origin is the same as the dialog arguments' origin.
If it is, then the browsing context's dialog arguments must be returned
unchanged. Otherwise, if the dialog arguments are an object, then the empty
string must be returned, and if the dialog arguments are not an object, then
the stringification of the dialog arguments must be returned.
2013-05-17 10:43:19 -07:00
Bobby Holley
e00d8aa943
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
e81a69d26b
Bug 860941 - Remove unnecessary argument cleanup in nsGlobalWindow::DetachFromDocShell. r=jst
...
This function proceeds to invoke CleanUp(), which also cleans this stuff up.
2013-05-17 10:43:18 -07:00
Bobby Holley
ef25915f88
Bug 860941 - Clarify shutdown invariants in ~nsGlobalWindow. r=jst
...
While the mArguments invariant should hold for _outers_, it doesn't necessarily
hold for inners, so this assertion fires reliably in automation. If mCleanedUp
is true then mArguments is definitely null, so let's disentangle this from
mArguments and be clearer about the invariants we expect.
2013-05-17 10:43:18 -07:00
Bobby Holley
67e54c952f
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
1cd07da10e
Backed out changeset 70c3a3a74362 (bug 860941) for mochitest-3 timeouts on a CLOSED TREE
2013-05-17 09:09:21 +01:00
Ed Morley
18c2cdec8c
Backed out changeset 98594535c1e9 (bug 860941)
2013-05-17 09:08:49 +01:00
Ed Morley
e559bd5182
Backed out changeset 474792d1fb89 (bug 860941)
2013-05-17 09:08:46 +01:00
Ed Morley
dbd106a2c5
Backed out changeset 0ad1a92ca568 (bug 860941)
2013-05-17 09:08:44 +01:00
Ed Morley
7a9b95a59b
Backed out changeset 90b318fb8375 (bug 860941)
2013-05-17 09:08:41 +01:00
Ed Morley
bac172870c
Backed out changeset 95006bb32743 (bug 860941)
2013-05-17 09:08:38 +01:00
Ed Morley
4e00217af0
Backed out changeset de30d8faf09a (bug 860941)
2013-05-17 09:08:36 +01:00
Bobby Holley
c845ac4102
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
d4c5c27a89
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
49223662aa
Bug 860941 - Make dialogArguments default to |undefined| rather than |null|. r=jst
...
This is correct by my reading of the spec. Quoting:
The dialogArguments IDL attribute, on getting, must check whether its browsing
context's active document's origin is the same as the dialog arguments' origin.
If it is, then the browsing context's dialog arguments must be returned
unchanged. Otherwise, if the dialog arguments are an object, then the empty
string must be returned, and if the dialog arguments are not an object, then
the stringification of the dialog arguments must be returned.
2013-05-16 23:33:14 -07:00
Bobby Holley
983ad0969a
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
5162bde228
Bug 860941 - Remove unnecessary argument cleanup in nsGlobalWindow::DetachFromDocShell. r=jst
...
This function proceeds to invoke CleanUp(), which also cleans this stuff up.
2013-05-16 23:33:14 -07:00
Bobby Holley
1423107658
Bug 860941 - Clarify shutdown invariants in ~nsGlobalWindow. r=jst
...
While the mArguments invariant should hold for _outers_, it doesn't necessarily
hold for inners, so this assertion fires reliably in automation. If mCleanedUp
is true then mArguments is definitely null, so let's disentangle this from
mArguments and be clearer about the invariants we expect.
2013-05-16 23:33:14 -07:00
Bobby Holley
0e71f8d44e
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
c0c90ea117
Bug 868312 - Rooting fixes for dom r=bz
2013-05-14 16:25:32 -07:00
Masatoshi Kimura
ac11f43104
Bug 673919 - Remove captureEvents, releaseEvents, and routeEvent. r=smaug
2013-05-14 21:18:39 +09:00
David Zbarsky
26b3b1eb0d
Backed out changeset 3b73e9c7a5d0 for orange
2013-05-14 01:00:11 -07:00
David Zbarsky
7d9610a584
Bug 868312 - Rooting fixes for dom r=bz
2013-05-14 00:15:53 -07:00
Ehsan Akhgari
67b44c27c9
Bug 871315 - Fix some rooting hazards in content/; r=till,bzbarsky
2013-05-13 13:43:53 -04:00
Mounir Lamouri
4ba9420d46
Bug 851642 - Make sure fullscreenchange event is sent even when the document is being removed from the doctree. r=smaug
...
... instead of relying on nsScreen being destroyed which was causing flaky
behaviour on Firefox Android (based on GC) and was creating a race condition bug
on Firefox OS.
2013-05-13 12:00:42 +01:00
Ehsan Akhgari
7c06c8a034
Backed out 2 changesets (bug 871315) because different compilers have different standards on what is and is not C++
...
Backed out changeset d0d2e13e8b83 (bug 871315)
Backed out changeset be3976bd2d57 (bug 871315)
Landed on a CLOSED TREE
2013-05-13 14:42:03 -04:00
Ehsan Akhgari
807676e818
Bug 871315 - Fix some rooting hazards in content/; r=till,bzbarsky
2013-05-13 13:43:53 -04:00
Michael Harrison
3e73901b83
Bug 260272 - Remove obsolete code from nsGlobalChromeWindow::SetCursor. r=dbaron,mats
2013-05-12 23:09:29 +02:00
David Zbarsky
4cf96f4173
Bug 868312 - Rooting fixes for dom r=bz
2013-05-12 01:17:42 -04:00
David Zbarsky
1e6ff1698e
Bug 868312 - Some more rooting fixes for dom r=bz
2013-05-10 22:39:45 -04:00
David Zbarsky
ae680f2b5f
Bug 868312 - Rooting fixes for dom r=bz
2013-05-10 14:22:21 -04:00
Boris Zbarsky
24ef2562af
Bug 868996. Allow setting opener on the window to non-null, for just the lifetime of the page. r=bholley
2013-05-09 13:07:39 -04:00
Ryan VanderMeulen
1b533138b8
Backed out 6 changesets (bug 868996, bug 867903, bug 869014, bug 870219, bug 861587) for PGO bustage.
...
CLOSED TREE
2013-05-09 17:11:59 -04:00
Boris Zbarsky
777374b9a0
Bug 868996. Allow setting opener on the window to non-null, for just the lifetime of the page. r=bholley
2013-05-09 13:07:39 -04:00
David Zbarsky
7921fbf41a
Bug 868312: Root dom/workers r=bz
2013-05-09 03:27:40 -04:00
Terrence Cole
cd1aec056b
Bug 777548 - Make non-cc-participant tracing indirect; r=smaug,billm,jst
2013-03-28 13:37:22 -07:00
Ms2ger
65037ba176
Bug 868727 - Pass an nsAString to nsGlobalWindow::GetChildWindow; r=bz
2013-05-05 09:03:19 +02:00
Ms2ger
634a0652fb
Bug 868411 - Handlify js::GetObjectProto; r=bz
2013-05-05 09:03:14 +02:00
David Zbarsky
d4b3d0a59f
Bug 868312: Various dom rooting fixes r=bz
2013-05-04 03:52:57 -04:00
David Zbarsky
943119bee1
Bug 868312: Root nsDOMClassInfo.cpp, part 2 r=bz
2013-05-04 03:51:53 -04:00
Boris Zbarsky
e8ede4855e
Bug 865969 part 7. Fix rooting hazards in DOMJSProxyHandler.cpp. r=ms2ger
2013-05-03 19:29:09 -04:00
David Zbarsky
e9a5a0319e
Bug 868312: Root part of nsDOMClassInfo.cpp r=bz
2013-05-03 14:53:32 -04:00
Bobby Holley
4d84f3f37c
Bug 834699 - Stop checking dom.xbl_scopes. r=bz
2013-05-02 16:02:03 -07:00
David Zbarsky
3650bf50d2
Bug 866450 Part 3: Fix rooting hazards under content/ and dom/ r=bz
2013-05-02 05:12:46 -04:00
David Zbarsky
e6b1eb46b4
Bug 866450 Part 2: Fix rooting hazards under content/ and dom/ r=bz
2013-05-02 05:12:46 -04:00
Ed Morley
dfe0338333
Backed out changeset b514d768d793 (bug 866450)
2013-05-02 11:57:14 +01:00