Commit Graph

583 Commits

Author SHA1 Message Date
David Keeler
27aafee2a1 bug 1332681 - part 4/4 - convert authentication.getAssertion to credentials.get r=jcj,qdot
MozReview-Commit-ID: 13EqlQVQApx
2017-05-23 14:55:10 -07:00
David Keeler
343544d847 bug 1332681 - part 3/4 - convert authentication.makeCredential to credentials.create r=jcj,qdot
MozReview-Commit-ID: 1xfsQqGCEcl
2017-05-22 17:09:49 -07:00
Kearwood Gilbert
a73a762350 Bug 1362213 - Implement chrome-only API to manage VR sessions r=daoshengmu,kanru,smaug
- Added new chrome-only webidl methods to be used by browser UI and WebExtensions
- Implemented bitmasked group visibility for VR sessions to enable switching
  between chrome and regular content presentations.
- Implemented throttling mechanism to avoid runaway, unthrottled render loops
  for VR sessions that are hidden by group visibility bitmasks or due to
  lower level platform VR events, such as during the Oculus
  "Health and Safety Warning".
- Simplified the PVRManager IPC protocol while extending it to support
  VR session groups and later WebVR content performance profiling API's.
- Removed the last WebVR related sync IPC call.


MozReview-Commit-ID: BMEIPyYeEbq
2017-05-08 16:01:36 -07:00
Chris Pearce
3d2ac6a0c2 Bug 1334111 - Move MediaKeySystemConfig to-string helper to MediaKeySystemAccess. r=gerald
This will enable us to re-use the logging code in MediaKeySystemAccess to log
the configuration we end up instantiating the MediaKeySystemAccess with.


MozReview-Commit-ID: AMnauhMLJ1R
2017-05-29 10:34:38 +12:00
Andrea Marchesini
1571f882e9 Bug 1364925 - navigator.sendBeacon should not force application/octet-stream as content-type for ArrayBuffer, r=smaug 2017-05-17 14:25:20 +02:00
Chris Pearce
a66812201c Bug 1361000 - Log a deprecation warning to the web console upon use of EME in an insecure context. r=bz
Preliminary telemetry indicated 15% of users of EME are in an insecure
context. We'd better log a warning to the web console to inform authors
that their sites will stop working, rather than just breaking them!

MozReview-Commit-ID: CZasdbcC1jS
2017-05-01 16:55:03 +12:00
Phil Ringnalda
bd21e3e649 Backed out changeset c733f9dbec85 (bug 1361000) for -werror bustage
CLOSED TREE

MozReview-Commit-ID: 9pHl3OuzOTs
2017-05-01 23:02:40 -07:00
Chris Pearce
4463c99f19 Bug 1361000 - Log a deprecation warning to the web console upon use of EME in an insecure context. r=bz
Preliminary telemetry indicated 15% of users of EME are in an insecure
context. We'd better log a warning to the web console to inform authors
that their sites will stop working, rather than just breaking them!

MozReview-Commit-ID: CZasdbcC1jS
2017-05-01 16:55:03 +12:00
Chris Pearce
e20dd8855e Bug 1360438 Add telemetry to report whether navigator.requestMediaKeySystemAccess() was called in a secure context. r=bz,francois
The EME spec requires EME to be only usuable from a secure context, for example
from an origin served over HTTPS. We still don't enforce this, and Chrome is
going to start enforcing this in M58. So to inform our decision as to when to
start enforcing this, it would be useful to know how many sites we'd break if
we started enforcing this.

So this patch adds telemetry to tell us the how often EME is used on secure
and non-secure contexts.

MozReview-Commit-ID: BKS5iY4V3wK
2017-04-28 17:46:30 +12:00
Mike Hommey
edfca7916a Bug 1357649 - Remove remnants of AudioChannelManager. r=bz 2017-04-19 15:55:28 +09:00
Kearwood Gilbert
f4f082d504 Bug 1351048 - Do not load VR libraries until necessary, Oculus cleanup r=daoshengmu
- I have refactored the Oculus and OpenVR interfaces in gfx/vr
  so that initialization of the VR libraries only happens once
  a WebVR site is detected.
- The Oculus interface has been cleaned up and updated to unload the Oculus
  runtime library when not in use.
- The browser can now re-connect to Oculus home if it was restarted, without
  restarting the browser.
- We no longer submit a black frame at the end of VR presentation, as this
  appears to be handled by the latest Oculus runtime automatically.
- As we only hold on to the Oculus runtime when needed, this should
  reduce the likelihood of the GPU process being killed by the Oculus
  software updater.

