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

106 Коммитов

Автор SHA1 Сообщение Дата
Paul Zuehlcke 6fdf832adc Bug 1492668 - Store temporary site permissions by base domain to mitigate permission notification spam r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D26704

--HG--
extra : rebase_source : 84cd5ee40755276ae9f6adeee9d6d06e65bb0607
extra : source : 1839a68aea956a9c69f305f1c6b493a20e72a2d7
2019-04-09 12:56:47 +00:00
Cosmin Sabou b956e6c5d1 Backed out changeset 1839a68aea95 (bug 1492668) for assertion failures on GMPParent.cpp. CLOSED TREE 2019-04-09 17:11:28 +03:00
Paul Zuehlcke 3badc9750a Bug 1492668 - Store temporary site permissions by base domain to mitigate permission notification spam r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D26704

--HG--
extra : moz-landing-system : lando
2019-04-09 12:56:47 +00:00
phoenixabhishek b66ed5ba6f Bug 1521919 - SitePermissions.get should check for nsIURI. r=johannh
functions now throw an error if the uri parameter is not an nsIURI.

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

--HG--
extra : moz-landing-system : lando
2019-03-27 05:40:23 +00:00
Dale Harvey dcb0f70ac2 Bug 1534219 - Only clear globally blocked permission on navigation. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D23844

--HG--
extra : moz-landing-system : lando
2019-03-22 10:57:16 +00:00
Ciure Andrei 559632b9f9 Backed out changeset 01cdf8342a49 (bug 1521919) for test_SitePermissions.js perma failures CLOSED TREE 2019-03-22 18:01:27 +02:00
phoenixabhishek 54f5273656 Bug 1521919 - SitePermissions.get should check for nsIURI. r=johannh
functions now throw an error if the uri parameter is not an nsIURI.

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

--HG--
extra : moz-landing-system : lando
2019-03-22 10:32:30 +00:00
Ian Moody 67fb55f3b9 Bug 1536653 - browser/ automated ESLint no-throw-literal fixes. r=Gijs
Result of running:
$ mach eslint -funix browser/ | sed -Ee 's/:.+//' - | xargs sed -E \
    -e 's/throw ((["`])[^"]+\2);/throw new Error(\1);/g' \
    -e 's/throw ((["`])[^"]+\2 \+ [^ ";]+);/throw new Error(\1);/g' \
    -e 's/throw \(/throw new Error(/g' -i

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

--HG--
extra : moz-landing-system : lando
2019-03-20 10:17:42 +00:00
Dale Harvey 2fc441d686 Bug 1522058 - Fix race in clearing global permissions. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D21381

--HG--
extra : moz-landing-system : lando
2019-02-28 22:03:48 +00:00
Dale Harvey 21b36d58c7 Bug 1522053 - Copy global permissions into new browsers r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D21279

--HG--
extra : moz-landing-system : lando
2019-02-28 20:17:18 +00:00
Myk Melez 25349d2601 Bug 1518283 - prohibit blank lines at the beginning and end of blocks (eslint padded-blocks) r=mossop,Standard8
Differential Revision: https://phabricator.services.mozilla.com/D17526

--HG--
extra : moz-landing-system : lando
2019-01-30 17:26:25 +00:00
Kris Maglione e930b89c34 Bug 1514594: Part 3 - Change ChromeUtils.import API.
***
Bug 1514594: Part 3a - Change ChromeUtils.import to return an exports object; not pollute global. r=mccr8

This changes the behavior of ChromeUtils.import() to return an exports object,
rather than a module global, in all cases except when `null` is passed as a
second argument, and changes the default behavior not to pollute the global
scope with the module's exports. Thus, the following code written for the old
model:

  ChromeUtils.import("resource://gre/modules/Services.jsm");

is approximately the same as the following, in the new model:

  var {Services} = ChromeUtils.import("resource://gre/modules/Services.jsm");

Since the two behaviors are mutually incompatible, this patch will land with a
scripted rewrite to update all existing callers to use the new model rather
than the old.
***
Bug 1514594: Part 3b - Mass rewrite all JS code to use the new ChromeUtils.import API. rs=Gijs

This was done using the followng script:

https://bitbucket.org/kmaglione/m-c-rewrites/src/tip/processors/cu-import-exports.jsm
***
Bug 1514594: Part 3c - Update ESLint plugin for ChromeUtils.import API changes. r=Standard8

