Commit Graph

856 Commits

Author SHA1 Message Date
Bogdan Tara
90d5ea3baf Backed out changeset e4b17772c446 (bug 1653199) for test_featureList.html failures CLOSED TREE 2020-07-21 02:27:55 +03:00
Marcos Cáceres
3c8b4bcf22 Bug 1653199 - Add web-share permissions policy r=ckerschb
Adds "web-share" permissions policy

Differential Revision: https://phabricator.services.mozilla.com/D84121
2020-07-20 07:35:33 +00:00
Marcos Cáceres
ab5bb28c75 Bug 1640086 - Add "gamepad" permission policy as self r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D81651
2020-07-20 03:08:23 +00:00
Frederik Braun
617d3006d9 Bug 1366973: Rename security flags to not contain DATA anymore r=geckoview-reviewers,ckerschb,snorp
Differential Revision: https://phabricator.services.mozilla.com/D83490
2020-07-15 11:20:45 +00:00
Marcos Cáceres
cfc27b3015 Bug 1650287 - fix hacks link for .getGamepads() in insecure context r=saschanaz
the URL was wrong.

Differential Revision: https://phabricator.services.mozilla.com/D82160
2020-07-03 15:16:58 +00:00
Simon Giesecke
d2e71d5859 Bug 1648010 - Remove NS_NAMED_LITERAL_CSTRING and NS_NAMED_LITERAL_STRING macros. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D80631
2020-07-01 08:42:31 +00:00
Simon Giesecke
a69d79b6db Bug 1648010 - Replace uses of NS_LITERAL_STRING/NS_LITERAL_CSTRING macros by _ns literals. r=geckoview-reviewers,jgilbert,agi,hsivonen,froydnj
Differential Revision: https://phabricator.services.mozilla.com/D80860
2020-07-01 08:29:29 +00:00
Marcos Cáceres
3b21f1fed2 Bug 1591329 - Require secure context for getGamePads() and events r=kip
Differential Revision: https://phabricator.services.mozilla.com/D80444
2020-06-26 20:01:28 +00:00
Gabriel Luong
b322607da1 Bug 1647972 - Add a new PlatformOverride field onto BrowsingContext r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D81285
2020-06-26 14:17:08 +00:00
Jan-Ivar Bruaroey
2c47118c72 Bug 1579261 - Remove getUserMedia, getDisplayMedia & mozGetUserMedia cross-origin probes. r=ng
Differential Revision: https://phabricator.services.mozilla.com/D80769
2020-06-24 17:31:07 +00:00
Marcos Cáceres
b5b5b46f39 Bug 1643205 - Navigator's share() must consume user activation r=edgar
navigator.share() must consume the user activation.

Differential Revision: https://phabricator.services.mozilla.com/D79640
2020-06-23 09:14:47 +00:00
Jean-Yves Avenard
05adafa9ef Bug 1637500 - P2. Rename methods as they are not always dealing with "threads". r=froydnj
Before P1, GetCurrentThreadSerialEventTarget would have always returned the same data as NS_GetCurrentThread, making the comment incorrect Now it will properly return the running TaskQueue if any.

This change of name more clearly exposes what they are doing, as we aren't always dealing with threads directly; but a nsISerialEventTarget

Differential Revision: https://phabricator.services.mozilla.com/D80354
2020-06-23 05:05:36 +00:00
Edgar Chen
8d1ccd5a7c Bug 1646342 - Use StaticPrefs API to query dom.webshare.enabled preference; r=farre
Differential Revision: https://phabricator.services.mozilla.com/D79997
2020-06-22 13:38:22 +00:00
Csoregi Natalia
6b93e5d939 Backed out changeset 9ff60304993b (bug 1643205) for multiple failures e.g. share-consume-activation.https.html. CLOSED TREE 2020-06-17 16:46:49 +03:00
Marcos Cáceres
fed8e13e12 Bug 1643205 - Navigator's share() must consume user activation r=edgar
navigator.share() must consume the user activation.

