Commit graph

1310 commits

Author SHA1 Message Date
Mike Taylor
f6aaa2ec4e 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
9f3268689a 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

--HG--
extra : rebase_source : cdab2fab97795def95b6f4c70c61cfcb1c3ac2f9
2017-06-08 16:38:36 +01:00
Sebastian Hengst
87ac370a16 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
cacf8fbbd8 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

--HG--
extra : rebase_source : 11503543ab1945f82dc2ba902c32dd6092ebbe80
2017-06-08 16:38:36 +01:00
Wes Kocher
6dbc3e8839 Backed out changeset 9933f2d4d188 (bug 1369095) for timeouts in browser_page_action_menu.js a=backout CLOSED TREE
MozReview-Commit-ID: CErzYNn287D
2017-06-09 09:19:45 -07:00
Mike de Boer
3e8fc24e90 Bug 1369095 - calculate the size of the panel to be shown off-screen to work around all the panel layout issues. r=Paolo
MozReview-Commit-ID: ENxCccxcUZk

--HG--
extra : rebase_source : 3d95b5e816e3a385b2f126634d4365743522ac3e
2017-06-09 15:52:18 +02:00
Mike Taylor
4b10337a50 Bug 1368920. Part 4 - Enable Report Site Issue button for DevEdition and Nightly builds only. r=Gijs
MozReview-Commit-ID: Fu1oGBulbLT

--HG--
extra : rebase_source : 987965cd033c682f7c1023225b74541729eda53c
2017-06-06 15:50:53 -05:00
Mike Taylor
51efea7e4d 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

--HG--
extra : rebase_source : cbfe652dffe8622c487a378268a7e8b1be501a9c
2017-06-06 15:48:36 -05:00
Wes Kocher
1be06aea28 Merge m-c to autoland, a=merge
UPGRADE_NSS_RELEASE

MozReview-Commit-ID: ItWcUAUYyaj

--HG--
extra : amend_source : fc43f23f0e12d5f88d72be9526a953d8015e6975
2017-06-08 18:44:32 -07:00
Carsten "Tomcat" Book
247a47fac9 Merge mozilla-central to mozilla-inbound 2017-06-08 15:16:36 +02:00
Gijs Kruitbosch
635be35297 Bug 1369564 - fix min-width issues with panels, r=mikedeboer
MozReview-Commit-ID: 3h5hCvcJbTc

--HG--
extra : rebase_source : 05eb487b4e069eb6b57a0e21fdaea1995c9c3e09
2017-06-06 16:12:40 +01:00
Sebastian Hengst
d77f5a3608 Backed out changeset 8a1615be322c (bug 1369095) for failing browser-chrome's browser_page_action_menu.js with "page-action-multiView" == "page-action-sendToDeviceView". r=backout 2017-06-08 19:14:40 +02:00
Gijs Kruitbosch
b9c12b59fb 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

--HG--
extra : rebase_source : 706063645062f52333d5491907ea9ba857bcabe7
2017-06-08 11:17:55 +01:00
Mike de Boer
9e73298285 Bug 1369095 - calculate the size of the panel to be shown off-screen to work around all the panel layout issues. r=Paolo
MozReview-Commit-ID: ENxCccxcUZk

--HG--
extra : rebase_source : 266b95a5efeb08411214f0a0cc46dfb2c2dad084
2017-06-08 16:12:48 +02:00
Mike de Boer
221a21cbd3 Bug 1367970 - when switching panels quickly, the auto-resize workaround can cause wonky animations. Clear the timeout when a new animation starts. r=Gijs
MozReview-Commit-ID: CpQFjDDm2BR

--HG--
extra : rebase_source : 971fe451fc50ddde02842dfef38c1e8908c05620
2017-06-06 18:18:42 +02:00
Wes Kocher
8cf2be632b 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
0813b229d6 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

--HG--
extra : rebase_source : 4bcb607ec066b5cac390aac2dd649563d3b15beb
2017-06-02 15:13:23 -07:00
Mike de Boer
aaabd56ab2 Bug 1369339 - make sure to flush layout when necessary for the description height workaround in panelviews. r=Paolo
This caused regressions in various panels, like the Identity panel, resulting in
cut-off descriptions and labels. Our first concern is correctness, then we try
performance.

MozReview-Commit-ID: GH7BZ9waXeW

--HG--
extra : rebase_source : 82feb289936d99939ee664cf7b2aff32c1039b85
2017-06-07 12:42:05 +02:00
Doug Thayer
914a39c3fc 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

