Commit Graph

189 Commits

Author SHA1 Message Date
Erica Wright
942200ccac Bug 1033395 - Panels Should Be Anchored from the Same Height on the Toolbar. r=johannh
MozReview-Commit-ID: 6bhlfeD1esE
2017-09-13 15:49:32 -04:00
Phil Ringnalda
6f4d37fc42 Backed out changeset 5b9d2ebcf44e (bug 1033395) for failures in browser_overflow_anchor.js
MozReview-Commit-ID: LfhmJLydnaF
2017-10-16 22:01:54 -07:00
Erica Wright
fa263f98ba Bug 1033395 - Panels Should Be Anchored from the Same Height on the Toolbar. r=johannh
MozReview-Commit-ID: 6bhlfeD1esE
2017-09-13 15:49:32 -04:00
Dan Banner
5af4450327 Bug 1408777 - Automatically fix instances of missing semicolons in the tree. r=Standard8
MozReview-Commit-ID: Jm8BRgt6mIv
2017-10-15 20:50:39 +01:00
Mike de Boer
3f2ca69f96 Bug 1401991 - Ensure that we don't hide panelviews that are already reparented to another multi-view and ensure to hide other panels consistently. r=Gijs
* Harden the new `hideAllViewsExcept()` to not do erroneous things if called when
   the binding is already gone.
 * Generalize things into `hideAllViewsExcept(thisOne)`:
    - Clear `_viewShowing` in there and do the descriptionHeightWorkaround thing
      in there too,
    - For Photon panels, do all the 'current' attribute setting in there. To show
      a panel during transition, I introduced the 'in-transition' attribute.
 * I had to make sure not to over-eagerly dispatch 'ViewShowing' events, because
   that confuses some,
 * Move the temporary panel handling, which contains an ephemeral panelmultiview
   instance, internally. This cleans up the hacky, duplicate PanelUI.js code nicely.
 * Keep a local copy of `_transitionDetails` to ensure it's still there after transition,
 * Harden `_cleanupTransitionPhase()` to only clear the phase that belongs to a
   specific transition, _if_ that's passed in as an argument. This resolves any
   potential raciness that might occur when `showSubView()` is called again mid-transition.
 * Skip the UITour element visibility check when it's inside a panelview, because
   too many things need to happen and that check is too simple to be useful in
   that case.

