Commit Graph

17408 Commits

Author SHA1 Message Date
Bobby Holley
8f823bfe9a 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
42f8d15991 Bug 873698 - Remove JS_GetGlobalObject from plugins. r=gabor 2013-05-22 15:42:44 -06:00
Ryan VanderMeulen
ab09f23cb3 Backed out changesets e52c6f7200b3 and 2718954757e1 (bug 874869) for intermittent Windows leaks. 2013-05-22 15:22:26 -04:00
Jan-Ivar Bruaroey
a664470d9e Bug 872839 - Part 1: Put new PeerConnections on global list earlier, ensuring close is called should PC.initialize fail. r=jesup 2013-05-22 13:05:20 -04:00
Bobby Holley
f2943090bd 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
01402a7f2f Bug 868130 - Fix sketchy cx consumers identified by gabor. r=gabor 2013-05-22 10:05:27 -06:00
Bobby Holley
b44627d83a Bug 868130 - Remove the dependencies of the nsCxPusher machinery on nsContentUtils, use nsCxPusher in xpcshell, and privatize APIs. r=gabor
No more xpc::danger, for now. ;-)
2013-05-22 10:05:26 -06:00
Bobby Holley
cdde50556c 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
750d6364fd 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
5e6e7dbd7e Bug 868130 - Make sure to push a JSContext in TabParent::ReceiveMessage. r=gabor 2013-05-22 10:05:24 -06:00
Bobby Holley
ccfa69b417 Bug 868130 - Use an AutoSafeJSContext in hueyfix. r=gabor 2013-05-22 10:05:23 -06:00
Bobby Holley
e7d2092dbd Bug 868130 - Make sure mContext is stack-top in nsJSContext::CompileScript. r=gabor 2013-05-22 10:05:23 -06:00
Ehsan Akhgari
aa8f22ec3d Bug 874869 - Disallow setting AudioNode.channelCount to zero; r=roc 2013-05-22 11:30:31 -04:00
Ryan VanderMeulen
a572f71b43 Merge m-c to inbound. 2013-05-22 10:01:52 -04:00
Jan de Mooij
162bdc21e4 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
Eric Chou
f906b641d5 Bug 839370 - Implement callback function OnUpdateSdpRecords() in BluetoothProfileManagers, r=gyeh 2013-05-22 19:08:21 +08:00
Eric Chou
7da1f04cb2 Bug 839370 - Implement function UpdateSdpRecords(), r=gyeh 2013-05-22 19:08:17 +08:00
Szu-Yu Chen [:aknow]
c5bf9ac6f9 Bug 874791 - Add permission check for call barring API. r=hsinyi 2013-05-22 17:05:08 +08:00
Patrick Wang
1341003b78 Bug 835255 - Part 2: adding marionette test for PNN/OPL. r=vicamo 2013-05-22 16:36:03 +08:00
Hsin-Yi Tsai
357786abe2 Bug 823958 - BT impl- TelephonyListener::EnumerateCallStateComplete (part 4/4). r=gyeh 2013-05-10 15:00:01 +08:00
Hsin-Yi Tsai
6484d23375 Bug 823958 - RIL impl- Deliver 'enumerateCallStateComplete' (part 3/4). r=vicamo 2013-05-10 14:58:06 +08:00
Hsin-Yi Tsai
b6a0ab6e75 Bug 823958 - DOM impl- Make sure event listeners will be notified when calls array is ready (part 2/4). r=bent 2013-05-09 18:44:13 +08:00
Hsin-Yi Tsai
8729362b8d Bug 823958 - idl change - Add nsITelephonyListener::EnumerateCallStateComplete() (part 1/4). r=bent 2013-05-09 18:44:13 +08:00
Reuben Morais
f6ff8429cd Bug 871872 - Clean up ContactDB's temporary cache if the child dies without asking for more contacts. r=gwagner 2013-05-21 11:19:06 -07:00
Boris Zbarsky
fb1bdaf8dd Bug 867903. Speed up getDescriptors and some other obvious slow points in codegen. r=khuey 2013-05-09 13:06:48 -04:00
Boris Zbarsky
96a893b56d Bug 861587. Rejigger the WebIDL binding build system to do all binding codegen in a single python process while still using our dependency tracking for bindings to minimize the number of bindings we try to regenerate. r=khuey 2013-05-09 13:05:33 -04:00
Ryan VanderMeulen
12b5ca0b05 Merge m-c to inbound. 2013-05-21 08:17:04 -04:00
Jonathan Kew
3979f5bbb7 bug 873939 followup - remove duplicates in the test_interfaces.html list. r=khuey 2013-05-21 12:25:14 +08:00
Edgar Chen
8c62749721 Bug 873965 - Set preferred network type when radio is on. r=vicamo 2013-05-20 16:04:37 +08:00
Szu-Yu Chen [:aknow]
f1fb7c3140 Bug 818393 - Part 4: Add test for call barring. r=htsai.
---
 dom/network/tests/marionette/manifest.ini          |    2 +
 .../marionette/test_call_barring_get_option.js     |   31 +++++++++
 .../marionette/test_call_barring_set_error.js      |   66 ++++++++++++++++++++
 3 files changed, 99 insertions(+)
 create mode 100644 dom/network/tests/marionette/test_call_barring_get_option.js
 create mode 100644 dom/network/tests/marionette/test_call_barring_set_error.js