--HG--
extra : rebase_source : cfb6e65fe65f3b636212dcca95345f3ab7ea862e
2017-06-02 15:13:23 -07:00
Wes Kocher
19965a9bcf Merge m-c to autoland, a=merge
MozReview-Commit-ID: 3oLjBFfMQdZ
2017-06-02 17:29:12 -07:00
Paolo Amadini
9e788278c4 Bug 694291 - Add a preference mirroring the presence of the search widget in the navigation toolbar. r=past
MozReview-Commit-ID: 9UmowyRTTMK

--HG--
extra : rebase_source : 15a2a48e3dae3447e18d65b5f329501717d6a1fe
2017-06-02 16:36:18 +01:00
Ryan VanderMeulen
9293b561a2 Merge m-c to autoland. a=merge 2017-06-01 16:44:19 -04:00
Mike de Boer
86a57ab6f4 Bug 1354105 - Add zoom controls - zoom in, zoom reset, zoom out and fullscreen - buttons to the Photon app menu. r=Gijs
MozReview-Commit-ID: 8cJg4vbdYgL

--HG--
extra : rebase_source : e3276709b64aa71d884c391be4f4fa75607676f1
2017-06-01 19:36:04 +02:00
Paolo Amadini
688babc889 Bug 1367776 - Calculate the maximum height of panelmultiview before the panel is displayed. r=Gijs
This allows the panel to open correctly when scrollable views like History are displayed as the main view, for example when the History button is moved to the toolbar.

MozReview-Commit-ID: ELSbC0RpuaK

--HG--
extra : rebase_source : c1de4919c524c63f9ffdcda8576308fce223cad3
extra : amend_source : 5af3fe6044e23ccf4302cc2a8099afbd22fd1672
2017-06-01 15:49:35 +01:00
Gijs Kruitbosch
f4827a11b6 Bug 1369407 - make showMainView only switch views if the main view isn't current, dispatch ViewHiding, and fix view child assumptions, r=mikedeboer
MozReview-Commit-ID: JWKr8pBd58m

--HG--
extra : rebase_source : 5c7fe081b914be2274bbf83799cfa15f43144a9a
2017-06-02 11:13:33 +01:00
Ryan VanderMeulen
242f4b304d Merge m-c to autoland. a=merge
CLOSED TREE
2017-05-31 20:50:21 -04:00
Ryan VanderMeulen
b2f44e5181 Merge inbound to m-c. a=merge 2017-05-31 20:25:52 -04:00
Gijs Kruitbosch
2fcb1b8c9a Bug 1354155 - create library button with initial history and synced tabs views, r=bgrins
MozReview-Commit-ID: J65DnluTXdA

--HG--
extra : rebase_source : f40fb4dd438092a4e0e1b3c3ff227875559b5673
2017-05-25 15:15:21 +01:00
Gijs Kruitbosch
97ff0dc3a1 Bug 1354155 - use photon panelmultiview for individual subviews, r=mikedeboer
MozReview-Commit-ID: 9iEHcGDLbJt

--HG--
extra : rebase_source : f4fca8bac9565ea75c3f528ffd85c702935ce86f
2017-05-30 16:30:25 +01:00
Mike de Boer
492d7fe6e7 Bug 1368734 - Part 2 - Add a Quit button to the Photon app menu on Windows and Linux. r=Gijs
MozReview-Commit-ID: L9GoCWcJrfL

--HG--
extra : rebase_source : 778af49079520957656b072daf18fa721da82694
2017-05-31 19:22:04 +02:00
Christoph Kerschbaumer
0944826c8a Bug 1363975 - Have loadOneTab() provide the correct triggeringPrincipal. r=gijs,smaug 2017-05-31 20:59:02 +02:00
Mike Taylor
e00f2e029d Bug 1341438. Part 2 - Update CUI tests to know how to handle an extra button in DevEdition. r=Gijs
MozReview-Commit-ID: f7JKPDN7t8

--HG--
extra : rebase_source : dee7b64dfa20756e866d82b64fd33c0f0120e80e
2017-04-14 10:18:15 -05:00
Mike Taylor
f4d49f16ca Bug 1341438. Part 1 - Enable Report Site Issue for DevEdition + Nightly. r=Gijs
MozReview-Commit-ID: 7yH39YDmL6V

--HG--
extra : rebase_source : 6ccd82d23d434bde0eba095fbb4ce59d8abe2e3a
2017-04-04 17:40:50 -05:00
Mike de Boer
38aba49f90 Bug 1364738 - Fix up multi-line labels inside panelviews that have wrapped around and align elements in the banner. r=Gijs,Paolo
I updated, extended and refined Paolo's descriptionHeightWorkaround method to
support multi-line toolbar button labels.
Made the app menu use that method to ensure no scrollbars appear.
Also updated the styling of the banner to have icon and label align correctly
with those of the other buttons inside the panelview.