MozReview-Commit-ID: 5HpJKs1Ny5j
2017-09-29 13:51:51 +02:00
Mike de Boer
47d7068811 Bug 1402023 - Limit the 'Recent Activity' list in the Library to a maximum of 6 items. r=Gijs
MozReview-Commit-ID: AVHRKvAJjWe
2017-09-21 18:25:41 +02:00
Mike de Boer
4e3ec7ecb7 Bug 1354536 - Part 3 - When the Library view is shown, populate a new 'Recent Highlights' section with at most 12 items as in about:newtab. r=Gijs
MozReview-Commit-ID: Bs1RzL0uewH
2017-09-19 16:17:16 +02:00
Zibi Braniecki
424682e3b6 Bug 1398390 - Only react to mousedown if it is a left-click. r=Gijs
MozReview-Commit-ID: Ie2Xgasg2eN
2017-09-09 22:17:19 -07:00
Sebastian Hengst
3a807c09ee Backed out changeset 1a8147d55b02 (bug 1398390) for failing browser-chrome's browser_overflow_anchor.js at least on macOS and Windows. r=backout 2017-09-10 09:37:30 +02:00
Zibi Braniecki
8c25be70ea Bug 1398390 - Only react to mousedown if it is a left-click. r=Gijs
MozReview-Commit-ID: Ie2Xgasg2eN
2017-09-09 22:17:19 -07:00
Florian Quèze
5415e80530 Bug 1391704 - Avoid flickering while moving tabs across windows, r=mconley. 2017-09-01 00:42:31 +02:00
Gijs Kruitbosch
3a2a3f1870 Bug 1354117 - remove old panel code from panelUI and CSS, r=jaws
MozReview-Commit-ID: G6a9ybDxqki
2017-08-01 19:59:38 +01:00
Gijs Kruitbosch
4f5a9c34e6 Bug 1354117 - remove old panel code from customize mode and update related CSS, r=jaws
MozReview-Commit-ID: IwKUWMTagCK
2017-08-02 11:51:58 +01:00
Gijs Kruitbosch
d485cb5fac Bug 1354117 - remove wrap handling for the bookmarks toolbar button and tests verifying it, r=johannh
MozReview-Commit-ID: CeSGIQrDPpw
2017-07-31 21:52:06 +01:00
Florian Quèze
297c9e8335 Bug 1381853 - lazy load panelUI.js into the browser window, r=mconley. 2017-07-23 00:17:56 +02:00
Johann Hofmann
0bc53a79e8 Bug 1371219 - Increase margin of main menu items when accessed through touch. r=mikedeboer
MozReview-Commit-ID: 9gjxxc6O5YS
2017-07-20 16:45:02 +02:00
Mike de Boer
fb06a4487b Bug 1378794 - Dispatch the 'ViewHide' event on the correct, current panelview when a temporary panel is destroyed. r=Gijs
MozReview-Commit-ID: HXjGJJGChUz
2017-07-06 18:47:59 +02:00
Sebastian Hengst
30df7b1aac Backed out changeset f3fc2ea88f60 (bug 1378794) for failing browser/components/extensions/test/browser/browser_ext_popup_corners.js. r=backout 2017-07-06 18:33:55 +02:00
Mike de Boer
bbbdce9aba Bug 1378794 - Dispatch the 'ViewHide' event on the correct, current panelview when a temporary panel is destroyed. r=Gijs
MozReview-Commit-ID: HXjGJJGChUz
2017-07-06 16:36:24 +02:00
Gijs Kruitbosch
d3f133c30a Bug 1354145 - set photon-structure attribute on root, update palette/panel icon sizes and layout, r=mikedeboer
MozReview-Commit-ID: 2LhIhI480Yb
2017-06-27 21:47:30 +01:00
Gijs Kruitbosch
eb62d2a9c9 Bug 1373972 - update overflow chevron state when resetting, r=jaws
MozReview-Commit-ID: IO6fEMHeowT
2017-06-22 14:13:37 +01:00
Paolo Amadini
7afba17088 Bug 1362970 - Part 2 - Script-generated patch to convert .then(null, ...) to .catch(...). r=florian
Changes to Promise tests designed to test .then(null) have been reverted, and the browser/extensions directory was excluded because the projects it contains have a separate process for accepting changes.

MozReview-Commit-ID: 1buqgX1EP4P
2017-06-19 11:32:37 +01:00
Mike de Boer
f9f58d253a Bug 1370580 - Part 1 - Ensure that the overflow rules are set the exact same way for the temporary panel as for the appMenu panel. r=Gijs
These rules are set explicitly to allow the two views to be displayed next to
each other briefly when the slide-in transition starts.
This patch also applies the last remaining photon styles to the temporary panel,
which is used by the new Library widget as well.

MozReview-Commit-ID: 45aYzVHwRYv
2017-06-16 15:41:57 +02:00
Sebastian Hengst
b75bf97136 Backed out changeset af176d040fad (bug 1370580) for frequently failing browser_ext_sidebarAction.js on Linux debug. r=backout a=backout
MozReview-Commit-ID: AwnMjAQTdmC
2017-06-17 23:18:55 +02:00
Mike de Boer
6ea7b945df Bug 1370580 - Part 1 - Ensure that the overflow rules are set the exact same way for the temporary panel as for the appMenu panel. r=Gijs
These rules are set explicitly to allow the two views to be displayed next to
each other briefly when the slide-in transition starts.
This patch also applies the last remaining photon styles to the temporary panel,
which is used by the new Library widget as well.

MozReview-Commit-ID: 45aYzVHwRYv
2017-06-16 15:41:57 +02:00
Sebastian Hengst
9c3bf7d0cd Backed out changeset d6be7dc56cc5 (bug 1370580) for failing test-oop-extensions/browser_ext_browserAction_popup_resize.js. r=backout 2017-06-15 19:24:39 +02:00
Mike de Boer
a351ec54ca Bug 1370580 - Part 1 - Ensure that the overflow rules are set the exact same way for the temporary panel as for the appMenu panel. r=Gijs
These rules are set explicitly to allow the two views to be displayed next to
each other briefly when the slide-in transition starts.
This patch also applies the last remaining photon styles to the temporary panel,
which is used by the new Library widget as well.

