Commit Graph

4431 Commits

Author SHA1 Message Date
Alessio Placitelli
b5ca5b24fd Bug 1811152 - Do not expire FOG KPI metrics. r=TravisLong
Differential Revision: https://phabricator.services.mozilla.com/D168058
2023-01-27 13:27:05 +00:00
Tomislav Jovanovic
d378ab25a4 Bug 1805523 - Implement temporary access state and attention, r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D165490
2023-01-24 00:47:13 +00:00
Gregory Pappas
0e505f184a Bug 1804264 - Refactor PermissionUI to use JS class r=pbz
Also, esmify.

Differential Revision: https://phabricator.services.mozilla.com/D167074
2023-01-23 21:53:19 +00:00
Noemi Erli
9299cc61f9 Backed out changeset c37b70009a8b (bug 1804264) for causing failures in Geolocation.cpp CLOSED TREE 2023-01-23 19:11:47 +02:00
Gregory Pappas
8972ac3379 Bug 1804264 - Refactor PermissionUI to use JS class r=pbz
Also, esmify.

Differential Revision: https://phabricator.services.mozilla.com/D167074
2023-01-23 16:30:32 +00:00
Neil Deakin
0a11c59290 Bug 1809840, tabs sharing devices menu is not showing captured windows, r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D167355
2023-01-23 15:14:22 +00:00
William Durand
4b65e0a0cb Bug 1799009 - Remove gUnifiedExtensions.isEnabled. r=rpl,mconley
Depends on D166923

Differential Revision: https://phabricator.services.mozilla.com/D166934
2023-01-23 10:39:29 +00:00
Meg Viar
04e1d3b419 Bug 1806425 - Make value of source in Feature Callout and page in its telementry more consistent r=jprickett,aminomancer
Unify the values of "source" and "page" as used in FeatureCallout.sys.mjs:
- Explicitly pass in a value for "page" when instantiating a Feature Callout and use this for the value of "page" when sending Feature Callout telemetry and as the "source" when making calls to `sendTriggerMessage`. This avoids the risk of including non-about: page URLs or PDF file extensions in our telemetry.
- Set the value of "page" in an HTML data attribute that can be accessed for use in about:welcome telemetry for Spotlight and Feature Callouts.
- Update references to the page value previously used as the page/source for telemetry from `about:firefoxview` Feature Callouts from "firefoxview"  to "about:firefoxview"
- Pass the token "chrome" when creating a callout from the browser chrome and update references to the source in PDF.js messages' targeting
- Update the page value expected in automated tests as needed

Differential Revision: https://phabricator.services.mozilla.com/D165910
2023-01-20 16:53:30 +00:00
Gijs Kruitbosch
5a903703c5 Bug 1810995 - update BrowserTestUtils.loadURI consumers to use loadURIString (automated) - browser - r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D167153
2023-01-19 20:16:42 +00:00
Ben Hearsum
f47c782289 Bug 1750581: add installation telemetry tests for msix packaged environments r=nalexander
This is the bare minimum that's reasonable to do -- it gives us a simple test of the happy path. The diff is largely indentation changes.

Differential Revision: https://phabricator.services.mozilla.com/D166687
2023-01-17 01:00:10 +00:00
Ben Hearsum
01f485b050 Bug 1805919: disable tests that are currently failing against MSIX packages. r=jmaher,necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D165754
2023-01-11 14:45:03 +00:00
Mark Banner
799dd68531 Bug 1808289 - Automatically replace Cu.reportError with console.error (browser/themes, browser/modules). r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D165848
2023-01-03 19:16:20 +00:00
Marian-Vasile Laza
3f9e8980c7 Backed out changeset 1c135e14142e (bug 1805523) for causing bc failures on browser_ext_windows_create_tabId.js. 2023-01-02 16:34:38 +02:00
kernp25
739a50b0f9 Bug 1807625 - Fix for this.dropIndicator is null. r=NeilDeakin
Differential Revision: https://phabricator.services.mozilla.com/D165526
2023-01-02 13:29:28 +00:00
Tomislav Jovanovic
6716f18a49 Bug 1805523 - Implement temporary access state and attention, r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D165490
2023-01-01 21:46:00 +00:00
Meg Viar
58cfaea214 Bug 1807850 - Firefox View feature reminder messages should not show within 24 hours of skipping feature tour r=aminomancer
Depends on D164824

Differential Revision: https://phabricator.services.mozilla.com/D165629
2022-12-30 20:41:44 +00:00
Jason Prickett
3f3ecea905 Bug 1805385 - Flip direction of absolutely positioned feature callout in RTL layouts r=mviar
Depends on D164628

