Commit Graph

4326 Commits

Author SHA1 Message Date
Olli Pettay
75377b423a Bug 884296 - Remove the rest of the classinfos for DOM events, r=peterv
--HG--
extra : rebase_source : 9b397e2e19e8e15d2753dc5bf7c18e2b3147f92b
2013-06-20 17:13:52 +03:00
Terrence Cole
075d331390 Bug 884410 - Handlify the JS_TransplantObject interfaces; r=jonco
--HG--
extra : rebase_source : f1c2adc7380e5806ce6b4fce5bb41f9400b9e1b1
2013-06-13 17:09:55 -07:00
Reuben Morais
962b35dcaa Bug 898512 - navigator.mozSettings should be null if the page doesn't have permissions. r=bz 2013-08-06 10:59:13 -03:00
Ted Mielczarek
eeafcabde2 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
Andrea Marchesini
dc9752fc49 Bug 841442 - Rename nsHTMLFormElement to HTMLFormElement
--HG--
rename : content/html/content/src/nsHTMLFormElement.cpp => content/html/content/src/HTMLFormElement.cpp
rename : content/html/content/src/nsHTMLFormElement.h => content/html/content/src/HTMLFormElement.h
2013-06-19 10:24:37 -04:00
Jon Coppeard
da723794cd Bug 884371 - Remove JSMutableHandleXXX from the browser r=bz 2013-06-19 11:32:27 +01:00
Olli Pettay
ce64a01652 Bug 847611 - Paris bindings for autogenerated events, r=peterv 2013-06-18 21:48:45 +03:00
Jon Coppeard
c43484e0e2 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
Jon Coppeard
c1b9a0f0bd Bug 877762 - GC: Post-barrier cycle collector participants - 6 Convert jsid and JS::String to use Heap<T> r=smaug 2013-06-18 11:00:38 +01:00
Jon Coppeard
7bcacd601c Bug 877762 - GC: Post-barrier cycle collector participants - 5 Convert JS::Value to use Heap<T> r=smaug 2013-06-18 11:00:37 +01:00
Nils Maier
82984fe6e0 Bug 846019 - Part 2: Prefix memory reports with add-on ids. r=njn 2013-06-14 22:48:28 -04:00
David Zbarsky
97e1b80d17 Bug 882553 - Convert SVGAnimatedString to WebIDL r=Ms2ger 2013-06-14 15:37:27 -07:00
Peter Van der Beken
ef9e24aa33 Bug 851465 - Remove slim wrappers - remove slim wrapper macros and rename WN macros. r=bholley. 2013-04-19 21:58:30 +02:00
Peter Van der Beken
8cd1dfca20 Bug 851465 - Remove slim wrappers - stop constructing slim wrappers. r=bholley. 2013-03-25 11:36:24 +01:00
Mark Hammond
a8001c07d8 Bug 875157 (part 1) - add isParentWindowMainWidgetVisible to nsIDOMWindowUtils. r=bz
--HG--
extra : rebase_source : ba752abd8c16276e438d3af0742a9d74897acad0
2013-05-31 11:12:44 +10:00
Ryan VanderMeulen
917e565db3 Backed out 13 changesets (bug 880917) for Android and B2G test bustage on a CLOSED TREE.
Backed out changeset 71c1ce2cb0a4 (bug 880917)
Backed out changeset cd240e19560f (bug 880917)
Backed out changeset 93509a0001b5 (bug 880917)
Backed out changeset fdbba20e4647 (bug 880917)
Backed out changeset d82060172367 (bug 880917)
Backed out changeset 709f0b699489 (bug 880917)
Backed out changeset 421bdbccfa7c (bug 880917)
Backed out changeset 962c656c7452 (bug 880917)
Backed out changeset 888a5690ccdf (bug 880917)
Backed out changeset 57228f5fcd87 (bug 880917)
Backed out changeset ce8c3e14c234 (bug 880917)
Backed out changeset 08fe7b777450 (bug 880917)
Backed out changeset 5192a9233d83 (bug 880917)
2013-06-13 15:19:50 -04:00
Bobby Holley
670e4b4d9d 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-13 10:09:25 -07:00
Mike Shal
8d6fa4020d Bug 880245 - Move EXTRA_JS_MODULES to moz.build (conversion part 1); r=joey
From 69c3338a3287ff8cc97533e06069fc4d4cb7c5f6 Mon Sep 17 00:00:00 2001
2013-06-10 12:08:47 -04:00
Boris Zbarsky
65c0969f7c Bug 880367 part 1. Change the "enabled" callback for WebIDL constructors to take a JSContext* and the object the constructor will be defined on. r=smaug,bholley 2013-06-13 01:12:26 -04:00
Timothy Nikkel
f9582bc381 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
Ed Morley
aa048e78a3 Merge mozilla-central and inbound 2013-06-12 08:41:06 +01:00
Phil Ringnalda
c127faa0f5 Back out 57bb160f49d5:4e6b16f0d753 (bug 875157) for breaking master password tests 2013-06-12 00:00:25 -07:00
Ms2ger
68ea30a57e Bug 875784 - Move MozTimeManager to WebIDL; r=smaug 2013-06-12 09:00:07 +02:00
Ms2ger
43317c5e50 Bug 877277 - Move the document.all getter into WebIDL; r=smaug 2013-06-12 08:55:00 +02:00
Ms2ger
6c047d4967 Bug 718923 - Support document.all in standards mode and remove the pref to turn it off; r=smaug 2013-06-12 08:48:38 +02:00
Ms2ger
15ce633d6a Bug 880317 - Don't use nsIDOMDocument in nsScreen; r=mounir 2013-06-12 08:48:15 +02:00
Mihai Sucan
f8f7fa75e5 Bug 861338 - [browserconsole] Cache Console.jsm API calls with ConsoleAPIStorage.jsm; r=jwalker 2013-06-07 20:13:48 +03:00
Mark Hammond
0656d95214 Bug 875157 (part 1) - add isParentWindowMainWidgetVisible to nsIDOMWindowUtils. r=bz 2013-05-31 11:12:44 +10:00
Joey Armstrong
bfded569cf bug 870370: move EXTRA_COMPONENTS to moz.build (file batch #2). r=mshal 2013-06-10 11:19:28 -04:00
Jon Coppeard
fa77e296a8 Bug 860573 - Part 1 - Store wrapper cache flags separately to the object pointer r=smaug 2013-06-08 09:53:21 +01:00
Trevor Saunders
f6274d24c5 bug 877886 - get rid of a number of static constructors in content/ and dom/ r=smaug 2013-05-30 18:34:53 -04:00
Kyle Huey
8eb6aa2bc8 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
Trevor Saunders
97c7a91ef5 bug 870678 - remove nsIDOMCameraManager r=bz 2013-05-14 06:59:11 -04:00
Trevor Saunders
ebc1cdb11d backout bug 877886 for bustage 2013-06-05 17:50:30 -04:00
Trevor Saunders
1ebc6cf845 bug 877886 - get rid of a number of static constructors in content/ and dom/ r=smaug 2013-05-30 18:34:53 -04:00
Arnaud Sourioux
feea85a7f1 Bug 877746 - Annotate ~230 methods with MOZ_OVERRIDE in /dom. r=Ms2ger 2013-06-05 12:15:48 -04:00
Jan Varga
ca076736b5 Bug 878703 - Cleanup usage of IO thread only objects. r=bent 2013-06-05 10:11:23 +02:00
Tim Taubert
9195d2a157 Bug 878801 - part 1 - introduce nsIDOMWindowUtils.getBoundsWithoutFlushing(); r=roc 2013-06-04 08:06:29 +02:00
Andrea Marchesini
c2a5090d51 Bug 858524 - Move BarProp objects to Paris bindings, r=ms2ger, r=smaug 2013-06-01 01:53:00 -07:00
Andrea Marchesini
8e5afa9763 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
Ms2ger
04c8cd41cd Bug 871287 - Part c: Move DeviceStorage to WebIDL; r=smaug 2013-06-01 08:56:00 +02:00
Ms2ger
adad04a973 Bug 876240 - Move OfflineResourceList to WebIDL; r=mounir 2013-06-01 08:53:44 +02:00
Ms2ger
ab3135b802 Bug 874084 - Remove dead code that used to support document.all.tags; r=bz 2013-06-01 08:53:12 +02:00
David Zbarsky
871e0977c2 Bug 788549 Part 8: Only query layers when OMTA is enabled r=roc 2013-05-31 11:06:56 -07:00
Benjamin Peterson
f4dc321a08 Bug 823978 - Rename JSOPTION_STRICT to JSOPTION_EXTRA_WARNINGS. r=Waldo
--HG--
extra : rebase_source : 34f95fc6017d3f3f4f091083debacbd466b51bf6
2013-06-11 12:49:11 -07:00
Ryan VanderMeulen
79cab24538 Backed out changeset 1df122edcf0d (bug 823978) for bustage (again).
CLOSED TREE (again)
2013-06-11 15:27:46 -04:00
Ryan VanderMeulen
079997c1b8 Merge m-c to inbound. 2013-06-11 15:02:04 -04:00
Benjamin Peterson
ad3fb45421 Bug 823978 - Rename JSOPTION_STRICT to JSOPTION_EXTRA_WARNINGS. r=Waldo
--HG--
extra : rebase_source : 1396c8ec5bd99ab35343cfff2b87d22955671243
2013-06-11 11:30:18 -07:00
Ryan VanderMeulen
911f19ec09 Backed out changeset 7e69e102a432 (bug 823978) for bustage.
CLOSED TREE
2013-06-11 14:28:17 -04:00
Benjamin Peterson
bf9614501d Bug 823978 - Rename JSOPTION_STRICT to JSOPTION_EXTRA_WARNINGS. r=Waldo
--HG--
extra : rebase_source : f5c0e9c743dadb0431eacef6b46b6e274264d3aa
2013-06-11 10:55:21 -07:00
Ryan VanderMeulen
604c2d3d5d Merge m-c to inbound. 2013-05-31 11:30:38 -04:00
Fabrice Desré
f50451910a Bug 877869 - Fix typo in indexedbHelper.jsm r=bent 2013-05-30 16:19:22 -07:00
Kyle Huey
fb465d209c Bug 876555: Avoid including xpcprivate.h in most generated dom binding code. r=bz 2013-05-30 11:15:31 +08:00
Bobby Holley
ccfbcf966b 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
Boris Zbarsky
7c5e61e873 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
David Zbarsky
67106717be Bug 788549 Part 5: Add a function to get opacity and transform property values from layers r=roc 2013-05-29 17:38:27 -07:00
Boris Zbarsky
14e7edc59d Bug 876805. Fix unsafe reference gc hazards in dom/ code. r=smaug 2013-05-29 16:16:04 -04:00
Ms2ger
c9bfa03ce9 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
David Zbarsky
41dbdc53f7 Bug 788549 Part 4: Add the ability to pause and sample animations on compositors at a specified time r=roc 2013-05-27 16:47:45 -07:00
David Zbarsky
3f06d8126b Backed out changeset 6c1cf4694a13 for not building on windows and android 2013-05-27 17:14:33 -07:00
David Zbarsky
9c87205101 Bug 788549 Part 4: Add the ability to pause and sample animations on compositors at a specified time r=roc 2013-05-27 16:47:45 -07:00
Andrew McCreight
d1266ee9b7 Bug 874583 - Use NS_IMPL_CYCLE_COLLECTION_INHERITED_n in more places. r=smaug 2013-05-21 16:23:53 -07:00
Mike Shal
6f32ddf61c Bug 864774 - Part 2: Move CPPSRCS to moz.build as CPP_SOURCES; r=joey CLOSED TREE
From 9e0ba7f425143f545eb6c4b26a9a96b5ade4d8e9 Mon Sep 17 00:00:00 2001
2013-04-23 17:54:15 -04:00
Phil Ringnalda
2fabeb0e6b Merge the last PGO-green cset on m-i to m-c 2013-05-27 09:44:40 -07:00
octoploid@yandex.com
a35456ccd9 Bug 875790 - Revert AutoPushJSContext change in nsJSContext::CompileScript due to crashes. r=bholley 2013-05-27 06:40:37 -07:00
Jon Coppeard
f53a29e132 Bug 874691 - Make CC participant tracing indirect r=mccr8 r=smaug r=bz 2013-05-27 12:50:49 +01:00
Phil Ringnalda
de087370d0 Merge the last PGO-green cset on m-i to m-c 2013-05-26 10:19:51 -07:00
Tim Taubert
528e894d58 merge m-c to fx-team 2013-05-26 15:22:27 +02:00
Masatoshi Kimura
62c291c561 Bug 876164 - Remove duplicate classinfo bits from MozCellBroadcastEvent. r=smaug 2013-05-26 06:05:34 +09:00
Mihai Sucan
69eceeab3c Bug 874061 - Figure out private browsing and the browser console; r=robcee f=ehsan 2013-05-25 12:25:36 +03:00
Anthony Jones
f4328c5b39 Bug 868047 - Use a PresShell ID to eliminate stale APZC events; r=roc,benwa 2013-05-24 09:43:36 +08:00
Masatoshi Kimura
e7bdd24f89 Bug 875155 - Convert TimeEvent to WebIDL. r=smaug 2013-05-25 07:55:19 +09:00
Olli Pettay
e664cd9a1e Bug 875545 - Make Telephony.h/cpp to use EventListenerAdded/Removed, r=bz
--HG--
rename : content/media/webaudio/test/test_audioParamSetCurveAtTimeZeroDuration.html => content/media/webaudio/test/test_audioParamSetCurveAtTime.html
rename : mobile/android/base/Prompt.java => mobile/android/base/PromptService.java
extra : rebase_source : fcd1f9bbecc8f9025ea0f27274d0f31d745bcf39
2013-05-24 20:22:20 +03:00
Joe Drew
c97a59d9c8 Bug 873683 - Make runBeforeNextEvent and runInStableState available off nsIDOMWindowUtils. r=bent
--HG--
extra : rebase_source : 4bafd49139375ef7ed7ef5a9a03dcf8c69af63aa
2013-05-23 09:35:21 +08:00
Bobby Holley
11f2396ec2 Bug 868110 - Introduce a more private API for the consumers that really do need the default compartment object. r=luke
The primary consumer of this is the whole inner/outer DOM window setup, which
uses the default global to track the current inner. But there are few other
random ones as well.

We use this as an opportunity to convert a bunch of consumers from the two-step
GetNativeContext() -> JS_GetGlobalObject() into just |GetNativeGlobal()|. This
will make things much easier to convert when we start tracking the current inner
explicitly.
2013-05-22 15:42:44 -06:00
Bobby Holley
1b2f22fe61 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
ba05c93769 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
2e08885c40 Bug 868130 - Make sure mContext is stack-top in the various places where nsJSEnvironment uses it. r=gabor
I also replaced some uses of mJSContext with AutoJSContext upon auditing that
they're only ever called by other nsJSContext functions that just pushed. This
makes the code much easier to audit because we know that we're just inheriting
the caller's cx (which is stack-top) rather than injecting a potentially-
unrelated cx.
2013-05-22 10:05:24 -06:00
Bobby Holley
a08274d59c Bug 868130 - Use an AutoSafeJSContext in hueyfix. r=gabor 2013-05-22 10:05:23 -06:00
Bobby Holley
783eb84d1c Bug 868130 - Make sure mContext is stack-top in nsJSContext::CompileScript. r=gabor 2013-05-22 10:05:23 -06:00
Jan de Mooij
2c2722d303 Bug 857845 part 3 - Remove JM JSAPI flags, memory reporters and browser prefs. r=djvj
--HG--
extra : rebase_source : 8b2ed85801fcd8c8fd0fc16a89b1a275add1a310
2013-05-22 14:50:45 +02:00
Aryeh Gregor
b14c2cbab2 Bug 867101 - Fix more implicit conversion to already_AddRefed; r=Ms2ger 2013-04-28 14:52:10 +03:00
Masayuki Nakano
94c8042239 Bug 396542 nsFocusManager should restore caret browsing mode when an editor loses focus r=ehsan 2013-05-22 12:28:43 +09:00
Boris Zbarsky
b0c5538087 Bug 874612. Make some nsIXPConnectWrappedNative methods take a Handle<jsid> instead of a jsid. r=bholley 2013-05-21 22:59:17 -04:00
Bobby Holley
0bda6fb49c Bug 841312 - Remove the termination function API. r=bz
\o/
2013-05-21 11:45:56 -06:00
Bobby Holley
83b50e7905 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
42a70cf2d5 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
Ryan VanderMeulen
0231e934ad Merge m-c to inbound. 2013-05-21 08:17:04 -04:00
Edgar Chen
93c08b0598 Bug 859220 - Part 2: Separate mozIccManager from mozMobileConnection (DOM). r=smaug 2013-04-08 18:34:10 +08:00
Boris Zbarsky
810766595d Bug 873735 part 2. Change nsIXPConnectJSObjectHolder::GetJSObject to return a JSObject*. r=bholley 2013-05-20 08:44:18 -04:00
Ryan VanderMeulen
2825d31a5a Merge m-c to inbound. 2013-05-20 08:02:31 -04:00
Ms2ger
2750a39e8f Bug 868778 - Part c: Move DataChannel to WebIDL; r=mounir+jesup
--HG--
rename : content/base/public/nsIDOMDataChannel.idl => dom/webidl/DataChannel.webidl
2013-05-20 09:19:45 +02:00
Ms2ger
9d5803279f Merge backout. 2013-05-19 20:26:58 +02:00
Ms2ger
e0c18984a5 Backout bug 549861 (changesets 27fb48df15ce:7ecd4e3863b4) for insufficient review. 2013-05-19 20:23:19 +02:00
Masatoshi Kimura
8897c8b3e0 Bug 871786 - Remove KeyboardEvent classinfo. r=smaug 2013-05-19 10:28:48 +09:00
Andrea Marchesini
0e20d68ea0 Bug 870856 - Convert DOMError to WebIDL. r=Ms2ger, r=bz 2013-05-18 13:52:06 -04:00
Boris Zbarsky
620839f027 Bug 868312 finale: finish rooting dom/ code. r=smaug 2013-05-17 21:48:25 -04:00
John Daggett
aa507d8c18 Bug 549861 - reland font-variant subproperties with DOM-peer review. r=khuey 2013-05-20 11:59:20 +09:00
John Daggett
6758cb5e04 Bug 549861. Implement support for @font-feature-values rule. r=dbaron 2013-05-13 18:45:37 +09:00
Ed Morley
2710e5d6a9 Backed out changeset 496846474ed3 (bug 864774) 2013-05-13 10:05:49 +01:00
Mike Shal
d2b29f4e87 Bug 864774 - Part 2: Move CPPSRCS to moz.build as CPP_SOURCES; r=joey
From 140b9201e3b5d2d8efe7af286d279c2411dbc197 Mon Sep 17 00:00:00 2001
2013-04-23 17:54:15 -04:00
David Zbarsky
66e862daca Bug 864206 - Use dom::Touch instead of nsIDOMTouch where possible r=Ms2ger 2013-05-17 13:17:53 -07:00
Bobby Holley
88c65fa834 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
ff1416d597 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
68187fbfaa 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
e212c13aff 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
36a0e8c302 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
6e9eda51e8 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
fcd577710a 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
Andrew McCreight
e7c16849ba Bug 865320 - Move the logic for deciding when to doing a merging CC into the cycle collector. r=smaug 2013-04-29 16:41:41 -07:00
Jan-Ivar Bruaroey
7921c9c1e4 Bug 823512: Rewrite PeerConnection in JS-implemented WebIDL r=bz,jesup 2013-05-07 20:55:21 -04:00
Ed Morley
445750b6e6 Backed out changeset 70c3a3a74362 (bug 860941) for mochitest-3 timeouts on a CLOSED TREE 2013-05-17 09:09:21 +01:00
Ed Morley
16fd94e608 Backed out changeset 98594535c1e9 (bug 860941) 2013-05-17 09:08:49 +01:00
Ed Morley
3bc91f40b5 Backed out changeset 474792d1fb89 (bug 860941) 2013-05-17 09:08:46 +01:00
Ed Morley
b61d46f51a Backed out changeset 0ad1a92ca568 (bug 860941) 2013-05-17 09:08:44 +01:00
Ed Morley
a220dc1713 Backed out changeset 90b318fb8375 (bug 860941) 2013-05-17 09:08:41 +01:00
Ed Morley
7861834d38 Backed out changeset 95006bb32743 (bug 860941) 2013-05-17 09:08:38 +01:00
Ed Morley
003d17a5f8 Backed out changeset de30d8faf09a (bug 860941) 2013-05-17 09:08:36 +01:00
Bobby Holley
6e3c37021b 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
3072f4271d 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
b062e43926 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
01f304382c 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
4ccd299589 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
a3e97c9f8e 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
88d503c4d5 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
Tim Abraldes
b5a70d488d bug 839342. Make metro widget listen for EdgeGestureStarted and EdgeGestureCanceled, in addition to EdgeGestureCompleted. Show the edge UI on EdgeGestureStarted and EdgeGestureCompleted, hide it on EdgeGestureCanceled. This time without bustage! r=bbondy 2013-05-16 21:22:21 -07:00
Phil Ringnalda
c19f6561ae Back out 9675dce26f53 (bug 839342) for browser-chrome bustage 2013-05-16 20:09:24 -07:00
Tim Abraldes
9948921421 bug 839342. Make metro widget listen for EdgeGestureStarted and EdgeGestureCanceled, in addition to EdgeGestureCompleted. Show the edge UI on EdgeGestureStarted and EdgeGestureCompleted, hide it on EdgeGestureCanceled. r=bbondy 2013-05-16 17:47:46 -07:00
Michael Harrison
6a023a465b Bug 260272 - Remove obsolete code from nsGlobalChromeWindow::SetCursor. r=dbaron,mats 2013-05-12 23:09:29 +02:00
David Zbarsky
70b156af55 Bug 868312 - Rooting fixes for dom r=bz 2013-05-12 01:17:42 -04:00
David Zbarsky
3a5f2fa41d Bug 868312 - Some more rooting fixes for dom r=bz 2013-05-10 22:39:45 -04:00
Boris Zbarsky
580af7e244 Bug 870667. Reinstate a way to turn off performance.timing bits using a pref. r=smaug
This is used by the Tor project, for example.
2013-05-10 18:57:58 -04:00
David Zbarsky
e521e7ffff Bug 868312 - Rooting fixes for dom r=bz 2013-05-10 14:22:21 -04:00
Mitchell Mebane
4b27ee7ac5 Bug 814379 - Don't use cached userAgent for fallback when no site-specific UA exists. r=dao 2013-05-10 08:40:44 -04:00
Masatoshi Kimura
e29b64ac21 Bug 874201 - Remove duplicate classinfo bits from MozWifiStatusChangeEvent and MozWifiConnectionInfoEvent. r=smaug 2013-05-21 06:11:32 +09:00
Masatoshi Kimura
febdba954d Bug 873753 - Remove classinfo bits from WebIDL-bound events. r=smaug 2013-05-21 04:34:12 +09:00
Boris Zbarsky
88960e26d8 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
882e4068d0 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
Andrea Marchesini
5f4f41fbe6 Bug 853386 - Remove nsIDOMSVGRect and classinfo for SVGRect. r=Ms2ger 2013-05-09 13:42:12 -04:00
Andrea Marchesini
031eb2e92c Bug 866796 - Convert SVGAnimatedRect to WebIDL. r=Ms2ger 2013-05-09 13:42:12 -04:00
Ryan VanderMeulen
3a1c7fb6c7 Merge m-c to inbound. 2013-05-09 13:21:14 -04:00
Ryan VanderMeulen
f9e34f1715 Merge the last PGO-green inbound changeset to m-c. 2013-05-09 13:19:31 -04:00
Boris Zbarsky
2ca58dfdf6 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
Alive Kuo
2668556563 Bug 868914 - Prevent background pages from locking orientation. r=mounir 2013-05-09 07:33:55 -04:00
Terrence Cole
fd72fc252e Bug 777548 - Make non-cc-participant tracing indirect; r=smaug,billm,jst 2013-03-28 13:37:22 -07:00
Bobby Holley
5ddd3a6924 Bug 868528 - Don't expose _content over Xrays. r=mccr8 2013-05-07 20:26:19 -07:00
Ryan VanderMeulen
f6068dd244 Merge inbound to m-c. 2013-05-07 22:10:19 -04:00
Bobby Holley
af4114de6c Bug 868635 - Make merging CC heuristics go through scx. r=mccr8 2013-05-07 14:18:03 -07:00
Bobby Holley
2543fb6d40 Bug 868634 - Remove compartment entry in nsStructuredCloneContainer. r=bz
I can't see what this is supposed to be doing. The one caller defaults to aCx,
and if not, gets and pushes a context associated with the document, restoring
it to the default compartment.

So this only changes the behavior when we use the aCx that comes in from above,
in which case it's totally not clear to me why we would want to get the default
global here.
2013-05-07 14:18:03 -07:00
Luke Wagner
39b73739d0 Bug 868184 - OdinMonkey: enable by default on beta/release (r=vlad)
--HG--
extra : rebase_source : c97bf37723eded74f95aae21e2baa692cf059c2e
2013-05-07 13:34:17 -07:00
Colby Russell
db6bc48aa2 Bug 861495 - Part 1: Add nsIWindowMediator.getOuterWindowWithId and warn on nsIDOMWindowUtils.getOuterWindowWithId use. r=bz 2013-05-07 12:34:20 -04:00
Sankha Narayan Guria
6349c5c599 Bug 867414 - Rename SafeAutoJSContext to AutoSafeJSContext. r=bholley 2013-05-06 09:04:17 -04:00
Boris Zbarsky
7a83aed405 Bug 868765. Make the jsid constructor for nsDependentJSString take a Handle. r=ms2ger 2013-05-06 08:30:56 -04:00
Ryan VanderMeulen
20e6b017de Merge birch to m-c. 2013-05-06 08:28:05 -04:00
Tim Taubert
e8fb862808 merge m-c to fx-team
--HG--
rename : browser/base/content/test/social/social_share_image.png => browser/base/content/test/social/social_mark_image.png
2013-05-06 13:30:45 +02:00
Phil Ringnalda
1e4ab6c25d Merge m-c to fx-team 2013-05-05 12:28:41 -07:00
Phil Ringnalda
d3e92cd2f3 Merge m-c to m-i 2013-05-05 12:17:07 -07:00
Ms2ger
f2e25db30c Bug 868727 - Pass an nsAString to nsGlobalWindow::GetChildWindow; r=bz 2013-05-05 09:03:19 +02:00
Ms2ger
a9a8f91052 Bug 866600 - Avoid using nsIDOMDocument::GetHidden; r=mounir 2013-05-05 09:03:15 +02:00
Ms2ger
088cca5a9c Bug 868411 - Handlify js::GetObjectProto; r=bz 2013-05-05 09:03:14 +02:00
David Zbarsky
c12529b9d3 [Bug 868701] Remove classinfo for Attr r=Ms2ger 2013-05-04 03:55:53 -04:00
David Zbarsky
ef70ce04b7 Bug 868312: Various dom rooting fixes r=bz 2013-05-04 03:52:57 -04:00
David Zbarsky
40805457eb Bug 868312: Root nsDOMClassInfo.cpp, part 2 r=bz 2013-05-04 03:51:53 -04:00
Phil Ringnalda
2512a51c3d Merge m-c to fx-team 2013-05-03 21:37:03 -07:00
David Zbarsky
ea0da0d1b4 Bug 868312: Root part of nsDOMClassInfo.cpp r=bz 2013-05-03 14:53:32 -04:00
Phil Ringnalda
2807906ec3 Merge m-c to birch 2013-05-05 17:24:47 -07:00
Phil Ringnalda
dea3b15393 Merge m-c to birch 2013-05-05 12:25:12 -07:00
Fabrice Desré
f602313421 Bug 866272 - expose privileged access to mcc+mnc pair for last home network and roaming network r=gal 2013-05-02 18:37:51 -07:00
Boris Zbarsky
2ead1e05ab Bug 865969 part 7. Fix rooting hazards in DOMJSProxyHandler.cpp. r=ms2ger 2013-05-03 19:29:09 -04:00
Boris Zbarsky
cf0d9ed876 Bug 865969 part 5. Root the id argument of WebIDL DefineInterface methods. r=smaug 2013-05-03 19:29:08 -04:00
Mihai Sucan
a33f6aed4a Bug 855058 - Fix for intermittent browser/dom/tests/browser/browser_ConsoleAPITests.js | timer duration is positive; r=rcampbell 2013-04-30 21:35:07 +03:00
Jim Blandy
e9b58eb4dc Bug 862531: Replace BaseProxyHandler::obj_toString with className. r=jorendorff 2013-04-30 14:44:50 -07:00
Andrew McCreight
a6d222f8e6 Bug 851639 - Allow JS implemented WebIDL to be registered on window.navigator. r=bz 2013-04-30 13:30:25 -07:00
Terrence Cole
60ff037fa7 Bug 860050 - Remove JSMutableHandleObject typedef; r=bz,jonco 2013-04-16 16:20:44 -07:00
Andrea Marchesini
cbfcaa4278 Bug 866679 - Convert DOMSVGZoomEvent to WebIDL. r=Ms2ger 2013-04-30 13:43:25 -04:00
Andrew McCreight
4f9af81b67 Bug 798165 - Make nsTimeout more of a real cycle collected class. r=smaug 2013-04-30 10:41:23 -07:00
Andrew McCreight
0bafa2c0cd Bug 866151 - Clean up usage of nsCycleCollector.h and nsCycleCollectorUtils.h. r=smaug,bsmedberg
--HG--
rename : xpcom/base/nsCycleCollector.h => xpcom/glue/nsCycleCollectionJSRuntime.h
2013-04-30 10:41:22 -07:00
Ryan VanderMeulen
5b6c12411d Merge birch to inbound. 2013-04-30 12:26:29 -04:00
Kevin Grandon
076af09c6f Bug 861496 - Replace #ifdef MOZ_SYS_MSG by a preference. r=fabrice 2013-04-30 09:01:46 -04:00
Ryan VanderMeulen
dc44c7f499 Bug 861605 - Rev uuids. r=Ms2ger 2013-04-29 09:33:06 -04:00
Andrew McCreight
cce227c87c Bug 861530 - unwrap for _content. r=bholley 2013-04-29 17:50:25 -07:00
Andreas Gal
8d87fa0466 Bug 862970 - Don't lock images on the active page on B2G. r=jlebar,joe 2013-04-25 18:36:53 -07:00
David Zbarsky
57b47b7ab9 Bug 856472: Convert CanvasGradient to WebIDL r=bz 2013-04-26 10:55:54 -04:00
David Zbarsky
3aaed3d194 Bug 856472: Convert CanvasPattern to WebIDL r=bz 2013-04-19 04:49:22 -04:00
Ted Mielczarek
04936b3058 bug 865183 - Allow chrome callers to call navigator.getUserMediaDevices. r=bz,smaug 2013-04-25 15:16:09 -04:00
Aryeh Gregor
e78504c9a9 Bug 859817 - Remove implicit conversions from raw pointer to already_AddRefed; r=Ms2ger 2013-04-22 14:15:59 +03:00
Aryeh Gregor
93b152012b Bug 859817 - Introduce already_AddRefed.downcast(); r=ehsan 2013-04-21 14:56:06 +03:00
Ms2ger
4e0f55189d Merge backout. 2013-04-26 13:24:11 +02:00
Ms2ger
659e9e1600 Backout changesets 8d69a81abff9:6c2e3ea6afa6 for M2 timeouts and crashtest, reftest leaks. 2013-04-26 13:23:17 +02:00
Ms2ger
229df37509 Merge m-c to m-i. 2013-04-26 12:32:27 +02:00
Kevin Grandon
3ae0ef366d Bug 861496 - Replace #ifdef MOZ_SYS_MSG by a preference. r=fabrice 2013-04-26 12:17:25 +02:00
Ms2ger
36143fb9dd Bug 864166 - Part d: Outparamdel nsGlobalWindow::GetWebBrowserChrome; r=mounir 2013-04-26 08:51:04 +02:00
Ms2ger
68ca8fd0a8 Bug 864166 - Part c: Outparamdel nsGlobalWindow::GetTreeOwner; r=mounir 2013-04-26 08:51:01 +02:00
Ms2ger
4555343ab0 Bug 864166 - Part b: Don't return nsresult from infallible helper functions in nsGlobalWindow; r=mounir 2013-04-26 08:50:54 +02:00
Ms2ger
05419b0b82 Bug 864166 - Part a: Handle window.alert(null) in the binding layer; r=mounir 2013-04-26 08:50:02 +02:00
Ms2ger
23b44f251c Bug 864165 - Outparamdel nsIWidget::GetSizeMode; r=tn 2013-04-26 08:49:47 +02:00
Ms2ger
2b71cc307b Bug 862446 - Use CallArgs in XPC_WN_Helper_{Call,Construct}; r=bholley 2013-04-26 08:48:40 +02:00
Ms2ger
cc2268408a Bug 852135 - Part d: Move nsDOMAttributeMap to WebIDL bindings, remove CI and QS; r=bz 2013-04-26 08:48:27 +02:00
Ryan VanderMeulen
9ffb47392d Merge m-c to inbound. 2013-04-25 15:08:06 -04:00
Ryan VanderMeulen
821d31cc9d Merge m-c to fx-team. 2013-04-25 08:41:24 -04:00
Caio Lima
9a3866556c Bug 859818 - ConsoleAPIStorage.jsm tries to delete var-declared _consoleStorage; r=msucan 2013-04-23 12:19:00 +03:00
Boris Zbarsky
f75142b01d 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
a7015d2b77 Bug 857555. Make window.content return an existing named frame with that name if there is one. r=bholley 2013-04-25 22:46:19 -04:00
Boris Zbarsky
b99f824099 Bug 704063. Add an unprefixed version of requestAnimationFrame. r=roc, sr=smaug 2013-04-25 11:13:21 -04:00
Boris Zbarsky
e3ccbbb148 Bug 753453. Add a way for us to pass a high-res timestamp to requestAnimationFrame callbacks. r=roc 2013-04-25 11:13:21 -04:00
Boris Zbarsky
5e7cf4462d Bug 862629 part 1. Stop playing compartment games with WebIDL callbacks and just use the given object as-is. r=peterv 2013-04-24 14:59:15 -04:00
David Zbarsky
77b8a905ca Bug 861729 - Remove nsPIDOMWindow::mDocument r=Ms2ger 2013-04-24 00:22:37 -04:00
David Zbarsky
e7c500d80d Bug 861729 - Remove nsPIDOMWindow::GetExtantDocument r=Ms2ger 2013-04-24 00:22:37 -04:00
David Zbarsky
40f02c7ae1 [Bug 864209] Remove Geolocation classinfo r=Ms2ger 2013-04-24 22:26:48 -04:00
Bobby Holley
f4fb2c0693 Bug 865260 - Use IsXrayWrapper rather than ObjectIsNativeWrapper in nsWindowSH. r=bz
There are some other uses of ObjectIsNativeWrapper in other scriptable helpers
that are tempting to remove as well, but it's probably just better to wait for
that stuff to just go away. Given that the issue we're running into here is
Window-specific, there's not a pressing need to fix the other stuff.
2013-04-24 15:21:26 -07:00
David Zbarsky
3c839fc3b2 Bug 868312: Root dom/workers r=bz 2013-05-09 03:27:40 -04:00
Peter Van der Beken
ed98b406fc Bug 868929 - Convert ImageDocument to WebIDL, switch to WebIDL. r=bz.
--HG--
rename : content/html/document/src/ImageDocument.cpp => content/html/document/src/ImageDocument.h
extra : rebase_source : 18af4f816c456e9a642f12b504651b19765141dc
2013-05-06 15:42:00 +02:00
Nathan Froyd
9fd3f3a56a Bug 869073 - make WebIDL enums enum classes instead of plain enums; r=bz 2013-05-06 15:28:13 -04:00
Bobby Holley
be7264ecab Bug 868122 - Remove nsIScriptContextPrincipal. r=gabor
\o/
2013-05-06 16:53:10 -07:00
Tom Schuster
b497643dd7 Bug 865410 - Use CallArgs for nsIJSNativeInitializer::Initialize. r=bz 2013-05-04 19:25:15 +02:00
Tom Schuster
cbcd967826 Bug 865410 - Use CallArgs for XPConnect Call and Construct hooks. r=bholley. 2013-05-04 19:25:15 +02:00
Bobby Holley
a25082424e Bug 834699 - Stop checking dom.xbl_scopes. r=bz 2013-05-02 16:02:03 -07:00
David Zbarsky
38f5841d1a Bug 866450 Part 7: Root some additional JS::Values found during review r=bz 2013-05-02 05:12:47 -04:00
David Zbarsky
6557f4fec7 Bug 866450 Part 3: Fix rooting hazards under content/ and dom/ r=bz 2013-05-02 05:12:46 -04:00
David Zbarsky
a79bf02c5d Bug 866450 Part 2: Fix rooting hazards under content/ and dom/ r=bz 2013-05-02 05:12:46 -04:00
Ed Morley
581e7b778e Backed out changeset b514d768d793 (bug 866450) 2013-05-02 11:57:14 +01:00
Ed Morley
28ddd7f05a Backed out changeset 6e6a175fc36a (bug 866450) 2013-05-02 11:57:10 +01:00
Ed Morley
37d84a3fe7 Backed out changeset e0b51717bb64 (bug 866450) 2013-05-02 11:56:57 +01:00
David Zbarsky
0e20dc3030 Bug 866450 Part 7: Root some additional JS::Values found during review r=bz 2013-05-02 05:12:47 -04:00
David Zbarsky
b170dafbb3 Bug 866450 Part 3: Fix rooting hazards under content/ and dom/ r=bz 2013-05-02 05:12:46 -04:00
David Zbarsky
0566d3158e Bug 866450 Part 2: Fix rooting hazards under content/ and dom/ r=bz 2013-05-02 05:12:46 -04:00
Boris Zbarsky
8cc9072bea Bug 861022 part 2. Root the global object in WebIDL prototype and interface object setup. r=peterv,terrence 2013-05-01 23:44:12 -04:00
Boris Zbarsky
a2a1edabb4 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
Reuben Morais
c8c99446eb Bug 863704 - Make global-constructor and navigator-property categories respect a preference. r=jst 2013-05-01 18:44:44 -07:00
Xin Zhang
5e389b35b8 Bug 857385 - Make various JSFunctionSpec arrays const. r=waldo
--HG--
extra : rebase_source : 24141998ffad3b0e6bad98b6fc0ce3754e448d5b
2013-04-22 14:15:49 -07:00
David Zbarsky
478f402ed9 Backout 3e7970330a3e for being wrong 2013-04-22 02:01:36 -04:00
David Zbarsky
2bc2cd98b5 [Bug 857884] Use dom::EventTarget more instead of nsIDOMEventTarget Part 7 r=Ms2ger 2013-04-21 21:25:28 -04:00
Jonathan Watt
c63ee27f69 Backout bug 862693 (Stop the :-moz-focusring pseudo-class from matching if an element is themed and the theme will display a visual indication of focus for the element. r=roc) 2013-04-21 11:30:11 +01:00
Ms2ger
7c1ae1ff7c Merge m-c to m-i. 2013-04-21 09:54:41 +02:00
Ms2ger
848f17a98e Bug 861880 - Move TreeColumns to WebIDL; r=bz 2013-04-21 08:42:26 +02:00
David Zbarsky
a32d3dd112 Bug 856962 - Move Touch to WebIDL bindings; r=mounir 2013-04-21 08:42:19 +02:00
Ms2ger
c3fa7a519c Bug 861507 - Move SVGStringList to WebIDL and remove nsIDOMSVGStringList; r=heycam,smaug 2013-04-21 08:42:00 +02:00
Masatoshi Kimura
3a3e6ebe70 Bug 859020 - Remove the MSVC exemption for FAIL_ON_WARNINGS in dom. r=bz 2013-04-21 05:36:43 +09:00
David Zbarsky
417758e921 Bug 856472: Convert CanvasPattern to WebIDL r=bz 2013-04-19 04:49:22 -04:00
David Zbarsky
23316e885d Bug 856472: Convert TextMetrics to WebIDL r=bz
* * *
Bug 857439 Part 4: Fix MediaStreamList wrapping r=bz
2013-04-19 04:49:22 -04:00
Bobby Holley
9848a77e00 Bug 860438 - Simplify JSContext handling {Cancel,Suspend,Resume}WorkersForWindow. r=gabor
The only functional difference here is the removal of a bug in which we were
constructing a dom::workers::AutoSafeJSContext around aCx, but then continuing
to pass aCx to the callee. If aCx were to be null, we'd end up with a mismatch
between the stack and the active cx. But it looks likes stuff depends on cx
being non-null anyway, so that probably never happened.
2013-04-18 11:36:04 -04:00
Bobby Holley
288399f5c0 Bug 860438 - Straightforward cases. r=gabor 2013-04-18 11:36:03 -04:00
Jonathan Watt
42f1e12bb7 Bug 862693 - Stop the :-moz-focusring pseudo-class from matching if an element is themed and the theme will display a visual indication of focus for the element. r=roc 2013-04-17 09:22:55 +01:00
Gabor Krizsanits
9c83a59bcd Bug 820170 - Wrapping nodes into documents compartment. r=bholley 2013-04-17 10:11:53 +02:00
Kyle Machulis
45a9125134 Bug 855062 - Add initialization function for DOMRequest FireSuccessAsync; r=mrbkap 2013-04-16 14:54:00 -07:00
Boris Zbarsky
a295fe137f 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
Mike Shal
24b4056720 Bug 846634 - Part 2: Move EXPORTS to moz.build; r=joey 2013-04-16 15:24:43 -04:00
Marco Bonardo
47b3a19e95 Bug 861302 - Allow indedexDB to be used from about:home
r=bz
2013-04-20 13:33:34 +02:00
Boris Zbarsky
ab783c1e1a Test for bug 862702. r=peterv 2013-04-19 23:04:23 -04:00
Boris Zbarsky
a04a090195 Bug 862917. Remove the non-standard window.defaultStatus. r=smaug,gavin 2013-04-19 23:03:02 -04:00
Boris Zbarsky
14089d7cd3 Bug 862540. Make window.status actually be settable (but have no effect unless the pref that no one ever sets is set). r=smaug 2013-04-19 23:03:01 -04:00
David Zbarsky
5826da3d17 Backout 2201d650ac90 for not building on Windows on a CLOSED TREE 2013-04-19 18:57:56 -04:00
David Zbarsky
9190c0be59 Backout f710f8fb2ab0 for not building on windows 2013-04-19 18:57:11 -04:00
David Zbarsky
a2ca7e6c91 Bug 861729 - Remove nsPIDOMWindow::mDocument r=Ms2ger 2013-04-19 18:18:33 -04:00
David Zbarsky
1cc79b4d68 Bug 861729 - Remove nsPIDOMWindow::GetExtantDocument r=Ms2ger 2013-04-19 18:18:33 -04:00
David Zbarsky
a0911f7978 [Bug 857884] Use dom::EventTarget more instead of nsIDOMEventTarget Part 6 r=Ms2ger 2013-04-19 18:18:33 -04:00
David Zbarsky
335c6fc326 Bug 857884 - Use dom::EventTarget more in content/ and dom/ Part 4 r=Ms2ger 2013-04-19 18:18:32 -04:00
Bobby Holley
402c35b1ff Bug 865729 - Remove nsIJSContextStack from dom/foo. r=gabor 2013-04-29 11:16:18 -07:00
Benjamin Smedberg
261998a5da Bug 418615 - Neuter the code which tries to reframe existing plugin instances when navigator.plugins.refresh(true) is called. Instead, only scan for new plugins, unload unused plugins. The DOM code will continue to refresh the current page which calls navigator.plugins.refresh(true). r=jschoenick sr=bz 2013-04-23 16:02:12 -04:00
Ryan VanderMeulen
3b2fb8dd48 Merge inbound to m-c. 2013-05-16 20:29:40 -04:00
Ryan VanderMeulen
3e961f82d0 Merge m-c to birch. 2013-05-16 16:18:21 -04:00
Dave Hylands
b0983b5c8a Bug 872800 - Fix volume availability notifications for composite storage areas. r=mchen 2013-05-16 11:11:58 -07:00
David Zbarsky
a5f718b924 Bug 871189 - Remove Document classinfo r=bz 2013-05-16 11:06:21 -07:00
Scott Johnson
00a6ebe279 Bug 862763, Followup 1: Make MaybeReflowForInflationScreenWidthChange trigger a reflow when font inflation prefs change in either direction. [r=dbaron] 2013-05-16 10:06:04 -05:00
Scott Johnson
c45503c1dd Bug 862763: Cache whether font size inflation is enabled in the pres shell for efficiency. [r=dbaron] 2013-05-16 10:06:03 -05:00
Ted Mielczarek
47d7af59de bug 871712 - make MSVC PGO opt-in per-directory, and opt-in in the directories that matter. r=glandium 2013-05-16 09:33:26 -04:00
Boris Zbarsky
1deabd3ea1 Bug 871177. Fix rooting hazard in IsNotDateOrRegexp. r=smaug 2013-05-15 21:46:44 -04:00
Nathan Froyd
1e8550dc51 Bug 872558 - fix uninitialized variable warning in nsDOMWindowUtils::SelectAtPoint; r=bz 2013-05-15 11:08:50 -04:00
David Zbarsky
57233197b3 Bug 868312 - Rooting fixes for dom r=bz 2013-05-14 16:25:32 -07:00
Ryan VanderMeulen
88ba09194d Merge m-c to inbound. 2013-05-14 10:51:43 -04:00
Ryan VanderMeulen
5d06283e78 Merge m-c to birch. 2013-05-14 08:38:59 -04:00
Reuben Morais
699deca5bc Bug 862353 - Remove NavigatorPropertyHelper. r=bent 2013-05-13 18:32:26 -07:00
Ehsan Akhgari
b757634fd8 Bug 871315 - Fix some rooting hazards in content/; r=till,bzbarsky 2013-05-13 13:43:53 -04:00
Ryan VanderMeulen
5187701658 Merge m-c to inbound. 2013-05-13 12:02:04 -04:00
Masatoshi Kimura
9369a25ddf Bug 673919 - Remove captureEvents, releaseEvents, and routeEvent. r=smaug 2013-05-14 21:18:39 +09:00
David Zbarsky
cbead1c2c7 Backed out changeset 3b73e9c7a5d0 for orange 2013-05-14 01:00:11 -07:00
David Zbarsky
7519411b1e Bug 868312 - Rooting fixes for dom r=bz 2013-05-14 00:15:53 -07:00
Mounir Lamouri
171a9e7ce6 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
7cb39c2935 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
Dave Hylands
8f8841a1c4 Bug 858416 - Create a composite device storage interface. r=dougt
* * *
Bug 858416 - Fix try test failures
2013-05-11 02:10:18 -07:00
Ehsan Akhgari
fc17efaf67 Bug 871315 - Fix some rooting hazards in content/; r=till,bzbarsky 2013-05-13 13:43:53 -04:00
Ms2ger
1248f673c4 Backout changeset baf184596a7b for build errors on a CLOSED TREE. 2013-04-16 19:07:38 +02:00
Gabor Krizsanits
68aa3f8764 Bug 820170 - Wrapping nodes into documents compartment. r=bholley 2013-04-16 11:31:26 +02:00
Nicholas Nethercote
500e72cfdf Bug 859657 (part 2) - Remove nsIMemoryMultiReporter.explicitNonHeap because it's more trouble than it's worth; also remove the "explicit" single reporter. r=jlebar.
--HG--
extra : rebase_source : a146536a3dd0043082bcb1c26d980c4c6d4c0730
2013-04-11 20:52:32 -07:00
Jeff Walden
6539207aee Bug 858677 - Fix up code not built by SpiderMonkey to use the newly-changed deletion signatures. r=bholley, r=billm 2013-04-05 21:22:55 -07:00
Honza Bambas
e7a737bf35 Bug 600307 - localStorage and sessionStorage implementation overhaul, r=mak77+smaug, sr=smaug 2013-04-15 14:38:48 +02:00
Jose Cortes
47c6e6e146 Bug 842186 - Replace use of jsval with JS::Value in dom/base. r=jwalden
From 1a684ed61615d32965201e55335478d5f403ac4a Mon Sep 17 00:00:00 2001
 cpp files in the dom/base/ directory. r=jwalden
---
 dom/base/Crypto.cpp                     |  3 +-
 dom/base/DOMRequest.cpp                 | 12 +++---
 dom/base/DOMRequest.h                   |  4 +-
 dom/base/Navigator.cpp                  | 10 ++---
 dom/base/nsDOMJSUtils.h                 |  6 +--
 dom/base/nsDOMWindowUtils.cpp           | 20 ++++-----
 dom/base/nsGlobalWindow.cpp             | 24 +++++------
 dom/base/nsIJSNativeInitializer.h       |  4 +-
 dom/base/nsJSEnvironment.cpp            | 73 +++++++++++++++++----------------
 dom/base/nsJSEnvironment.h              |  8 ++--
 dom/base/nsJSTimeoutHandler.cpp         |  4 +-
 dom/base/nsJSUtils.h                    |  2 +-
 dom/base/nsStructuredCloneContainer.cpp | 10 ++---
 13 files changed, 91 insertions(+), 89 deletions(-)

--HG--
extra : rebase_source : af1420550a745aba9fd6c20297ac3cd0075f5ead
2013-04-11 18:52:10 -04:00
Ryan VanderMeulen
1637d616a5 Merge m-c to inbound. 2013-04-13 08:04:05 -04:00
Ms2ger
90d72aaffd Bug 861098 - Remove more classinfo; r=bz 2013-04-13 09:08:49 +02:00
Ms2ger
be88bc5bfc Bug 858212 - Move FileReader to Paris bindings; r=bz 2013-04-13 09:06:31 +02:00
Ms2ger
ebda306fd2 Bug 826740 - Part f: Move HTMLCanvasElement to Paris bindings; r=khuey 2013-04-13 09:05:51 +02:00
Ms2ger
b1a36bd6e2 Bug 841488 - Part d: Move HTMLSelectElement to WebIDL bindings, remove CI and QS; r=khuey 2013-04-13 09:01:59 +02:00
Guilherme Gonçalves
174c750d96 Bug 850442 - Part 5 - Rename nsGeolocation to Geolocation. r=bz 2013-04-12 13:01:29 -07:00
Guilherme Gonçalves
dae01e1be1 Bug 850442 - Part 3 - Convert callbacks, Geolocation and Position. r=bz 2013-04-12 13:01:29 -07:00
Boris Zbarsky
f57dd3545a Bug 860591. Install WebIDL quickstubs for event interfaces as needed. r=smaug 2013-04-12 10:51:25 -04:00
Ryan VanderMeulen
93f4713b55 Backed out changeset 8ce65f4eb1ba (bug 820170) for suspicion of causing bug 860903 on a CLOSED TREE. 2013-04-12 13:57:46 -04:00
Boris Zbarsky
c9c1e54147 Back out bug 860591 (rev 8488f69f8f91) because it causes orange, resulting in a CLOSED TREE 2013-04-12 12:50:06 -04:00
Boris Zbarsky
5099725926 Bug 860591. Install WebIDL quickstubs for event interfaces as needed. r=smaug 2013-04-12 10:51:25 -04:00
Boris Zbarsky
add8499ced Bug 810644 part 2. Eliminate the now-unused CallEventHandler. r=smaug, sr=peterv 2013-01-03 14:02:42 -05:00
Boris Zbarsky
5df1da36da Bug 810644 part 1. Switch setTimeout and setInterval to using WebIDL callback functions. r=smaug, sr=peterv 2013-01-03 14:02:36 -05:00
Reuben Morais
615be796de Bug 860918 - Disable the mozContact constructor if the dom.mozContacts.enabled is not set. r=gwagner
--HG--
extra : rebase_source : f5a5291a4b1c74f9048ca04067d7fc8bf02ad1f9
2013-04-11 21:45:40 -07:00
Steve Fink
c264467809 Bug 789593 - Clone typed arrays by cloning their buffers and only saving construction parameters. r=jorendorff, bent
Also enters a compartment where needed, and bumps both the structured clone and IndexedDB schema versions
2013-02-22 13:43:28 -08:00
Gregor Wagner
32188acc5d Bug 859601 - mozContacts API - return undefined if the API is unsupported on the platform, not null. r=bent 2013-04-11 17:44:33 -04:00
Ryan VanderMeulen
e9c65dfa10 Backed out 2 changesets (bug 850362, bug 600307) for Windows XP leaks on a CLOSED TREE. 2013-04-11 17:00:28 -04:00
Jacek Szpot
8123bfdfc5 Bug 854503 - Rename JS unwrapping functions. r=bholley 2013-04-11 11:50:18 -07:00
Ms2ger
20a9e6b03b bug 851542 - Gamepad to webidl (with nsIVariant). r=smaug
--HG--
extra : rebase_source : ae08a894b592465641ed774688957a446c8966a7
2013-04-09 08:43:25 -04:00
Ryan VanderMeulen
99647ac22c Backed out changesets a550dadafa30 and 315f6b451d07 (bug 857884) for mochitest failures on a CLOSED TREE. 2013-04-11 13:59:02 -04:00
Honza Bambas
52e949bcbc Bug 600307 - localStorage and sessionStorage implementation overhaul, r=mak77+smaug, sr=smaug 2013-04-11 18:26:06 +02:00
David Zbarsky
a5cb73b253 Bug 857884 - Use dom::EventTarget more in content/ and dom/ Part 4 r=Ms2ger 2013-04-11 12:24:47 -04:00
David Keeler
201dfe5cf1 bug 856777 - observe plugin-info-updated in nsPluginArray, not Navigator r=khuey 2013-04-10 13:59:45 -07:00
Ted Mielczarek
c9ccf9b191 Backed out changeset dcf67f13c6bb, bug 851542 for B2G bustage. 2013-04-11 09:23:14 -04:00
Ms2ger
6dc688b31d bug 851542 - Gamepad to webidl (with nsIVariant). r=smaug 2013-04-09 08:43:25 -04:00
Gabor Krizsanits
16f48f59cf Bug 820170 - Wrapping nodes into documents compartment. r=bholley, r=enn 2013-04-11 11:59:42 +02:00
Ryan VanderMeulen
a20b983060 Backed out changeset 9b9a5c42fb46 (bug 859601) for bustage on a CLOSED TREE. 2013-04-10 15:44:33 -04:00
Aryeh Gregor
fe91515d0c Bug 857102 part 3 - Make various GetNodeInfo callers infallible; r=bz 2013-04-04 15:01:11 +03:00
Gregor Wagner
1db1c86af3 Bug 859601 - mozContacts API - return undefined if the API is unsupported on the platform, not null. r=bent 2013-04-10 11:15:51 -07:00
Boris Zbarsky
8ad22459f8 Bug 851917. Get rid of the classinfo for HTMLObjectElement, HTMLEmbedElement, HTMLAppletElement, and rip out nsHTMLPluginObjElementSH. r=peterv,johns 2013-04-10 13:49:05 -04:00
Andrea Marchesini
7268b75aaf Bug 858893 - Port DesktopNotification to WebIDL. r=Ms2ger 2013-04-10 10:20:43 -04:00
Andrea Marchesini
55b96a77aa 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
Bas Schouten
7d182a2102 Bug 825928: Land layers refactoring. r=jrmuizel,bas,nical,mattwoodrow,roc,nrc,benwa,bjacob,jgilbert,kchen CLOSED TREE
Please contact Bas Schouten <bschouten@mozilla.com>, Nicolas Silva <nsilva@mozilla.com> or Nicholas Cameron <ncameron@mozilla.com> with general questions. Below is a rough list of authors to contact with specific questions.

Authors:
gfx/layers/Compositor.* gfx/layers/Effects.h - Compositor Interface - bas,nrc,nical
gfx/layers/d3d* - D3D9/D3D10 - bas
gfx/layers/ThebesLayer* - ThebesLayers - nrc,bas
gfx/layers/composite/* - CompositeLayers - nrc,nical
gfx/layers/client/* - Client - nrc,nical,bas
gfx/layers/*Image* - nical
gfx/layers/ipc ipc - IPC - nical
gfx/layers/opengl - CompositorOGL - nrc,nical
gfx/2d - bas,nrc
gfx/gl - GLContext - bjacob
dom/* layout/* - DOM - mattwoodrow
2013-04-10 09:20:52 +00:00
Stephen Pohl
28ee11a080 Bug 678392 - Add support for swipe animation as in Safari. r=smichaud,jaws,felipc 2013-04-09 14:44:01 -05:00
Vicamo Yang
ac29d93f96 Bug 749086 - 2/3: DOM & IPC changes. r=bent 2013-04-10 00:41:27 +08:00
Vicamo Yang
8f528d829f Bug 849739 2/4: DOM. r=mounir,mrbkap 2013-04-10 00:37:54 +08:00
Vicamo Yang
743cb3a49f Bug 838467 2/5: DOM implementation. r=sicking,bent 2013-04-10 00:35:59 +08:00
Andrea Marchesini
f2fd0928e5 Bug 851470 - Rename nsDOMAttribute to Attr. r=Ms2ger
--HG--
rename : content/base/src/nsDOMAttribute.cpp => content/base/src/Attr.cpp
rename : content/base/src/nsDOMAttribute.h => content/base/src/Attr.h
2013-04-09 17:29:44 +02:00
Jeff Walden
3b503a25ed Bug 856384 - Make outer windows always be [[Extensible]]. r=bholley, r=till 2013-04-09 09:07:05 -04:00
Ryan VanderMeulen
78fef2951c Backed out 13 changesets (bug 838467, bug 849739, bug 749086) for Marionette failures. 2013-04-09 08:54:00 -04:00
Boris Zbarsky
76307e1b88 Back out Bug 810644 part 1 to fix b2g test_closeOnGC.html orange on CLOSED TREE 2013-04-08 22:56:06 -04:00
Boris Zbarsky
899a6e9137 Back out Bug 810644 part 2 to fix b2g test_closeOnGC.html orange. 2013-04-08 22:55:15 -04:00
Vicamo Yang
774b9419e0 Bug 749086 - 2/3: DOM & IPC changes. r=bent 2013-04-09 10:22:19 +08:00
Vicamo Yang
ded9ac336c Bug 849739 2/5: DOM. r=mounir,mrbkap 2013-04-09 10:21:54 +08:00
Vicamo Yang
18a137611d Bug 838467 2/5: DOM implementation. r=sicking,bent 2013-04-09 10:21:31 +08:00
Boris Zbarsky
825d36de15 Bug 810644 part 2. Eliminate the now-unused CallEventHandler. r=smaug, sr=peterv 2013-01-03 14:02:42 -05:00
Boris Zbarsky
2f07f521a5 Bug 810644 part 1. Switch setTimeout and setInterval to using WebIDL callback functions. r=smaug, sr=peterv 2013-01-03 14:02:36 -05:00
Ehsan Akhgari
e029597932 Bug 856455 - Make nsCOMArray::SetCapacity return void; r=bsmedberg
--HG--
extra : rebase_source : 38cdef904f9b7fc33bd3f41bd19b1778dfbd7990
2013-03-31 16:06:18 -04:00
Olli Pettay
054845d27c 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
Ryan VanderMeulen
9420af6638 Backed out changeset a85d21e394c0 (bug 854503) for bustage. 2013-04-06 14:37:33 -04:00
Jacek Szpot
ccadc1da47 Bug 854503 - Rename JS unwrapping functions. r=bholley 2013-04-04 12:14:32 +02:00
David Zbarsky
dd55a87c18 Bug 857884 - Use dom::EventTarget more in content/ and dom/ Part 2 r=Ms2ger 2013-04-05 20:44:26 -04:00
David Zbarsky
c2cf14c695 Bug 857884 - Use dom::EventTarget more in content/ and dom/ r=Ms2ger 2013-04-05 20:44:15 -04:00
David Zbarsky
76ad7e5429 Bug 856962: Move Touch to its own file r=Ms2ger
--HG--
rename : content/events/src/nsDOMTouchEvent.cpp => content/events/src/Touch.cpp
rename : content/events/src/nsDOMTouchEvent.h => content/events/src/Touch.h
2013-04-05 04:49:00 -04:00
Dave Hylands
51341af509 Bug 858034 - Make navigator.getDeviceStorage('') not crash when device storage is disabled. r=bent 2013-04-04 15:21:49 -07:00
Eitan Isaacson
5848b6c1b9 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
a1093b2662 Merge m-c to m-i. 2013-04-04 14:15:56 +02:00
Ms2ger
7a690c9add Bug 851791 - Kill some script type id stuff; r=bz 2013-04-04 09:04:50 +02:00
Ms2ger
564b34316f Bug 856605 - Remove TimeRanges CI; r=mounir 2013-04-04 09:04:41 +02:00
Ms2ger
4f80fe5028 Bug 853818 - Remove HTMLMediaElement CI/nsIJSNativeInitializer; r=mounir 2013-04-04 09:04:29 +02:00
Ms2ger
3ab3b93918 Bug 841488 - Part a: Rename nsHTMLSelectElement; r=khuey
--HG--
rename : content/html/content/src/nsHTMLSelectElement.cpp => content/html/content/src/HTMLSelectElement.cpp
rename : content/html/content/src/nsHTMLSelectElement.h => content/html/content/src/HTMLSelectElement.h
2013-04-04 09:03:33 +02:00
Ms2ger
f05c1ef0ee Bug 854090 - Move nsHTMLFormElementSH::FindNamedItem to nsHTMLFormElement; r=khuey 2013-04-04 09:03:12 +02:00
Ms2ger
7112884ad3 Bug 575431 - Followup: remove obsoleted comment. 2013-04-04 09:02:16 +02:00