Commit Graph

2798 Commits

Author SHA1 Message Date
Boris Zbarsky
172598b4e2 Bug 1257335. Replace some AutoSafeJSContext uses with AutoJSAPI or AutoJSContext uses. r=bholley
In general, using an AutoJSAPI inited with an object is NOT the same as using
AutoSafeJSContext (or AutoJSAPI inited without an object) and then entering the
compartment of the object: the former will report exceptions to the global of
the object as it comes off the stack, while the latter will not.  This only
really matters if we have an object from a window or worker global and hence
might fire error events, or report internal stuff to the web console.

The changes to initing with an object made in this bug are OK for the following
reasons:

1) dom/base/Console.cpp: Always clears its exception before coming off the stack.
2) dom/base/nsDOMClassInfo.cpp: Inits with a non-web global.
3) dom/base/nsFrameMessageManager.cpp: Inits with a non-web global.
4) dom/media/MediaPermissionGonk.cpp: We probably want the caller to notice if
   anything here throws.
5) dom/xbl/nsXBLPrototypeBinding.cpp: Inits with a non-web global.
6) dom/xul/nsXULElement.cpp: Inits with a non-web global.
7) extensions/pref/autoconfig/src/nsJSConfigTriggers.cpp: Inits with a non-web global.
8) ipc/testshell/XPCShellEnvironment.cpp: Inits with a non-web global.
2016-03-18 10:48:38 -04:00
Boris Zbarsky
2ce6bc7ebf Bug 1255172. Fix unsafe reference gc hazards people snuck into DOM code. r=bkelly 2016-03-10 18:07:28 -05:00
Sotaro Ikeda
0c08312576 Bug 1249437 - Remove workaround of volume control r=alwu 2016-03-09 15:34:07 -08:00
Ms2ger
0a30447a70 Bug 908038 - Move worker_buf.js installation into moz.build; r=mshal 2016-03-07 17:00:49 +01:00
Doug Turner
1a1dd4f3c7 Bug 1253159 - Remove locationUpdatePending and restore request timeout. r=jdm 2016-03-02 21:48:00 -05:00
Gabriele Svelto
37f3999f8b Bug 1253571 - Remove the remaining uses of ScopedDeletePtr and ScopedFreePtr from the HAL and MTP code r=dhylands 2016-03-04 15:15:38 +01:00
sakshi
1af0b67296 Bug 1197311 - Remove PR_snprintf calls in dom/ r=froydnj 2016-02-17 14:23:39 -05:00
Victor Ng
adc97d0666 Bug 1247410 - "test for _nomap ids does not work correctly". r=dougt 2016-02-11 06:23:00 +01:00
Olli Pettay
bdb1f6d5c6 Bug 1197901, ensure sensor events dispatching follows the becoming spec change, r=bz
--HG--
extra : rebase_source : e44c3e357194067ddae10e8b19ee045fb39d36d6
2016-02-24 19:43:07 +02:00
Liang-Heng Chen
2c217d4b31 Bug 1000040 - Part 2: Implement EthernetManager; r=vicamo 2016-02-19 16:06:29 +08:00
Liang-Heng Chen
41688cd177 Bug 1000040 - Part 1: Add required APIs for Ethernet; r=vicamo,bholley 2016-02-19 16:06:21 +08:00
Thomas Zimmermann
244e0a0d24 Bug 1245100: Include missing headers in SystemProperty.cpp, r=edgar 2016-02-03 09:52:24 +01:00
Thomas Zimmermann
39dc0e86ec Bug 1245093: Explictly refer to |class ResponseCode| in global namespace, r=dhylands
|VolumeResponseCallback::ResponseCode| shadows the type |ResponseCode|. This
patch changes all affected places to refer explicitly to the |ResponseCode|
type in the global namespace.
2016-02-03 09:51:49 +01:00
Fernando Jimenez
1965b03276 Bug 1245033 - Build break in dom/system/gonk/GonkGPSGeolocationProvider.cpp:541:126: error: format '%d' expects argument of type 'int', but argument 5 has type 'nsresult'. r=fabrice 2016-02-02 01:53:21 -08:00
Kyle Huey
91efc5a86c Bug 1241764: Replace nsPIDOMWindow with nsPIDOMWindowInner/Outer. r=mrbkap,smaug 2016-01-30 09:05:36 -08:00
Arthur Edelstein
04d80f24bc Bug 1237831 - Update GonkGPSGeolocationProvider.cpp to use B2G-style. r=jst
--HG--
extra : amend_source : be22508ad54255c58a9a7d09ac2475c0eb75bd68
2016-01-04 09:46:17 -08:00
Carsten "Tomcat" Book
09f5bc4670 Backed out changeset f7e6d241e103 (bug 1237831) 2016-01-28 17:03:25 +01:00
Arthur Edelstein
14644ccf2b Bug 1237831 - Update GonkGPSGeolocationProvider.cpp to use B2G-style. r=jst
From 735d634f21a9e9317dd90c24806f42eb11e999d0 Mon Sep 17 00:00:00 2001
 logging