Differential Revision: https://phabricator.services.mozilla.com/D164592
2022-12-30 17:35:19 +00:00
Jason Prickett
9d80e97429 Bug 1805413 - Implement relative position for feature callout positioning overrides r=mviar
Differential Revision: https://phabricator.services.mozilla.com/D164628
2022-12-29 20:50:48 +00:00
Meg Viar
79eec33848 Bug 1805930 - Change featureCallout.mjs to featureCallout.sys.mjs and update all references to filename r=barret,aminomancer
Differential Revision: https://phabricator.services.mozilla.com/D164824
2022-12-29 14:27:02 +00:00
Stephen A Pohl
f404e4326d Bug 1807697: Move the 'Tabs sharing devices' menu item for WebRTC from the Window menu to the Tools menu on macOS. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D165563
2022-12-28 14:47:42 +00:00
Mark Banner
df47c60747 Bug 1806359 - Convert telemetry imports to direct ES imports. r=necko-reviewers,application-update-reviewers,pip-reviewers,credential-management-reviewers,janerik,mconley,sgalich,bytesized,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D165002
2022-12-23 12:37:07 +00:00
Mark Banner
2b069eb017 Bug 1806306 - Convert AsyncShutdown imports to direct ES imports. r=mak,webdriver-reviewers,application-update-reviewers,bytesized
Differential Revision: https://phabricator.services.mozilla.com/D164981
2022-12-23 12:37:06 +00:00
Danny Colin
2bfbc92b65 Bug 1796797 - Convert toolkit/components/contextualidentity JSM modules to ESMs r=baku,webdriver-reviewers,extension-reviewers,settings-reviewers,robwu
Differential Revision: https://phabricator.services.mozilla.com/D159945
2022-12-21 08:14:05 +00:00
Hannah Peuckmann
2902280379 Bug 1578273 - Reduce calls to the PrincipalsCollector. r=pbz
Differential Revision: https://phabricator.services.mozilla.com/D162721
2022-12-20 08:33:57 +00:00
Emilio Cobos Álvarez
0f61b77b68 Bug 1805415 - Use activateItem() rather than click() to activate menuitems. r=Gijs,extension-reviewers,pip-reviewers,search-reviewers
Bug 1805414 will move menu event handling to the DOM.

With that change the current synthetic click behavior of XUL menuitems
breaks. On current central, we rely on nsMenuFrame::HandleEvent not
getting called at all for synthetic clicks, and instead we just fire a
command event synchronously here:

  https://searchfox.org/mozilla-central/rev/a0d4f8f112c5c792ae272bf6ce50763ddd23ffa2/dom/xul/nsXULElement.cpp#1071

After my patch the command event is fired properly (potentially
asynchronously too) by the regular menu activation machinery, which is
preferable.

 * They fire a command event synchronously (even though on some
   platforms like macOS activating a context menu item is async).

 * They use a totally different codepath from what a user does.

 * They don't deal with native menus, etc.

We have a proper API for this (activateItem) which takes a much more
closer codepath to what users do, requires that the menu is shown, etc.
Use that API instead for testing.

As a benefit, tests now do not need to close the context menu manually
when clicking on a menu item (because we trigger the same code path as
users clicking the menu).

Differential Revision: https://phabricator.services.mozilla.com/D164567
2022-12-15 03:11:55 +00:00
Tomislav Jovanovic
02c5082e6b Bug 1798695 - Use WebExtensionPolicy to get list of active extensions r=willdurand
Differential Revision: https://phabricator.services.mozilla.com/D162570
2022-12-14 17:56:29 +00:00
Cristian Tuns
c9c42bc174 Backed out 2 changesets (bug 1805415) for causing dt failures on browser_net_telemetry_throttle_changed.js CLOSED TREE
Backed out changeset 5056d7df9f1e (bug 1805415)
Backed out changeset e13513500184 (bug 1805415)
2022-12-14 08:52:21 -05:00
Emilio Cobos Álvarez
9a53f8dea3 Bug 1805415 - Use activateItem() rather than click() to activate menuitems. r=Gijs,extension-reviewers,pip-reviewers,search-reviewers
Bug 1805414 will move menu event handling to the DOM.

With that change the current synthetic click behavior of XUL menuitems
breaks. On current central, we rely on nsMenuFrame::HandleEvent not
getting called at all for synthetic clicks, and instead we just fire a
command event synchronously here:

  https://searchfox.org/mozilla-central/rev/a0d4f8f112c5c792ae272bf6ce50763ddd23ffa2/dom/xul/nsXULElement.cpp#1071

