Commit Graph

561 Commits

Author SHA1 Message Date
Paolo Amadini
756cb221b2 Bug 1392340 - Height jumps when opening subviews of different lengths. r=Gijs
The height of the subview being opened was supposedly calculated using an off-screen container independent from the currently displayed views, but this didn't work as expected because of the incorrect box alignment. This is now fixed and the correct minimum and maximum heights are set on the container separately, also preventing the current view from flickering before the transition in case the subview was taller.

With this issue fixed, the height can now be recalculated each time the subview is opened, without the caching that caused incorrect results when the same view was reopened with different elements or text.

Jumping could also occur because of a border applied only during the transition, which could influence the subview height in the presence of wrapping text.

MozReview-Commit-ID: EWHs1hFKXT4
2017-11-28 16:53:42 +00:00
Paolo Amadini
42eb36ed51 Bug 1420945 - Keep the existing items in the Recent Highlights section while opening the Library panel. r=Gijs
In order to display the Library view sooner, the Recent Highlights section is populated asynchronously after the view is shown. When the Library button is moved to the overflow menu, this prevents the view height animation from including this section.

This can be worked around after the first time the view is opened, and is currently done by reusing the last known height. This logic causes issues with other subviews, but to fix this the Library view has to be changed to keep the existing highlight items while fetching the new ones.

MozReview-Commit-ID: AGs7nh4CsYE
2017-11-30 21:28:00 +00:00
Edouard Oger
b37abdbbae Bug 1418466 - Add Connect Another Device button to relevant Sync UI. r=dao,markh
MozReview-Commit-ID: 5vBKH9NejVV
2017-11-17 16:48:17 -05:00
Noemi Erli
beae1b7e61 Backed out changeset 932a77d8fbae (bug 1418466) for ES failures in /builds/worker/checkouts/gecko/browser/base/content/browser-sync.js r=backout on a CLOSED TREE 2017-11-30 18:44:16 +02:00
Edouard Oger
1ad5b3de66 Bug 1418466 - Add Connect Another Device button to relevant Sync UI. r=dao,markh
MozReview-Commit-ID: 5vBKH9NejVV
2017-11-17 16:48:17 -05:00
Edouard Oger
2ab2d948cd Bug 1417520 p3 - Remove No Synced tabs yet title. r=markh
MozReview-Commit-ID: BYOMCnLk3bs
2017-11-17 15:07:17 -05:00
Edouard Oger
6301dded9f Bug 1417520 p2 - Introduce sync-illustration-issues. r=dao,markh
MozReview-Commit-ID: 8VbiDUuGvTk
2017-11-16 13:26:19 -05:00
Mark Striemer
491bc2ad0f Bug 1390158 - Notify user of extension controlling New Tab on first access r=aswan,jaws
MozReview-Commit-ID: 1g9d4UTuOgr
2017-11-22 19:00:58 -06:00
Paolo Amadini
192bb221a0 Bug 1414244 - Part 6 - Fold the "photonpanelmultiview" binding into "panelmultiview". r=Gijs
MozReview-Commit-ID: IjvSZZUHUMt
2017-11-21 14:21:32 +00:00
Paolo Amadini
dd90b8e727 Bug 1414244 - Part 5 - Remove the "panel-mainview" container. r=Gijs
MozReview-Commit-ID: 3NDGiy3Mwtq
2017-11-11 22:56:15 +00:00
Paolo Amadini
977acaa16f Bug 1414244 - Part 4 - Remove the "panel-clickcapturer" element. r=Gijs
MozReview-Commit-ID: 3aPVbnmr7QB
2017-11-11 22:48:32 +00:00
Paolo Amadini
cf6e951359 Bug 1414244 - Part 3 - Remove the "panel-subviews" container. r=Gijs
MozReview-Commit-ID: 2GGJ1myKuF5
2017-11-11 22:09:30 +00:00
Paolo Amadini
fbb05038da Bug 1414244 - Part 2 - Remove the "viewtype" attribute. r=Gijs
MozReview-Commit-ID: 8fq0KLfYWnc
2017-11-21 13:22:47 +00:00
Gijs Kruitbosch
e64b940f37 Bug 1388029 - remove useless param from PanelUI.showSubView, r=jaws
MozReview-Commit-ID: 9hkYtLxAOtQ
2017-11-07 11:54:47 +00:00
Paolo Amadini
3f2ebfffab Bug 1409301 - Update the site security subview to the Photon style. r=johannh
The site security subview is now implemented using the "photonpanelmultiview" element, replacing the last instance of the "panelmultiview" element. The subview features a standard Photon header, hence the connection state icon was moved to the element below it. This makes the styles more similar between the main view and the subview. The connection state styles are now applied using a class name, and the tests have been updated accordingly.