MozReview-Commit-ID: AyWeD4CxXLD
2017-03-30 09:35:49 -04:00
Ehsan Akhgari
d4b3a596ae Bug 1352030 - Don't assert that a null docshell cannot be null; r=baku 2017-03-30 10:37:47 -04:00
Ehsan Akhgari
647178393f Bug 1347425 - Part 1: Move site-specific Navigator.userAgent overrides to a more efficient C++ implementation; r=baku,schien
Necko computes this information in order to set the User-Agent header in
the parent process.  This header is set on all outgoing requests, and
therefore in the content process we can easily copy the value of this
header from the document channel object instead of the inefficient sync
IPC that currently happens in order to access the JavaScript
implementation living in the parent process.
2017-03-28 22:10:33 -04:00
Thomas Nguyen
f1d6f57eec Bug 1192940 - Support referrer policy in sendBeacon r=Ehsan
MozReview-Commit-ID: FEyqInOkiT6
2017-03-17 11:53:16 +08:00
Andrea Marchesini
c618efd482 Bug 1299500 - Get rid of DeviceStorage API - part 4 - Navigator, r=ehsan 2017-03-08 20:15:44 +01:00
Andrea Marchesini
69e47e72fb Bug 1299500 - Get rid of DeviceStorage API - part 3 - DeviceStorageAreaListener, r=ehsan 2017-03-08 20:15:44 +01:00
Wei-Cheng Pan
7a678cdad2 Bug 1310127 - Part 17: Use MOZ_MUST_USE in netwerk/protocol/http r=smaug
MozReview-Commit-ID: 5gvVZtsa3yS
2016-12-20 11:49:32 +08:00
Daosheng Mu
efa5e454ad Bug 1323328 - Part 1: Implement VRServiceTest for helping insert VR test data; r=baku,kip
MozReview-Commit-ID: 9IoUL6MEVGj
2017-03-01 18:33:28 +08:00
Andrea Marchesini
5f1cbea616 Bug 1337722 - Use BufferSource in webIDL, r=qdot 2017-02-09 10:37:54 +01:00
Boris Zbarsky
a99f28770d Bug 1335368 part 16. Remove the use of IsCallerChrome in GetUserMedia. r=jib 2017-02-01 15:43:38 -05:00
Andrea Marchesini
d82cd5dbb5 Bug 1329298 - Part 3 - Use application/octet-stream for arrayBuffer in sendBeacon, r=smaug 2017-01-24 12:14:27 +01:00
Andrea Marchesini
2ff25e1c30 Bug 1329298 - Part 2 - use nsIXHRSendable instead Blob/FormData/URLSearchParams, r=smaug 2017-01-24 12:14:00 +01:00
Andrea Marchesini
cef12d2d65 Bug 1329298 - Part 1 - Unify body extraction in Fetch/Beacon/XHR, r=smaug 2017-01-24 12:13:31 +01:00
Bevis Tseng
6e8fe40eda Bug 1314833 - Part 3: Factor out AbstractThread::MainThread() used in FlyWeb. r=billm
MozReview-Commit-ID: 4wVykPwuDS9
2016-11-22 14:15:04 +08:00
J.C. Jones
2e705f6864 Bug 1309284 - Implement W3C Web Authentication JS API [part 1] r=keeler,qdot
This patch implements the W3C Web Authentication API from
https://www.w3.org/TR/webauthn/, currently the 28 September 2016
working draft.

It utilizes a tentative binding of the U2F NSS Soft Token to provide
authentication services while waiting on Bug 1245527 to support USB HID-based
U2F tokens. This binding is not in the specification yet, so it should be
considered an experiment to help the specification move fowrard.

There are also a handful of deviations from the specification's WebIDL, which
are annotated with comments in WebAuthentication.webidl.

There are no tests in this commit; they are in Part 4 of this commit series.
There is a small script online at https://webauthn.bin.coffee/ to exercise this
code, but it doesn't do any automated checks.

There are also a handful of TODOS:
1) The algorithm to relax the same-origin restriction is in Part 3.
2) The use of AlgorithmIdentifier and having a way to coerce an object to a
   string is still missing.
3) Timeouts and deadlines aren't there, and are pending reworking how
   the nsIU2FToken interface works.

UPDATED:
- Address qdot, keeler review comments (thanks!)
- Address more qdot, keeler review comments (thanks!)

