Commit Graph

484 Commits

Author SHA1 Message Date
Sebastian Hengst
31742f9ca2 Backed out changeset 1538b0445eda (bug 1366555) for timing browser_locationBarCommand.js and browser_locationBarExternalLoad.js. r=backout 2017-08-05 23:15:16 +02:00
Michael Kohler
a220eeb86a Bug 1366555 - Remove MOZ_PHOTON_THEME ifdefs and non-MOZ_PHOTON_THEME code r=dao
MozReview-Commit-ID: CoHv9mKpAe
2017-08-05 20:37:40 +02:00
Sam Foster
05040037c0 Bug 1352075 - Implement new animation for opening/closing the arrow panels. r=dao,mossop
* Use new panel animation when opening arrow-panels (including bookmarks menu) to fade in and drop into position
* Linux/GTK is (still) excluded
* New animation is non-directional (i.e. LTR vs. RTL)

This was landed then backed out due to test failures. New since last review:

* Make opacity & transform transition durations equal - ensuring popup is not still moving when popupshown is fired
* Fix missing comma in transition-duration values
* Add animating attribute to the arrowpanel binding to disable pointer-events during the opening transition (via :jaws)
* Wait for popupshown rather than transitionend in bookmark reparenting test
* Fix specificity of CSS rules for panels/bookmarks-menu on edges other than the top (via :jaws)

MozReview-Commit-ID: DTnvyMryf5Y
2017-07-27 11:07:23 -07: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
1dde1ca8d5 Bug 1354117 - fix telemetry and a number of tests that flip photon prefs, r=johannh
MozReview-Commit-ID: 7ynaIQm22eS
2017-08-01 20:15:48 +01:00
Gijs Kruitbosch
5a6c52f6a7 Bug 1354117 - only dispatch view events once, and fix synced tabs button test, r=jaws
Prior to this patch, both CustomizableUI itself and the PanelMultiView module
tried to ensure that onViewShowing/Shown/Hiding/Hidden listeners were invoked
when the relevant DOM events fired.

PanelMultiView was doing this manually because CUI was only adding listeners
once the corresponding widget was created. Now that the relevant views can be
accessed without the corresponding widgets (via the fixed appMenu), there was
no guarantee that the listeners would be attached, and this caused empty
subviews.

Unfortunately, if the widget *was* present, it caused events to fire more than
once, which understandably broke consumers like the sync remote tabs widget,
which broke the test we're fixing up here. For other views, even if they were
not completely broken it at least did busy-work.

This patch removes the manual event invocation, and delegates the event
listener work to CUI from the PanelMultiView side. This ensures events fire,
and fire only once.

MozReview-Commit-ID: 94GhcrdcBuB
2017-08-01 12:45:55 +01:00
Gijs Kruitbosch
083671c400 Bug 1354117 - Update various other customizableui tests for photon, r=adw
There are no more help/quit buttons in the panel that shows up in customize mode,
and there are no more hyphenation quirks in items in the panel, so those tests
have been removed. The remaining tests are updated to test the correct panels.

MozReview-Commit-ID: LiUWejjZC7c
2017-08-01 15:46:58 +01:00
Gijs Kruitbosch
865d6f5756 Bug 1354117 - fix or remove tests that drag items to the panel, r=adw
The new panel doesn't have placeholders, or a distinction between wide and
narrow widgets, so those tests can just be removed.

MozReview-Commit-ID: D61AjwMbabG
2017-07-31 18:26:38 +01:00
Gijs Kruitbosch
80565d2e85 Bug 1354117 - update panel button tests for photon, r=adw
MozReview-Commit-ID: 94mIvlOenCg
2017-08-01 11:33:26 +01:00
Gijs Kruitbosch
fcc4f4817a Bug 1354117 - update customize mode button state test, r=johannh
Again, this test is mostly useless now, so I would also be fine with just removing it.

