Commit Graph

3839 Commits

Author SHA1 Message Date
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
Gijs Kruitbosch
b965c4660a Bug 1795255 - autofix duplicate imports in tests under browser/, r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D166179
2023-01-31 11:48:41 +00:00
Gijs Kruitbosch
8bd11b391d Bug 1795255 - manual fixes for tests that break after applying this lint rule, r=Standard8,necko-reviewers,extension-reviewers,credential-management-reviewers,sgalich,willdurand
Differential Revision: https://phabricator.services.mozilla.com/D167802
2023-01-31 11:48:41 +00:00
Rob Wu
79598d955e Bug 1811459 - Avoid _moveOutKids on disconnected panelmultiview r=Gijs,rpl
`this.forNode` (with `this` being a `PanelMultiView` instance) may
return a node that was already disconnected before, in which case its
`node` member will be void. To avoid unexpected promise rejections, add
a null check before `_moveOutKids()`.

Differential Revision: https://phabricator.services.mozilla.com/D167369
2023-01-30 14:43:24 +00:00
Butkovits Atila
af64ca6493 Backed out changeset ab00cf793f29 (bug 1800417) for causing failures at browser_unified_extensions_overflowable_toolbar.js. 2023-01-30 17:34:14 +02:00
William Durand
fd0ded3d7b 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-01-30 13:36:07 +00:00
William Durand
d42c7aaa29 Bug 1811128 - Use 16/32px extension icons in toolbars. r=rpl,dao
Differential Revision: https://phabricator.services.mozilla.com/D167573
2023-01-30 10:46:12 +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
Emilio Cobos Álvarez
e3921efc1e Bug 1811834 - Clean up nsWidgetInitData. r=cmartin,geckoview-reviewers,calu
Move it to the mozilla::widget namespace.

Use enum classes for transparency, popup type, popup level, etc.

Mostly automated with sed, but there were a few manual changes required
as well in windows code because they relied on Atomic<TransparencyMode>
working (which now doesn't because TransparencyMode is 1 byte instead of
4 bytes).

Differential Revision: https://phabricator.services.mozilla.com/D167537
2023-01-23 23:58:41 +00:00
William Durand
8b62e8dde9 Bug 1801540 - Clean-up unified extensions CSS after it ships by default. r=Itiel,desktop-theme-reviewers
Depends on D166934

Differential Revision: https://phabricator.services.mozilla.com/D167378
2023-01-23 21:31:18 +00:00
Dão Gottwald
b480cfa156 Bug 1810647 - Prepare for enable urlbar result menu in Nightly. r=mak,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D167004
2023-01-23 15:54:53 +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
William Durand
3ba6a8f924 Bug 1799009 - Remove promiseEnableUnifiedExtensions() in test files. r=mconley,rpl
Depends on D166908

Differential Revision: https://phabricator.services.mozilla.com/D166923
2023-01-23 10:39:29 +00:00
Rob Wu
7023b82989 Bug 1811078 - Resolve some intermittent failures in browser_ext_incognito_views.js r=rpl
- Explicitly wait for popup close (via port.onDisconnect) before
  checking whether the popup is closed.

- On --headless (MOZ_HEADLESS), explicitly close the popup since that
  does not automatically happen for some unknown reason. Test case:
  ./mach test browser/components/extensions/test/browser/browser_ext_incognito_views.js --headless

- Explicitly wait for popup close (via port.onDisconnect) before
  closing the final private window. While this is mainly meant as
  a work-around for bug 1800100, it also helps with reducing the
  impact of bug 1811071 (follow up in bug 1811459).

Differential Revision: https://phabricator.services.mozilla.com/D167190
2023-01-20 12:14:59 +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
Oriol Brufau
34f47a6359 Bug 1809364 - Make tabs.move on multiple tabs more reliable (2). r=robwu
Bug 1323311 tried to improve browser.tabs.move, but the logic didn't
really make sense (e.g. why use 2 different maps to track indices?),
and it broke moving multiple tabs between windows: they would appear
in the wrong order.

Differential Revision: https://phabricator.services.mozilla.com/D166405
2023-01-19 13:51:31 +00:00
William Durand
7761eccedb Bug 1799009 - Remove unified extensions pref and non-unified extensions variants from test suite. r=rpl,mconley,fluent-reviewers,desktop-theme-reviewers,Itiel
This patch removes the use of the "unified extensions" pref and adjust
the existing tests. More clean-ups will be done in follow-ups, e.g. the
removal of `gUnifiedExtensions.isEnabled` and some test-only changes to
no longer create a new window in each test file.

Differential Revision: https://phabricator.services.mozilla.com/D166908
2023-01-19 10:59:25 +00:00
Dão Gottwald
95d9a858cf Bug 1801298 - Fix down/up arrow behavior with multiple selectable elements per row. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D166803
2023-01-19 10:26:53 +00:00
Sandor Molnar
6373ae2505 Backed out changeset 357170b2f52a (bug 1801298) for causing bc failures in browser/components/urlbar/tests/browser-tips/browser_selection.js CLOSED TREE 2023-01-19 12:00:27 +02:00
Dão Gottwald
367bd12003 Bug 1801298 - Fix down/up arrow behavior with multiple selectable elements per row. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D166803
2023-01-19 08:25:15 +00:00
Rob Wu
fcb47fe4eb Bug 1810732 - Set pref to enable openPopup in browser_ext_incognito_views.js r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D167170
2023-01-18 19:30:03 +00:00
Alexandre Poirot
0dadc0c81f Bug 1809848 - [devtools] Remove TargetMixin.isLocalTab/localTab attributes. r=devtools-reviewers,nchevobbe
They should rather be queried on the descriptor front.

Differential Revision: https://phabricator.services.mozilla.com/D166647
2023-01-18 12:32:03 +00:00
Butkovits Atila
b11c3c27de Backed out 4 changesets (bug 1809848) for causing failures at browser_toolbox_options_disable_js. CLOSED TREE
Backed out changeset 7dfd8676b3c7 (bug 1809848)
Backed out changeset 78375e26bffe (bug 1809848)
Backed out changeset 17b823d1492e (bug 1809848)
Backed out changeset 05e57c08310f (bug 1809848)
2023-01-17 20:23:43 +02:00
Alexandre Poirot
f270c1b74f Bug 1809848 - [devtools] Remove TargetMixin.isLocalTab/localTab attributes. r=devtools-reviewers,nchevobbe
They should rather be queried on the descriptor front.

Differential Revision: https://phabricator.services.mozilla.com/D166647
2023-01-17 16:34:01 +00:00
Marian-Vasile Laza
8607c8a3e1 Backed out 4 changesets (bug 1809848) for causing damp failures on browser-toolbox.js. CLOSED TREE
Backed out changeset 14b861cccbeb (bug 1809848)
Backed out changeset 92d5cc5ee69e (bug 1809848)
Backed out changeset 9bb5167ebc4b (bug 1809848)
Backed out changeset cdd531783324 (bug 1809848)
2023-01-17 11:16:20 +02:00
Alexandre Poirot
fc7060c0cb Bug 1809848 - [devtools] Remove TargetMixin.isLocalTab/localTab attributes. r=devtools-reviewers,nchevobbe
They should rather be queried on the descriptor front.

Differential Revision: https://phabricator.services.mozilla.com/D166647
2023-01-16 22:25:07 +00:00