Commit Graph

3614 Commits

Author SHA1 Message Date
Stanca Serban
7609495ae3 Bug 1775565 - disable browser_ext_openPanel.js on linux, mac opt and win11_2009. r=intermittent-reviewers,jmaher
Differential Revision: https://phabricator.services.mozilla.com/D172990
2023-03-20 14:12:04 +00:00
Mike Kaply
3029e38ea6 Bug 1813108 - Add support for pinning to ExtensionSettings policy. r=willdurand
Differential Revision: https://phabricator.services.mozilla.com/D170949
2023-03-16 15:57:14 +00:00
Marian-Vasile Laza
5ceabf644b Backed out changeset c24f7a077e5f (bug 1813108) for mochitest failures on test_ext_action.html. 2023-03-15 23:08:08 +02:00
Mike Kaply
c41c63183b Bug 1813108 - Add support for pinning to ExtensionSettings policy. r=willdurand
Differential Revision: https://phabricator.services.mozilla.com/D170949
2023-03-15 19:18:44 +00:00
Luca Greco
30558dfdba Bug 1775577 - Prevent test_discarded_private_tab_restored from trying to discard the same tab twice. r=willdurand
Differential Revision: https://phabricator.services.mozilla.com/D172154
2023-03-15 18:31:50 +00:00
Luca Greco
9d0a54e72d Bug 1680419 - Explicitly wait for indentity-box mutation before asserting the identity-box/icon styles. r=Gijs
I wasn't able to hit this locally even when running the test with --verify, and in the failure logs from the
failures linked to orangefactor I couldn't find any that would provide me some clue of what is going on,
but if the identity box is being updates asynchronously then I would not exclude this may be hit only in
some cases that are never hit locally by executing this test file on its own.

This patch adds a few small changes to explicitly wait for a mutation of the identity box before asserting
the styles, the test was still passing consistently locally and so if this version would fail for
a timeout due to get stuck waiting for the mutation, then we would at least determine that the identity
box would very likely never be updated and there may be something else going on that may be worth digging
further into.

Differential Revision: https://phabricator.services.mozilla.com/D171497
2023-03-15 15:07:03 +00:00
Tomislav Jovanovic
1b49ab9278 Bug 1819176 - Set default extension.startupReason for our tests, r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D171169
2023-03-15 12:18:25 +00:00
Luca Greco
29d1c32414 Bug 1819794 - Ensure userContextId is set in the session store tab state for tabs created as discarded. r=Gijs,willdurand
Differential Revision: https://phabricator.services.mozilla.com/D171570
2023-03-15 11:47:01 +00:00
Iulian Moraru
49e4928c4c Backed out changeset 16cc818fba27 (bug 1819176) for causing frequent failures on browser_ext_themes_getCurrent_differentExt.js. CLOSED TREE 2023-03-15 05:15:03 +02:00
Tomislav Jovanovic
d82803ff92 Bug 1819176 - Set default extension.startupReason for our tests, r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D171169
2023-03-14 20:57:02 +00:00
Stanca Serban
d5e0beedf4 Backed out changeset aa406ef74561 (bug 1811326) for causing mochitests failures in browser_ext_windows_update.js. CLOSED TREE 2023-03-14 13:18:36 +02:00
YUKI "Piro" Hiroshi
5d6d52e179 Bug 1811326 - Place windows larger than screen inside screen always r=willdurand
Differential Revision: https://phabricator.services.mozilla.com/D170156
2023-03-14 09:38:29 +00:00
Gijs Kruitbosch
4ee9373eaa Bug 1718082 - move isAppTab from docshell to browsing context, r=nika,rpl
Differential Revision: https://phabricator.services.mozilla.com/D171412
2023-03-13 17:32:07 +00:00
Marian-Vasile Laza
65ec8a9faf Backed out 5 changesets (bug 1809843) for causing Cargo related build bustages. CLOSED TREE
Backed out changeset 5c494680f448 (bug 1809843)
Backed out changeset 02742b38edab (bug 1809843)
Backed out changeset 2b9b32ca8294 (bug 1809843)
Backed out changeset 56631cb02ae6 (bug 1809843)
Backed out changeset 37e35a60a71f (bug 1809843)
2023-03-13 13:53:26 +02:00
Kershaw Chang
919d22138d Bug 1809843 - Skip Failed tests, r=necko-reviewers,extension-reviewers,credential-management-reviewers,valentin,sgalich,robwu
Differential Revision: https://phabricator.services.mozilla.com/D171842
2023-03-13 11:12:33 +00:00
Sandor Molnar
5c413d6ab2 Backed out changeset 6ac0d009f1ef (bug 1810306) for causing bc failures in browser/components/extensions/test/browser/browser_ext_sidebarAction_context.js CLOSED TREE 2023-03-10 18:15:33 +02:00
kernp25
e414203e08 Bug 1810306 - Stop setting icon on menuitem in the View->Show Sidebars menu. r=desktop-theme-reviewers,mixedpuppy,dao
Differential Revision: https://phabricator.services.mozilla.com/D166871
2023-03-10 15:00:39 +00:00
Dão Gottwald
8b7b30f0a4 Bug 1790020 - Hook up urlbar result menu with telementry. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D168688
2023-03-09 12:02:13 +00:00
Luca Greco
7a97cee0bf Bug 1775577 - Remove tabs.onUpdated listener in test_discarded_private_tab_restored after discarding a tab. r=willdurand
Differential Revision: https://phabricator.services.mozilla.com/D171507
2023-03-03 10:49:52 +00:00
Stanca Serban
1b1fd96cd3 Bug 1780998 - disable browser_ext_windows_update.js on mac 10.15 debug. r=intermittent-reviewers,jmaher
Differential Revision: https://phabricator.services.mozilla.com/D170314
2023-02-25 18:42:24 +00:00
William Durand
a0e2f3e8bd Bug 1800417 - Add a test case with two windows. r=rpl
Depends on D162712