MozReview-Commit-ID: BwOGQ5pwSQd
2017-07-31 21:10:14 +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
Julian Descottes
e4c5c61d18 Bug 1387023 - initialize devtools before asserting menu items in browser_989751_subviewbutton_class.js;r=Gijs
MozReview-Commit-ID: 9piucVkS0Y9
2017-08-03 14:04:54 +02:00
UK992
890c6e6ae5 Bug 1363485 - Update tests r=dao
MozReview-Commit-ID: 4epuVQVCJPH
2017-07-30 20:39:55 +02:00
Sebastian Hengst
6b72dd3d4c Backed out changeset f3e224764ca8 (bug 1363485) 2017-08-02 16:24:54 +02:00
UK992
ddaf4b64ea Bug 1363485 - Update tests r=dao
MozReview-Commit-ID: 4epuVQVCJPH
2017-07-30 20:39:55 +02:00
Gijs Kruitbosch
9c6984405e Bug 1378807 - make search bar shortcut work in the permanent overflow panel, r=bwinton
MozReview-Commit-ID: HLdegoy2525
2017-07-27 15:00:38 +01:00
Carsten "Tomcat" Book
3113a020d8 Backed out changeset 0ee0458b1452 (bug 1351148) 2017-07-28 09:20:08 +02:00
Gijs Kruitbosch
e46e8d77d3 Bug 1383458 - disable pin to overflow / move to panel for flexible spacers (and other special items), r=jaws
MozReview-Commit-ID: 4eeKLsjPi6I
2017-07-26 17:28:47 +01:00
Wes Kocher
5b00ab80b8 Merge m-c to autoland, a=merge CLOSED TREE
MozReview-Commit-ID: 9pPsy8McMun
2017-07-21 18:18:35 -07:00
Dão Gottwald
1abbce4ae7 Bug 1383031 - Rename customization-uidensity-menu-button* classes and ids since these are menuitems. r=johannh
MozReview-Commit-ID: 72S5zENy1gX
2017-07-21 14:11:15 +02:00
Stone Shih
dfa43a2151 Bug 1351148 Part8: Revise browser_1008559_anchor_undo_restore.js to continue the test after processing the mouse event. r=smaug.
MozReview-Commit-ID: BYF94RsKhR6
2017-07-16 12:38:13 +08:00
Gijs Kruitbosch
1f33657670 Bug 1336839 - switch to BTU to avoid intermittents, r=sfoster
MozReview-Commit-ID: 4Zg88qY5B5I
2017-07-17 15:15:10 +01:00
Gijs Kruitbosch
6b5c96002a Bug 1366813 - add a flexible space item in customize mode in photon, r=mossop
MozReview-Commit-ID: 4k4VdBa4HCt
2017-07-11 13:13:35 -07:00
Wes Kocher
a8931c7cc1 Backed out changeset 051284a3564e (bug 1366813) for apparently causing autophone tests to frequently fail a=backout
MozReview-Commit-ID: 9GUFY9VAGW3
2017-07-11 12:39:26 -07:00
Gijs Kruitbosch
15d7638b8e Bug 1366813 - add a flexible space item in customize mode in photon, r=mossop
MozReview-Commit-ID: 4k4VdBa4HCt
2017-07-10 23:34:12 +01:00
Gijs Kruitbosch
283b2ca2ba Bug 1378427 - move context menus around, fix flickering in dynamic portion of the overflow menu for photon, r=jaws
Apparently the hover state of the combined buttons does not interact well with the menus unless they
share the same containing popup/panel. We broke that condition in bug 1354078. The expedient thing
is to simply move the popup back, and move it back and forth if/when the photon pref is flipped.
When removing the pref, we can simplify this by always putting the menu in the overflow panel.

I also noticed that we use the toolbar context menu in the dynamic portion of the overflow panel.
This has the same problem, and to fix it I switched us to using the same (panel) context menu in
the photon case. Doing this in the non-photon case won't help because the context menu will be in
a separate panel (namely the old hamburger panel) entirely.

