Commit Graph

63 Commits

Author SHA1 Message Date
Sid Vishnoi
bd713fe4ee Bug 1594306 - Rename nsGeo* files to match the WebIDL interfaces r=marcosc
Rename nsGeolocation to Geolocation.
Split nsGeoPostion to GeolocationPosition and GeolocationCoordinates.
Fix some include guards and comments referencing outdated interfaces.

Differential Revision: https://phabricator.services.mozilla.com/D52515

--HG--
rename : dom/geolocation/nsGeolocation.cpp => dom/geolocation/Geolocation.cpp
rename : dom/geolocation/nsGeolocation.h => dom/geolocation/Geolocation.h
rename : dom/geolocation/nsGeoPosition.cpp => dom/geolocation/GeolocationPosition.cpp
rename : dom/geolocation/nsGeoPosition.h => dom/geolocation/GeolocationPosition.h
extra : moz-landing-system : lando
2019-11-14 04:18:04 +00:00
Sid Vishnoi
6023989158 Bug 1575144 - Update Geolocation implementation to match latest spec r=baku,marcosc
The Geolocation API specification renamed the following interfaces and removed the [NoInterfaceObject] annotation so that these types are now exposed to script:
* Coordinates -> GeolocationCoordinates
* Position -> GeolocationPosition
* PositionError -> GeolocationPositionError

This is done in response to an effort to remove the [NoInterfaceObject]
annotation from WebIDL.

Additionally, the following interfaces are now only exposed in Secure Contexts:
* GeolocationCoordinates
* GeolocationPosition

Differential Revision: https://phabricator.services.mozilla.com/D51972

--HG--
rename : dom/geolocation/PositionError.cpp => dom/geolocation/GeolocationPositionError.cpp
rename : dom/geolocation/PositionError.h => dom/geolocation/GeolocationPositionError.h
rename : dom/webidl/Coordinates.webidl => dom/webidl/GeolocationCoordinates.webidl
rename : dom/webidl/Position.webidl => dom/webidl/GeolocationPosition.webidl
rename : dom/webidl/PositionError.webidl => dom/webidl/GeolocationPositionError.webidl
extra : moz-landing-system : lando
2019-11-06 12:35:42 +00:00
Haik Aftandilian
49d42aa115 Bug 1580900 - Part 2 - Extend nsIOSPermissionRequest to support screen-recording permission requests r=spohl
Adds nsIOSPermissionRequest::MaybeRequestScreenCapturePermission() to allow front-end code to trigger a screen-recording permission request dialog.

Depends on D46093

Differential Revision: https://phabricator.services.mozilla.com/D46094

--HG--
extra : moz-landing-system : lando
2019-09-17 20:57:51 +00:00
Haik Aftandilian
86ab99c9a3 Bug 1580900 - Part 1 - Extend nsIOSPermissionRequest to support screen-recording permission checks r=spohl
Adds nsIOSPermissionRequest::GetScreenCapturePermissionState() to allow front-end code to check if Firefox has already been granted permission to record the screen.

Differential Revision: https://phabricator.services.mozilla.com/D46093

--HG--
extra : moz-landing-system : lando
2019-09-17 22:13:36 +00:00
Brindusan Cristian
59aed5845a Backed out changeset 493061169650 (bug 1529591) for build bustages on nsGeolocation.cpp. CLOSED TREE 2019-09-09 17:35:39 +03:00
Garvan Keeley
6036e744d1 Bug 1529591 - Check Mac system geo permission prior to showing request permission dialog. Differential Revision: https://phabricator.services.mozilla.com/D44881 r=jdm
Differential Revision: https://phabricator.services.mozilla.com/D45052

--HG--
extra : moz-landing-system : lando
2019-09-06 22:35:59 +00:00
Cosmin Sabou
ce32d49397 Backed out changeset 165672f8816b (bug 1529591) for geolocation related test failures. 2019-08-20 03:43:02 +03:00
Garvan Keeley
4f07263f06 Bug 1529591 - Check Mac system geo permission prior to showing request permission dialog. r=jdm
Differential Revision: https://phabricator.services.mozilla.com/D42540