Differential Revision: https://phabricator.services.mozilla.com/D79640
2020-06-17 10:18:41 +00:00
Jonathan Kingston
b3b89a321e Bug 1557386 - Pass correct CORS flags for Beacon requests r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D75757
2020-05-21 10:17:21 +00:00
Liang-Heng Chen
31a9af80f9 Bug 1631676 - Part 3: Use global cookie behavior getter; r=baku,johannh
Differential Revision: https://phabricator.services.mozilla.com/D74214
2020-05-19 14:48:07 +00:00
Sebastian Streich
cbf2d5ec37 Bug 1625845 - Remove GetUri in Navigator.cpp r=ckerschb,baku
Differential Revision: https://phabricator.services.mozilla.com/D68749
2020-05-19 14:51:40 +00:00
Sebastian Streich
51b02d872f Bug 1636148 - "BandAid" - Cast Remaining Callers To BasePrincipal r=ckerschb,geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D74248
2020-05-14 19:42:57 +00:00
Sebastian Hengst
c86e3ea05e Backed out changeset ea15e5bb899e (bug 1625845) for causing bug 1634056. a=backout 2020-05-12 18:48:22 +02:00
Simon Giesecke
5ab46b5ad0 Bug 1626570 - Improve handling of copying arrays in dom/base/. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D73625
2020-05-05 10:08:02 +00:00
Emilio Cobos Álvarez
9a8c41776d Bug 1635094 - Cleanup the ReferrerInfo code. r=ckerschb
The cast in InitWithNode is wrong. AsElement() asserts instead of
checking the flag, so we always pass an element (and if we didn't we'd
have type confusion problems). I audited the callers and we're fine.

Anyhow, always require an element, and add two convenience constructors
for C++ code.

Differential Revision: https://phabricator.services.mozilla.com/D73636
2020-05-04 18:50:20 +00:00
Cosmin Sabou
00d059a4c0 Backed out 2 changesets (bug 1635094) for build bustages on nsMacShellService.cpp. CLOSED TREE
Backed out changeset 0a2b0c6ea19a (bug 1635094)
Backed out changeset ead4f26f76ee (bug 1635094)
2020-05-04 20:04:06 +03:00
Emilio Cobos Álvarez
41fba10f7f Bug 1635094 - Cleanup the ReferrerInfo code. r=ckerschb
The cast in InitWithNode is wrong. AsElement() asserts instead of
checking the flag, so we always pass an element (and if we didn't we'd
have type confusion problems). I audited the callers and we're fine.

Anyhow, always require an element, and add two convenience constructors
for C++ code.