Differential Revision: https://phabricator.services.mozilla.com/D16747
***
Bug 1514594: Part 3d - Remove/fix hundreds of duplicate imports from sync tests. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16748
***
Bug 1514594: Part 3e - Remove no-op ChromeUtils.import() calls. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16749
***
Bug 1514594: Part 3f.1 - Cleanup various test corner cases after mass rewrite. r=Gijs
***
Bug 1514594: Part 3f.2 - Cleanup various non-test corner cases after mass rewrite. r=Gijs

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

--HG--
extra : rebase_source : 359574ee3064c90f33bf36c2ebe3159a24cc8895
extra : histedit_source : b93c8f42808b1599f9122d7842d2c0b3e656a594%2C64a3a4e3359dc889e2ab2b49461bab9e27fc10a7
2019-01-17 10:18:31 -08:00
Dale Harvey 467ab77cab Bug 1517562 - Update media autoplay strings. r=flod,johannh
Differential Revision: https://phabricator.services.mozilla.com/D17131

--HG--
extra : moz-landing-system : lando
2019-01-23 20:52:53 +00:00
Dorel Luca cc75d50ac9 Backed out 2 changesets (bug 1520436) for browser-chrome failures in browser/base/content/test/permissions/browser_permissions.js
Backed out changeset 031aee32565c (bug 1520436)
Backed out changeset 1428560105ca (bug 1520436)
2019-01-23 19:35:50 +02:00
alwu b15aaa43f8 Bug 1520436 - part1 : add another tooltip text for non-promptable permission. r=flod,johannh
As non-promptable permission won't prompt user to ask for their approval, we should use different texts for the cancel button of promptable permissions.

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

--HG--
extra : moz-landing-system : lando
2019-01-23 16:21:48 +00:00
Ehsan Akhgari 4680510d84 Bug 1521598 - Part 1: Create a lazy preference getter for privacy.resistFingerprinting in SitePermissions; r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D17362

--HG--
extra : moz-landing-system : lando
2019-01-23 15:57:09 +00:00
shindli 42595cea0a Backed out 2 changesets (bug 1520436) for TV failures in browser/base/content/test/permissions/browser_permissions.js CLOSED TREE
Backed out changeset 4752a33b4c3a (bug 1520436)
Backed out changeset 10716b2122dc (bug 1520436)
2019-01-23 03:20:13 +02:00
alwu db9dcd21c8 Bug 1520436 - part1 : add another tooltip text for non-promptable permission. r=flod,johannh
As non-promptable permission won't prompt user to ask for their approval, we should use different texts for the cancel button of promptable permissions.

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

--HG--
extra : moz-landing-system : lando
2019-01-18 18:54:54 +00:00
Dale Harvey d13fedb2c6 Bug 1517526 - Let user allow blocked autoplay. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D17130

--HG--
extra : moz-landing-system : lando
2019-01-22 21:48:24 +00:00
alwu 294f48db51 Bug 1513039 - part12 : remove temporary allow. r=daleharvey,florian
After removing autoplay doorhanger, we won't have temporary allow.

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

--HG--
extra : moz-landing-system : lando
2019-01-07 18:42:55 +00:00
alwu 3e5817542c Bug 1513039 - part8 : remove autoplay prompt front-end codes. r=florian,daleharvey,flod
Remove autoplay prompt related js codes.

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

--HG--
extra : moz-landing-system : lando
2019-01-07 18:38:26 +00:00
alwu 242554622e Bug 1513039 - part1 : remove caching temporary autoplay permission. r=smaug,florian
We're going to remove all autoplay temporary permission related codes, so we don't need to cache it anymore.

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

--HG--
extra : moz-landing-system : lando
2019-01-07 18:29:10 +00:00
Alastor Wu 048a1e2282 Bug 1513681 - part4 : remove the logic about setting globally blocked in PermissionUI. r=daleharvey
We've handle showing the blocking icon in patch2, so we don't need to set block permission in PermissionUI.

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

--HG--
extra : moz-landing-system : lando
2019-01-04 18:36:20 +00:00
Bogdan Tara 6defca7262 Backed out 5 changesets (bug 1513681) for browser_autoplay_blocked.js failures CLOSED TREE
Backed out changeset d24ddb803761 (bug 1513681)
Backed out changeset 6f52b229d953 (bug 1513681)
Backed out changeset 79a78732c3ac (bug 1513681)
Backed out changeset d0a9422928ae (bug 1513681)
Backed out changeset 23b5a58e3bcc (bug 1513681)

