Commit graph

30 commits

Author SHA1 Message Date
Paolo Amadini
449c7a5310 Bug 1432016 - Part 2 - Move descriptionHeightWorkaround and some other methods to the PanelView class. r=Gijs
MozReview-Commit-ID: 59fUuB35Ygy

--HG--
extra : rebase_source : 65133023f89241da1b8475b783ffc80e35ee3c28
2018-01-25 15:35:45 +00:00
Sam Foster
c5c9a1666e Bug 1412364 - defer applying maxHeight in PanelMultiView until popup is positioned. r=Paolo
* Let popup code initially measure and place the panel without maxHeight, this ensures alignmentPosition is a reasonable value
* Assign maxHeight from a popuppositioned handler and update the comment explaining the role of the autoPosition property
* Refactor to move the maxHeight calculation into a method on PMV
* panel autoPosition now gets reset to false in popuppositioned (was popupshowing) as the ShowWithPositionedEvent on popupFrame sets it back to true every time
* Update reflow tests with new signatures, and elimination of 1 reflow
* In appMenu reflow test, we must now wait for popupshown before opening subviews

MozReview-Commit-ID: KfHxngnajM3

--HG--
extra : rebase_source : 2918a30f6ecdfded57fb7b93aba3f0479fd4635c
2017-11-16 17:12:06 -08:00
Paolo Amadini
f735328150 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

--HG--
extra : rebase_source : 74d6d769421c0f8521bdfae249b4d111e630a3bd
2017-11-11 19:13:43 +00:00
Neil Deakin
4251bca019 Bug 1356674, only adjust arrow position in panel once, r=dao 2017-10-04 11:10:18 -04:00
Mike de Boer
882fa06e25 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

--HG--
extra : rebase_source : b810e1de2dbd75932a42d68e751fdaecd9fee69a
2017-09-29 13:51:51 +02:00
Mike de Boer
aa0c3dc278 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

--HG--
extra : rebase_source : 1c970efaa0b7162450d79f37633afacaadc8d19e
2017-09-12 21:33:25 +02:00
Sebastian Hengst
22c06f3a4b 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
bdb3034789 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

--HG--
extra : rebase_source : 28e14f7e5764490c3a0a550cb230eb8a800647bf
2017-09-11 16:28:06 +02:00
Gijs Kruitbosch
03a486b23d Bug 1354117 - fix telemetry and a number of tests that flip photon prefs, r=johannh
MozReview-Commit-ID: 7ynaIQm22eS

--HG--
extra : rebase_source : 703ceae16cbf521de2fa1689668c68f1f06f682a
2017-08-01 20:15:48 +01:00
Mike Conley
5f9f0cd7f2 Bug 1356271 - Make it so that it's easier to define repeating reflows for reflow tests. r=florian
MozReview-Commit-ID: 5ZL5RtItbiL

--HG--
extra : rebase_source : 93fbacfde3a9825e46c0d81bb3ad29af448551fa
extra : source : 7629e34f7fb6f756c09f0d6735b746a9d1050c5f
2017-07-10 18:07:25 -04:00
Sebastian Hengst
ad0c33867d Backed out changeset 742643bf1bcb (bug 1356271) 2017-07-29 11:46:54 +02:00
Mike Conley
8bbe36922b Bug 1356271 - Make it so that it's easier to define repeating reflows for reflow tests. r=florian
MozReview-Commit-ID: 5ZL5RtItbiL

--HG--
extra : rebase_source : 2ebb0b9bd458cb1673f504304872371c175255e2
extra : source : 7629e34f7fb6f756c09f0d6735b746a9d1050c5f
2017-07-10 18:07:25 -04:00
Carsten "Tomcat" Book
fcf974aafe Backed out changeset 8ec898cb33d5 (bug 1356271) 2017-07-28 09:21:53 +02:00
Mike Conley
af3acf6f54 Bug 1356271 - Make it so that it's easier to define repeating reflows for reflow tests. r=florian
MozReview-Commit-ID: 5ZL5RtItbiL

--HG--
extra : rebase_source : bac2ac9f7eb73ef50132a3343956e98dc1308af0
extra : source : 7629e34f7fb6f756c09f0d6735b746a9d1050c5f
2017-07-10 18:07:25 -04:00
Wes Kocher
9b2a8970fa Backed out 3 changesets (bug 1356271) for failures in browser_urlbar_search_reflows.js a=backout
Backed out changeset cfb6f5820871 (bug 1356271)
Backed out changeset cebc6bb19d83 (bug 1356271)
Backed out changeset f8860e47d9c3 (bug 1356271)