---
 dom/system/gonk/GonkGPSGeolocationProvider.cpp | 48 +++++++++++++-------------
 1 file changed, 24 insertions(+), 24 deletions(-)

--HG--
extra : rebase_source : d25154abc42023833226a60ea167523326d52aa5
2016-01-04 09:46:17 -08:00
Eugen Sawin
e8d1a957e9 Bug 1205649 - [2.4] Add AbsoluteDeviceOrientation DOM event for compass heading orientation data. r=smaug 2016-01-21 18:14:33 +01:00
Eugen Sawin
a1f5f13b6b Bug 1205649 - [1.1] Use relative orientation for DOM DeviceOrientation events by default. r=vlad 2016-01-21 18:14:33 +01:00
Edgar Chen
782fe3dd3f Bug 1239906 - Deprecate nsIRadioInterfaceLayer.getClientIdForEmergencyCall(). r=bevis 2015-10-24 19:57:20 +08:00
Bevis Tseng
9670cbea5b Bug 1236433 - Part 2: Adopt Wrapper in Network Utilities; r=edgar
--HG--
extra : transplant_source : %EC%8B%3C%1C%8C%D49%5B%C5%CB%2BMf%0F%CC%86%FB%0C%A0%BE
2016-01-07 19:02:41 +08:00
Bevis Tseng
f4f2ecb435 Bug 1236433 - Part 1: Provide a Native Wrapper to Allow Fallback When property_get/set is Unavailable; r=edgar
--HG--
extra : transplant_source : %C6%CB%B7%0A%E5%A02%89%B8%A6%EB%14%0F%D5%F4%04%15%DC/%DE
2016-01-07 18:40:19 +08:00
Eugen Sawin
c927fec54a Bug 1073224 - [1.2] Use SENSOR_ROTATION_VECTOR for DOM DeviceOrientation events on Android. r=vlad 2016-01-07 15:23:33 +01:00
Bevis Tseng
7143de3fad Bug 1235697 - Part 2: Add Test Coverage. r=echen 2015-12-30 18:02:27 +08:00
Bevis Tseng
deba473a2f Bug 1235697 - Part 1: Workaround to Suppress the CB Message according to the settings. r=echen 2015-12-30 18:00:57 +08:00
Bevis Tseng
bfa7146bb5 Bug 1235110 - Part 2: Add Test Coverage. r=echen 2015-12-30 16:22:21 +08:00
Bevis Tseng
2adeb42787 Bug 1235110 - Part 1: Forbid the DATA DOWNLOAD message to be delivered to the App layer. r=echen 2015-12-30 16:19:28 +08:00
ywu
0a79595e4f Bug 1222899 - Handle geolocation-device-events callback. r=kchen
During this GPS engine is turned ON by the modem,
we make the location tracking icon visible to user.