2013-05-21 13:17:22 +08:00
Szu-Yu Chen [:aknow]
0b34baff3e Bug 818393 - Part 3: Call barring RIL implementation. r=htsai.
---
 dom/system/gonk/RILContentHelper.js    |  112 +++++++++++++++++++++++++++++++-
 dom/system/gonk/RadioInterfaceLayer.js |   38 +++++++++++
 dom/system/gonk/ril_consts.js          |   19 ++++++
 dom/system/gonk/ril_worker.js          |   31 +++++++++
 4 files changed, 199 insertions(+), 1 deletion(-)
2013-05-21 13:13:37 +08:00
Szu-Yu Chen [:aknow]
d404b99597 Bug 818393 - Part 2: Call barring DOM implementation. r=htsai, smaug.
---
 dom/network/src/MobileConnection.cpp |   26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)
2013-05-21 13:12:59 +08:00
Szu-Yu Chen [:aknow]
a8e0e1d9ce Bug 818393 - Part 1: Add interface for call barring config. r=htsai. sr=mounir.
---
 dom/network/interfaces/nsIDOMMobileConnection.idl  |   84 +++++++++++++++++++-
 .../interfaces/nsIMobileConnectionProvider.idl     |    7 +-
 2 files changed, 87 insertions(+), 4 deletions(-)
2013-05-21 13:08:57 +08:00
Edgar Chen
64a9e6650c Bug 859220 - Part 4: Fix marionette tests for IccManager. r=allstars.chh 2013-04-09 14:30:03 +08:00
Edgar Chen
31e6a707b9 Bug 859220 - Part 3: Separate IPC messages in RadioInterfaceLayer. r=allstars.chh 2013-04-09 14:18:43 +08:00
Edgar Chen
a4dd99fe16 Bug 859220 - Part 2: Separate mozIccManager from mozMobileConnection (DOM). r=smaug 2013-04-08 18:34:10 +08:00
Edgar Chen
e70764a7cb Bug 859220 - Part 1: Separate mozIccManager from mozMobileConnection (IDL). r=allstars.chh. sr=sicking 2013-04-08 15:13:09 +08:00
Ryan VanderMeulen
24fea98f60 Merge inbound to m-c. 2013-05-20 16:21:45 -04:00
Fabrice Desré
22954fcfa5 Bug 872100 - app.clearBrowserData appears to not clear browser data immediately sr=mounir, r=jduell,ferjm 2013-05-20 10:20:19 -07:00
Ryan VanderMeulen
9299fdf983 Merge m-c to inbound. 2013-05-20 11:29:37 -04:00
Ryan VanderMeulen
dfbbf813b3 Merge m-c to birch. 2013-05-20 08:22:31 -04:00
Marco Chen
599f0fa951 Bug 870682 - [gonk-jb-4.2] Add basic support for audio control API. r=mwu 2013-05-20 15:34:42 +08:00
Zachary Easterbrook
cc8019deb6 Bug 868952 - Fix the getAll(...) function in AlarmDB to be more efficient. r=clian 2013-05-20 07:47:38 -04:00
Gina Yeh
435cd35046 Bug 853235 - Combine pairing-related system messages into one type, r=echou 2013-05-20 15:34:45 +08:00
Ms2ger
8c193ee6c7 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
9a5cb640ab Bug 873417 - Part b: Use CGClass for CGDictionary; r=bz 2013-05-20 09:10:59 +02:00
Ms2ger
def15c3257 Bug 873417 - Part a: Cleanup and fix some bugs in CGClass; r=bz 2013-05-20 09:10:58 +02:00
Thomas Zimmermann
f23d6f120d Bug 873400: Fix destination directory for Bluetooth file transfers, r=echou
Bluetooth file transfers store the file in 'downloads/bluetooth'. This
patch changes the location to 'Download/Bluetooth' for consistency with
other sub-systems.
2013-05-20 11:41:03 +08:00
Ms2ger
a8ca7bda9d Merge backout. 2013-05-19 20:26:58 +02:00
Ms2ger
7786ea6954 Backout bug 549861 (changesets 27fb48df15ce:7ecd4e3863b4) for insufficient review. 2013-05-19 20:23:19 +02:00