After my patch the command event is fired properly (potentially
asynchronously too) by the regular menu activation machinery, which is
preferable.

 * They fire a command event synchronously (even though on some
   platforms like macOS activating a context menu item is async).

 * They use a totally different codepath from what a user does.

 * They don't deal with native menus, etc.

We have a proper API for this (activateItem) which takes a much more
closer codepath to what users do, requires that the menu is shown, etc.
Use that API instead for testing.

As a benefit, tests now do not need to close the context menu manually
when clicking on a menu item (because we trigger the same code path as
users clicking the menu).

Differential Revision: https://phabricator.services.mozilla.com/D164567
2022-12-14 10:25:17 +00:00
Karl Tomlinson
563e32cccf Bug 1712892 use _createWebRTCPermissionItem() for speaker selection permissions r=pbz
so as to add support for double-keyed per device permissions, which can then
all be cleared from a single item/button.

Differential Revision: https://phabricator.services.mozilla.com/D162233
2022-12-13 09:37:34 +00:00
Karl Tomlinson
97cebf0c73 Bug 1712892 add Page-Info Permissions-tab item to block speaker selection r=pbz
An all-device "Allow" option is not provided because the permission grant
prompt is primarily a device selection, which will (with subsequent patches)
grant persistent permission for the selected device.

Bug 1800287 covers setting a similar block from the selectAudioOutput() prompt.

Differential Revision: https://phabricator.services.mozilla.com/D162232
2022-12-13 09:37:34 +00:00
Gijs Kruitbosch
bd314534da Bug 1803800, r=pbz
Differential Revision: https://phabricator.services.mozilla.com/D163950
2022-12-12 18:06:30 +00:00
Andrew Halberstadt
784c7a446b Bug 1802323 - Add more logging to History cleaner in Sanitizers. r=Gijs,hpeuckmann,extension-reviewers,rpl
Makes passing a progress object as part of options more coherent in the
Sanitizer, so we don't need to null check it everywhere.
Create a sub progress object for each cleaner, so they don't overwrite each
other reusing the same property names (like "step"), since all the cleaners are
started in parallel.
Add a few steps to the history cleaner.

This also fixes a typo in the openWindows cleaner, that should receive an object
rather than a string as second argument. Adding a test for this feature is not
trivial, thus I filed https://bugzilla.mozilla.org/show_bug.cgi?id=1803174.

Differential Revision: https://phabricator.services.mozilla.com/D163352
2022-12-12 17:16:51 +00:00
Kagami Sascha Rosylight
bce4f9a7c9 Bug 1800505 - Move origin directories before shutdown sanitization r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D162308
2022-12-07 13:57:36 +00:00
Oriol Brufau
334566bfd4 Bug 1736454 - Avoid broken window when initialBrowser.frameLoader.remoteTab is null. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D163758
2022-12-07 07:26:13 +00:00
Gijs Kruitbosch
965c6e86fc Bug 1803158 - convert session restore consumers to reference the sys.mjs files instead, r=webdriver-reviewers,perftest-reviewers,extension-reviewers,credential-management-reviewers,Standard8,sgalich,whimboo,sparky,willdurand
Differential Revision: https://phabricator.services.mozilla.com/D163350
2022-12-06 16:02:03 +00:00
Mark Banner
0cd6f3836f Bug 1804037 - Convert PartnerLinkAttribution.jsm to an ES module. r=adw,search-reviewers,daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D163814
2022-12-06 11:34:18 +00:00
Benjamin VanderSloot
17c87d05da Bug 1782091 - Create IdentityCredential state map, r=timhuang,pbz
This creates a new service that stores precisely two bits per RP, IDP, and account ID tuple:
has it been used before and is it able to be logged out.

It does so with the additional constraints of respecting private browsing's clear on last session and in-memory storage constraints and being a participant in the Clear Storage Service.

Tests are here. Coverage isn't perfect, but they cover most of the service.

Differential Revision: https://phabricator.services.mozilla.com/D162124
2022-12-03 18:50:31 +00:00
Sandor Molnar
5d6d534c24 Backed out 5 changesets (bug 1782087, bug 1782094, bug 1782093, bug 1782091) for causing bc failures in toolkit/components/cleardata/tests/browser/browser_quota.js CLOSED TREE
Backed out changeset e810f2f0580f (bug 1782093)
Backed out changeset 955c8cad8112 (bug 1782087)
Backed out changeset 372252b98cd7 (bug 1782087)
Backed out changeset 32e4f376e64f (bug 1782094)
Backed out changeset 1475247d538f (bug 1782091)
2022-12-03 00:53:52 +02:00
Benjamin VanderSloot
be70d3519e Bug 1782091 - Create IdentityCredential state map, r=timhuang,pbz
This creates a new service that stores precisely two bits per RP, IDP, and account ID tuple:
has it been used before and is it able to be logged out.