--HG--
extra : commitid : a8t4t12RtC
2015-12-26 13:39:42 -05:00
Sotaro Ikeda
0c72c57ef8 Bug 1218629 - Save audio volume for each device to setting db r=alwu 2015-12-23 23:31:34 -08:00
Andrea Marchesini
52e65f89d8 Bug 1214148 - patch 1 - propagation from the nested iframe back to the toplevel iframe, r=alwu 2015-12-11 11:17:33 -05:00
Carsten "Tomcat" Book
cccfedda81 Backed out changeset afe3d65b74b6 (bug 1214148) on developers request for causing regressions 2015-12-15 14:45:06 +01:00
Sotaro Ikeda
3b7e8e6d1e Bug 1229234 - Enable audio_is_output_device() on ICS r=alwu 2015-12-13 18:13:02 -08:00
Andrea Marchesini
7271d1d622 Bug 1214148 - patch 1 - propagation from the nested iframe back to the toplevel iframe, r=alwu 2015-12-11 11:17:33 -05:00
Phil Ringnalda
631f58c4f9 Back out 3 changesets (bug 1214148) for b2g test_browserElement_inproc_AudioPlayback.html, test_browserElement_oop_AudioChannel.html, etc. failures
CLOSED TREE

Backed out changeset e716d9ac93d7 (bug 1214148)
Backed out changeset 5f693237c8c1 (bug 1214148)
Backed out changeset 3a4865d79416 (bug 1214148)
2015-12-09 18:19:33 -08:00
Andrea Marchesini
4ddcd9bade Bug 1214148 - patch 2 - from toplevel iframe to the nested iframe, r=alwu 2015-12-09 16:46:25 -05:00
Chris Peterson
46bb7c80dd Bug 1228947 - Replace mfbt/Constants.h with math.h. r=roc
--HG--
extra : rebase_source : 4ab2c4a917ea90055e48bd6adcb53904f2266ee0
2015-11-27 20:49:55 -08:00
Nathan Froyd
c381a6b86c Bug 1218454 - part 2 - don't #include nsContentUtils.h from CallbackObject.h; r=bz
We used to need nsContentUtils.h here for nsCxPusher, but since that got
moved to ScriptSettings.h, we no longer need nsContentUtils.h for
anything.
2015-10-26 12:14:47 -04:00
Wes Kocher
fcb2a5060a Merge b2ginbound to central, a=merge
--HG--
extra : commitid : DY49ZjkFuGD
2015-11-24 16:52:38 -08:00
Tim Huang
6f05771bd9 Bug 1225549 - Modify the data type of mThreshold of NetworkParams to long long from long. r=ettseng 2015-11-18 18:14:00 +01:00
sajitk
5fb2c53074 Bug 1219478: Replace PRLogModuleInfo usage with LazyLogModule in dom folders except media.r=amerchesini 2015-11-23 11:09:25 -08:00
Sotaro Ikeda
55a91fd749 Bug 1226483 - Add ASSERT check to AudioManager::SelectDeviceFromDevices() r=alwu 2015-11-20 03:19:28 -08:00
Wes Kocher
c4f40f5dfc Merge inbound to m-c a=merge
--HG--
extra : commitid : 8FO2ow49CX2
2015-11-16 17:20:42 -08:00
Bevis Tseng
e8573be274 Bug 1110619 - Part 2: Implementation Changes. r=echen
--HG--
extra : rebase_source : 1b6e744494e8831826d45fef5ec4a48ffdc8841c
2015-11-10 15:30:48 +08:00
Carsten "Tomcat" Book
8743590ed8 Merge mozilla-central to b2g-inbound 2015-11-13 14:39:48 +01:00
Kyle Huey
bdbb2ec50a Bug 1224061: Make Event::InitEvent infallible. r=smaug 2015-11-13 08:09:42 +08:00
Tim Huang
ba40c16470 Bug 1209654 - Modify the type of the threshold of addAlarm() and getAllAlarms() to long long from long, and add test cases. r=ettseng, r=bz 2015-11-12 19:01:00 +01:00
Andrea Marchesini
a14ba13b57 Bug 1223734 - AudioChannelService should not be re-initialized after the XPCOM shutdown, r=smaug 2015-11-16 17:34:52 +00:00
Sotaro Ikeda
c7090ef533 Bug 1222564 - Save audio volume to database r=alwu 2015-11-10 04:28:03 -08:00
Mike Hommey
4d40edea15 Bug 1221453 - Use AbsolutePaths with LOCAL_INCLUDES instead of manual -I in CXXFLAGS. r=gps 2015-11-06 09:59:21 +09:00