Commit Graph

3032 Commits

Author SHA1 Message Date
Dave Vandyke
7d758be5d2 Bug 1861445 - Add the runtime.onPerformanceWarning WebExtension event r=zombie
When an extension's content script is very slow and causes a webpage
to hang noticeably, a warning banner is displayed to the user. It
would be useful to also notify the extension developer when that
happens, so that they can address the issue.

Let's add a new event runtime.onPerformanceWarning that can be
dispatched when the browser needs to warn an extension of runtime
performance issues. For now, let's just dispatch that event when the
slow extension warning banner is displayed to the user.

See also https://github.com/w3c/webextensions/issues/456

Differential Revision: https://phabricator.services.mozilla.com/D194708
2024-01-04 04:18:27 +00:00
Emilio Cobos Álvarez
e18e50f76f Bug 1871023 - Trivially fix some orange.
MANUAL PUSH: Trivial orange fix CLOSED TREE
2023-12-21 11:16:20 +01:00
Mark Banner
0d18781645 Bug 1870644 - Remove nsISearchEngine.iconURI and replace by the new getIconURL function. r=search-reviewers,extension-reviewers,settings-reviewers,mconley,mcheang,robwu
Differential Revision: https://phabricator.services.mozilla.com/D196734
2023-12-20 13:28:24 +00:00
Mark Banner
742520b2f6 Bug 1870644 - Pass a preferred width rather than width and height when getting search engine icon urls. r=search-reviewers,mcheang
This also renames the function, in preparation for iconURI being merged into it.

Differential Revision: https://phabricator.services.mozilla.com/D196733
2023-12-20 13:28:24 +00:00
Mark Banner
6b3f126991 Bug 1870644 - Remove nsISearchEngine.getIcons as it is only used by tests and not necessary. r=search-reviewers,mcheang
The tests are able to use getting the icon by size for their own checks.

Differential Revision: https://phabricator.services.mozilla.com/D196732
2023-12-20 13:28:24 +00:00
Emilio Cobos Álvarez
b4cd91ba9a Bug 1870803 - Fix theme tests to ignore a potentially ongoing transition. r=desktop-theme-reviewers,extension-reviewers,dao,rpl
Depends on D196861

Differential Revision: https://phabricator.services.mozilla.com/D196865
2023-12-19 20:18:39 +00:00
Emilio Cobos Álvarez
df2c70f3e6 Bug 1870803 - Remove backgroundColorSetOnRoot from theming tests. r=desktop-theme-reviewers,dao
Win7/8 isn't supported anymore.