--HG--
rename : toolkit/actors/AutoplayChild.jsm => toolkit/actors/AudibleAutoplayChild.jsm
2018-12-29 04:00:53 +02:00
alwu 52780efeaa Bug 1513681 - part4 : remove the logic about setting globally blocked in PermissionUI. r=daleharvey
We've handle showing the blocking icon in patch2, so we don't need to set block permission in PermissionUI.

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

--HG--
extra : moz-landing-system : lando
2018-12-28 22:24:13 +00:00
Ehsan Akhgari cc714b7adc Bug 1490811 - Part 1: Add a permission doorhanger for the storage access API r=baku,johannh
Differential Revision: https://phabricator.services.mozilla.com/D12467

--HG--
extra : moz-landing-system : lando
2018-11-26 21:23:16 +00:00
alwu 4515d99b29 Bug 1493766 - part1 : notify when temporary permission changed. r=johannh
Since temporary permissions are only stored in the front-end side, we can't know whether we have
allowed page to autoplay or not without sending a request. Therefore, we want to notify the back-end
side when the temporary permissions changed.

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

--HG--
extra : moz-landing-system : lando
2018-11-15 19:51:26 +00:00
ui.manish 16aea32a9f Bug 1225519 Permission in Page info should say Send notifications instead of Receive notifications r=lina 2018-09-03 22:55:03 +02:00
Mark Banner 691543ee89 Bug 1486739 - Add missing dangling commas in browser/, services/, taskcluster/ and toolkit/. r=mossop
Automatic changes by ESLint, except for manual corrections for .xml files.

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

--HG--
extra : moz-landing-system : lando
2018-08-31 05:59:17 +00:00
Dale Harvey d3a00966a3 Bug 1485953 - Fix label for permissions blocked globally. r=johannh
MozReview-Commit-ID: Jx902nO2RwZ
2018-08-27 15:32:22 +01:00
Dale Harvey 2de58add22 Bug 1477273 - Allow autoplay-media permission to be temporarily allowed. r=johannh
MozReview-Commit-ID: JlnH2f1KW3U

--HG--
extra : rebase_source : 13fb179fd85a47f1842b7715e82e92a30c4c4784
2018-08-03 16:00:55 +01:00
Dale Harvey 59e904f6cd Bug 1476555 - Show notification when autoplay blocked globally. r=cpearce,johannh
MozReview-Commit-ID: EI0GiaoBNqX

--HG--
extra : rebase_source : 0c6fb98047913fc50423532cc4c433c4627c5b06
2018-07-23 16:43:08 +01:00
Dale Harvey c9e5e7c554 Bug 1470082 - Change autoplay checkbox to combobox. r=cpearce,flod,johannh
MozReview-Commit-ID: E71TxvgfJlJ

--HG--
extra : rebase_source : 30ca63df77e48a44de4d3e90182440c3937ed32f
2018-06-29 14:14:33 +01:00
Dale Harvey 4696947f19 Bug 1461656 - Ask permission when site wants to autoplay media. r=flod,johannh
MozReview-Commit-ID: Fc2IUZK90eu

--HG--
extra : rebase_source : 197ea2f48d6ad07cf1cf3c0b572121bbb3d69252
2018-05-18 12:54:33 +01:00
Johann Hofmann 8c9cbbf7a1 Bug 1452361 - Don't reset to default permissions for cookies in page info. r=nhnt11
This commit makes the page info window treat cookie permissions a little
differently, to reflect that the "default" value for cookies is a combination
of two prefs that doesn't strictly map onto the ALLOW/SESSION/DENY system of
permissions.

I also added some more general pageinfo permissions tests.

MozReview-Commit-ID: 80vd61Rv867

--HG--
extra : rebase_source : c079e47afb74b2c4b7da271efcaf20dd45d1eb60
2018-05-09 15:39:26 +02:00
Chris Pearce ed8a27f065 Bug 1457048 - Ensure origins with autoplay-media exact permission can autoplay. r=bryce,johannh
Sites which are whitelisted should be allowed to autoplay audible media.
So check whether a HTMLMediaElement's owner doc's principal has an exact
"autoplay-media" permission. This ensures whitelisted origins can autoplay,
but sub-origins of whitelisted origins need their own permission.

MozReview-Commit-ID: 2IO5KIyplEa