MozReview-Commit-ID: 4neHMukTzHA
2017-07-07 15:54:13 +01:00
Johann Hofmann
ab16c872c7 Bug 1350210 - Part 3 - Add uidensity icons and only show uidensity settings in Photon. r=nhnt11
MozReview-Commit-ID: 6uI2oeQk8hw
2017-06-29 22:41:03 -07:00
Johann Hofmann
085e007d8e Bug 1350210 - Part 2 - Add a test for UI density settings in customize mode. r=jaws
MozReview-Commit-ID: CxL0CNpg3A9
2017-06-29 10:14:46 -07:00
Gijs Kruitbosch
1b926a256d Bug 1352120 - move the bookmarks star into the url bar, r=mak
MozReview-Commit-ID: Ka5Wn2hrb1P
2017-06-23 17:35:59 +01:00
Florian Quèze
c30094cdf7 Bug 1374282 - script generated patch to remove generators from add_task in browser/ and toolkit/, r=Mossop. 2017-06-22 12:51:43 +02:00
Edgar Chen
171785858c Bug 1236512 - Part 5: Wait docshell has been activated again after entering fullscreen mode in panelUINotifications test; r=Gijs 2017-06-16 16:07:01 +08:00
Carsten "Tomcat" Book
425d3b7ab8 Backed out changeset f10d7fb82ded (bug 1236512) 2017-06-20 14:30:31 +02:00
Edgar Chen
809ad74b4a Bug 1236512 - Part 5: Wait docshell has been activated again after entering fullscreen mode in panelUINotifications test; r=Gijs 2017-06-16 16:07:01 +08: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
Brian Grinstead
a8bd252623 Bug 1360282 - Remove the popup that opens from the sidebar toolbar button;r=Gijs
MozReview-Commit-ID: 4N841nISf3F
2017-06-13 08:14:58 -07:00
Mike Taylor
146211ed50 Bug 1368920 - Remove webcompat-reporter-button for non-DevEdition RELEASE_OR_BETA builds in removeNonReleaseButtons. a=test-only
MozReview-Commit-ID: L3nWSDaIJCY
2017-06-12 11:44:00 -04:00
Gijs Kruitbosch
3650f38128 Bug 1370986 - disable panelmultiview in the overflow panel off-nightly for 55, r=mikedeboer
This #ifdefs out the multiview for non-photon-theme, and checks for it being
present in various bits of JS that interact with it. As a result, this will
'fix' the issues in this bug and in bug 1370967 for 55 as it moves off
Nightly. bug 1370967 will still need fixing in the photonpanelmultiview /
webextensions.

MozReview-Commit-ID: 6x4HmyvxeRP
2017-06-08 16:38:36 +01:00
Sebastian Hengst
abcfaafc18 Backed out changeset 71da3a25b572 (bug 1370986) for timing out in browser_photon_customization_context_menus.js. r=backout 2017-06-09 21:19:50 +02:00
Gijs Kruitbosch
6f4b386f1c Bug 1370986 - switch to photonpanelmultiview for photon, disable off-nightly, r=mikedeboer
This #ifdefs out the multiview for non-photon-theme, and checks for it being
present in various bits of JS that interact with it. As a result, this will
'fix' the issues in this bug and in bug 1370967 for 55 as it moves off
Nightly. By switching to the photonpanelmultiview, we get proper anchoring
and slightly improved styling (bug 1354086 covers the rest of that), even
where this code *is* enabled. bug 1370967 will still need fixing in
the photonpanelmultiview / webextensions.

MozReview-Commit-ID: 6x4HmyvxeRP
2017-06-08 16:38:36 +01:00
Mike Taylor
df90444941 Bug 1368920. Part 3 - Use correct constants to identify Nightly and non-Release/Beta in CUI tests. r=Gijs
Post Project Dawn, for DevEdition, AppConstants.RELEASE_OR_BETA and AppConstants.MOZ_DEV_EDITION are true.

MozReview-Commit-ID: 7aQ4gOsIurT
2017-06-06 15:48:36 -05:00
Gijs Kruitbosch
a5e58b1afb Bug 1367012 - update edit UI visibility checks for photon, r=mikedeboer
This ensures we update edit UI visibility state when opening/closing the
overflow panel, as well as ensuring we do so if/when the edit controls
get over/underflowed. It then updates the test to ensure we correctly
check the overflow panel, both for overflown items and for items
put there by the user when photon is enabled.

MozReview-Commit-ID: AjRH8wz5Pla
2017-06-08 11:17:55 +01: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
Paolo Amadini
a60427a774 Bug 694291 - Add a preference mirroring the presence of the search widget in the navigation toolbar. r=past
MozReview-Commit-ID: 9UmowyRTTMK
2017-06-02 16:36:18 +01:00
Mike Taylor
1aa3885426 Bug 1341438. Part 2 - Update CUI tests to know how to handle an extra button in DevEdition. r=Gijs
MozReview-Commit-ID: f7JKPDN7t8
2017-04-14 10:18:15 -05: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