MozReview-Commit-ID: 45aYzVHwRYv
2017-06-15 12:49:18 +02:00
Doug Thayer
7117a4480b Bug 1369899 - Listen to MozDOMFullscreen events r=Gijs
While we are now correctly evaluating the fullscreen situation
in OSX so that our update doorhangers behave as if we're in
windowed mode, we aren't correctly listening for state changes.
This addresses that, and tries to limit the chattiness by only
listening to the fullscreen events that we care about.

MozReview-Commit-ID: 9J009l4w21E
2017-06-02 15:13:23 -07:00
Wes Kocher
afb6a564d7 Backed out changeset c1d5b019c52c (bug 1369899) for failures in browser_panelUINotifications_multiWindow.js a=backout
MozReview-Commit-ID: AhqR5TdpXqz
2017-06-05 15:32:20 -07:00
Doug Thayer
1350aee458 Bug 1369899 - Listen to MozDOMFullscreen events r=Gijs
While we are now correctly evaluating the fullscreen situation
in OSX so that our update doorhangers behave as if we're in
windowed mode, we aren't correctly listening for state changes.
This addresses that, and tries to limit the chattiness by only
listening to the fullscreen events that we care about.

MozReview-Commit-ID: 9J009l4w21E
2017-06-02 15:13:23 -07:00
Gijs Kruitbosch
f9931221c0 Bug 1354155 - use photon panelmultiview for individual subviews, r=mikedeboer
MozReview-Commit-ID: 9iEHcGDLbJt
2017-05-30 16:30:25 +01:00
Gijs Kruitbosch
57f7e666ce Bug 1354078 - update labels for customization context menus for Photon, r=bgrins
MozReview-Commit-ID: 1qMCkzxuT4M
2017-05-24 11:17:54 +01:00
Gijs Kruitbosch
303fbb5292 Bug 1354078 - update panel/toolbar context menus to move items to the right place, with tests, r=bgrins
MozReview-Commit-ID: DpQdvE25iqU
2017-05-27 12:48:36 +01:00
Ryan VanderMeulen
c297ca2ae5 Backed out changesets 7be34fd75378 and a2edd07d05dd (bug 1354078) for browser_photon_customization_context_menus.js failures on a CLOSED TREE. 2017-05-26 13:29:10 -04:00
Doug Thayer
4631fa32d0 Bug 1357917 - Only hide doorhanger when navtoolbox autohides r=Gijs
On OSX we want to show doorhangers when in fullscreen, since OSX
fullscreen doesn't hide the nav toolbox. This makes that change,
and also adds flip="slide" to the panel so that the arrow adjusts
correctly. Unfortunately there still seems to be a bit of a
problem with this where the doorhanger adjusts its position when
entering fullscreen but then waits a little bit (not sure what
triggers it) before updating the anchor arrow. This is tracked by
Bug 1368094.

MozReview-Commit-ID: 3dRLwgMjxIb
2017-05-24 12:52:56 -07:00
Gijs Kruitbosch
11f0ce4911 Bug 1354078 - update labels for customization context menus for Photon, r=bgrins
MozReview-Commit-ID: 1qMCkzxuT4M
2017-05-24 11:17:54 +01:00
Gijs Kruitbosch
ce62942c89 Bug 1354078 - update panel/toolbar context menus to move items to the right place, with tests, r=bgrins
MozReview-Commit-ID: DpQdvE25iqU
2017-05-19 17:27:11 +01:00
Doug Thayer
89a15e6773 Bug 1359733 - (pt. 2) Refactor gMenuButtonUpdateBadge r=rstrong
Since we now have a store of notifications that is global across
all windows, it no longer makes sense to consume the API from
within browser.js. This patch moves the browser.js logic out into
a jsm file that is wired up through nsBrowserGlue, such that it
will be lazily instantiated on the first update event it would
receive[1].

We decided to move this into toolkit, as this piece of the
system is fairly generic and shouldn't differ between
applications.

