Commit Graph

964 Commits

Author SHA1 Message Date
Gijs Kruitbosch
b3b0b65d9e Bug 1673388 - use keepbroadcastattributeswhencustomizing for the print button to make it behave better wrt customize mode, r=mconley
Embarrassingly, I forgot I added this in bug 1388990 when we had similar issues
with the back/forward buttons. It's a more straightforward solution for this
problem.

Differential Revision: https://phabricator.services.mozilla.com/D94751
2020-10-26 20:51:04 +00:00
Gijs Kruitbosch
efd63d908a Bug 1673341 - fix menu bar toggling to persist the correct state, r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D94729
2020-10-26 14:52:56 +00:00
Jared Wein
64176c986d Bug 727668 - Show bookmarks toolbar on the new tab page. r=Gijs,fluent-reviewers,marionette-reviewers,whimboo
This adds the ability to force the bookmarks toolbar to appear on all pages. The checkbox in the toolbar context menu will reflect if the toolbar will appear outside of the newtab page. The toolbar will always appear on the newtab page. Profiles that already had the toolbar showing will have a migration to keep their experience unchanged.

Differential Revision: https://phabricator.services.mozilla.com/D89222
2020-10-26 02:32:07 +00:00
smolnar
b581b26df4 Backed out changeset 38627c09131d (bug 1671619) for causing crashes (bug 1672560). DONTBUILD a=backout 2020-10-23 12:42:38 +03:00
Mihai Alexandru Michis
dc6c624799 Backed out changeset ba261cf25651 (bug 727668) for causing marionette failures in test_screenshot.py
CLOSED TREE
2020-10-22 06:13:54 +03:00
Jared Wein
8debd64190 Bug 727668 - Show bookmarks toolbar on the new tab page. r=Gijs,fluent-reviewers
This adds the ability to force the bookmarks toolbar to appear on all pages. The checkbox in the toolbar context menu will reflect if the toolbar will appear outside of the newtab page. The toolbar will always appear on the newtab page. Profiles that already had the toolbar showing will have a migration to keep their experience unchanged.

Differential Revision: https://phabricator.services.mozilla.com/D89222
2020-10-21 19:20:20 +00:00
Brian Grinstead
1d325e3bdf Bug 1671619 - Use [hidden] instead of [collapsed] for the browser container when entering and exiting Customize Mode r=Gijs
This is using collapsed as a carryover from XBL days, where setting the element to hidden would destroy bindings.
But it's causing a side effect of shrinking the browser element to 0x0 which causes the content to resize, leading to
some flickering and poor performance when switching back to content from a Customize Mode tab.
By setting hidden we instead are just toggling the display property.

Differential Revision: https://phabricator.services.mozilla.com/D94057
2020-10-20 15:23:46 +00:00
Narcis Beleuzu
8c2c851d6a Backed out 1 changesets (bug 727668) for bc failures on browser_aboutNewTab_bookmarksToolbar.js . CLOSED TREE
Backed out changeset 5b6a14b4e16e (bug 727668)
2020-10-19 21:19:17 +03:00
Jared Wein
dae078ac27 Bug 727668 - Show bookmarks toolbar on the new tab page. r=Gijs,fluent-reviewers
This adds the ability to force the bookmarks toolbar to appear on all pages. The checkbox in the toolbar context menu will reflect if the toolbar will appear outside of the newtab page. The toolbar will always appear on the newtab page. Profiles that already had the toolbar showing will have a migration to keep their experience unchanged.

Differential Revision: https://phabricator.services.mozilla.com/D89222
2020-10-19 16:38:17 +00:00
Gijs Kruitbosch
a040958b42 Bug 1670907 - moving buttons in customize mode should not disable them, r=mconley
When we move items in customize mode, we unwrap them, then move them, then wrap
them again. The unwrapping sets the `command` attribute back on the button, and
that also sets the `disabled` attribute on the button. The wrapping removes the
`command` attribute but leaves the `disabled` attribute.
When the `disabled` attribute is removed from the command, this does not
propagate to the button because the command attribute has not been put back.

To fix this, the patch avoids adding and immediately removing the command
attribute when moving items while in customize mode.

