Commit graph

182 commits

Author SHA1 Message Date
Paul Zuehlcke
66fe5653ff Bug 1596897 - Moved permission list from site identity to separate permission panel. r=johannh
- Added a new permission panel managed by the gPermissionPanel object
- Updated identity-box to separate identity and permission section

Differential Revision: https://phabricator.services.mozilla.com/D99892
2021-02-05 13:40:35 +00:00
Narcis Beleuzu
868935867c Backed out 2 changesets (bug 1596897) for bc failures on browser_search_discovery.js
Backed out changeset 635972f169e7 (bug 1596897)
Backed out changeset a84b667007e2 (bug 1596897)
2021-01-30 04:01:21 +02:00
Paul Zuehlcke
6445d181dc Bug 1596897 - Moved permission list from site identity to separate permission panel. r=johannh
- Added a new permission panel managed by the gPermissionPanel object
- Updated identity-box to separate identity and permission section

Differential Revision: https://phabricator.services.mozilla.com/D99892
2021-01-29 16:06:08 +00:00
Brindusan Cristian
e117dc4695 Backed out 2 changesets (bug 1596897) for mochitest failures at browser_setIgnoreCertificateErrors.js. CLOSED TREE
Backed out changeset 00c45a405129 (bug 1596897)
Backed out changeset 61304ccbaada (bug 1596897)
2021-01-28 21:53:46 +02:00
Paul Zuehlcke
868eb8a1f8 Bug 1596897 - Moved permission list from site identity to separate permission panel. r=johannh
- Added a new permission panel managed by the gPermissionPanel object
- Updated identity-box to separate identity and permission section

Differential Revision: https://phabricator.services.mozilla.com/D99892
2021-01-28 18:00:44 +00:00
Jared Wein
a612b94285 Bug 1684171 - Use the long format for months to improve readability and to match the text in the tracking protection toast. r=ewright
Differential Revision: https://phabricator.services.mozilla.com/D100446
2021-01-08 21:41:03 +00:00
Dimi Lee
d56e33dd5e Bug 1669731 - P1. Rename STATE_UNBLOCKED_UNSAFE_CONTENT to STATE_UNBLOCKED_TRACKING_CONTENT r=timhuang
unsafe content is for Safe Browsing(phishing, malware, etc), we should use tracking content instead.

Differential Revision: https://phabricator.services.mozilla.com/D93269
2020-10-14 09:16:39 +00:00
Nihanth Subramanya
af57352161 Bug 1662362 - Treat shimmed resources as blocked in protections panel category subviews. r=timhuang
Differential Revision: https://phabricator.services.mozilla.com/D89814
2020-09-11 13:33:19 +00:00
Gijs Kruitbosch
45c61eb36b Bug 1652614 - update the initial 'Tracking Content' state correctly when the protection panel shows, r=nhnt11
Differential Revision: https://phabricator.services.mozilla.com/D83675
2020-07-16 14:32:05 +00:00
Sebastian Streich
38264715e9 Bug 1633710 - Move js uri.host to principal r=ckerschb,preferences-reviewers,ntim
Differential Revision: https://phabricator.services.mozilla.com/D73242
2020-07-13 18:35:01 +00:00
Gijs Kruitbosch
387e23f588 Bug 1634032 - use a template to wrap the protections popup while it's not needed, r=nhnt11
This also only updates per-category block information in the protections panel
while it's open or when it's about to be shown. To do this, the patch:

1. changes the `categoryItem` getter on all blockers to avoid memo'izing null when the popup is unavailable;
2. changes the `updateCategoryItem` method on all blockers to deal with `categoryItem` being null;
3. stops calling `updateCategoryItem` from the blockers' `init` method, instead delegating this responsibility
   to gProtectionsHandler doing so when the popup first becomes available. Note that we still need (2) because
   pref changes can trip us calling into `updateCategoryItem` anyway. We cannot avoid instantiating the pref
   getters because they are relied on by some of the `isDetected` and `isBlocking` implementations.
4. reorganizes `onContentBlockingEvent` so it updates the icon, reports telemetry, and updates internal state -
   but only updates the panel if it's visible, and otherwise simply memorizes the last event (which is just
   a number!);
5. ensures showing the panel updates the panel's category data based on the memorized state from (4).