It does so with the additional constraints of respecting private browsing's clear on last session and in-memory storage constraints and being a participant in the Clear Storage Service.

Tests are here. Coverage isn't perfect, but they cover most of the service.

Differential Revision: https://phabricator.services.mozilla.com/D162124
2022-12-02 18:41:45 +00:00
Norisz Fay
4be2f9e959 Backed out 5 changesets (bug 1782093, bug 1782094, bug 1782087, bug 1782091) for causing multiple mozStorageService related failures CLOSED TREE
Backed out changeset 4f57469716d2 (bug 1782093)
Backed out changeset a06b230dc4f2 (bug 1782087)
Backed out changeset 8031bd99e17d (bug 1782087)
Backed out changeset 50141328dfad (bug 1782094)
Backed out changeset a2030d35f960 (bug 1782091)
2022-12-01 16:42:29 +02:00
Benjamin VanderSloot
870d183e3f Bug 1782091 - Create IdentityCredential state map, r=timhuang,pbz
This creates a new service that stores precisely two bits per RP, IDP, and account ID tuple:
has it been used before and is it able to be logged out.

It does so with the additional constraints of respecting private browsing's clear on last session and in-memory storage constraints and being a participant in the Clear Storage Service.

Tests are here. Coverage isn't perfect, but they cover most of the service.

Differential Revision: https://phabricator.services.mozilla.com/D162124
2022-12-01 13:47:15 +00:00
Iulian Moraru
a416e2eee2 Backed out 5 changesets (bug 1782087, bug 1782093, bug 1782094, bug 1782091) for causing multiple failures. CLOSED TREE
Backed out changeset 11e59dcd517b (bug 1782093)
Backed out changeset 66eeced8dbed (bug 1782087)
Backed out changeset 8c7764e1ff1d (bug 1782087)
Backed out changeset 2c6f41077d9d (bug 1782094)
Backed out changeset 5f38f252060f (bug 1782091)
2022-11-30 06:16:55 +02:00
Benjamin VanderSloot
69ab70d68a Bug 1782091 - Create IdentityCredential state map, r=timhuang,pbz
This creates a new service that stores precisely two bits per RP, IDP, and account ID tuple:
has it been used before and is it able to be logged out.

It does so with the additional constraints of respecting private browsing's clear on last session and in-memory storage constraints and being a participant in the Clear Storage Service.

Tests are here. Coverage isn't perfect, but they cover most of the service.

Differential Revision: https://phabricator.services.mozilla.com/D162124
2022-11-30 02:40:58 +00:00
Mark Banner
319bc25bd8 Bug 1802855 - Convert toolkit/components/satchel JSM modules to ES modules. r=credential-management-reviewers,daleharvey,sgalich
Differential Revision: https://phabricator.services.mozilla.com/D163201
2022-11-29 15:53:20 +00:00
Barret Rennie
d1a2566d45 Bug 1541508 - Use Services.env in browser/ r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D160136
2022-11-25 19:09:06 +00:00
Dave Townsend
9081bc48f8 Bug 1792466: Track browser windows that are in the process of being opened so we don't open multiple windows when trying to open many files/urls quickly. r=Gijs
Ideally we would use the window mediator to just find new browser windows that
are in the process of opening but while we can find the windows they just appear
as about:blank with no way to verify that they are browser windows.

This just takes the straightforward approach of forcing code that opens browser
windows to register them with the BrowserWindowTracker and provides a simple
shared API for opening browser windows that does this.

Differential Revision: https://phabricator.services.mozilla.com/D161076
2022-11-24 08:50:22 +00:00
Gijs Kruitbosch
227769d723 Bug 1801838 - update Sanitizer module build metadata, r=hpeuckmann DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D162855
2022-11-23 20:53:36 +00:00
Eemeli Aro
60ed39d7e5 Bug 1760029 - Migrate tabbrowser.properties strings used by OpenInTabsUtils.jsm to Fluent. r=dao,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D159020
2022-11-22 17:12:23 +00:00
Barret Rennie
2fdaf44760 Bug 1772180 - Port osfile.jsm usage to IOUtils in browser/modules/ r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D153697
2022-11-21 23:53:15 +00:00
Kagami Sascha Rosylight
dad1c63030 Bug 1801346 - Esmify browser/modules/Sanitizer.jsm r=pbz
Differential Revision: https://phabricator.services.mozilla.com/D162425
2022-11-19 01:45:42 +00:00