--HG--
extra : moz-landing-system : lando
2019-08-19 20:42:17 +00:00
Dorel Luca
fe2cdfe8d4 Backed out changeset 7510c8179dff (bug 1529591) for OSX build bustage 2019-06-27 09:42:16 +03:00
Garvan Keeley
3669a7eb8c Bug 1529591 - Check Mac system geo permission prior to showing request permission dialog. r=jdm
Differential Revision: https://phabricator.services.mozilla.com/D36030

--HG--
extra : moz-landing-system : lando
2019-06-26 17:42:32 +00:00
Boris Zbarsky
5539520106 Bug 1535124 part 3. Add MOZ_CAN_RUN_SCRIPT annotations to geolocation code as needed. r=jdm
Differential Revision: https://phabricator.services.mozilla.com/D23521

--HG--
extra : moz-landing-system : lando
2019-03-20 18:05:09 +00:00
Sylvestre Ledru
0b4021fcad Bug 1521460 - Also reformat objective-c files r=mstange,ehsan,spohl
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D17139

--HG--
extra : histedit_source : 084f340503d2e1a2d9e1753c38b2c4ee9c7819f3
2019-01-21 18:18:16 +01:00
Sylvestre Ledru
265e672179 Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format
# ignore-this-changeset

--HG--
extra : amend_source : 4d301d3b0b8711c4692392aa76088ba7fd7d1022
2018-11-30 11:46:48 +01:00
Haik Aftandilian
ca8ba234b7 Bug 1487204 - Add platform support for calling authorizationStatusForMediaType and requestAccessForMediaType from JS r=spohl
Add a new interface nsIOSPermissionRequest for querying the
staus of access permissions for audio/video media capture and
requesting access to audio/video capture devices. Provides an
implementation for macOS 10.14 and a default implementation
(nsOSPermissionRequestBase) for earlier macOS versions and other
platforms. The default implementation always returns status
indicating access is allowed.

Differential Revision: https://phabricator.services.mozilla.com/D4601

--HG--
extra : moz-landing-system : lando
2018-09-06 16:06:15 +00:00
Jeff Gilbert
5b753da289 Bug 1470325 - s/FooBinding/Foo_Binding/g - r=qdot
MozReview-Commit-ID: JtTcLL5OPF0
2018-06-26 17:05:01 -07:00
Chris Peterson
201ee6decf Bug 645325 - Part 2: Remove the two-second startup delay for the MLS fallback provider on Windows and macOS. r=garvank r=jdm
The Windows and macOS location providers used to start the MLS provider (with a two-second delay) and then call the operating system's location provider, letting them race. Currently, however, we only start the MLS fallback provider after the system provider returns an error, so the two-second startup delay is just wasted time.

I left the starup delay option in MLSFallback because the Linux gpsd provider still uses it to race MLS with the system's GPS provider.

MozReview-Commit-ID: 3ZFeF1g6PoG

--HG--
extra : rebase_source : ae7032fb86b9015686c160dd990dcb264fff742a
extra : source : 90473706de0fc0af9866b05768b7700de0fd552f
2018-02-28 23:59:03 -08:00
Chris Peterson
9294aea52b Bug 645325 - Part 1: Use NaN to indicate unset optional coordinate values returned from the location providers. r=garvank r=jdm
nsGeoPositionCoords will convert NaNs returned from the location providers to null properties of the JavaScript Coordinates object.

MozReview-Commit-ID: Cmuf2aO0ClD

--HG--
extra : rebase_source : cbccead609ff53a3e5f1bcf7698eba7382220ce5
extra : source : b4ced6e2bab2d17cf642f5850bda5998f635fccb
2018-02-25 23:35:16 -08:00
Boris Zbarsky
c53f7f15b1 Bug 1466213 part 2. Remove nsIDOMGeoPositionError. r=qdot 2018-06-01 22:35:44 -04:00
Andi-Bogdan Postelnicu
aaf2063029 Bug 1317241 - Replace default bodies of special member functions with = default in dom/. r=baku
MozReview-Commit-ID: 12AHOhrpaNO

--HG--
extra : rebase_source : 7881277a13fe7389b95635ee9b94f1686f56d142
2016-11-14 11:40:37 +02:00
Doug Turner
e6efd583f7 Bug 1296125 - Geolocation timestamp sometimes uses microseconds instead of milliseconds. r=kchen
The MacOS and Windows native location providers were using PR_Now() which returns microseconds. The spec says it should be milliseconds.

