Commit graph

76 commits

Author SHA1 Message Date
Emilio Cobos Álvarez
097eb3703e Bug 1820534 - Move front-end to modern flexbox. r=Gijs,dao,settings-reviewers,credential-management-reviewers,sgalich,devtools-reviewers,nchevobbe
Done mostly automatically via find/replace following the conversions
specified here:

  https://groups.google.com/a/mozilla.org/g/firefox-dev/c/9sGpF1TNbLk/m/QpU3oTUuAgAJ

For the most part I think the "flex: N N" usage could be simplified to
just "flex: N", but I wanted to preserve behavior (-moz-box-flex sets
both flex-grow and flex-shrink).

I changed legacy layout to also look at the order property rather than
-moz-box-ordinal-group because it made splitters and treecols easier (we
don't need to deal with both orders).

Differential Revision: https://phabricator.services.mozilla.com/D171715
2023-03-08 16:13:57 +00:00
Stanca Serban
923ef223cd Backed out changeset c25af897c9bc (bug 1820534) for causing reftests and mochitests failures. 2023-03-08 17:34:42 +02:00
Emilio Cobos Álvarez
57e476145f Bug 1820534 - Move front-end to modern flexbox. r=Gijs,dao,settings-reviewers,credential-management-reviewers,sgalich,devtools-reviewers,nchevobbe
Done mostly automatically via find/replace following the conversions
specified here:

  https://groups.google.com/a/mozilla.org/g/firefox-dev/c/9sGpF1TNbLk/m/QpU3oTUuAgAJ

For the most part I think the "flex: N N" usage could be simplified to
just "flex: N", but I wanted to preserve behavior (-moz-box-flex sets
both flex-grow and flex-shrink).

I changed legacy layout to also look at the order property rather than
-moz-box-ordinal-group because it made splitters and treecols easier (we
don't need to deal with both orders).

Differential Revision: https://phabricator.services.mozilla.com/D171715
2023-03-08 14:11:35 +00:00
Emilio Cobos Álvarez
0730720a67 Bug 1817669 - Remove now-dead declaration.
This addressed a post-landing review comment in the previous patch.

MANUAL PUSH: Trivial follow-up CLOSED TREE
2023-02-20 01:56:06 +01:00
Emilio Cobos Álvarez
e11edf6f9b Bug 1817669 - Tweak sidebar popup alignment. r=aminomancer
Differential Revision: https://phabricator.services.mozilla.com/D170297
2023-02-19 22:27:23 +00:00
Emilio Cobos Álvarez
ddbec758d4 Bug 1792748 - Persist sidebar style attribute rather than width attribute. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D158291
2022-09-30 09:41:32 +00:00
Andrew McCreight
f36f074acc Bug 1792457 - Revert workarounds for weak references to XPCWJS crashes. r=Gijs
I have fixed the underlying XPConnect issue, so these workarounds should
no longer be needed.

There are also two more in browser/base/content/browser-siteProtections.js
that I have not fixed.

Differential Revision: https://phabricator.services.mozilla.com/D158158
2022-09-29 11:40:19 +00:00
Andrew McCreight
db4c1e8525 Bug 1792028 - Apply the lazy defineLazyPreferenceGetter workaround to browser-sidebar.js. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D157932
2022-09-22 15:07:57 +00:00
Luca Greco
ed773e81ad Bug 1786262 - Extension sidebar panel should be reloaded as part of reloading the sidebar on browser locale changes. r=jaws
In the regressing change part of Bug 1755181 (https://hg.mozilla.org/mozilla-central/rev/00c77cbfd73a),
SidebarUI observes "intl:app-locales-changed" and calls `SidebarUI.hide` and `SidebarUI._show(this.lastOpenedId)`
if the sidebar was open, that is enough to correctly refresh sidebar panels part of the browser but it is missing
the additional call to `SidebarUI._loadSidebarExtension(commandID)` that both `SidebarUI.show` and `SidebarUI.showInitially`
call once `SidebarUI._show(...)` promise is resolved.

This patch includes a new test case to explicitly cover the behavior expected on extension sidebar panels
(added to browser_sidebar_app_locale_changed.js along with the tests covering the expected behavior for
the browser integrated sidebars) and replaces the call to `SidebarUI._show(...)` with a call to `SidebarUI.showInitially`
(mainly because the associated jsdoc inline comments explicitly states that showInitially is intended to be used
when the sidebar is opened automatically and not triggered by a user interaction with the sidebar UI, which seems
to fit better then show for this particular case).

Differential Revision: https://phabricator.services.mozilla.com/D155575
2022-08-29 19:00:08 +00:00
Greg Tatum
b925c500e4 Bug 1755181 - Reload sidebar contents on app locale change; r=platform-i18n-reviewers,nordzilla
Differential Revision: https://phabricator.services.mozilla.com/D140665
2022-03-22 15:19:46 +00:00
Greg Tatum
f9d13a118f Bug 1755181 - Keep sidebar title in sync with l10n changes; r=platform-i18n-reviewers,nordzilla
Differential Revision: https://phabricator.services.mozilla.com/D140664
2022-03-22 15:19:46 +00:00
Shane Hughes
c3c31bf019 Bug 1756385 - Widgets to appear unchecked in customize mode. r=jaws
This patch adds a CSS rule to override rules that set background-color on
"checked" toolbar buttons, while in customize mode. Because the checked state is
no longer visible in customize mode (which mainly affects the sidebar toggle
widget), we could use the Accel+B hotkey to hide or show the sidebar without any
visual feedback, potentially causing confusion.

So this patch also adds a check for customize mode in SidebarUI.toggle(). It
might be more sophisticated to wrap the method in a command element that can be
updated by CustomizeMode.jsm, and link the key elements to that command, so it
only impacts the shortcuts. But for now I think a more minimal change is fine.

Also add a test to confirm that the above works correctly.

Differential Revision: https://phabricator.services.mozilla.com/D139625
2022-03-01 15:26:19 +00:00
Gijs Kruitbosch
4d901c398b Bug 1705084 - remove icons from builtin items in the sidebar selector dropdown, and stop using checkbox items in it altogether, r=emalysz
Differential Revision: https://phabricator.services.mozilla.com/D113652
2021-04-28 21:45:06 +00:00
Mike Conley
f7505a1445 Bug 1697617 - Update Synced Tabs menu for Proton. r=emalysz,flod,desktop-theme-reviewers,harry
Differential Revision: https://phabricator.services.mozilla.com/D109404
2021-03-24 07:20:46 +00:00
Emma Malysz
58a912dc5e Bug 1648530, implement sidebar telemetry probes to track how often it was opened and what type of panel was viewed. r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D81165
2020-08-10 04:16:07 +00:00
Neil Deakin
12a30e75b9 Bug 1614752, remove obsolete Sidebar:VisibilityChange messages, r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D62471

--HG--
extra : moz-landing-system : lando
2020-02-12 22:47:15 +00:00
Kirk Steuber
55bdd37f7c Bug 1603830 - Replace XULElement.ordinal with el.style.MozBoxOrdinalGroup r=bgrins
Depends on D58670

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

--HG--
extra : moz-landing-system : lando
2020-01-06 20:02:43 +00:00
Emma Malysz
57215abe07 Bug 1601094, rename the remaining .xul files in browser/ to .xhtml r=marionette-reviewers,whimboo,mossop
Differential Revision: https://phabricator.services.mozilla.com/D55751

--HG--
rename : browser/base/content/aboutDialog.xul => browser/base/content/aboutDialog.xhtml
rename : browser/base/content/newInstall.xul => browser/base/content/newInstall.xhtml
rename : browser/base/content/pageinfo/pageInfo.xul => browser/base/content/pageinfo/pageInfo.xhtml
rename : browser/base/content/safeMode.xul => browser/base/content/safeMode.xhtml
rename : browser/base/content/sanitize.xul => browser/base/content/sanitize.xhtml
rename : browser/base/content/titlebar-items.inc.xul => browser/base/content/titlebar-items.inc.xhtml
rename : browser/base/content/webext-panels.xul => browser/base/content/webext-panels.xhtml
rename : browser/base/content/webrtcIndicator.xul => browser/base/content/webrtcIndicator.xhtml
rename : browser/components/downloads/content/contentAreaDownloadsView.xul => browser/components/downloads/content/contentAreaDownloadsView.xhtml
rename : browser/components/migration/content/migration.xul => browser/components/migration/content/migration.xhtml
rename : browser/components/places/content/bookmarkProperties.xul => browser/components/places/content/bookmarkProperties.xhtml
rename : browser/components/places/content/bookmarksSidebar.xul => browser/components/places/content/bookmarksSidebar.xhtml
rename : browser/components/places/content/historySidebar.xul => browser/components/places/content/historySidebar.xhtml
rename : browser/components/places/content/places.xul => browser/components/places/content/places.xhtml
rename : browser/components/shell/content/setDesktopBackground.xul => browser/components/shell/content/setDesktopBackground.xhtml
extra : moz-landing-system : lando
2019-12-11 00:27:19 +00:00
Victor Porof
f9f5914039 Bug 1561435 - Format browser/base/, a=automatic-formatting
# ignore-this-changeset

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

--HG--
extra : source : 96b3895a3b2aa2fcb064c85ec5857b7216884556
2019-07-05 09:48:57 +02:00
Ehsan Akhgari
b3c4267b3c Bug 1557887 - Part 6: Pass a storage principal to the rest of the call sites for createAboutBlankContentViewer(); r=baku
Differential Revision: https://phabricator.services.mozilla.com/D34460

--HG--
extra : moz-landing-system : lando
2019-06-12 09:07:33 +00:00
Mohd Umar Alam
dbe061e372 Bug 1533533-Add a label to hide synced tabs sidebar when it is shown r=sfoster,jaws,flod
Differential Revision: https://phabricator.services.mozilla.com/D28177

--HG--
extra : moz-landing-system : lando
2019-04-26 06:10:43 +00:00
Luca Greco
6813669d75 Bug 1536473 - ext-menu onWindowOpen handler should wait for SidebarUI to be fully initialized. r=mixedpuppy,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D24034

--HG--
extra : moz-landing-system : lando
2019-03-25 20:47:27 +00:00
Neil Deakin
66040975f2 Bug 1519953, replace calls to retrieve boxobject position and size with getBoundingClientRect, r=gijs
--HG--
extra : rebase_source : 65a9e08513ada3cda6beeb09d7f8a53620c2999f
2019-03-01 12:26:45 -05:00
Shane Caraveo
e55c1dd0b9 Bug 1516680 sidebar incognito support, r=rpl,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D15485

--HG--
extra : moz-landing-system : lando
2019-01-18 14:16:33 +00:00
Dão Gottwald
9880945252 Bug 1509651 - Stop flushing style for knowing the UI direction. r=florian
Differential Revision: https://phabricator.services.mozilla.com/D12827

--HG--
extra : moz-landing-system : lando
2018-11-26 11:59:04 +00:00
Paolo Amadini
72ec57e0b2 Bug 1482610 - Part 2 - Move the remaining attributes and remove the sidebar broadcasters. r=jaws,mixedpuppy
This also fixes unintended behavior for which clicking the selected item in the sidebar selector would hide the sidebar.

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

--HG--
extra : rebase_source : 891c99ab68f4689513801a1957a3d3846b7ffe58
2018-08-19 19:54:02 +01:00
Paolo Amadini
327194f39f Bug 1482610 - Part 1 - Move the sidebar title and URL from the broadcasters to a JavaScript object. r=jaws,mixedpuppy
The immediate goal is only to remove the broadcasters, so we still require the labels to be set manually on the "toolbarbutton" and "menuitem" elements. Generating these elements programmatically from the new SidebarUI.sidebars object, both for built-in sidebars and extensions, can be a future improvement.

The autoCheck attribute is also unnecessary since it is only intended for the menu items, and they are already properly updated after their command is invoked. Since the attribute was written with the wrong capitalization, it already had no effect.

The persistence of the label of the sidebar selector is also unnecessary since it is already set on startup. Removing this does not seem to cause any additional flickering.

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

--HG--
extra : rebase_source : a5712b8e9bbdea29ab9e9a1bbd93217b24c354b4
2018-08-14 15:18:03 +01:00
Brian Grinstead
abf1620630 Bug 1479125 - Migrate calls that expect an element to be returned to use element variation firstChild etc to firstElementChild etc;r=Paolo
This allows the JS to work in HTML documents, where whitespace is preserved. In XUL
documents, whitespace is ignored when parsing so text nodes are generally not returned.

The following changes were made, with manual cleanups as necessary (i.e. when firstChild actually
refers to a text node, or when firstChild is used in a loop to empty out an element):

  firstChild->firstElementChild
  lastChild->lastElementChild
  nextSibling->nextElementSibling
  previousSibling->previousElementSibling
  childNodes->children

MozReview-Commit-ID: 95NQ8syBhYw

--HG--
extra : rebase_source : 186d805f7a2a56694dda9032aceac2dfe5424753
2018-08-08 15:22:53 -07:00
Brian Grinstead
538e6d5d64 Bug 1476030 - Part 3 - Migrate callers from document.persist to xulStore.persist;r=Gijs
MozReview-Commit-ID: JmlIDK9A8dv

--HG--
extra : rebase_source : 5bd4129d99d7c6d24b8c4d33b1ff00be5e180628
2018-07-18 09:43:45 -07:00
Brian Grinstead
8ceaae11ca Bug 1476030 - Part 1 - Expose xulStore through Services;r=Gijs
This lets us use Services.xulStore instead of requiring
Cc["@mozilla.org/xul/xulstore;1"].getService(Ci.nsIXULStore);

MozReview-Commit-ID: 2eXifCPhlGs

--HG--
extra : rebase_source : c65b9395cc192d05d1a348cfbf92f7f59d41dc8f
2018-07-18 09:43:38 -07:00
Mark Banner
5b8ba7f27e Bug 1452645 - Remove load in sidebar functionality. r=lina,mak
Based on patch by mixedpuppy.

MozReview-Commit-ID: BZwOtr4VbCH

--HG--
extra : rebase_source : 2e3ad3fedaf82d0e5d3db9bcebf1c2faa46447e7
2018-06-06 21:00:45 +01:00
Mark Banner
26be929b13 Bug 1453667 - Remove BrowserUITelemetry from other parts of browser/ r=Gijs
MozReview-Commit-ID: FG1PiVPBY5U

--HG--
extra : rebase_source : 4c8f4553052e00dc5632a5ec36b7d28ac216d53d
2018-06-06 19:42:19 +01:00
Shane Caraveo
be53524747 Bug 1403965 fix context menu position in extension sidebar, r=kmag
MozReview-Commit-ID: 37XgWflt2qG

--HG--
extra : rebase_source : 224eb8ad1f1f12b1598cbad48536fab51e26648d
2018-04-24 13:01:00 -05:00
Andreea Pavel
e495ef0c18 Backed out changeset e2573db9d14e (bug 1403965) for failing browser chrome at browser/components/extensions/test/browser/test-oop-extensions/browser_ext_sidebarAction_runtime.js on a CLOSED TREE 2018-04-24 02:13:38 +03:00
Shane Caraveo
96d7662629 Bug 1403965 fix context menu position in extension sidebar, r=kmag
MozReview-Commit-ID: 37XgWflt2qG

--HG--
extra : rebase_source : 1d3db0366d99c671196153f973d2c12db387432e
2018-04-23 17:11:18 -05:00
Shane Caraveo
dd3edd16c4 Bug 1398713 pass triggeringPrincipal when using browser.loadURI, r=Gijs,kmag 2018-02-28 17:32:01 -06:00
Nihanth Subramanya
a37bd50fe6 Bug 1438511 - Don't update sidebar UI density before SidebarUI is initialized, or if the sidebar is not open. r=florian
MozReview-Commit-ID: GTfBrSccecX

--HG--
extra : rebase_source : 878f733204cfcea79590975a3b3b93e365b7963c
2018-02-15 19:31:03 +05:30
Mark Striemer
5b4239522f Bug 1421811 - Part 3: Update shortcut in sidebar on update r=Gijs,mixedpuppy
MozReview-Commit-ID: 4y02mCqwacg

--HG--
extra : rebase_source : c0a0334d46037793faf3c6797903df70f8de0e51
2018-02-06 12:55:40 -06:00
Vikas
fff6bedb82 Bug 1374791 - Favicon should be used for sidebar icon when loading web content, r=gijs
--HG--
extra : rebase_source : 1f3e52ca09ed4fb121ae74b14b52273fed41b76b
2017-12-06 14:15:23 +05:30
Brian Grinstead
62ec8eba92 Bug 1407737 - Don't persist sidebar state unless if the last window is being closed. r=mikedeboer
MozReview-Commit-ID: 7wBtCZDG1V3

--HG--
extra : rebase_source : 414412a0f01566b84f28d12df4985369d2a8110b
2017-10-18 08:32:41 -07:00
Gijs Kruitbosch
069f2c2997 Bug 1391280 - store last sidebar command irrespective of whether sidebar was open, r=bgrins,mixedpuppy
MozReview-Commit-ID: HBfdW5vEZaD

--HG--
extra : rebase_source : 5058884698a2a2144b921a36abbe7c8c3a1fda52
2017-08-23 14:06:26 +01:00
Shane Caraveo
73b473d1aa Bug 1385630 fix extension sidebar restore after app update, r=Gijs
MozReview-Commit-ID: IR0UDJgrp58

--HG--
extra : rebase_source : 6bb066650a94c3991e05c72ff3fb28cdb0e5a021
2017-09-10 13:36:54 -07:00
Brian Grinstead
2ed7602d7a Bug 1394207 - Export a function to show the sidebar without firing focus for session restore;r=Gijs
MozReview-Commit-ID: uHrShpl2xJ

--HG--
extra : rebase_source : b9a79d541171982c6860edec366722821844f3e1
2017-09-06 08:58:10 -07:00
Brian Grinstead
935f53a280 Bug 1394207 - Only fire the SidebarFocused event for non-startup entry points;r=Gijs
If the sidebar is being opened during startup (either at delayedLoad or when being
adopted from another window), we don't want sidebar panels to steal focus from the page

MozReview-Commit-ID: 4mBP2dQdyKY

--HG--
extra : rebase_source : 1349ddcac55fc7bf7e02ff410e6d49d1c03facb3
2017-09-06 08:49:07 -07:00
Adrian Wielgosik
8d734f5355 Bug 1387356 - Remove deprecated sidebar functions. r=dao
MozReview-Commit-ID: R7iw6RpDmc

--HG--
extra : rebase_source : 792d014a8beb62463c3b13556bf0b4878238401a
2017-09-04 19:53:35 +02:00
Gijs Kruitbosch
5098cc9707 Back out b5f5d47ac123 (bug 1391280) for breaking when session store tries to restore sidebars (latent errors in webextension test browser/components/extensions/test/browser/test-oop-extensions/browser_ext_tabs_lazy.js ) on a CLOSED TREE
MozReview-Commit-ID: LO2dv6ALkfZ

--HG--
extra : rebase_source : 4eab585a14d52bb84a39d67b65b4b52098dee4a9
extra : amend_source : 2dd6e64a005fd949ab1429190b46dbb6861c9898
2017-08-25 12:17:21 +01:00
Gijs Kruitbosch
45e59c97f6 Bug 1391549 - persist positionend value to ensure sidebar side is correct on startup when sidebar is closed, r=bgrins
MozReview-Commit-ID: LOn3Q7Hg3BC

--HG--
extra : rebase_source : 712fc121385e12045aa9e96ff0d051ce858a6530
2017-08-23 14:07:46 +01:00
Gijs Kruitbosch
a39a60a912 Bug 1391280 - store last sidebar command irrespective of whether sidebar was open, r=bgrins
MozReview-Commit-ID: HBfdW5vEZaD

--HG--
extra : rebase_source : 167ed942355129e062746fe012f26fbb47016732
2017-08-23 14:06:26 +01:00
Gijs Kruitbosch
7cf533b94e Bug 1372601 - fix title being gone when closing and reopening the sidebar with a webpage loaded, r=bgrins
MozReview-Commit-ID: JvZ5BbVqdz2

--HG--
extra : rebase_source : 861662ebce7559774666315be2a20ed962295953
2017-08-17 12:24:05 +01:00
Mike de Boer
25583e0eda Bug 1377968 - Add a tools section and subview to the Bookmarks subview inside the Library widget. r=Gijs
MozReview-Commit-ID: GqbUMbuvYoO

--HG--
extra : rebase_source : 09f489b9b558a9b8dfc0aecbf1ab863d816ee43b
2017-08-15 13:34:41 +02:00