Differential Revision: https://phabricator.services.mozilla.com/D196861
2023-12-19 17:42:48 +00:00
DJ
666a6f0a08 Bug 1869385 - open windows synchronously in extension tests to prevent race. r=extension-reviewers,mconley,rpl
Differential Revision: https://phabricator.services.mozilla.com/D196600
2023-12-18 17:46:47 +00:00
Luca Greco
c10a87a13e Bug 1867034 - Fix webNavigation central-as-beta test failure by fixing non-schemeless typed url wrongly detected as schemeless. r=freddyb
Differential Revision: https://phabricator.services.mozilla.com/D194926
2023-11-29 14:37:33 +00:00
Luca Greco
5f924c7ac5 Bug 1866565 - Do not open an about:addons tab when opening an abuse report form in a tab from a toolbar button context menu. r=willdurand
Differential Revision: https://phabricator.services.mozilla.com/D194648
2023-11-27 22:03:16 +00:00
Luca Greco
2eb71c93af Bug 1863307 - Adapt mochitest-browser tests covering the report context menu item to run with amoFormEnabled true/false. r=willdurand
Differential Revision: https://phabricator.services.mozilla.com/D194707
2023-11-27 11:20:09 +00:00
Joel Maher
33fa84a382 Bug 1859869 - batch 12 - browser/* xpcshell .ini manifests to .toml. r=aryx,extension-reviewers,credential-management-reviewers,search-reviewers,sessionstore-reviewers,places-reviewers,issammani,Standard8,robwu,sclements
Differential Revision: https://phabricator.services.mozilla.com/D193996
2023-11-21 17:35:23 +00:00
Brad Werth
8916e8c46d Bug 1854820 Part 2: Update an extension window test to check window sizes. r=extension-reviewers,robwu
Differential Revision: https://phabricator.services.mozilla.com/D192980
2023-11-18 00:30:52 +00:00
Anna Yeddi
f1f09e1bcd Bug 1864221 - Pt.2 Add exceptions from a11y_checks for 2 tests purposefully clicking on container elements in Webextensions. r=rpl
There are 2 failing test cases in `browser/components/extensions/test/browser/browser_ext_browserAction_popup_preload.js` for the `html:body` that are sending clicks to a `<body>` element to dismiss the pending popup using an alternative way of the popup dismissal, where the other way like `Esc` key is available, therefore these two test clicks can be excluded from the a11y_checks.

Another test cases are in `browser/components/extensions/test/browser/browser_ext_menus_capture_secondary_click.js` that are clicking on the `<menu>` parent container to confirm the click event is not going to be triggered for the attached menu items, thus these clicks are also excluded from the a11y_checks.

These actions are not expected or do not have to be done by a user of an assistive technology and we do not have to confirm the accessibility of these elements.

Thus, we are excluding these click events from accessibility checks.

Differential Revision: https://phabricator.services.mozilla.com/D193574
2023-11-15 17:25:35 +00:00
Anna Yeddi
977bf41d1c Bug 1864221 - Pt.1 Add exceptions from a11y_checks for 3 tests clicking on disabled controls in Webextensions. r=Jamie,extension-reviewers,rpl
We intentionally turn off a11y_checks for these click events, because the clicks in the patch are targeting disabled controls to confirm the click events won't come through. These clicks are not meant to be interactive and are not expected to be accessible.

Thus, we are excluding this click event from accessibility checks and removing the fail-if annotation that was added by bug 1854460 before the investigation in the meta bug 1854461.

Differential Revision: https://phabricator.services.mozilla.com/D193329
2023-11-15 17:25:35 +00:00
Luca Greco
1854e1dc08 Bug 1820158 - Port WEBEXT_EVENTPAGE_IDLE_RESULT_COUNT and WEBEXT_BROWSERACTION_POPUP_PRELOAD_RESULT_COUNT to Glean labeled_counter metrics. r=zombie
Differential Revision: https://phabricator.services.mozilla.com/D191756
2023-11-10 15:09:35 +00:00
Luca Greco
a2091c40e9 Bug 1820158 - Port WEBEXT_* timing histograms to Glean timing_distribution metrics. r=zombie
Differential Revision: https://phabricator.services.mozilla.com/D191699
2023-11-10 15:09:34 +00:00
mcheang
b5903e2da9 Bug 1863360 - Make tests pass for app provided search engine class. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D192862
2023-11-08 11:38:36 +00:00
Stanca Serban
d0eabbc73d Backed out 2 changesets (bug 1854820) for causing browser-chrome failures in browser_ext_windows_update.js.
Backed out changeset caeb06504910 (bug 1854820)
Backed out changeset e61a1f47853c (bug 1854820)
2023-11-08 12:00:47 +02:00
Brad Werth
68626aec93 Bug 1854820 Part 2: Update an extension window test to check window sizes. r=extension-reviewers,robwu
Differential Revision: https://phabricator.services.mozilla.com/D192980
2023-11-07 22:04:07 +00:00
Luca Greco
41560c2660 Bug 1861002 - QuarantinedDomains._onUserAllowedPrefChanged shouldn't call onPropertyChanged when no AddonWrapper is found. r=zombie
Differential Revision: https://phabricator.services.mozilla.com/D191852
2023-11-07 15:12:37 +00:00
Malte Juergens
009a59420f Bug 1858073 - Do not load mochitest directory listing in quirks mode r=intermittent-reviewers,jmaher,extension-reviewers,robwu DONTBUILD
Prepend the mochitest directory listing with `<!DOCTYPE html>` to prevent the document to be loaded in quirks mode and flood the log with console messages.

Differential Revision: https://phabricator.services.mozilla.com/D190544
2023-11-06 09:56:03 +00:00
Tom Marble
a2de3b16d5 Bug 1859905 - convert .ini manifests to .toml: batch 19 browser_*.ini r=jmaher,webdriver-reviewers,necko-reviewers,extension-reviewers,devtools-reviewers,anti-tracking-reviewers,valentin,robwu,pbz
Differential Revision: https://phabricator.services.mozilla.com/D191771
2023-10-25 21:47:25 +00:00
Natalia Csoregi
2f242d6035 Backed out changeset 1ca403a2c00e (bug 1859905) for causing failures on test_mochitest_integration.py CLOSED TREE 2023-10-25 22:26:24 +03:00
Tom Marble
622224fb99 Bug 1859905 - convert .ini manifests to .toml: batch 19 browser_*.ini r=jmaher,webdriver-reviewers,necko-reviewers,extension-reviewers,devtools-reviewers,anti-tracking-reviewers,valentin,robwu,pbz
Differential Revision: https://phabricator.services.mozilla.com/D191771
2023-10-25 17:12:24 +00:00
Anna Yeddi
705603c9e6 Bug 1858041 - Pt.3. Temporarily skip some Tier 2 a11y_checks for unexpecredly failing/passing or crashing on Autoland. r=Jamie,extension-reviewers,devtools-reviewers,rpl,places-reviewers
There are some a11y_checks that are intermittently failing on Autoland and pass on Try and vice versa. Also, a couple of tests are crashing while performing a11y_checks, thus they are to be skipped while we continue the investigation into each of them.

Related bugs:
- Fail-if tests: meta bug 1848402
- Explore capturing click events for a11y_checks: bug 1692110

Differential Revision: https://phabricator.services.mozilla.com/D191259
2023-10-23 15:45:23 +00:00
Drew Willcoxon
057316e5c2 Bug 1827966 - Part 3: Remove support for dismiss and help buttons from extensions tests. r=dao
Depends on D190893

Differential Revision: https://phabricator.services.mozilla.com/D190894
2023-10-13 21:52:07 +00:00
Frederik Braun
839f7b065a Bug 1812192 - Default some more tests to use HTTPS explicitly r=freddyb,mak
Depends on D179795

Differential Revision: https://phabricator.services.mozilla.com/D181097
2023-10-11 17:49:42 +00:00
Karandeep
b4cba16887 Bug 1853910 - Remove Legacy Event Telemetry Dependencies. r=mak,extension-reviewers,robwu
Depends on D188721

Differential Revision: https://phabricator.services.mozilla.com/D189558
2023-10-11 07:45:13 +00:00
Cristian Tuns
941bce3197 Backed out 6 changesets (bug 1812192) for causing browser_schemeless.js failures. CLOSED TREE
Backed out changeset 3d07a92324d0 (bug 1812192)
Backed out changeset 9c2a1ff6c90d (bug 1812192)
Backed out changeset fa6784f8b0f4 (bug 1812192)
Backed out changeset 0f39aba7e4d5 (bug 1812192)
Backed out changeset ef7219327a10 (bug 1812192)
Backed out changeset 9833b559342e (bug 1812192)
2023-10-10 10:02:25 -04:00
Frederik Braun
af4c7055d2 Bug 1812192 - Default some more tests to use HTTPS explicitly r=freddyb,mak
Depends on D179795

Differential Revision: https://phabricator.services.mozilla.com/D181097
2023-10-10 08:43:00 +00:00
Anna Yeddi
21ebaca82f Bug 1854460 - Temporarily fail-if some Tier 2 a11y_checks for Webextensions. r=mixedpuppy
We are working on [enabling Tier 2 a11y-checks to ensure our products have basic accessibility built-in (bug 1692110)](https://bugzilla.mozilla.org/show_bug.cgi?id=1692110) and before that, we need to prepare the existing code base. While we triage and investigate existent tests that would fail once the a11y-checks are enabled in the CI, we are going to fail-if the failing tests altogether and then handle each one of them individually.

This task is to add `fail-if` condition of the failing tests while we continue investigation into the reasons these tests failed and to be able to backtrack these tests once they're resolved.

Related bugs:
- Disabling tests: meta bug 1848402
- Investigation and remediation for components with disabled tests: meta bugs 1848394 and 1854227, Webextensions-sepecific meta bug 1854461
- Explore capturing click events for a11y_checks: bug 1692110

Depends on D188912

Differential Revision: https://phabricator.services.mozilla.com/D188913
2023-10-09 18:20:15 +00:00
Cristian Tuns
896197e59e Backed out 30 changesets (bug 1854447, bug 1855491, bug 1854646, bug 1854520, bug 1854528, bug 1854506, bug 1854502, bug 1854443, bug 1854538, bug 1854525, bug 1854660, bug 1854514, bug 1854460, bug 1854625, bug 1854228, bug 1854517, bug 1854533, bug 1692110, bug 1854636, bug 1849021, bug 1854512, bug 1854522, bug 1854509, bug 1854452, bug 1854536, bug 1854531) for causing multiple tier 2 failures on a11y-checks. CLOSED TREE
Backed out changeset 5714b7239b70 (bug 1849021)
Backed out changeset 91e5d7de3484 (bug 1849021)
Backed out changeset cc3142b909f6 (bug 1854660)
Backed out changeset 76d2a8ae9c19 (bug 1854646)
Backed out changeset 36460a147684 (bug 1854636)
Backed out changeset c7529a962a8c (bug 1854625)
Backed out changeset 791f9b03ea96 (bug 1854538)
Backed out changeset bd3f3cb434a5 (bug 1854536)
Backed out changeset 16f4f5bdcaa7 (bug 1855491)
Backed out changeset 6258bab20196 (bug 1854533)
Backed out changeset 29dca16eee2e (bug 1854531)
Backed out changeset 3a69d2c3f562 (bug 1854528)
Backed out changeset 0c63a9ea8b34 (bug 1854525)
Backed out changeset 5795bb6187a5 (bug 1854522)
Backed out changeset 7d4a123a432f (bug 1854520)
Backed out changeset ec95287bd702 (bug 1854517)
Backed out changeset 9914c1481f0d (bug 1854514)
Backed out changeset 25d85e656905 (bug 1854512)
Backed out changeset 828657f2ab73 (bug 1854509)
Backed out changeset 9d8b2e14c375 (bug 1854506)
Backed out changeset 1b3ee1e46e12 (bug 1854502)
Backed out changeset 37c2ec0851dc (bug 1854460)
Backed out changeset c2a60a8fc2d3 (bug 1854452)
Backed out changeset 744a163f2bd1 (bug 1854447)
Backed out changeset 1a9629dae7d5 (bug 1854443)
Backed out changeset c3d5c1ba2a84 (bug 1854228)
Backed out changeset dcd05518b004 (bug 1692110)
Backed out changeset 1c65a4cb618c (bug 1692110)
Backed out changeset 603b891147bd (bug 1692110)
Backed out changeset 53e2fac79d84 (bug 1692110)
2023-10-07 14:43:05 -04:00
Stanca Serban
341caf1e76 Backed out 2 changesets (bug 1853910) for causing mochitests failures in browser_ext_urlbar_attributionURL.js. CLOSED TREE
Backed out changeset eea288462cbb (bug 1853910)
Backed out changeset 75543d7d4250 (bug 1853910)
2023-10-07 00:17:27 +03:00
Anna Yeddi
683dc607b5 Bug 1854460 - Temporarily disable some Tier 2 a11y_checks for Webextensions. r=mixedpuppy
We are working on [enabling Tier 2 a11y-checks to ensure our products have basic accessibility built-in (bug 1692110)](https://bugzilla.mozilla.org/show_bug.cgi?id=1692110) and before that, we need to prepare the existing code base. While we triage and investigate existent tests that would fail once the a11y-checks are enabled in the CI, we are going to skip the failing tests altogether and then handle each one of them individually.

This task is to skip with `fail-if` condition of the failing tests while we continue investigation into the reasons these tests failed and to be able to backtrack these tests once they're resolved.

Related bugs:
- Disabling tests: meta bug 1848402
- Investigation and remediation for components with disabled tests: meta bugs 1848394 and 1854227, Webextensions-sepecific meta bug 1854461
- Explore capturing click events for a11y_checks: bug 1692110

Differential Revision: https://phabricator.services.mozilla.com/D188913
2023-10-06 18:11:32 +00:00
Karandeep
45ddb19915 Bug 1853910 - Remove Legacy Event Telemetry Dependencies. r=mak,extension-reviewers,robwu
Differential Revision: https://phabricator.services.mozilla.com/D189558
2023-10-06 12:33:14 +00:00
ganna
9246abd406 Bug 1844850 - Use moz-message-bar in the unified extensions panel. r=tgiles,hjones,fluent-reviewers,extension-reviewers,willdurand,bolsson,ayeddi
Differential Revision: https://phabricator.services.mozilla.com/D186718
2023-10-03 15:35:42 +00:00
Rob Wu
42801dbcd5 Bug 1853409 - Part 2: Require "all urls" match pattern for top-level match_about_blank r=rpl
This patch changes the behavior as follows:

- match_about_blank in content_scripts in manifest.json will now only
  run in top-level about:blank if its `matches` key specifies a match
  pattern set that is equivalent to all http(s) URLs.

- matchAboutBlank in tabs.executeScript requires activeTab permission
  (as before), or an all-URLs host permission.

Differential Revision: https://phabricator.services.mozilla.com/D189492
2023-10-02 19:07:58 +00:00
Emilio Cobos Álvarez
82807a55ad Bug 1853515 - Simplify webextension toolbar icons. r=desktop-theme-reviewers,dao,extension-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D188407
2023-10-02 17:53:18 +00:00
Tom Marble
c47238b5ac Bug 1855295 convert .ini manifests to .toml: batch 8 dom/[a-l]**/mochitest.ini r=jmaher,jgilbert,extension-reviewers,credential-management-reviewers,robwu,sgalich
Differential Revision: https://phabricator.services.mozilla.com/D189381
2023-10-02 17:18:28 +00:00
Luca Greco
e3fd5a4804 Bug 1853617 - Clear all logins included FxAccounts ones in test_ext_browsingData_passwords test and re-enable it on windows11 conditioned profile jobs. r=jmaher,robwu
Differential Revision: https://phabricator.services.mozilla.com/D189148
2023-09-25 19:07:35 +00:00
Mark Banner
32e5048c7c Bug 1832704 - Remove SearchService's init-complete, replace by a promise that resolves or rejects as appropriate. r=mcheang,extension-reviewers,robwu
Differential Revision: https://phabricator.services.mozilla.com/D187512
2023-09-25 10:44:49 +00:00
Joel Maher
5db0cfc304 Bug 1853617 - skip test_ext_browsingData_passwords.js on condprof. r=aryx,extension-reviewers,rpl
Differential Revision: https://phabricator.services.mozilla.com/D188999
2023-09-22 19:02:48 +00:00
Tom Marble
ad50861ef9 Bug 1853243 - convert .ini manifests to .toml: batch 5 browser/**/browser.ini r=jmaher,mossop,webcompat-reviewers,twisniewski,search-reviewers,Standard8
Differential Revision: https://phabricator.services.mozilla.com/D188427
2023-09-21 22:47:07 +00:00
Gregory Pappas
9ebd9f1125 Bug 1843999 - Remove dom.animations-api.core.enabled, dom.animations-api.implicit-keyframes.enabled, and dom.animations-api.autoremove.enabled prefs r=dom-core,webidl,devtools-reviewers,firefox-animation-reviewers,saschanaz,edgar
Differential Revision: https://phabricator.services.mozilla.com/D183827
2023-09-20 08:55:50 +00:00
Luca Greco
7adade5a7c Bug 1852391 - gBrowser _notifyPinnedStatus should account for discarded tabs. r=Gijs,tabbrowser-reviewers,dao
Differential Revision: https://phabricator.services.mozilla.com/D188581
2023-09-19 15:24:13 +00:00
Sandor Molnar
a59dc0e8cf Backed out changeset f0a2aa2ffe6d (bug 1832704) for causing xpc failures in toolkit/components/search/tests/xpcshell/test_async.js 2023-09-19 03:19:30 +03:00
Mark Banner
8b11f7c564 Bug 1832704 - Remove SearchService's init-complete, replace by a promise that resolves or rejects as appropriate. r=mcheang,extension-reviewers,robwu
Differential Revision: https://phabricator.services.mozilla.com/D187512
2023-09-18 15:09:56 +00:00
Marco Bonardo
6874dffc71 Bug 1852963 - Rename BrowserTestUtils.loadURIString() to .startLoadingURIString(). r=dao
This should make a bit clearer that it is only starting the load, not waiting
for its completion.

Differential Revision: https://phabricator.services.mozilla.com/D188213
2023-09-15 09:16:34 +00:00
Sandor Molnar
5d8dd001ad Backed out 3 changesets (bug 1852963) for causing remote failures on remote/shared/messagehandler/test/browser/browser_session_data.js CLOSED TREE
Backed out changeset 98de7bc404c3 (bug 1852963)
Backed out changeset edf1527c9a99 (bug 1852963)
Backed out changeset 34357750f69c (bug 1852963)
2023-09-14 20:29:06 +03:00