MozReview-Commit-ID: IzbahG0kyTu

--HG--
extra : rebase_source : 8a6c4e5ac7b1c0d30f53b732730629b5d8ca7166
2017-05-30 14:21:59 +02:00
Gijs Kruitbosch
8a15ffdcd2 Bug 1354078 - update labels for customization context menus for Photon, r=bgrins
MozReview-Commit-ID: 1qMCkzxuT4M

--HG--
extra : rebase_source : 1cb1ef09bab1d34dc45da5487445063e8db63377
2017-05-24 11:17:54 +01:00
Gijs Kruitbosch
811cf5dfec Bug 1354078 - update panel/toolbar context menus to move items to the right place, with tests, r=bgrins
MozReview-Commit-ID: DpQdvE25iqU

--HG--
rename : browser/components/customizableui/test/browser_880164_customization_context_menus.js => browser/components/customizableui/test/browser_photon_customization_context_menus.js
extra : rebase_source : 740c8f47381bd9f15e62345502871db0d098c927
2017-05-27 12:48:36 +01:00
Ryan VanderMeulen
e239c7252a 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
e48749ed60 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

--HG--
extra : rebase_source : 79ef7bcaed08829ed64f444d8506e94329518902
2017-05-24 12:52:56 -07:00
Gijs Kruitbosch
e6a9d0467f Bug 1354078 - update labels for customization context menus for Photon, r=bgrins
MozReview-Commit-ID: 1qMCkzxuT4M

--HG--
extra : rebase_source : 93d1b5d9679f1daa58c9d75b18c1f0a914dae037
2017-05-24 11:17:54 +01:00
Gijs Kruitbosch
7c9780088e Bug 1354078 - update panel/toolbar context menus to move items to the right place, with tests, r=bgrins
MozReview-Commit-ID: DpQdvE25iqU

--HG--
rename : browser/components/customizableui/test/browser_880164_customization_context_menus.js => browser/components/customizableui/test/browser_photon_customization_context_menus.js
extra : rebase_source : e5722a5d3380f9a9e9f36a65475012dba6bd142b
2017-05-19 17:27:11 +01:00
Mike de Boer
34074f18c2 Bug 1366205 - add a browser mochitest with full coverage of the new menu panel keyboard navigation feature. r=Gijs
This also fixes two issues I found whilst writing the tests:
1. Exclude hidden items from the set of navigable buttons and
2. Exclude disabled items from the set of navigable buttons whilst navigating,
because they may get disabled in the meantime (like with the edit controls).

MozReview-Commit-ID: 5WThVoTZjbV

--HG--
extra : rebase_source : e0bd85192e7b1043ecf04b7d9d3b546aadb004c9
2017-05-26 13:44:55 +02:00
Ryan VanderMeulen
30caacbb11 Merge inbound to m-c. a=merge 2017-05-24 16:32:59 -04:00
Gijs Kruitbosch
907f0dc669 Bug 1354126 - update labeling and styling of footer buttons, r=mikedeboer
MozReview-Commit-ID: DFzb4gbmWYj

--HG--
rename : browser/themes/shared/sidebar/arrow-dropdown.svg => browser/themes/shared/icons/arrow-dropdown.svg
extra : rebase_source : 6082ace16924dad1bf6375113b3601b722bc6cdb
2017-05-22 12:20:26 +01:00
Gijs Kruitbosch
cf42b18d7b Bug 1354126 - use checkbox for titlebar toggle in customize mode, r=mikedeboer
MozReview-Commit-ID: 9bdf8uAlWCM

--HG--
extra : rebase_source : 947a7f9a37c4505cc0840d15dd96570bd3d70e4c
2017-05-22 11:17:11 +01:00
Gijs Kruitbosch
4a7dfbc320 Bug 1354126 - allow footer to wrap underneath the panel and add a 'done' button, r=mikedeboer
MozReview-Commit-ID: 1LbwmhfGp49

--HG--
extra : rebase_source : ebab4a6ae5550ff512f3e2cf2c1e7f9be3c8ef7a
2017-05-22 19:34:04 +01:00
Sebastian Hengst
d1ec3e6aa9 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-05-24 11:27:29 +02:00
Paolo Amadini
33ebc4466d Bug 1009116 - Redo resizing architecture of panelmultiview. r=Gijs
The height of the "panelmultiview" binding is now determined by the stack layout code, and doesn't have to be calculated manually via JavaScript anymore. This allows the removal of mutation and overflow observers, and reduces the number of synchronous layouts being made.