Differential Revision: https://phabricator.services.mozilla.com/D81926
2020-07-10 21:32:09 +00:00
Bogdan Tara
78b75c1196 Backed out changeset add40bc29da9 (bug 1634032) for browser_controlCenter.js failures CLOSED TREE 2020-07-10 21:10:42 +03:00
Gijs Kruitbosch
ff94b379c5 Bug 1634032 - use a template to wrap the protections popup while it's not needed, r=nhnt11
This also only updates per-category block information in the protections panel
while it's open or when it's about to be shown. To do this, the patch:

1. changes the `categoryItem` getter on all blockers to avoid memo'izing null when the popup is unavailable;
2. changes the `updateCategoryItem` method on all blockers to deal with `categoryItem` being null;
3. stops calling `updateCategoryItem` from the blockers' `init` method, instead delegating this responsibility
   to gProtectionsHandler doing so when the popup first becomes available. Note that we still need (2) because
   pref changes can trip us calling into `updateCategoryItem` anyway. We cannot avoid instantiating the pref
   getters because they are relied on by some of the `isDetected` and `isBlocking` implementations.
4. reorganizes `onContentBlockingEvent` so it updates the icon, reports telemetry, and updates internal state -
   but only updates the panel if it's visible, and otherwise simply memorizes the last event (which is just
   a number!);
5. ensures showing the panel updates the panel's category data based on the memorized state from (4).

Differential Revision: https://phabricator.services.mozilla.com/D81926
2020-07-10 15:28:58 +00:00
Butkovits Atila
db420f7f46 Backed out changeset 71ca1673171d (bug 1634032) for assertion failure on DOMJSProxyHandler.cpp. CLOSED TREE 2020-07-10 01:36:16 +03:00
Gijs Kruitbosch
6084fa2442 Bug 1634032 - use a template to wrap the protections popup while it's not needed, r=nhnt11
This also only updates per-category block information in the protections panel
while it's open or when it's about to be shown. To do this, the patch:

1. changes the `categoryItem` getter on all blockers to avoid memo'izing null when the popup is unavailable;
2. changes the `updateCategoryItem` method on all blockers to deal with `categoryItem` being null;
3. stops calling `updateCategoryItem` from the blockers' `init` method, instead delegating this responsibility
   to gProtectionsHandler doing so when the popup first becomes available. Note that we still need (2) because
   pref changes can trip us calling into `updateCategoryItem` anyway. We cannot avoid instantiating the pref
   getters because they are relied on by some of the `isDetected` and `isBlocking` implementations.
4. reorganizes `onContentBlockingEvent` so it updates the icon, reports telemetry, and updates internal state -
   but only updates the panel if it's visible, and otherwise simply memorizes the last event (which is just
   a number!);
5. ensures showing the panel updates the panel's category data based on the memorized state from (4).

Differential Revision: https://phabricator.services.mozilla.com/D81926
2020-07-09 20:23:14 +00:00
Dorel Luca
3e761e3907 Backed out changeset 255d9078dd17 (bug 1633710) for Browser-chrome failures in extensions/test/xpinstall/browser_datauri.js. CLOSED TREE 2020-07-06 18:38:13 +03:00
Sebastian Streich
95212989d4 Bug 1633710 - Move js uri.host to principal r=ckerschb,preferences-reviewers,ntim
Differential Revision: https://phabricator.services.mozilla.com/D73242
2020-07-06 14:00:09 +00:00
Dorel Luca
1e4fff31e4 Backed out changeset 2c46bcd325bb (bug 1633710) for Browser-chrome failures in extensions/test/xpinstall/browser_datauri.js. CLOSED TREE 2020-07-01 18:12:19 +03:00
Sebastian Streich
51a16a3ad7 Bug 1633710 - Move js uri.host to principal r=ckerschb,preferences-reviewers,ntim
Differential Revision: https://phabricator.services.mozilla.com/D73242
2020-07-01 12:21:22 +00:00
Gijs Kruitbosch
fca766666b Bug 1646780 - use a template to wrap the identity popup while it's not needed, r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D78894
2020-06-23 14:04:49 +00:00
Dorel Luca
d4c820fa0f Backed out changeset 3671a57712e4 (bug 1646780) for Browser-chrome failures in webrtc/browser_devices_get_user_media_tear_off_tab.js 2020-06-19 04:22:23 +03:00
Gijs Kruitbosch
f457ccd655 Bug 1646780 - use a template to wrap the identity popup while it's not needed, r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D78894
2020-06-19 00:02:11 +00:00
luma
2a182eb39d Bug 1572377 - Updating the protection panel only when the panel is opened or already opened. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D68534
2020-06-09 12:04:10 +00:00
Bogdan Tara
3c80900e77 Backed out changeset a38011a0bed3 (bug 1572377) for protectionsUI mochitest failures CLOSED TREE 2020-04-29 19:41:44 +03:00
luma
9c453531db Bug 1572377 - Updating the protection panel only when the panel is opened or already opened. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D68534
2020-04-29 15:11:23 +00:00
Dão Gottwald
8dde39e373 Bug 1630918 - Use prefers-reduced-motion media query for the tracking protection shield icon animation. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D71308
2020-04-29 06:26:49 +00:00
Noemi Erli
f8de68792e Backed out changeset 49365332dd15 (bug 1630918) for causing failures on browser_protectionsUI_animation_2.js CLOSED TREE 2020-04-28 18:59:49 +03:00
Dão Gottwald
cb08ac977b Bug 1630918 - Use prefers-reduced-motion media query for the tracking protection shield icon animation. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D71308
2020-04-28 13:35:32 +00:00
Artem
069a4488a1 Bug 1609559 - Migrate protectionsPanel.inc.xhtml to Fluent r=Gijs,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D71234
2020-04-28 06:23:10 +00:00
aarushivij
d67f3a91f3 Bug 1587870 - [Protections Panel] Add level of protection next to 'Protection Settings' r=johannh,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D70521
2020-04-19 09:27:39 +00:00
meenohara
fc755cfc4a Bug 1586934 Fixed cookie subview for all cookieBehaviors when thers's a site exception. r=nhnt11
Differential Revision: https://phabricator.services.mozilla.com/D68015