--HG--
extra : rebase_source : d73752c0b3b1f21294260cef3b214c78e35ad45b
2016-08-23 13:59:00 -04:00
Nicholas Nethercote
a54e0fd248 Bug 1295053 (part 9) - Don't use NS_METHOD for dom/ functions. r=froydnj.
These don't need __stdcall on Win32.

--HG--
extra : rebase_source : 93aa569789dab107137c5493d1c86acc6701329b
2016-08-16 12:12:30 +10:00
Tom Tromey
5538d692d3 Bug 1286877 - do not set c-basic-offset for python-mode; r=gps
This removes the unnecessary setting of c-basic-offset from all
python-mode files.

This was automatically generated using

    perl -pi -e 's/; *c-basic-offset: *[0-9]+//'

... on the affected files.

The bulk of these files are moz.build files but there a few others as
well.

MozReview-Commit-ID: 2pPf3DEiZqx

--HG--
extra : rebase_source : 0a7dcac80b924174a2c429b093791148ea6ac204
2016-07-14 10:16:42 -06:00
Jonathan Watt
b15368cfcb Bug 1279451 - Remove a lot of unnecessary includes of nsAutoPtr.h. rs=sparky 2016-06-07 21:10:18 +01:00
Doug Turner
1a1dd4f3c7 Bug 1253159 - Remove locationUpdatePending and restore request timeout. r=jdm 2016-03-02 21:48:00 -05:00
Nathan Froyd
01583602a9 Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout.  The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.

CLOSED TREE makes big refactorings like this a piece of cake.

 # The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
    xargs perl -p -i -e '
 s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
 s/nsRefPtr ?</RefPtr</g;   # handle declarations and variables
'

 # Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h

 # Handle nsRefPtr.h itself, a couple places that define constructors
 # from nsRefPtr, and code generators specially.  We do this here, rather
 # than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
 # things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
     mfbt/nsRefPtr.h \
     xpcom/glue/nsCOMPtr.h \
     xpcom/base/OwningNonNull.h \
     ipc/ipdl/ipdl/lower.py \
     ipc/ipdl/ipdl/builtin.py \
     dom/bindings/Codegen.py \
     python/lldbutils/lldbutils/utils.py

 # In our indiscriminate substitution above, we renamed
 # nsRefPtrGetterAddRefs, the class behind getter_AddRefs.  Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
    xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'

if [ -d .git ]; then
    git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
    hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi

--HG--
rename : mfbt/nsRefPtr.h => mfbt/RefPtr.h
2015-10-18 01:24:48 -04:00
Nicholas Nethercote
f44287005f Bug 1198334 (part 1) - Replace the opt-in FAIL_ON_WARNINGS with the opt-out ALLOW_COMPILER_WARNINGS. r=glandium.
The patch removes 455 occurrences of FAIL_ON_WARNINGS from moz.build files, and
adds 78 instances of ALLOW_COMPILER_WARNINGS. About half of those 78 are in
code we control and which should be removable with a little effort.