Differential Revision: https://phabricator.services.mozilla.com/D93338
2020-10-14 14:04:02 +00:00
Tooru Fujisawa
43e45e7d59 Bug 1558642 - Part 2: Use EventUtils.synthesizeNative* where possible. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D39604
2020-09-29 20:01:12 +00:00
Gijs Kruitbosch
d10e66f2d7 Bug 1663173 - disable commands that don't need to be enabled in customize mode, r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D89289
2020-09-11 20:40:28 +00:00
Razvan Maries
0b36c3342a Backed out changeset ffe1c9f9f9df (bug 1663173) for multiple bc perma failures. CLOSED TREE 2020-09-10 01:46:46 +03:00
Gijs Kruitbosch
7259b3e087 Bug 1663173 - disable commands that don't need to be enabled in customize mode, r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D89289
2020-09-09 20:02:22 +00:00
Dan Mosedale
c12df05128 Bug 1659871 - Clean up tests + manifest parsing, add an Alpenglow test, r=pdahiya,florian
Differential Revision: https://phabricator.services.mozilla.com/D89005
2020-09-02 16:46:37 +00:00
Dan Mosedale
f14a9fad10 Bug 1643776 - Add Alpenglow theme, r=dmose,rpl,flod
Differential Revision: https://phabricator.services.mozilla.com/D86058
2020-08-21 17:20:07 +00:00
Razvan Maries
3748d2b321 Backed out changeset 2f4bf8bab6cf (bug 1643776) for causing bug 1660323. CLOSED TREE 2020-08-21 04:34:24 +03:00
Dan Mosedale
fc5fca3570 Bug 1643776 - Add Alpenglow theme, r=dmose,rpl,flod
Differential Revision: https://phabricator.services.mozilla.com/D86058
2020-08-21 00:43:03 +00:00
Razvan Maries
c6be7eea6f Backed out changeset 2a1fa73b1a63 (bug 1643776) for perma failures on browser_all_files_referenced.js. CLOSED TREE 2020-08-21 01:02:18 +03:00
Dan Mosedale
2c6910f146 Bug 1643776 - Add Alpenglow theme r=dmose,rpl,flod
Differential Revision: https://phabricator.services.mozilla.com/D86058
2020-08-20 21:04:57 +00:00
Razvan Maries
1ba54818c3 Backed out changeset 6ffb6196daf7 (bug 1643776) for perma failures on browser_all_files_referenced.js. CLOSED TREE 2020-08-20 22:26:31 +03:00
Dan Mosedale
8d18c184da Bug 1643776 - Add Alpenglow theme r=dmose,rpl,flod
Differential Revision: https://phabricator.services.mozilla.com/D86058
2020-08-20 17:52:09 +00:00
James Teh
bc1095594f Bug 1657182: browser_PanelMultiView_keyboard.js: Use a capturing event listener on the browser/iframe to capture the load event from the child document. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D86112
2020-08-07 12:23:12 +00:00
Emma Malysz
7500e5f316 Bug 1657161, enable print.tab_modal.enabled for EARLY_BETA_OR_EARLIER and hide page range section r=mstriemer,fluent-reviewers,preferences-reviewers,flod
We want this to be turned on for nightly users by default. The page range is still a WIP,
so we should hide that section for now.
This also adds the pref to the "Nightly Experiment" panel, turned on by default.

Differential Revision: https://phabricator.services.mozilla.com/D85907
2020-08-06 23:02:13 +00:00
James Teh
65494be7d8 Bug 1549932: browser_PanelMultiView_keyboard.js: Use the correct event when waiting for a browser to load. r=Gijs
Also, handle the case where readyState is "complete" but the URL is wrong.

Differential Revision: https://phabricator.services.mozilla.com/D85709
2020-08-03 13:19:17 +00:00
James Teh
2ae149b6c1 Bug 1572608: browser_PanelMultiView_keyboard.js: If embedded documents aren't loaded yet, wait for them to load before trying to interact with them. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D84937
2020-07-29 12:10:35 +00:00
Dorel Luca
b42c4b0b02 Backed out changeset c093db737948 (bug 1572608) for Browser-chrome failures in customizableui/test/browser_PanelMultiView_keyboard.js. CLOSED TREE 2020-07-29 03:13:32 +03:00
James Teh
58d181ac8b Bug 1572608: browser_PanelMultiView_keyboard.js: If embedded documents aren't loaded yet, wait for them to load before trying to interact with them. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D84937
2020-07-28 21:42:03 +00:00
Joel Maher
b5ff176f81 Bug 1654553 - fix browser chrome tests to support Object.is instead of ==. r=gbrown,preferences-reviewers,Gijs,rpl
fix browser chrome tests to support Object.is instead of ==

