Граф коммитов

138 Коммитов

Автор SHA1 Сообщение Дата
Chris Peterson 11ef78ae89 Bug 1275016 - Rename Endian.h to EndianUtils.h to avoid #include confusion with Android's endian.h stdlib header. r=froydnj
--HG--
rename : mfbt/Endian.h => mfbt/EndianUtils.h
2016-05-22 13:31:11 -07:00
Gregor Wagner acecad8f82 Bug 1267577 - Move nsRunnable to mozilla::Runnable. r=gsvelto 2016-04-27 12:05:40 +02:00
Thomas Zimmermann c08b1e935a Bug 1252841: Convert Bluetooth module to |UniquePtr<>|, r=btian 2016-03-22 11:26:45 +01:00
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
Louis Chang 73c9a25e36 Bug 1223729 - HID Connection Implementation, r=jocelyn, sr=mrbkap
--HG--
rename : dom/bluetooth/common/BluetoothHidManager.cpp => dom/bluetooth/bluez/BluetoothHidManager.cpp
rename : dom/bluetooth/common/BluetoothHidManager.h => dom/bluetooth/bluez/BluetoothHidManager.h
2015-12-04 11:58:55 +08:00
Boris Zbarsky f17bf212bc Bug 1255818. Switch from JS_ClearPendingException to AutoJSAPI::ClearException for cases when we have an AutoJSAPI around. r=bholley 2016-03-11 16:43:31 -05:00
Louis Chang 4662cafd4a Bug 1252787 - Patch : Add HID profile when device is remote, r=shawnjohnjr 2016-03-07 15:05:49 +08:00
Tom Tung 8d0ccf2497 Bug 1253217 - Change filename from BluetoothUuid to BluetoothUuidHelper. r=jocelyn
--HG--
rename : dom/bluetooth/common/BluetoothUuid.cpp => dom/bluetooth/common/BluetoothUuidHelper.cpp
rename : dom/bluetooth/common/BluetoothUuid.h => dom/bluetooth/common/BluetoothUuidHelper.h
2016-03-09 10:57:35 +08:00
Bruce Sun fb2d868a4e Bug 1250694: Use functions to return static const BluetoothAddress and BluetoothUuid; r=tzimmermann 2016-03-04 18:54:18 +08:00
Bruce Sun 0e6586272e Backed out changeset ef9e220beb2d (bug 1250694) 2016-03-04 18:54:26 +08:00
Bruce Sun 7f34ab2c75 Bug 1250694: Use functions to return static const BluetoothAddress and BluetoothUuid; r=tzimmermann 2016-03-03 17:28:23 +08:00
Tom Tung 6a022181ea Bug 1238845 - Implement UUID helper - dom/bluetooth & dom/webidl & layout/build change. r=jocelyn, r=bz 2016-01-15 19:30:46 +08:00
Thomas Zimmermann 83da4d603d Bug 1251541: Pass arguments to AVRCP passthrough command as uint8_t, r=shuang
The AVRCP passthough-command notification doesn't require |int| type
arguments. Using |uint8_t| is sufficient. This change is required to
prepare replacing |nsAutoArrayPtr<>| with |UniquePtr<[]>|.
2016-02-29 12:15:08 +01:00
Thomas Zimmermann d8cb801b6f Bug 1251541: Replace |nsAutoArrayPtr<>| with |UniquePtr<[]>| in Bluetooth managers, r=shuang 2016-02-29 12:15:08 +01:00
Tom Tung 1b66b77231 Bug 1238842 - Add error codes to Gecko by following W3C spec. r=brsun 2016-02-24 17:56:22 +08:00
Bruce Sun 7d2e3a3d9e Bug 1222956: Use |BluetoothUuid| in |BluetoothDiscoveryHandle|, r=tzimmermann 2016-02-22 11:41:07 +08:00
Birunthan Mohanathas e00f212825 Bug 1235261 - Part 6: Rename AutoInfallibleTArray to AutoTArray. r=froydnj 2016-02-02 17:36:31 +02:00
Birunthan Mohanathas d7371d07d0 Bug 1235261 - Part 1: Rename nsAutoTArray to AutoTArray. r=froydnj 2016-02-02 17:36:30 +02:00
Nicholas Nethercote fbdfd97e75 Bug 1187151 (part 16) - Replace nsBaseHashtable::Enumerate() calls in dom/ with iterators. r=mccr8.
--HG--
extra : rebase_source : 5aceb8e5542d5fa319273eccebded46f6e4730ff
2016-01-28 14:38:38 -08:00
Phil Ringnalda d381b4bca6 Back out 7 changesets (bug 1235261) for cpptest failures in TestTArray
CLOSED TREE