Differential Revision: https://phabricator.services.mozilla.com/D170044
2023-02-22 10:03:39 +00:00
Mark Banner
9f14e3dc03 Bug 1816934 - Update consumers of services/settings to import ES modules directly. r=leplatrem,extension-reviewers,settings-reviewers,credential-management-reviewers,sgalich,mconley,robwu
Differential Revision: https://phabricator.services.mozilla.com/D169934
2023-02-17 19:32:06 +00:00
Rob Wu
0d4d932c70 Bug 1784662 - Reduce time spent in browser_ext_omnibox.js test r=willdurand,adw
This is a test-only change. It introduces a new Urlbar pref to make the
existing 3000 ms timeout configurable.

That timeout is currently reached 8 times in the test. That means that
the test will take at least 3 x 8 = 24 seconds to run while basically
doing nothing, and makes the test prone to reach the deadline by which
the test is declared timed-out.

To avoid "Test timed out" errors, the test now reduces the fixed 3000 ms
timeout to 500 ms, so now we wait for 8x500 = 4 seconds instead of 24.

Differential Revision: https://phabricator.services.mozilla.com/D169846
2023-02-17 18:20:01 +00:00
Cristian Tuns
b9ee007450 Backed out 6 changesets (bug 1816934, bug 1817182, bug 1817179, bug 1817183) for causing dt failures in browser_jsterm_autocomplete_null.js CLOSED TREE
Backed out changeset 17d4c013ed92 (bug 1817183)
Backed out changeset cfed8d9c23f3 (bug 1817183)
Backed out changeset 62fe2f589efe (bug 1817182)
Backed out changeset 557bd773fb85 (bug 1817179)
Backed out changeset 7f8a7865868b (bug 1816934)
Backed out changeset d6c1d4c0d2a0 (bug 1816934)
2023-02-17 10:51:33 -05:00
Mark Banner
60c0009ad6 Bug 1816934 - Update consumers of services/settings to import ES modules directly. r=leplatrem,extension-reviewers,settings-reviewers,credential-management-reviewers,sgalich,mconley,robwu
Differential Revision: https://phabricator.services.mozilla.com/D169934
2023-02-17 09:01:43 +00:00
William Durand
9a9c666058 Bug 1800417 - Fix the use of both toolbarbutton-1 and subviewbutton CSS classes in extension widgets. r=Itiel,mconley,dao,rpl
Depends on D169810

Differential Revision: https://phabricator.services.mozilla.com/D162712
2023-02-16 12:03:07 +00:00
Cristian Tuns
011493bc1c Backed out changeset e391918bb558 (bug 1800417) for causing mochitest failures in /browser_unified_extensions_overflowable_toolbar.js CLOSED TREE 2023-02-14 17:21:09 -05:00
William Durand
5993be7f69 Bug 1800417 - Fix the use of both toolbarbutton-1 and subviewbutton CSS classes in extension widgets. r=Itiel,mconley,dao,rpl
Depends on D169810

Differential Revision: https://phabricator.services.mozilla.com/D162712
2023-02-14 20:51:53 +00:00
William Durand
634c3434b6 Bug 1800417 - Make sure we exit customization mode in browser_unified_extensions_cui.js. r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D169810
2023-02-14 14:24:08 +00:00
Malte Jürgens
51c2bf31f4 Bug 1808459 - Take extensions.getAddons.showPane into consideration when clicking on empty unified extensions button r=extension-reviewers,robwu
In case the user does not have any active extensions listed, if `extensions.getAddons.showPane` is set to true (default), clicking on the unified extensions button will lead to the recommendations section in about:addons. If it is set to false, clicking the button will now lead to the extension list instead of the, disabled by the user, recommendations section.