Differential Revision: https://phabricator.services.mozilla.com/D84539
2020-07-27 17:02:35 +00:00
Emma Malysz
311b2b0590 Bug 1648636, remove remote tabs panel from main view and place in template r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D81938
2020-07-14 13:55:29 +00:00
Emma Malysz
94353eb932 Bug 1648640, remove character encoding panel view, panic view, SSB view, more view, and what's new panel view from main panel and place in template r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D81621
2020-07-09 00:35:30 +00:00
Dão Gottwald
bfb3059d19 Bug 1503678 - Respect prefers-reduced-motion when reordering items in customize mode. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D82541
2020-07-08 08:33:47 +00:00
Emma Malysz
e0df299294 Bug 1648639, remove containers, help view, and developer panels from main view and place in template r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D81257
2020-06-30 22:40:15 +00:00
Butkovits Atila
34bed92925 Backed out changeset 3c400bb0cd01 (bug 1648639) for bc failures on browser_panel_keyboard_navigation.js. 2020-06-30 21:35:06 +03:00
Emma Malysz
7a023f33ea Bug 1648639, remove containers, help view, and developer panels from main view and place in template r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D81257
2020-06-30 15:11:00 +00:00
Emma Malysz
1f08b22e8b Bug 1648175, remove history and library panel views from the main panel and place in template r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D80306
2020-06-29 15:41:43 +00:00
Mark Smith
0f4f5876f9 Bug 1642404 - add an option to show that an update is being downloaded r=bytesized,fluent-reviewers,flod
Add support for a hidden preference named app.update.notifyDuringDownload
that, when set to true, causes a "Downloading update" message to appear
in the app menu during a MAR download. Clicking the message opens the
about box so the user can see detailed progress information.

Differential Revision: https://phabricator.services.mozilla.com/D77688
2020-06-22 20:24:46 +00:00
Gijs Kruitbosch
1e63ce3253 Bug 1644863 - fix trailing whitespace in browser/toolkit/devtools/mobile frontend code files, r=mossop,geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D79201
2020-06-17 22:40:53 +00:00
Henri Sivonen
0dc7ead757 Bug 1603712 - Remove intl.charset.detector.ng.enabled pref and resulting dead code. r=Gijs,fluent-reviewers,valentin,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D79101
2020-06-15 15:32:21 +00:00
Johann Hofmann
a27352a19b Bug 1515073 - Part 5 - Disable browser.navigation.requireUserInteraction in tests. r=Gijs
Depends on D27588

Differential Revision: https://phabricator.services.mozilla.com/D31604
2020-06-09 14:51:06 +00:00
Emma Malysz
d62624260d Bug 1634033: lazify menus and panels used within customize mode by placing in template. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D74576
2020-05-11 18:13:57 +00:00
Dão Gottwald
0083b1be54 Bug 1635095 - Obey prefers-reduced-motion in CustomizeMode.jsm. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D73648
2020-05-04 21:19:26 +00:00
Jean-Yves Avenard
9f969efdbf Bug 1630192 - Wait for the page to load before attempting to retrieve element. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D72506
2020-04-26 10:42:24 +00:00
Tim Nguyen
887622c475 Bug 1632092 - Rename all XUL namespace variables to XUL_NS. r=Gijs,marionette-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D71913
2020-04-24 09:23:52 +00:00
Emilio Cobos Álvarez
6de4eb776f Bug 1612427 - Fix flaky browser_947914_button_zoomReset.js. r=Gijs
This is what I see when running the test:

console.log: Changing zoom for browser from 1 to 0.5
	set fullZoom@chrome://global/content/elements/browser-custom-element.js:812:19
	set fullZoom@chrome://browser/content/tabbrowser.js:526:7
	ZoomManager_setZoomForBrowser@chrome://global/content/viewZoomOverlay.js:60:7
	set zoom@chrome://global/content/viewZoomOverlay.js:49:10
	@chrome://mochitests/content/browser/browser/components/customizableui/test/browser_947914_button_zoomReset.js:26:5
	Async*Tester_execTest/<@chrome://mochikit/content/browser-test.js:1039:34
	Tester_execTest@chrome://mochikit/content/browser-test.js:1074:11
	nextTest/<@chrome://mochikit/content/browser-test.js:904:14
	SimpleTest.waitForFocus/waitForFocusInner/focusedOrLoaded/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:918:23