MozReview-Commit-ID: JITapI38iOh
2017-01-09 13:22:49 -07:00
Olli Pettay
3898f7d882 Bug 1326507, remove NS_IMPL_CYCLE_COLLECTION_TRAVERSE_SCRIPT_OBJECTS, r=mccr8 2017-01-03 21:47:55 +02:00
Daosheng Mu
f565e6c7c7 Bug 1315896 - Part 1: Remove MOZ_GAMEPAD in DOM API; r=qdot
MozReview-Commit-ID: IgvMuXlE5BS
2016-12-08 12:59:06 -10:00
Boris Zbarsky
7ae24d74fb Bug 1324035 part 2. Stop using nsContentUtils::ThreadSafeIsCallerChrome in nsMimeTypeArray. r=qdot 2016-12-17 00:25:52 -05:00
Andrea Marchesini
f1832f79c3 Bug 1323172 - Expose NetworkInformation interface to workers, r=bkelly 2016-12-16 08:50:23 +01:00
Carsten "Tomcat" Book
c6dbdcb517 Backed out changeset b7638db235fd (bug 1323172) for test bustage in dom/workers/test/test_navigator.html on a CLOSED TREE 2016-12-15 17:06:22 +01:00
Andrea Marchesini
fe1d8208aa Bug 1323172 - Expose NetworkInformation interface to workers, r=bkelly 2016-12-15 14:36:47 +01:00
Carsten "Tomcat" Book
a6c9cc6ac1 Backed out changeset 8f305096ee45 (bug 1323172) for crashes in /test_tcpsocket_enabled_no_perm.html 2016-12-15 14:21:09 +01:00
Andrea Marchesini
e81f515626 Bug 1323172 - Expose NetworkInformation interface to workers, r=bkelly 2016-12-15 12:46:21 +01:00
Kearwood (Kip) Gilbert
5eb102bda8 Bug 1315543 - Eliminate UAF in Navigator::NotifyVRDisplaysUpdated,r=dmu 2016-11-24 11:50:43 -08:00
Ehsan Akhgari
3c90e541e0 Bug 1318210 - Remove nsIAppsService; r=baku 2016-11-17 10:41:36 -05:00
Ehsan Akhgari
917a5e63fc Bug 1310845 - Remove support for mozapp iframes; r=fabrice,jryans,baku,mcmanus
This patch removes support for mozapp iframes, leaving support for
mozbrowser iframes intact.  Some of the code has been rewritten in order
to phrase things in terms of mozbrowser only, as opposed to mozbrowser
or app.  In some places, code that was only useful with apps has been
completely removed, so that the APIs consumed can also be removed.  In
some places where the notion of appId was bleeding out of this API, now
we use NO_APP_ID.  Other notions of appId which were restricted to this
API have been removed.
2016-11-16 09:13:38 -05:00
Carsten "Tomcat" Book
84568d0bc2 Backed out changeset 7d1f7dd996f7 (bug 1310845) 2016-11-16 14:50:44 +01:00
Ehsan Akhgari
2d792bd2ad Bug 1310845 - Remove support for mozapp iframes; r=fabrice,jryans,baku,mcmanus
This patch removes support for mozapp iframes, leaving support for
mozbrowser iframes intact.  Some of the code has been rewritten in order
to phrase things in terms of mozbrowser only, as opposed to mozbrowser
or app.  In some places, code that was only useful with apps has been
completely removed, so that the APIs consumed can also be removed.  In
some places where the notion of appId was bleeding out of this API, now
we use NO_APP_ID.  Other notions of appId which were restricted to this
API have been removed.
2016-11-15 18:31:46 -05:00
Boris Zbarsky
2ec6a09bfd Bug 1317591. Get rid of IsCallerChrome usage in Navigator. r=bkelly
This restores the throwing behavior for .userAgent/appVersion/platform that was
incorrectly removed in bug 925847.
2016-11-15 17:44:43 -05:00
Michelangelo De Simone
ffa886adf2 Bug 1312800 - Remove dom/inputport. r=jst
MozReview-Commit-ID: BhvPV6lIWd3
2016-11-10 15:39:45 -08:00
Michelangelo De Simone
7afbfd107d Bug 1310864 - Remove DOM/(contacts, mobileconnection, icc) and related code. r=jst
MozReview-Commit-ID: Az4PTYFUKW8
2016-11-03 13:55:36 -07:00
Phil Ringnalda
4ef1e5747b Backed out changeset 27695ca9f8cd (bug 1310864) for failures in test_navigator_resolve_identity.html, test_bug707564.html, and test_dom_xrays.html 2016-10-31 19:39:06 -07:00
Michelangelo De Simone
3f59b09ce2 Bug 1310864 - Remove DOM/(contacts, mobileconnection, icc) and related code. r=jst
MozReview-Commit-ID: 2tWZc6hMtk5
2016-10-28 17:53:58 -07:00
Michelangelo De Simone
78f700fcaa Bug 1310020 - Remove DOM/bluetooth and related code. r=jst
MozReview-Commit-ID: IEhwzzBgb3x
2016-10-28 14:25:23 -07:00
Thomas Wisniewski
7a464739a9 Bug 1313533 - Have sendBeacon throw TypeErrors on invalid URLs to match a spec change. r=smaug 2016-10-28 18:42:52 -04:00
Chris Peterson
592df5c94c Bug 1313580 - Part 2: Remove telemetry probe for Battery API. r=baku 2016-10-28 18:41:55 -07:00
Michelangelo De Simone
77c0bd03a9 Bug 1309719 - Remove DOM/telephony and related code. r=ehsan+251051
MozReview-Commit-ID: Gv3vnyH4Csi
2016-10-12 15:19:09 -07:00
Jan Beich
77045c45f4 Bug 1312345 - Add missing header after bug 1277359. r=rillian
MozReview-Commit-ID: 7AH7mri8GBw
2016-10-24 08:02:12 +00:00
Michelangelo De Simone
679e26c089 Bug 1310859 - Remove DOM/nfc and related code. r=jst
MozReview-Commit-ID: FiS7uGytipN
2016-10-18 15:16:56 -07:00
Ralph Giles
2784821ed8 Bug 1277359 - Add chrome-only navigator.cpuHasSSE2 api. r=smaug
Make the host's support for SSE2 instructions available to
javascript so we can report that status in update pings.

MozReview-Commit-ID: FhWPjLxKRZy
2016-10-07 16:23:39 -07:00