There is still a workaround included for wrapping blocks not being taken into account in height calculations.

MozReview-Commit-ID: 9rrPU5O5hUx

--HG--
extra : rebase_source : b872c14a553c4293ac476d5d22c634a5a0f6cb24
extra : intermediate-source : bf96469b6ea7daee29eb75a60d11f017a1c86a64
extra : source : 719bb4e7286fbd3baf32061929e4b7d9f953c671
2017-05-23 17:08:01 +01:00
Ryan VanderMeulen
27fd4cc7e2 Merge inbound to m-c. a=merge 2017-05-23 18:11:35 -04:00
Doug Thayer
82301632cc 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

--HG--
rename : browser/base/content/test/appUpdate/.eslintrc.js => toolkit/mozapps/update/tests/browser/.eslintrc.js
rename : browser/base/content/test/appUpdate/browser.ini => toolkit/mozapps/update/tests/browser/browser.ini
rename : browser/base/content/test/appUpdate/browser_updatesBackgroundWindow.js => toolkit/mozapps/update/tests/browser/browser_updatesBackgroundWindow.js
rename : browser/base/content/test/appUpdate/browser_updatesBackgroundWindowFailures.js => toolkit/mozapps/update/tests/browser/browser_updatesBackgroundWindowFailures.js
rename : browser/base/content/test/appUpdate/browser_updatesBasicPrompt.js => toolkit/mozapps/update/tests/browser/browser_updatesBasicPrompt.js
rename : browser/base/content/test/appUpdate/browser_updatesBasicPromptNoStaging.js => toolkit/mozapps/update/tests/browser/browser_updatesBasicPromptNoStaging.js
rename : browser/base/content/test/appUpdate/browser_updatesCantApply.js => toolkit/mozapps/update/tests/browser/browser_updatesCantApply.js
rename : browser/base/content/test/appUpdate/browser_updatesCompleteAndPartialPatchesWithBadCompleteSize.js => toolkit/mozapps/update/tests/browser/browser_updatesCompleteAndPartialPatchesWithBadCompleteSize.js
rename : browser/base/content/test/appUpdate/browser_updatesCompleteAndPartialPatchesWithBadPartialSize.js => toolkit/mozapps/update/tests/browser/browser_updatesCompleteAndPartialPatchesWithBadPartialSize.js
rename : browser/base/content/test/appUpdate/browser_updatesCompleteAndPartialPatchesWithBadSizes.js => toolkit/mozapps/update/tests/browser/browser_updatesCompleteAndPartialPatchesWithBadSizes.js
rename : browser/base/content/test/appUpdate/browser_updatesCompletePatchApplyFailure.js => toolkit/mozapps/update/tests/browser/browser_updatesCompletePatchApplyFailure.js
rename : browser/base/content/test/appUpdate/browser_updatesCompletePatchWithBadCompleteSize.js => toolkit/mozapps/update/tests/browser/browser_updatesCompletePatchWithBadCompleteSize.js
rename : browser/base/content/test/appUpdate/browser_updatesDownloadFailures.js => toolkit/mozapps/update/tests/browser/browser_updatesDownloadFailures.js
rename : browser/base/content/test/appUpdate/browser_updatesMalformedXml.js => toolkit/mozapps/update/tests/browser/browser_updatesMalformedXml.js
rename : browser/base/content/test/appUpdate/browser_updatesPartialPatchApplyFailure.js => toolkit/mozapps/update/tests/browser/browser_updatesPartialPatchApplyFailure.js
rename : browser/base/content/test/appUpdate/browser_updatesPartialPatchApplyFailureWithCompleteAvailable.js => toolkit/mozapps/update/tests/browser/browser_updatesPartialPatchApplyFailureWithCompleteAvailable.js
rename : browser/base/content/test/appUpdate/browser_updatesPartialPatchApplyFailureWithCompleteValidationFailure.js => toolkit/mozapps/update/tests/browser/browser_updatesPartialPatchApplyFailureWithCompleteValidationFailure.js
rename : browser/base/content/test/appUpdate/browser_updatesPartialPatchWithBadPartialSize.js => toolkit/mozapps/update/tests/browser/browser_updatesPartialPatchWithBadPartialSize.js
extra : rebase_source : 24048650b23eff0a1da9679d1e9b5e1db1900287
2017-05-19 08:56:22 -07:00
Doug Thayer
646edb5fab 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

--HG--
extra : rebase_source : 23575df8176b862ec0e6a039173b105c45c76de9
2017-05-18 13:22:27 -07:00