--HG--
extra : moz-landing-system : lando
2020-03-26 14:39:42 +00:00
jbone
e1b33b47fd Bug 1574316 - Show all of the data in the subpanels of the protection panel as origins not domains r=prathiksha
Differential Revision: https://phabricator.services.mozilla.com/D66915

--HG--
extra : moz-landing-system : lando
2020-03-23 11:39:59 +00:00
aarushivij
bb72ba681a Bug 1571522 - [Protections Panel] Move _trackingProtectionIconContainer from gIdentityHandler to gProtectionsHandler r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D66615

--HG--
extra : moz-landing-system : lando
2020-03-15 07:36:02 +00:00
Mark Banner
2c4e35b0a6 Bug 1620218 - Automatic code fixes for Prettier 1.18.2 upgrade. r=mossop,webcompat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D65509

--HG--
extra : moz-landing-system : lando
2020-03-08 21:45:16 +00:00
Liang-Heng Chen
0da6a82dda Bug 1602715 - support cookieBehavior=5 in protection UI; r=nhnt11
Differential Revision: https://phabricator.services.mozilla.com/D61543

--HG--
extra : moz-landing-system : lando
2020-02-07 09:42:45 +00:00
Dimi Lee
d1daecd272 Bug 1600896 - P2. Use getContentBlockingLog in WindoowGlobalParent instead of getContentBlockingEvent in nsIRemoteTab. r=timhuang,Ehsan
Depends on D55779

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

--HG--
extra : moz-landing-system : lando
2019-12-17 11:34:41 +00:00
Dimi Lee
27d4d88bfe Bug 1600878 - P2. Use contentBlockingEvents in WindowGlobalParent instead of contentBlockingEvent in RemoteSecurityUI r=timhuang,Ehsan
ContentBlockingEvent in RemoteSecurityUI is updated after receiving a notification from a child process.
Since contentBlockingEvent will be removed from the child, this patch removes the use of
contentBlockingEvent in RemoteSecurityUI and uses the API defined in WindowGlobalActor.

Depends on D55621

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

--HG--
extra : moz-landing-system : lando
2019-12-17 11:25:23 +00:00
Erica Wright
a273e05e06 Bug 1603545 - Add telemetry for app menu protections button r=nhnt11
Differential Revision: https://phabricator.services.mozilla.com/D58044

--HG--
extra : moz-landing-system : lando
2020-01-09 17:50:11 +00:00
Noemi Erli
c01a50c28c Backed out changeset bc55dd49ef82 (bug 1603545) for causing build bustages CLOSED TREE 2020-01-09 18:25:18 +02:00
Erica Wright
1966f381fa Bug 1603545 - Add telemetry for app menu protections button r=nhnt11
Differential Revision: https://phabricator.services.mozilla.com/D58044