Differential Revision: https://phabricator.services.mozilla.com/D169570
2023-02-14 13:07:22 +00:00
William Durand
63c34cc618 Bug 1775556 - Fix intermittent browser/components/extensions/test/browser/browser_ext_browserAction_contextMenu.js. r=rpl
The screenshot in one of the failed jobs made me think that we should
probably close the browser action popup when we open it.

Differential Revision: https://phabricator.services.mozilla.com/D169636
2023-02-14 10:58:36 +00:00
Gijs Kruitbosch
bc748bee0c Bug 1810141 - switch consumers where there isn't an obvious URI object to use to fixupAndLoadURIString, r=mossop,geckoview-reviewers,extension-reviewers,settings-reviewers,mconley,owlish
This also updates layoutdebug.js, which in some ways pretends to be like a browser window but
is its own special snowflake. I kept the method naming conventions similar to the main
browser window.

Depends on D168394

Differential Revision: https://phabricator.services.mozilla.com/D168395
2023-02-13 23:50:40 +00:00
Gijs Kruitbosch
64b3d90475 Bug 1810141 - fix replaceUrlInTab webextension utility to deal with loadURI changes, r=rpl
Depends on D168392

Differential Revision: https://phabricator.services.mozilla.com/D168393
2023-02-13 23:50:39 +00:00
Marian-Vasile Laza
f298aadd15 Backed out changeset d26e7747cf69 (bug 1800417) for bc failures on browser_unified_extensions_overflowable_toolbar.js. CLOSED TREE 2023-02-13 22:14:44 +02:00
William Durand
e23737e755 Bug 1800417 - Fix the use of both toolbarbutton-1 and subviewbutton CSS classes in extension widgets. r=Itiel,mconley,dao,rpl
Differential Revision: https://phabricator.services.mozilla.com/D162712
2023-02-13 16:52:18 +00:00
Cristina Horotan
f062495d94 Backed out 9 changesets (bug 1810141) for several test failures on a CLOSED TREE
Backed out changeset 8781a0d1254d (bug 1810141)
Backed out changeset 131037295784 (bug 1810141)
Backed out changeset 3852fbe290f4 (bug 1810141)
Backed out changeset 118f131a524a (bug 1810141)
Backed out changeset ab5d76846e10 (bug 1810141)
Backed out changeset dce3aa683445 (bug 1810141)
Backed out changeset 4dc41d90dbb3 (bug 1810141)
Backed out changeset 50b57ba1a061 (bug 1810141)
Backed out changeset 569de94781e4 (bug 1810141)
2023-02-13 16:05:30 +02:00
Gijs Kruitbosch
2e04015e9c Bug 1810141 - switch consumers where there isn't an obvious URI object to use to fixupAndLoadURIString, r=mossop,geckoview-reviewers,extension-reviewers,settings-reviewers,mconley,owlish
This also updates layoutdebug.js, which in some ways pretends to be like a browser window but
is its own special snowflake. I kept the method naming conventions similar to the main
browser window.

Depends on D168394

Differential Revision: https://phabricator.services.mozilla.com/D168395
2023-02-13 12:55:25 +00:00
Gijs Kruitbosch
214358c5c7 Bug 1810141 - fix replaceUrlInTab webextension utility to deal with loadURI changes, r=rpl
Depends on D168392

Differential Revision: https://phabricator.services.mozilla.com/D168393
2023-02-13 12:55:24 +00:00
William Durand
94099c8b68 Bug 1782359 - Fix intermittent browser/components/extensions/test/browser/browser_ext_activeScript.js, again. r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D169305
2023-02-09 12:38:45 +00:00
William Durand
d03c7afe84 Bug 1798683 - Fix intermittent browser/components/extensions/test/browser/browser_unified_extensions_overflowable_toolbar.js. r=rpl CLOSED TREE
This patch attempts to fix intermittent failures by:

1. using `ensureMaximizedWindow()` where appropriate. While nothing
   seemed wrong per se with the previous approach, resizing to the
   original height was done to restore the previous window dimensions.
   Since the window is maximized before, it makes sense to reuse this
   helper function, especially given that it is a bit more robust than
   just awaiting an event.
2. not awaiting the `resize` event, which does not seem to be fired all
   the time when `resizeBy()` is used. It was mostly fine, except when
   it wasn't... Since we have a `.waitForCondition()` call right after,
   we can probably skip the await of this event.