"FullZoomChange for browser"

PASS Zoom reset button exists in Panel Menu -

console.log: Changing zoom for browser from 0.5 to 1
	console.log: set fullZoom@chrome://global/content/elements/browser-custom-element.js:817:19
	ZoomManager_setZoomForBrowser@chrome://global/content/viewZoomOverlay.js:60:7
	FullZoom__applyPrefToZoom@chrome://browser/content/browser-fullZoom.js:479:19
	FullZoom_onLocationChange@chrome://browser/content/browser-fullZoom.js:247:14
	XWB_onUpdateCurrentBrowser@chrome://browser/content/browser.js:5419:16
	callListeners@chrome://browser/content/tabbrowser.js:820:31
	_callProgressListeners@chrome://browser/content/tabbrowser.js:834:22
	_callProgressListeners@chrome://browser/content/tabbrowser.js:5776:46
	onStateChange@chrome://browser/content/tabbrowser.js:6039:14
	_callProgressListeners@resource://gre/modules/RemoteWebProgress.jsm:75:31
	onStateChange@resource://gre/modules/RemoteWebProgress.jsm:88:10

Which is pretty broken (the zoom is reset way earlier than clicking the reset
button, by FullZoom.onLocationChange).

This seems to me was mostly passing by chance, but with my Fission changes
which made FullZoomChange events more async (and actually, not notify twice) it
started failing.

Wait to load a page before changing the zoom level so that the browser doesn't
reset it when navigating.

Differential Revision: https://phabricator.services.mozilla.com/D72208
2020-04-24 08:13:37 +00:00
Gijs Kruitbosch
23424cef48 Bug 1616881 - get rid of uses-unsafe-cpows, r=mconley
This removes the annotation from the following tests:

browser/base/content/test/general:
- browser_bug735471.js by removing the test
- browser_clipboard.js which seems like it's not using CPOWs anyway
- browser_blockHPKP.js which is disabled and isn't using CPOWs anyway

browser/components/customizableui/test:
- browser_934951_zoom_in_toolbar.js as CPOW usage was removed in bug 962248

toolkit/components/reader/test:
- browser_readerMode_with_anchor.js as CPOW usage was already removed in bug 1492482

toolkit/content/tests/browser:
- browser_datetime_datepicker.js as CPOW usage was removed in bug 1492482
- browser_saveImageURL.js which used deprecated CPOW-only APIs that I removed in an earlier cset

It also removes all the test framework code relying on this annotation.

Depends on D70685

Differential Revision: https://phabricator.services.mozilla.com/D70686
2020-04-13 18:05:00 +00:00
Edgar Chen
c03523ed23 Bug 1615732 - Don't dispatch xul command event on Mac if it is from mouse event with ctrl key is pressed; r=Gijs,NeilDeakin
Depends on D68775

Differential Revision: https://phabricator.services.mozilla.com/D68735
2020-04-06 23:59:53 +00:00
Edgar Chen
f45ddbee11 Bug 1615732 - Don't show menu panel on Mac when ctrl key is pressed; r=Gijs
On Mac, ctrl-click will send a context menu event from the widget, so we don't
want to bring up the panel when ctrl key is pressed.

Differential Revision: https://phabricator.services.mozilla.com/D66397
2020-04-06 20:56:23 +00:00
Cosmin Sabou
2b8f829371 Backed out 7 changesets (bug 1615732) for bc failures on browser_ext_pageAction_click_types.js. CLOSED TREE
Backed out changeset 031b8abf43a8 (bug 1615732)
Backed out changeset 297d82b338dc (bug 1615732)
Backed out changeset bbcb173e6c44 (bug 1615732)
Backed out changeset d7c5824d4579 (bug 1615732)
Backed out changeset f648cf0653a7 (bug 1615732)
Backed out changeset fcd441a2a860 (bug 1615732)
Backed out changeset fa861e50f198 (bug 1615732)
2020-04-06 23:49:58 +03:00
Edgar Chen
47744efb00 Bug 1615732 - Don't dispatch xul command event on Mac if it is from mouse event with ctrl key is pressed; r=Gijs,NeilDeakin
Differential Revision: https://phabricator.services.mozilla.com/D68735
2020-04-06 13:15:30 +00:00