--HG--
extra : rebase_source : 82e3387abfbd5f1471e953961d301d3d97ed2973
2015-08-27 20:44:53 -07:00
Andrew McCreight
9e8f4b219e Bug 1152551, part 2 - Fix mode lines in dom/. r=jst 2015-05-03 15:32:37 -04:00
Garvan Keeley
8f8b1e0ac7 Bug 1134019 - Extract MLS fallback to its own class for reuse - r=jdm 2015-02-27 19:15:32 -05:00
Garvan Keeley
4bb544a83c Bug 1131430 - Added telemetry to count CoreLocation vs. MLS results. r=jdm 2015-02-10 10:45:36 -05:00
Chris Peterson
d5537ab3e0 Bug 1130828 - Fix clang -Widiomatic-parentheses and -Wsemicolon-before-method-body warnings. r=smichaud 2015-02-06 00:09:39 -08:00
Garvan Keeley
c83256046f Bug 1129696 - Added missing retain/release on NSTimer. r=dougt 2015-02-04 16:00:00 +01:00
Garvan Keeley
9712cec06b Bug 1121497 - Need to stop location manager before start, r=dougt 2015-01-14 20:02:00 +01:00
Garvan Keeley
f7de6cc231 Bug 1121265 - Fallback to MLS Provider, r=dougt
On CoreLocation error, fallback to MLS network provider, which
will report GeoIP, or error.
2015-01-27 08:26:00 +01:00
Carsten "Tomcat" Book
abce1f099c Backed out changeset 6f507c077b24 (bug 1121265) for OS X static analysis build Bustage on a CLOSED TREE 2015-01-27 09:18:03 +01:00
Carsten "Tomcat" Book
ece1bd7793 Backed out changeset cc42921d3f36 (bug 1121497) 2015-01-27 09:16:54 +01:00
Garvan Keeley
f731776422 Bug 1121497 - Need to stop location manager before start, r=dougt 2015-01-14 20:02:00 +01:00
Garvan Keeley
ecf60f1a1f Bug 1121265 - Fallback to MLS Provider. r=dougt
On CoreLocation error, fallback to MLS network provider, which
will report GeoIP, or error.
2015-01-26 10:37:00 +01:00
Birunthan Mohanathas
e0902bd50d Bug 1058101 - Move dom/src/geolocation/ into dom/. r=mccr8
--HG--
rename : dom/src/geolocation/moz.build => dom/geolocation/moz.build
rename : dom/src/geolocation/nsGeoPosition.cpp => dom/geolocation/nsGeoPosition.cpp
rename : dom/src/geolocation/nsGeoPosition.h => dom/geolocation/nsGeoPosition.h
rename : dom/src/geolocation/nsGeoPositionIPCSerialiser.h => dom/geolocation/nsGeoPositionIPCSerialiser.h
rename : dom/src/geolocation/nsGeolocation.cpp => dom/geolocation/nsGeolocation.cpp
rename : dom/src/geolocation/nsGeolocation.h => dom/geolocation/nsGeolocation.h
2014-08-30 21:43:45 -07:00
Mike Hommey
bc5d6801bb Bug 1041860 - Avoid setting FINAL_LIBRARY to libraries that further use a FINAL_LIBRARY. r=mshal 2014-07-23 08:37:51 +09:00
Birunthan Mohanathas
5f1fde8824 Bug 900908 - Part 3: Change uses of numbered macros in nsIClassInfoImpl.h/nsISupportsImpl.h to the variadic variants. r=froydnj 2014-04-27 03:06:00 -04:00
Doug Turner
23d2cb13fd Bug 928217 - Remove IsCoreLocationAvailable() method because it does the wrong thing. r=smichaud@pobox.com 2014-03-16 19:54:04 -07:00
Guilherme Gonçalves
390ccfc5fe Bug 732923 - CoreLocation provider shouldn't implement nsIGeolocationUpdate. r=jdm 2014-01-08 16:04:21 -05:00
Mike Hommey
2812d11fce Bug 939632 - Remove LIBRARY_NAME for leaf libraries. r=gps
Landing on a CLOSED TREE.
2013-11-19 11:50:54 +09:00
Mike Hommey
e06d795c71 Bug 939074 - Remove most LIBXUL_LIBRARY. rs=gps 2013-11-19 11:48:10 +09:00
Mike Hommey
e80e877ab7 Bug 939044 - Remove most definitions of MODULE. r=mshal 2013-11-19 11:47:39 +09:00
Mike Hommey
ffe0380912 Bug 935881 - Use FINAL_LIBRARY for all (fake) libraries that end up linked in a single other library. r=gps 2013-11-19 11:47:14 +09:00
Ms2ger
4fe918bb7b Bug 931459 - Move LOCAL_INCLUDES to moz.build in dom/; r=mshal 2013-11-11 09:04:11 +01:00
Steven Michaud
44534e0eb8 Bug 929686 - Stopgap patch to allow building of CoreLocation stuff with 10.9 SDK. r=spohl 2013-10-24 21:10:10 -05:00
Mike Hommey
b000a846c2 Bug 929905 - Consolidate sources in moz.build. r=gps 2013-10-25 08:23:05 +09:00
Brian O'Keefe
9c9d71fddb Bug 928709 - Convert chromium-config.mk to mozbuild, r=mshal 2013-10-02 13:17:55 -04:00