This change required some fixes in the "photonpanelmultiview" implementation to make sure the height of the subview is correct and to allow keyboard navigation back to the main view.

Since the expander button and the permission controls in the main view are not visible anymore after the subview is shown, some code related to focus and hover could be removed as well.

MozReview-Commit-ID: 4nIAPWJPV8k
2017-11-11 19:13:43 +00:00
Gijs Kruitbosch
6463ef8752 Bug 1408613 - stop trying to use a smaller image in the overflow panel which is wide enough, r=mikedeboer
MozReview-Commit-ID: Kh83oju1Dud
2017-11-08 17:52:20 +01:00
Jared Wein
f9d4685ed9 Bug 1410666 - Remove unused PanelUI-popup code. r=mconley
Original patch authored by Tim Nguyen (:ntim).

MozReview-Commit-ID: 6qQnRMQXPTH
2017-10-31 14:38:15 -04:00
Coroiu Cristina
a1006bed59 Backed out changeset b558ad2372bf (bug 1410666) for failing the browser-chrome on browser_all_files_referenced.js and browser_switch_to_customize_mode.js r=backout on a CLOSED TREE
Backed out changeset b558ad2372bf (bug 1410666)
2017-11-02 01:02:12 +02:00
Jared Wein
36471c65ad Bug 1410666 - Remove unused PanelUI-popup code. r=mconley
Original patch authored by Tim Nguyen (:ntim).

MozReview-Commit-ID: 6qQnRMQXPTH
2017-10-31 14:38:15 -04:00
Andrea Casaccia
18cfe6c392 Bug 1402849 - Close library panel on mid mouse click r=mikedeboer
MozReview-Commit-ID: 8AM0efs7krS
2017-10-31 09:16:50 +02:00
Jared Wein
d0b4218d06 Bug 1413030 - Polish up a few conditions when the customization palette is mostly empty. r=mconley
MozReview-Commit-ID: Gr4sXTZo7pG
2017-10-24 17:23:22 -04:00
Drew Willcoxon
4e9a0593a9 Bug 1409377 - Prevent the app menu's scrollbar from overlapping its content. r=mikedeboer
MozReview-Commit-ID: EHx5yi0pW6B
2017-10-25 12:42:28 -04:00
Mike de Boer
598a2284b9 Bug 1387808 - Switch to using XUL spacer elements for the zoom and edit controls' leading space in the app menu to fix auto-sizing issues. r=jaws
When the locale has a slightly longer label for 'Zoom', the popup auto-sizing
code starts having trouble with the inline start padding of that label and doesn't
size the popup correctly anymore.
When I change this to using a spacer element, this issue no longer occurs and the
label may become as large as localizers may need, as long as it doesn't exceed
the max-width of a panelview - 30em, currently.

MozReview-Commit-ID: CHRheMqazrj
2017-10-23 13:40:18 +02:00
Sebastian Hengst
9b30360e6e merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 790IXj5MZ4f
2017-10-18 11:48:34 +02:00
Jared Wein
d6f301d618 Bug 1409463 - Handle customization mode when only the Spacer is left. r=mconley
mconley helped with the initial setup here and they were reviewed by myself (jaws). His changes have been folded in to this patch since they didn't work as a standalone changeset.

MozReview-Commit-ID: E7U1ZciJl4D
2017-10-15 14:11:57 -04:00
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
Gijs Kruitbosch
32bd976a58 Bug 1405643 - swap out overflow panel label to say 'menu' instead of 'panel', r=mkelly
MozReview-Commit-ID: DCEO6Snxxeu
2017-10-04 16:09:01 +01:00
Gijs Kruitbosch
0ef81ff7ce Bug 1402929 - add header to overflow panel in customize mode, r=mikedeboer
MozReview-Commit-ID: 7Z8Xk2X707J
2017-09-29 23:10:38 +01:00
Gijs Kruitbosch
5acc1e4c34 Bug 1402929 - try to make overflow panel in customize mode easier to understand, r=mikedeboer
This moves the explanatory text from a pseudoelement to a real element,
and keeps only the image in a pseudoelement. It then uses a transitioned
opacity to fade that image in and out.