--HG--
extra : rebase_source : 4a974aba0533bfbd5e9bb4c4c11d77d17a81db6d
2018-04-30 17:40:50 +12:00
Dorel Luca 48f71154c5 Backed out 2 changesets (bug 1457048) for multiple failures. CLOSED TREE
Backed out changeset a5d71f8bf413 (bug 1457048)
Backed out changeset cd70fc188bc8 (bug 1457048)
2018-05-03 08:39:36 +03:00
Chris Pearce d7eacf6ae5 Bug 1457048 - Ensure origins with autoplay-media exact permission can autoplay. r=bryce,johannh
Sites which are whitelisted should be allowed to autoplay audible media.
So check whether a HTMLMediaElement's owner doc's principal has an exact
"autoplay-media" permission. This ensures whitelisted origins can autoplay,
but sub-origins of whitelisted origins need their own permission.

MozReview-Commit-ID: 2IO5KIyplEa

--HG--
extra : rebase_source : 4d9afdec0caa4a82b53bedfd645f259a5c760e4d
2018-04-30 17:40:50 +12:00
Michael Kohler 4c381de5f6 Bug 1428306 - Remove browser.storageManager.enabled pref r=baku,johannh
MozReview-Commit-ID: GodyYuGxVD

--HG--
extra : rebase_source : 0ba78e764ea2c77ecaafcd35a502940ea1a37ac2
2018-04-09 20:46:45 +02:00
Prathiksha 68615f1636 Bug 1192927 - Remove plugins specific code and initialize the flash plugin row in Page Info and support flash in Site Identity. r=Felipe,johannh
MozReview-Commit-ID: 7CLfN4Io0ez

--HG--
extra : rebase_source : 8af54d5a3e4c35113f54b4fcc0ae05b47c0ce60a
2018-02-18 00:20:11 +05:30
Andreea Pavel 1eb964c5f3 Backed out changeset 8e5b1525be69 (bug 1192927) or failing testing\firefox-ui\tests\functional\security\test_no_certificate.py TestNoCertificate.test_no_certificate on a CLOSED TREE 2018-03-02 13:51:15 +02:00
Prathiksha 30e02230c8 Bug 1192927 - Remove plugins specific code and initialize the flash plugin row in Page Info and support flash in Site Identity. r=Felipe,johannh
MozReview-Commit-ID: 3KUbgencO3M

--HG--
extra : rebase_source : d8cbf97c6764fd3700a7cbc6d5dc19565b97bad1
2018-02-18 00:20:11 +05:30
Florian Quèze c714053d73 Bug 1433175 - scripted patch to replace Components.classes[, Components.interfaces.nsI, Components.utils. and Components.results. with Cc, Ci, Cu and Cr, r=Mossop. 2018-02-28 18:51:33 +01:00
Sebastian Hengst e6ed14057b merge mozilla-central to autoland on a CLOSED TREE
--HG--
extra : amend_source : d88824ea9bbe5e0298f0d64fd0e4cdedcbee342c
2018-02-24 03:07:44 +02:00
Florian Quèze 682b1ec3b2 Bug 1440284 - change this.EXPORTED_SYMBOLS back to var EXPORTED_SYMBOLS in JS modules, r=mccr8. 2018-02-23 20:50:01 +01:00
Prathiksha fb6210fff5 Bug 1433513 - Correctly handle new expire type (EXPIRE_POLICY) in the Site Identity panel and Page Info window. r=johannh
MozReview-Commit-ID: 7mfxnqI1C65

--HG--
extra : rebase_source : 6000e334bc43978a11a4d9de447445de2249933f
2018-02-14 00:16:53 +05:30
Kyle Machulis e4e6405a51 Bug 1201590 - WebMIDI device access permissions prompt implementation; r=baku,johannh
MozReview-Commit-ID: LxElgfdaiQs

--HG--
extra : rebase_source : 465202eccf7a514279201f71f6df2e727321f432
2017-11-15 11:13:12 -08:00
Kris Maglione 918ed6c474 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl

--HG--
extra : source : 12fc4dee861c812fd2bd032c63ef17af61800c70
extra : intermediate-source : 34c999fa006bffe8705cf50c54708aa21a962e62
extra : histedit_source : b2be2c5e5d226e6c347312456a6ae339c1e634b0
2018-01-29 15:20:18 -08:00
Cosmin Sabou 9a65a40178 Backed out 3 changesets (bug 1431533) for Android mochitest failures on testEventDispatcher on a CLOSED TREE
Backed out changeset a1eca62826a1 (bug 1431533)
Backed out changeset 34c999fa006b (bug 1431533)
Backed out changeset e2674287e57f (bug 1431533)
2018-01-30 07:17:48 +02:00
Kris Maglione 6476f95b13 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl

--HG--
extra : source : 12fc4dee861c812fd2bd032c63ef17af61800c70
2018-01-29 15:20:18 -08:00