Differential Revision: https://phabricator.services.mozilla.com/D169088
2023-02-08 09:52:44 +00:00
Sandor Molnar
d82f8e0057 Backed out changeset 549ce0549c2e (bug 1800417) for causing bc failures in browser/components/extensions/test/browser/browser_unified_extensions_overflowable_toolbar.js CLOSED TREE 2023-02-08 14:23:39 +02:00
Luca Greco
4ca5108db7 Bug 1788204 - Fix frequent intermittent browser_ext_windows_create.js failures on macos. r=willdurand
I've been tried to bisect if this intermittent has been raising in intermittency due to some change on the
Firefox side, but I kept hitting this failure locally on macos artifiacts debug buils consistently when
using --verify even when I went month back in mozilla-central revisions, which seems to suggest that
this particular intermittent failure have been around for a while and increased in frequency either
for some small timing changes that increased the change of hitting it in a debug build (either on the
Firefox or macOS windows management side), which is not going to be easy to confirm or bisect precisely.

Interestingly when the same test file runs locally on macos using --headless along with --verify, the test
is passing consistently (which makes me thing that the issue may be hit because a browser window created
as fullscreen may be transitioning to fullscreen state asynchronously enough to not be always be in fullscreen
mode by the time browser.window.create resolves the new window details and we hit the intermittent assertion
failure).

As an alternative to skip the entire test file on macos debug builds, this patch includes
a small change to the test case that makes sure that if the test is running on macos and the
new window state is not fullscreen as requested, it wait until it gets to the fullscreen state.

This change was enough to pass --verify locally on macos, and so it also confirms that the newly created
window is getting to the fullscreen state at some point even when it wasn't yet in the fullscreen state
by the time browser.windows.create resolves.

Differential Revision: https://phabricator.services.mozilla.com/D169108
2023-02-08 12:09:31 +00:00
Sandor Molnar
e1697edd0b Backed out changeset 1b8f8c838a20 (bug 1798683) for causing bc failures in browser/components/extensions/test/browser/browser_unified_extensions_overflowable_toolbar.js CLOSED TREE 2023-02-08 14:03:39 +02:00
William Durand
6f77c2b373 Bug 1800417 - Fix the use of both toolbarbutton-1 and subviewbutton CSS classes in extension widgets. r=Itiel,mconley,dao,rpl
Depends on D169088

Differential Revision: https://phabricator.services.mozilla.com/D162712
2023-02-08 10:25:02 +00:00
Sandor Molnar
a0241439d5 Backed out changeset 6dbcf3dd30c4 (bug 1800417) for causing bc failures in browser/components/extensions/test/browser/browser_unified_extensions_overflowable_toolbar.js CLOSED TREE 2023-02-08 13:54:33 +02:00
William Durand
4cf5bc48b2 Bug 1800417 - Fix the use of both toolbarbutton-1 and subviewbutton CSS classes in extension widgets. r=Itiel,mconley,dao,rpl
Depends on D169088

Differential Revision: https://phabricator.services.mozilla.com/D162712
2023-02-08 10:25:02 +00:00
William Durand
a71d5019fe Bug 1798683 - Fix intermittent browser/components/extensions/test/browser/browser_unified_extensions_overflowable_toolbar.js. r=rpl
This patch attempts to fix intermittent failures by:

1. using `ensureMaximizedWindow()` where appropriate. While nothing
   seemed wrong per se with the previous approach, resizing to the
   original height was done to restore the previous window dimensions.
   Since the window is maximized before, it makes sense to reuse this
   helper function, especially given that it is a bit more robust than
   just awaiting an event.
2. not awaiting the `resize` event, which does not seem to be fired all
   the time when `resizeBy()` is used. It was mostly fine, except when
   it wasn't... Since we have a `.waitForCondition()` call right after,
   we can probably skip the await of this event.

Differential Revision: https://phabricator.services.mozilla.com/D169088
2023-02-08 09:52:44 +00:00
William Durand
5ebfdae8bd Bug 1782359 - Fix intermittent browser/components/extensions/test/browser/browser_ext_activeScript.js. r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D169048
2023-02-07 10:35:26 +00:00
Gregory Pappas
77dc0f148e Bug 1811274 - Add disposition property to browser.search.search r=robwu
Depends on D164700

Differential Revision: https://phabricator.services.mozilla.com/D168206
2023-02-02 21:47:27 +00:00
Gregory Pappas
5c46c3f6d8 Bug 1804357 - Implement browser.search.query r=robwu,search-reviewers,Standard8
Differential Revision: https://phabricator.services.mozilla.com/D164700
2023-02-02 21:47:27 +00:00