Differential Revision: https://phabricator.services.mozilla.com/D73636
2020-05-04 16:26:51 +00:00
Michael Kaply
c1b1fb4094 Bug 1415146 - Use getExposedWebLocales for navigator.language(s) if there are no accept languages. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D59565
2020-04-27 20:16:04 +00:00
Sebastian Streich
57aab726d1 Bug 1625845 - Remove GetUri in Navigator.cpp r=ckerschb,baku
Differential Revision: https://phabricator.services.mozilla.com/D68749
2020-04-28 14:52:09 +00:00
Oana Pop Rus
3024491fda Backed out changeset 7b46a8bfc6af (bug 1415146) for mochitest failures in test_navigator_language.html on a CLOSED TREE 2020-04-24 02:54:52 +03:00
Michael Kaply
81f6a57770 Bug 1415146 - Use getExposedWebLocales for navigator.language(s) if there are no accept languages. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D59565
2020-04-23 20:37:25 +00:00
Micah Tigley
f07d559e01 Bug 1500672 - Part 2: Make Navigator return MaxTouchPointsOverride when in RDM. r=bradwerth,smaug
Differential Revision: https://phabricator.services.mozilla.com/D70128
2020-04-14 13:40:43 +00:00
Andrea Marchesini
261fb240e1 Bug 1363541 - Modernize the PermissionManager - part 2 - PermissionDelegateHandler to mozilla::PermissionDelegateHandler, r=timhuang
Differential Revision: https://phabricator.services.mozilla.com/D69964
2020-04-10 08:36:46 +00:00
Razvan Maries
b27caba5da Backed out 6 changesets (bug 1363541) for perma failures. CLOSED TREE
Backed out changeset a775f6e9eb41 (bug 1363541)
Backed out changeset 9212bfd89eca (bug 1363541)
Backed out changeset bf41b0c139f6 (bug 1363541)
Backed out changeset aa7c6668b249 (bug 1363541)
Backed out changeset 9f413a8a47bb (bug 1363541)
Backed out changeset 827a9a2866bd (bug 1363541)
2020-04-10 11:31:20 +03:00
Andrea Marchesini
830ad3bc69 Bug 1363541 - Modernize the PermissionManager - part 2 - PermissionDelegateHandler to mozilla::PermissionDelegateHandler, r=timhuang
Differential Revision: https://phabricator.services.mozilla.com/D69964
2020-04-09 22:08:02 +00:00
Coroiu Cristina
6fe23b635a Backed out 6 changesets (bug 1363541) for browser-chrome failures at browser/base/content/test/performance/browser_startup_mainthreadio.js on a CLOSED TREE
Backed out changeset 947073be919f (bug 1363541)
Backed out changeset 1f397b686c11 (bug 1363541)
Backed out changeset d2ba944a47a3 (bug 1363541)
Backed out changeset 80d4d1f0c921 (bug 1363541)
Backed out changeset 9d6b9052f413 (bug 1363541)
Backed out changeset aeaa10789071 (bug 1363541)
2020-04-10 01:00:15 +03:00
Andrea Marchesini
d361a49ca4 Bug 1363541 - Modernize the PermissionManager - part 2 - PermissionDelegateHandler to mozilla::PermissionDelegateHandler, r=timhuang
Differential Revision: https://phabricator.services.mozilla.com/D69964
2020-04-09 13:25:56 +00:00
Kearwood Gilbert
e31005373e Bug 1614496 - Implement WebXR Core Module DOM Interfaces r=jgilbert,daoshengmu,webidl,smaug,baku,imanol
Implement DOM interfaces for the WebXR Core Module. Additional work to implement the WebXR Core Module are marked with TODO (Bug #) comments within the patch and must be landed before enabling the dom.vr.webxr.enabled flag.

Differential Revision: https://phabricator.services.mozilla.com/D62369
2020-04-06 19:33:32 +00:00
thomasmo
0481d65c57 Bug 1624009 - AddressSanitizer: SEGV /builds/worker/workspace/obj-build/dist/include/mozilla/MozPromise.h in mozilla::MozPromise<bool, mozilla::ipc::ResponseRejectReason, true>::ThenValue<mozilla::dom::Navigator::GetVRDisplays(mozilla... r=daoshengmu,kip,smaug
...::ErrorResult&)::$_2, mozilla::dom:

This change fixes a failfast where an outstanding permissions dialog can cause an IPC call to fail while determining whether to enumerate VR displays. This change now rejects the promise in that case.

Differential Revision: https://phabricator.services.mozilla.com/D68635
2020-04-01 10:38:18 +00:00
Kagami Sascha Rosylight
42ce4c2f3b Bug 1597268 - Remove Navigator#registerContentHandler r=annevk,smaug
Differential Revision: https://phabricator.services.mozilla.com/D69191
2020-04-01 21:20:50 +00:00
Bogdan Tara
fbd3c5a250 Backed out changeset e348ec7e3a2b (bug 1597268) for causing mass bustages CLOSED TREE 2020-04-01 22:27:41 +03:00
Kagami Sascha Rosylight
0c29758a4c Bug 1597268 - Remove Navigator#registerContentHandler r=annevk,smaug
Differential Revision: https://phabricator.services.mozilla.com/D69191
2020-04-01 18:41:49 +00:00
Kristen Wright
eb2645f201 Bug 1622111 - Convert three dom.vibrator.* prefs to static prefs r=njn
Converts dom.vibrator.enabled, dom.vibrator.max_vibrate_ms, and dom.vibrator.max_vibrate_list_len to static prefs. Removes their init function.

Differential Revision: https://phabricator.services.mozilla.com/D67183
2020-03-19 00:54:25 +00:00
Stefan Hindli
28db9d8630 Backed out 9 changesets (bug 1622111) for causing mochitest failures in dom/animation/test/mozilla/test_restyles.html CLOSED TREE
Backed out changeset c244160797f8 (bug 1622111)
Backed out changeset dd9209f6bd8b (bug 1622111)
Backed out changeset d694c9e7061f (bug 1622111)
Backed out changeset 486aae809f6d (bug 1622111)
Backed out changeset 709266168c41 (bug 1622111)
Backed out changeset ca0d47bb86a8 (bug 1622111)
Backed out changeset caa735c8bb91 (bug 1622111)
Backed out changeset 12397711ab25 (bug 1622111)
Backed out changeset b66002fd1480 (bug 1622111)
2020-03-19 02:47:51 +02:00
Kristen Wright
0dac2e2cc0 Bug 1622111 - Convert three dom.vibrator.* prefs to static prefs r=njn
Converts dom.vibrator.enabled, dom.vibrator.max_vibrate_ms, and dom.vibrator.max_vibrate_list_len to static prefs. Removes their init function.

Differential Revision: https://phabricator.services.mozilla.com/D67183
2020-03-18 21:10:56 +00:00
Ehsan Akhgari
ad14267240 Bug 1620322 - Part 8: Rename AntiTrackingCommon to ContentBlocking; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D65821
2020-03-09 23:36:39 +00:00
Ehsan Akhgari
a4aaf9e877 Bug 1620322 - Part 2: Refactor the code for content blocking events and notifications out of AntiTrackingCommon.cpp; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D65743
2020-03-09 23:36:37 +00:00
Narcis Beleuzu
422807b8e0 Backed out 8 changesets (bug 1620322) for bustages on nsContentSink.cpp . CLOSED TREE
Backed out changeset f41739c64dff (bug 1620322)
Backed out changeset be942a7f329e (bug 1620322)
Backed out changeset a916987c7c71 (bug 1620322)
Backed out changeset ead3484ffb5f (bug 1620322)
Backed out changeset 4e1e8b9afa1a (bug 1620322)
Backed out changeset 473bba698e5a (bug 1620322)
Backed out changeset 0e5e5d41597d (bug 1620322)
Backed out changeset 31b24d79db3d (bug 1620322)
2020-03-09 22:18:36 +02:00
Ehsan Akhgari
d7d656e700 Bug 1620322 - Part 8: Rename AntiTrackingCommon to ContentBlocking; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D65821
2020-03-09 18:12:40 +00:00
Ehsan Akhgari
0e484cb976 Bug 1620322 - Part 2: Refactor the code for content blocking events and notifications out of AntiTrackingCommon.cpp; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D65743
2020-03-09 18:12:26 +00:00
Noemi Erli
f3729f347c Backed out 8 changesets (bug 1620322) for causing bustages in ContentBlockingLog.cpp CLOSED TREE
Backed out changeset 3dcf513e36cb (bug 1620322)
Backed out changeset 46714855ce1d (bug 1620322)
Backed out changeset 0eb2b5f7322f (bug 1620322)
Backed out changeset 72d640fa0740 (bug 1620322)
Backed out changeset 4533bb4e5177 (bug 1620322)
Backed out changeset 659270edd419 (bug 1620322)
Backed out changeset 6802c18b1914 (bug 1620322)
Backed out changeset 60ff34db9f15 (bug 1620322)
2020-03-09 19:19:41 +02:00
Ehsan Akhgari
eaebe39024 Bug 1620322 - Part 8: Rename AntiTrackingCommon to ContentBlocking; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D65821
2020-03-09 10:23:07 +00:00
Ehsan Akhgari
27fb2c35e0 Bug 1620322 - Part 2: Refactor the code for content blocking events and notifications out of AntiTrackingCommon.cpp; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D65743
2020-03-09 10:16:54 +00:00