MozReview-Commit-ID: 6QukEKjUkku
2017-07-26 10:04:28 -07:00
Mike Conley
51e3a9ac3a Bug 1356271 - Make it so that it's easier to define repeating reflows for reflow tests. r=florian
MozReview-Commit-ID: 5ZL5RtItbiL

--HG--
extra : rebase_source : 6a56a5e82d33090c79119776f5dffa1522a385bf
2017-07-10 18:07:25 -04:00
Mike Conley
b6867b29a5 Bug 1376822 - Re-enable appmenu reflow tests for sync subview. r=Gijs
MozReview-Commit-ID: B95VVqaTDja

--HG--
extra : rebase_source : 484b78d839e16650167c7dc9937d7f2ec908b8e3
2017-07-13 07:59:35 -07:00
Mike Conley
6549fe80ab Bug 1363361 - Make reflow tests use nsIDOMWindowUtils.ensureDirtyRootFrame to avoid manual frame dirtying hack. r=florian
MozReview-Commit-ID: E2azpUdgiSn

--HG--
extra : rebase_source : 5166f7f9f4b46514280abdc58631164b404f6b30
2017-06-29 08:46:18 -07:00
Sebastian Hengst
f679b79e58 Backed out changeset 4433f993d523 (bug 1363361)
MozReview-Commit-ID: GCC0R3hrpAc
2017-07-20 13:21:43 +02:00
Sebastian Hengst
103b84c50a Backed out changeset 7a7d6d2d2b2d (bug 1363361)
MozReview-Commit-ID: GIQgJWVCKCs
2017-07-20 13:21:34 +02:00
Mike Conley
b1e4494633 Bug 1363361 - Adjust browser_appmenu_reflows.js now that we're using nsIDOMWindowUtils to dirty the frame tree. r=florian
MozReview-Commit-ID: JrpZyMXaLxY

--HG--
extra : rebase_source : d7209c99935839f41195256c3906de51c136bebe
2017-07-11 10:25:05 -07:00
Mike Conley
f96c3d168c Bug 1363361 - Make reflow tests use nsIDOMWindowUtils.ensureDirtyRootFrame to avoid manual frame dirtying hack. r=florian
MozReview-Commit-ID: E2azpUdgiSn

--HG--
extra : rebase_source : 0e00b77bb5e2d807f2ecf90b3f37b3c110d97fc0
2017-06-29 08:46:18 -07:00
Sebastian Hengst
db6237b457 Backed out changeset 4e3857566e76 (bug 1363361) 2017-07-18 13:43:40 +02:00
Sebastian Hengst
9d645f7069 Backed out changeset 355a7da0154c (bug 1363361) 2017-07-18 13:43:31 +02:00
Mike Conley
bfc2ef9a4c Bug 1363361 - Adjust browser_appmenu_reflows.js now that we're using nsIDOMWindowUtils to dirty the frame tree. r=florian
MozReview-Commit-ID: JrpZyMXaLxY

--HG--
extra : rebase_source : 972a55ca9ef7549d896e9e96be6edc97027468cb
2017-07-11 10:25:05 -07:00
Mike Conley
7c0d2bcaec Bug 1363361 - Make reflow tests use nsIDOMWindowUtils.ensureDirtyRootFrame to avoid manual frame dirtying hack. r=florian
MozReview-Commit-ID: E2azpUdgiSn

--HG--
extra : rebase_source : 5a3499d3b9a2b15ed0b73f083ea9753f6434f467
2017-06-29 08:46:18 -07:00
Gijs Kruitbosch
dbd7fca428 Bug 1369729 - use descriptionheightworkaround for sync panel, r=mconley,Paolo
MozReview-Commit-ID: LQg6NEgCqz2

--HG--
extra : rebase_source : a039936a4c8e416c16171cacf73dab781d77ab50
2017-06-28 17:50:43 +01:00
Carsten "Tomcat" Book
2a387535b8 Backed out changeset a6d7647024de (bug 1369729) for reflow issues 2017-06-23 15:48:54 +02:00
Gijs Kruitbosch
70c55f0619 Bug 1369729 - use descriptionheightworkaround for sync panel, r=Paolo
MozReview-Commit-ID: LQg6NEgCqz2

--HG--
extra : rebase_source : ebc990e44e7025e90a0a0415df6ce102ba4ba8f0
2017-06-19 16:06:01 +01:00
Mike Conley
34fee886ae Bug 1369491 - Write reflow tests for the new Photon appmenu and its subviews. r=florian
MozReview-Commit-ID: FaIf0GXRaUs

--HG--
extra : rebase_source : a3b3507b9737cbbd3440f22163dc2bb984ed5abe
2017-05-31 17:10:30 -04:00