[1]: There is a change to nsBrowserGlue to use "global[module]"
instead of this[module]. This mirrors the code for all the other
types of notifications, and I suspect it was just a latent bug,
since the original diff that includes this line makes no use of
it.

MozReview-Commit-ID: 8EQdM9BOpgl
2017-05-19 08:56:22 -07:00
Doug Thayer
573cb35085 Bug 1359733 - Move menu notification state to jsm r=Gijs
Right now, app menu doorhangers/badges have their state managed
directly inside panelUI.js. This is problematic because these
doorhangers and badges usually have to do with Firefox itself,
and not the specific window that's showing them. Accordingly, the
simplest solution was to move panelUI.js's notification state out
into a jsm file, which will fire notifications that all panelUI
instances can listen to.

MozReview-Commit-ID: 7b8w1WsQ29p
2017-05-18 13:22:27 -07:00
Gijs Kruitbosch
d26133a073 Bug 1365294 - swap position of the fixed overflow list, r=mikedeboer
MozReview-Commit-ID: 9LlTxRLuOkx
2017-05-17 15:05:36 +01:00
Florian Quèze
50b8c6608d Bug 1353542 - script-generated patch to remove .bind(this) calls we no longer need now that generator functions have been replaced with async functions, r=Mossop. 2017-05-12 14:47:41 +02:00
Florian Quèze
ff53eb9a63 Bug 1353542 - massive script-generated patch converting Task.async and Task.spawn calls, and generators clearly identifiable as tasks, rs=Mossop. 2017-05-12 14:42:39 +02:00
Mike de Boer
10ad513c9f Bug 1354127 - Add a 'More' toolbar button to the Photon app menu. r=Gijs
This also improves the styling of checkbox buttons inside the menu and improves
support for adopting panelviews into the app menu from another area properly.

MozReview-Commit-ID: 1I9CeBx3zrz
2017-05-11 16:23:16 -04:00
Ryan VanderMeulen
5d2035f8e0 Merge m-c to autoland. a=merge 2017-05-11 11:30:47 -04:00
Sebastian Hengst
222cb519da merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: HWYxZeNWish
2017-05-11 16:50:12 +02:00
Phil Ringnalda
c15c4ea17c Backed out changeset 18f88f090a65 (bug 1358363) for failures in browser_panelUINotifications.js
CLOSED TREE

MozReview-Commit-ID: 3pkGasvy9tf
2017-05-10 19:27:59 -07:00
Doug Thayer
8c85ee3f84 Bug 1358363 - Update notification focuses another window. r=rstrong
Right now notifications displayed in non-focused windows are causing that window to be focused. This is annoying. We could work to make the doorhangers not focus the other windows, but a simpler solution is to just not show the doorhanger until the window is focused. This has the added benefit of ensuring that the doorhangers entry animation is seen by the user, increasing the likelihood that they will notice it.
Additionally, some existing tests involving extra windows were refactored. I stripped the old tests of their extra windows and created new tests specifically to test the behavior of background windows. These tests were modeled off of the background window tests of PopupNotifications.jsm, which create a new window knowing that this will cause the existing window to be the background, rather than explicitly manipulating the focus of the two windows.
2017-05-10 17:35:22 -07:00
Gijs
dea6f4a52b Bug 1354094 - show the overflow button when there are items in the permanent overflow menu, r=mikedeboer
This also disables the menu button and overflow button correctly in
customize mode, and fixes an issues where the overflow button state
would stay 'open' when closing the panel by clicking the button
a second time.

MozReview-Commit-ID: BNTkE6zvv9Q
2017-05-10 12:36:05 -04:00
Gijs Kruitbosch
f3418cac17 Bug 1354082 - part 1: make toggling the photon structure pref at runtime not break the panels, r=mikedeboer
This is unfortunate, but in order to keep automated tests working when we flip the pref,
it would be nice to be able to flip the pref at runtime and have things Just Work. This
tries to make that happen. We can remove most of this code post-Photon.

MozReview-Commit-ID: 8zbgCGJautO
2017-05-05 19:25:37 +01:00
Wes Kocher
1decb20c72 Merge m-c to autoland a=merge CLOSED TREE
MozReview-Commit-ID: 5T8pxvbfKXv
2017-05-10 17:29:04 -07:00