Backed out changeset d66c3f19a210 (bug 1235261)
Backed out changeset 467d945426bb (bug 1235261)
Backed out changeset 32b61df13142 (bug 1235261)
Backed out changeset c50bb8ed4196 (bug 1235261)
Backed out changeset 0ff0fa6fe81f (bug 1235261)
Backed out changeset df70e89669da (bug 1235261)
Backed out changeset 064969357fc9 (bug 1235261)
2016-01-31 10:10:57 -08:00
Birunthan Mohanathas b00cdd6088 Bug 1235261 - Part 6: Rename AutoInfallibleTArray to AutoTArray. r=froydnj 2016-01-31 17:12:12 +02:00
Birunthan Mohanathas 373593275e Bug 1235261 - Part 1: Rename nsAutoTArray to AutoTArray. r=froydnj 2016-01-31 17:12:12 +02:00
Kyle Huey 91efc5a86c Bug 1241764: Replace nsPIDOMWindow with nsPIDOMWindowInner/Outer. r=mrbkap,smaug 2016-01-30 09:05:36 -08:00
Jocelyn Liu 73e2cdcead Bug 1238825: Add "dom.bluetooth.webbluetooth.enabled" preference for WebBluetooth API development. r=btian, r=bz 2016-01-25 14:35:18 +08:00
Ben Tian 619f16d2b0 Bug 1241382 - Revise default value of BluetoothAdapter.address and BluetoothDevice.address to empty string, f=wiwang, r=shuang 2016-01-22 14:34:25 +08:00
Carsten "Tomcat" Book b52ca99105 Merge mozilla-central to b2g-inbound
--HG--
rename : browser/components/migration/tests/unit/test_fx_fhr.js => browser/components/migration/tests/unit/test_fx_telemetry.js
extra : rebase_source : e274f592a1f49a14c57ea09dffa5c29e9c5ec2d1
2016-01-21 12:30:56 +01:00
Thomas Zimmermann 0163bc2474 Bug 1239979: Init and uninit all Bluetooth profile managers, r=shuang
The use is init and deinit methods is currently inconsistent among
Bluetooth profile managers. This patch unifies all these methods and
integrates them into the Bluetooth service. Instances of the manager
classes are now unref'ed during Bluetooth shutdown.
2016-01-21 12:30:00 +01:00
Chris Lord 525d63acc9 Bug 1241117 - Fix mAppUuid access before assign in BluetoothGatt::Connect. r=joliu 2016-01-20 14:37:02 +00:00
Jocelyn Liu c6da2ff1c4 Bug 1228546 - Implement peripheral mode support for GATT API. r=brsun, r=mrbkap 2016-01-15 09:50:54 +08:00
Carsten "Tomcat" Book d833f9ba1a merge mozilla-inbound to mozilla-central a=merge 2016-01-13 11:57:15 +01:00
Carsten "Tomcat" Book 10ba3dad80 Merge mozilla-central to b2g-inbound 2016-01-12 11:58:12 +01:00
Ben Tian eb36691d55 Bug 1234974 - Handle null GetOwner() in |BluetoothAdapter::IsBluetoothCertifiedApp|, r=shuang 2016-01-12 15:53:59 +08:00
Nathan Froyd c594aa406f Bug 1236561 - part 3 - make BluetoothConfigurationParameter.mValue a UniquePtr; r=btian 2015-12-06 10:41:42 -05:00
Nathan Froyd a9051dc287 Bug 1236561 - part 2 - remove ObexHeaderSet::GetAuthChallenge; r=btian
We don't need to copy data in this case, and making this change enables
us to remove this use of nsAutoArrayPtr.
2015-12-06 10:28:04 -05:00
Thomas Zimmermann 1025acb217 Bug 1223722: Transfer arrays of Bluetooth UUIDs in |BluetoothValue|, r=brsun
Bluetooth's UUID arrays are sorted and stripped from duplicates. This code is
now executed in the client process. This reduces the amount of privilegued
code and accounts the required computation time to the process that actually
uses it.