--HG--
extra : moz-landing-system : lando
2020-01-09 15:57:02 +00:00
Ehsan Akhgari
1ca91dd7ab Bug 1603969 - Part 1: Remove the concept of granted origins from the anti-tracking backend; r=baku
Granted origins cause a third-party tracker browsing context to not get
full first-party storage access after successfully calling the storage
access API or a heuristic granting ephemeral access.

For example, after https://tracker.example calls the storage access API
successfully in the third-party context, they embed
https://other-tracker.example, and that load fails because of ETP
restrictions.  Here what happens is that https://other-tracker.example
is mistakenly considered the granted origin, and because such a
permission doesn't exist, access is denied.

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

--HG--
extra : moz-landing-system : lando
2019-12-19 02:56:52 +00:00
Gurzau Raul
bed8b9f116 Backed out 4 changesets (bug 1603969) for failing at /browser_startup_mainthreadio.js on a CLOSED TREE.
Backed out changeset c4d79087eef1 (bug 1603969)
Backed out changeset 2c0198f3506c (bug 1603969)
Backed out changeset c5ad252c525b (bug 1603969)
Backed out changeset a334451b95eb (bug 1603969)
2019-12-19 02:08:09 +02:00
Ehsan Akhgari
1676da33c8 Bug 1603969 - Part 1: Remove the concept of granted origins from the anti-tracking backend; r=baku
Granted origins cause a third-party tracker browsing context to not get
full first-party storage access after successfully calling the storage
access API or a heuristic granting ephemeral access.

For example, after https://tracker.example calls the storage access API
successfully in the third-party context, they embed
https://other-tracker.example, and that load fails because of ETP
restrictions.  Here what happens is that https://other-tracker.example
is mistakenly considered the granted origin, and because such a
permission doesn't exist, access is denied.

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

--HG--
extra : moz-landing-system : lando
2019-12-18 19:14:53 +00:00
Gurzau Raul
e92fa08412 Backed out 4 changesets (bug 1603969) for failing at /browser_startup_mainthreadio.js on a CLOSED TREE.
Backed out changeset 959f12e42db9 (bug 1603969)
Backed out changeset 18bf461b9630 (bug 1603969)
Backed out changeset 8c3bb23a048b (bug 1603969)
Backed out changeset 450eec13d73e (bug 1603969)
2019-12-18 20:53:13 +02:00
Ehsan Akhgari
9852e6494c Bug 1603969 - Part 1: Remove the concept of granted origins from the anti-tracking backend; r=baku
Granted origins cause a third-party tracker browsing context to not get
full first-party storage access after successfully calling the storage
access API or a heuristic granting ephemeral access.

For example, after https://tracker.example calls the storage access API
successfully in the third-party context, they embed
https://other-tracker.example, and that load fails because of ETP
restrictions.  Here what happens is that https://other-tracker.example
is mistakenly considered the granted origin, and because such a
permission doesn't exist, access is denied.

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

--HG--
extra : moz-landing-system : lando
2019-12-18 15:48:29 +00:00
Johann Hofmann
edad9865cc Bug 1603511 - Optimize sending SiteProtection:ContentBlockingEvent events. r=nhnt11
These events were sent excessively on onStateChange. This patch makes it so that:

- we only listen to top-level document changes (we used to send all events from iframes)
- we don't send events unless there's tracking content on the page
- we only send a single event on tab switch instead of multiple

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

--HG--
extra : moz-landing-system : lando
2019-12-12 23:48:13 +00:00
Ehsan Akhgari
8909341af2 Bug 1589476 - Emit a separate notification when a tracker from the Level 2 Disconnect blocklist is observed on a page and use this code to avoid using the URL classifer service in the front-end; r=nhnt11,droeh
Differential Revision: https://phabricator.services.mozilla.com/D49660

--HG--
extra : moz-landing-system : lando
2019-11-18 20:56:36 +00:00
Nihanth Subramanya
a13671e1aa Bug 1578831 - Link directly to breakage report subview when ETP is off. r=timhuang,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D47574

--HG--
extra : moz-landing-system : lando
2019-11-07 20:13:31 +00:00
Johann Hofmann
5f7632c312 Bug 1575785 - Show a confirmation hint when a user successfully submitted a breakage report. r=nhnt11
Differential Revision: https://phabricator.services.mozilla.com/D51383

--HG--
extra : moz-landing-system : lando
2019-11-06 21:14:19 +00:00
Johann Hofmann
708a5abfb0 Bug 1582751 - Show an error message when content blocking breakage reporting fails. r=nhnt11,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D51382

--HG--
extra : moz-landing-system : lando
2019-11-06 21:14:21 +00:00