Because we need to fade this based on dragging items over the panel when
it's empty, it adds/removes a 'draggingover' attribute to handle the fade.

To cope with the extra element in the drag/drop container in customize mode,
this also makes the following changes:
- bail out of _onDragStart if there's no actual selected item.
- pick the fixed list in the panelHolder more reliably
- add a max-width to avoid the description making the panel wider

MozReview-Commit-ID: 9PEJSoJJ0Rp
2017-09-29 17:55:50 +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
Erica Wright
c684d54fd9 Bug 1401152 - Disable 'add to overflow menu' in the customize mode *palette* context menu for flexible space. r=Gijs
MozReview-Commit-ID: 5sQPsxVaVYz
2017-09-21 18:15:02 -04: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
Doug Thayer
9121fa9e3d Bug 1399177 - Pull label out of description in update popups r=Gijs
The margin rules for labels mean that if the See what's new link
starts its own line, the alignment looks off. We could override this,
but matching the styling for "Learn more" links, which get their own
line, seemed the better option.

MozReview-Commit-ID: 4WK9QtRMUQs
2017-09-20 15:58:25 -07:00
Gijs Kruitbosch
37078f0cfa Bug 1401754 - print in the hamburger panel should open preview on Windows/Linux but not suggest its shortcut is ctrl-p, r=dao
MozReview-Commit-ID: K4yQB6ejGRv
2017-09-20 22:54:38 +01:00
Mike de Boer
11c77ce47e Bug 1388422 - Remove all traces of the Customize Mode tip panel that no longer applies. r=Gijs
MozReview-Commit-ID: IffDnXEqooR
2017-09-20 14:37:53 +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
Drew Willcoxon
fcf6a6116b Bug 1400024 - Clicks on Zoom label in Photon app menu shouldn't close the menu. r=Gijs
MozReview-Commit-ID: 6zHRb27RBGw
2017-09-18 13:13:13 -07:00
Maya Messinger
352041761b Bug 1387846 change print button command to print instead of print preview on all platforms r=Gijs
MozReview-Commit-ID: IIxhCx4N362
2017-09-17 17:23:00 -04:00
Maya Messinger
71ee01a824 Bug 1398305 - reorder library dropdown items to spec r=Gijs
MozReview-Commit-ID: 912yc4MB5Ap
2017-09-14 11:37:22 -04:00
Doug Thayer
0810234799 Bug 1399172 - Add buttonhighlight to update doorhangers r=johannh
The highlight styling was recently added, causing update notification
buttons to both be styled as grey. This fixes that to style them as
blue again.

MozReview-Commit-ID: HDSA9NWBmIA
2017-09-12 10:08:01 -07:00
Johann Hofmann
28991ef174 Bug 1349552 - Part 2 - Add an extra drag space setting to customize mode. r=nhnt11
MozReview-Commit-ID: IWxdOeRwDeu
2017-09-10 20:38:19 +02:00
Mike de Boer
998cb252ae Bug 1374749 - Animate the panelviews differently to make it look as if the view to show is pushing the previous view out of the panel. r=jaws
MozReview-Commit-ID: Dy6UppV3xDH
2017-09-12 21:33:25 +02:00
Gijs Kruitbosch
6d7a67d2e5 Bug 1397447 - add UI and automatic toggles to make the auto-hide functionality more seamless, r=mak
MozReview-Commit-ID: 9xN3N4aLwfv
2017-09-11 18:54:48 +01:00
Sebastian Hengst
f5e44610fc Backed out changeset f09b2b387751 (bug 1374749) for frequently failing browser-chrome's browser/components/extensions/test/browser/test-oop-extensions/browser_ext_browserAction_popup_resize.js on macOS. r=backout 2017-09-11 18:45:35 +02:00
Mike de Boer
0b4bd52893 Bug 1374749 - Animate the panelviews differently to make it look as if the view to show is pushing the previous view out of the panel. r=jaws
MozReview-Commit-ID: Dy6UppV3xDH
2017-09-11 16:28:06 +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