The change also makes the IPDL interface a bit less fragile, as the client
does not expect sorted arrays from the chrome process. It's a detail of the
client's implementation that manifested itself in the interface.
2016-01-05 12:01:33 +01:00
Thomas Zimmermann 388ee1f523 Bug 1223722: Transfer Bluetooth remote names in |BluetoothValue|, r=brsun 2016-01-05 12:01:33 +01:00
Thomas Zimmermann 30f1560836 Bug 1223722: Transfer Bluetooth addresses in |BluetoothValue|, r=brsun 2016-01-05 12:01:33 +01:00
Bruce Sun 1d0ce088da Bug 1234127: Change |BluetoothAdapter.pairingReqs| as a nullable object; r=btian, r=mrbkap 2015-12-21 16:48:47 +08:00
Ben Tian e6557e5b56 Bug 1230066 - Add missing STATUS_AUTH_REJECTED into enum BluetoothStatus,r=tzimmermann 2015-12-03 18:25:03 +08:00
Wes Kocher 50e8f21d5b Merge inbound to central, a=merge
--HG--
extra : commitid : 9WZlbf1Q29D
2015-12-01 15:43:33 -08:00
Shawn Huang fb992c848d Bug 1186840 - [MAP] Implement MessageUpdate function, r=btian 2015-12-01 15:55:41 +08:00
Ben Tian 9cb17c7756 Bug 1228479 - Remove redundant blob handling in BluetoothMapRequestHandle::ReplyToFolderListing, r=shuang 2015-11-27 14:03:03 +08:00
Nathan Froyd 199217336c Bug 1224240 - fix memory leak in Bluetooth*Manager::CompareHeaderTarget; r=btian
ObexHeaderSet::GetTarget copies the data associated with the
ObexHeaderId::Target id into a newly-allocated buffer.  All callers of
this function, however, fail to free the buffer once they are done with it.

Instead of simply freeing the buffer in the caller, however, let's add
an API to ObexHeaderSet that gives direct access to the desired header.
Doing this means that we have direct access to the data--no copying
necessary--and we also make the caller slightly faster, since it no
longer has to verify that the appropriate header is there, followed by
re-searching for the header it already knows is there.
2015-11-04 10:42:01 -05:00
Jan Varga c1c950896a Bug 961049 - Part 3: Move PersistenceType serializer from indexedDB to quota module; r=baku 2015-11-22 10:43:34 +01:00
Thomas Zimmermann 764c23b828 Bug 1223806: Convert Bluetooth to |BluetoothCoreInterface|, r=btian 2015-11-19 11:21:03 +01:00
Thomas Zimmermann 3c5994d6ba Bug 1223806: Convert Bluetooth to |BluetoothCoreNotificationHandler|, r=btian 2015-11-19 11:21:03 +01:00
Thomas Zimmermann 971e8406ba Bug 1223806: Convert Bluetooth to |BluetoothCoreResultHandler|, r=btian 2015-11-19 11:21:03 +01:00
Thomas Zimmermann 350896bf18 Bug 1223806: Add Bluetooth Core interface, notification and result handler, r=btian 2015-11-19 11:21:03 +01:00
Thomas Zimmermann 8294faa09b Bug 1223720: Support UUIDs and addresses for Bluetooth signal paths, r=joliu
This patch improves the Bluetooth signal API by adding methods for
dealing with UUIDs and addresses directly. Callers have been converted
where possible.
2015-11-17 11:25:34 +01:00
Bevis Tseng 039c5e3a81 Bug 1110619 - Part 3: Bluetooth Changes. r=btian
--HG--
extra : rebase_source : f7f286ac25c9b5bb1e813c7c4b0aab75f5808d40
2015-11-12 17:04:00 +08:00