Commit graph

1954 commits

Author SHA1 Message Date
Michael Kaply
b7a354c792 Bug 1432355 - Add a policy to disable private browsing. r=Gijs
MozReview-Commit-ID: AprbL6usEv5

--HG--
extra : rebase_source : d0a9255aae8b8d038c69978cbeabbfc394ad46cd
2018-03-01 10:20:38 -06:00
Csoregi Natalia
1fd0486e23 Backed out 7 changesets (bug 1193394) for browser-chrome failures on browser_ext_popup_background.js. CLOSED TREE
Backed out changeset 9683f24ff8ec (bug 1193394)
Backed out changeset 0e7140a7c841 (bug 1193394)
Backed out changeset a0e26f6b2784 (bug 1193394)
Backed out changeset 29e1fceaf48d (bug 1193394)
Backed out changeset b8632bbbd273 (bug 1193394)
Backed out changeset a54ef2d8f896 (bug 1193394)
Backed out changeset 55c94c05c57f (bug 1193394)
2018-03-01 16:29:02 +02:00
Tooru Fujisawa
8809c05b7b Bug 1193394 - Part 5: Disable some tests that relies on descriptionHeightWorkaround. r=bustage CLOSED TREE 2018-03-01 20:03:13 +09:00
Tooru Fujisawa
d0ece36aa1 Backed out changeset 29e1fceaf48d (bug 1193394) 2018-03-01 19:55:08 +09:00
Tooru Fujisawa
25a9f5bb72 Bug 1193394 - Part 4: Wait for the next event tick before calling promiseDocumentFlushed in descriptionHeightWorkaround. r=bustage CLOSED TREE 2018-03-01 18:44:38 +09:00
Paolo Amadini
01dda8797e Bug 1420939 - Add an asynchronous version of the description height workaround. r=Gijs
This prevents synchronous reflows when opening subviews. This also removes a superfluous invocation of the workaround while the panel is still hidden.

MozReview-Commit-ID: DohLjntVaPU

--HG--
extra : rebase_source : 8cd1b86168aee23d4e75556c2b11baf2c8dd0b9c
2018-02-27 22:02:55 +00:00
Paolo Amadini
86df7b05eb Bug 1428839 - Part 8 - Fix the sliding transition when views are reordered. r=Gijs
Views moved to a different panel and then moved back could be placed after the subviews they give access to, if the other subviews were not moved. The transition would be incorrect when these subviews are opened later.

MozReview-Commit-ID: 6JJa0p0McxL

--HG--
extra : rebase_source : 7e28c0638c46b26c45b1073d8a76173fa75fd5fa
2018-02-28 13:43:51 +00:00
Paolo Amadini
29a9ce32a3 Bug 1428839 - Part 7 - Reduce calls to _cleanupTransitionPhase. r=Gijs
The transition code now returns early if the panel was closed during an "await" statement.

Given that transitions can only be interrupted when closing the panel, and the _cleanupTransitionPhase method handles exclusively state related to the panel rather than the individual views, it is now possible to call the _cleanupTransitionPhase method only when the panel is hidden or at the end of a transition.

MozReview-Commit-ID: GYRKyyhJBPK

--HG--
extra : rebase_source : cd66a1e68d0f6cf0a371d7216d54e7d07b576529
2018-02-27 22:56:15 +00:00
Paolo Amadini
ceb5caf0c5 Bug 1428839 - Part 6 - Remove previous workaround for the panel resizing at the end of the transition. r=Gijs
This was added in bug 1354141 and is not needed anymore.

MozReview-Commit-ID: 42oF7LpCa6R

--HG--
extra : rebase_source : cd002b7052d14318efe4ef1ac6cc48fe30467265
2018-02-27 16:13:48 +00:00
Paolo Amadini
389c9b6df4 Bug 1428839 - Part 5 - Open the anchor when subview navigation starts and close it asynchronously afterwards. r=Gijs
The anchor state does not need to be cleaned up synchronously, so we can handle it seperately from the transition state.

MozReview-Commit-ID: 1CBP9OS5WmM

--HG--
extra : rebase_source : 533cee34a8f8e0e4bae00a4ff4eb00b9f330f7c1
2018-02-27 15:52:07 +00:00
Paolo Amadini
91212fa6b1 Bug 1428839 - Part 4 - Avoid re-entrancy in PanelMultiView navigation functions. r=Gijs
We now use the "active" property of views to track whether navigation is possible. This has the advantage of being already handled correctly when views are moved to a different panel, and is in line with the purpose of the "active" state. The note about using the "popupshown" event for navigation has been updated accordingly.

Keyboard navigation is also linked to the "active" property now, so there is no need to track the state of the "_transitioning" property anymore.

Since the goBack and showSubView methods can only be called when the view is active, we don't need to check for attempts to start a transition while the panel is closed anymore.

MozReview-Commit-ID: 3KT3A5EwGFy

--HG--
extra : rebase_source : c338362923a7574210c7329bb84316d549898fdc
2018-02-27 15:33:33 +00:00
Paolo Amadini
613236ab39 Bug 1428839 - Part 3 - Clean up view properties when opening them. r=Gijs
This allows the state to be handled correctly when views are moved to a different panel.

The "margin-inline-start" style property on the view stack is also reset unconditionally, allowing less state to be stored in the transition details object.

MozReview-Commit-ID: IpgnYsVvx0w

--HG--
extra : rebase_source : 222a398546da3c142f4051c88f5cf9b4da2b8e98
2018-02-27 15:35:42 +00:00
Paolo Amadini
af1087eff8 Bug 1428839 - Part 2 - Add a function to determine if a view is still open. r=Gijs
This makes the intent of the code clearer and hides the details of how the association is made.

MozReview-Commit-ID: C2L0vsjhxNO

--HG--
extra : rebase_source : 8ff0ef3463470ed909a60c788ec59eaefa6795a9
2018-02-27 15:27:27 +00:00
Paolo Amadini
5a7e8bc917 Bug 1428839 - Part 1 - Remove previous workaround for flickering at the end of the transition. r=Gijs
This was originally introduced in bug 1374749 but isn't needed anymore, and removing this allows making the _cleanupTransitionPhase method synchronous.

MozReview-Commit-ID: 6v78QoPXZoU

--HG--
extra : rebase_source : 1c089d8a9e4e6a1031a7d0337f3459b7c1e37117
2018-02-27 15:17:29 +00:00
Paolo Amadini
a524280e41 Bug 1441284 - Part 8 - Remove the "_mainView" and "_mainViewId" properties. r=Gijs
The null check for the "node" property can also be removed since the caller already checks it synchronously.

MozReview-Commit-ID: 7FaCdtWTz20

--HG--
extra : rebase_source : 9162b3588b6085da5385a63401457192b1d9e690
2018-02-27 14:17:10 +00:00
Paolo Amadini
357704dead Bug 1441284 - Part 7 - Remove the "_ephemeral" property. r=Gijs
The "ephemeral" attribute was not actually used anymore, because it is redundant with the "viewCacheId" attribute.

MozReview-Commit-ID: 6zxf2DmcEfI

--HG--
extra : rebase_source : b3fb5381152c8baaf8f77549e87723e1815f945f
2018-02-26 19:50:19 +00:00
Paolo Amadini
01883a026c Bug 1441284 - Part 6 - Do not move out subviews when the window is closing. r=Gijs
Since we control the code path that invokes the PanelMultiView destructor, it is now possible to call the _moveOutKids function only as needed, avoiding some unnecessary DOM modifications when the browser window is closing.

MozReview-Commit-ID: JTJQmhZKFOh

--HG--
extra : rebase_source : cc3f1843cfd57e94bdf657aa033fbc9d5a086bf7
2018-02-26 19:47:29 +00:00
Paolo Amadini
a52806ca23 Bug 1441284 - Part 5 - Remove the "_panelViewCache" property. r=Gijs
MozReview-Commit-ID: IjTCdzr6gZ5

--HG--
extra : rebase_source : 1fece9694dfa2be6120230935af2c41f8efd26fb
2018-02-26 19:36:12 +00:00
Paolo Amadini
6a40e40b80 Bug 1441284 - Part 4 - Remove redundant calls before _moveOutKids and simplify the function. r=Gijs
The main view is already included in the children of the view stack, so the code that moves it out separately can be removed. The "mainview" attribute is already set to the correct value the next time the view is opened.

MozReview-Commit-ID: B8LMAxWvvTb

--HG--
extra : rebase_source : ae8afd201782346e63772cdb62797b7069e0d3ac
2018-02-26 19:14:31 +00:00
Paolo Amadini
d46beaba6f Bug 1441284 - Part 3 - Remove the "showingSubView" property. r=Gijs
The value "single" for the "closemenu" attribute on panel buttons is unused, so the only consumer of the "showingSubView" property can be removed.

MozReview-Commit-ID: 2jf5YE4Uyd

--HG--
extra : rebase_source : d1940fb7a470b42e0550c0e2876ad947d1c85d9d
2018-02-27 14:08:58 +00:00
Paolo Amadini
228213e40d Bug 1441284 - Part 2 - Remove the "_currentSubView" property. r=Gijs
MozReview-Commit-ID: Aua3V8hOT39

--HG--
extra : rebase_source : 08d506c3d65b3e2e72532183e776f8aa1c6c0975
2018-02-26 18:43:43 +00:00
Paolo Amadini
2d4d390d41 Bug 1441284 - Part 1 - Remove the "current" property. r=Gijs
MozReview-Commit-ID: GyqI8N3JQ9O

--HG--
extra : rebase_source : c2ac400d601c259ce17852a85d01230355885454
2018-02-26 18:36:59 +00:00
Florian Quèze
c714053d73 Bug 1433175 - scripted patch to replace Components.classes[, Components.interfaces.nsI, Components.utils. and Components.results. with Cc, Ci, Cu and Cr, r=Mossop. 2018-02-28 18:51:33 +01:00
Edouard Oger
25db2f7ed6 Bug 1434706 - Add identity.fxaccounts.enabled pref to disable Sync and FxA. r=markh
MozReview-Commit-ID: 4UuppJyOi5s

--HG--
extra : rebase_source : 706d6a9a1187e9b666074d0dd68d03eda3fb448b
2018-02-15 11:24:44 +08:00
Paolo Amadini
e0eef0a81d Bug 1440358 - Part 3 - Add tests for reopening a visible Library view. r=Gijs
MozReview-Commit-ID: 3sJDnzUWFbz

--HG--
extra : rebase_source : 17280de3f1733f47e3619145d8289c1e7c548937
2018-02-26 13:47:00 +00:00
Paolo Amadini
61b6cbe98e Bug 1440358 - Part 2 - Add tests for cancellation while opening a view. r=Gijs
This includes both canceling the ViewShowing event and calling the hidePopup method of PanelMultiView.

MozReview-Commit-ID: Goo45SEBC3z

--HG--
extra : rebase_source : d78376d7a69dd47157e049da1aaa19e97b9bd12c
2018-02-25 19:49:00 +00:00
Paolo Amadini
4d3254c032 Bug 1440358 - Part 1 - Add unit tests for PanelMultiView. r=Gijs
MozReview-Commit-ID: 3WM2Skrg3QV

--HG--
extra : rebase_source : 10a8080363a1c17013e249947314671389d04613
2018-02-26 13:45:09 +00:00
Paolo Amadini
53d37c96a7 Bug 1440333 - Part 3 - Raise the ViewShown event after the main view is active. r=Gijs
This also adds a new "active" property that can be used by regression tests to determine whether they should still wait for the ViewShown event.

MozReview-Commit-ID: K25F09llooj

--HG--
extra : rebase_source : 9f6dad605243fcd3633260c4fa34011f9cfab27c
extra : source : 2dad70b2a723e67b45563dd3ac254911dd193439
2018-02-26 13:18:22 +00:00
Paolo Amadini
acc856e8d4 Bug 1440333 - Part 2 - Rename the "current" attribute to "visible". r=Gijs
MozReview-Commit-ID: EazXDT6JC3M

--HG--
extra : rebase_source : ecaba689f94e26dcb20321bf51cd1b76d22ac2e8
extra : source : c705b49c2bae3301998df83dc0b883d0fb4e5219
2018-02-26 14:31:35 +00:00
Paolo Amadini
c359f82b1a Bug 1440333 - Part 1 - Remove the "in-transition" attribute. r=Gijs
This is made possible by a new workaround for a layout issue with panels that would prevent the main view from being displayed.

MozReview-Commit-ID: 3LGzq50QXt2

--HG--
extra : rebase_source : 2af636d4d93bf760b9ec4fd8b31ed77c715ab93f
extra : source : 9906b468eb78016aa4994b674da85bf7663c0285
2018-02-25 20:37:55 +00:00
Paolo Amadini
ffc1649aa1 Bug 1441154 - Start the PanelMultiView sliding transition together with the height transition. r=Gijs
This fixes an issue where the two transition are not simultaneous.

MozReview-Commit-ID: 8JKunQV3MDI

--HG--
extra : rebase_source : f272ab4c60de4361b44e71403806cd84436280db
2018-02-26 15:13:29 +00:00
Brindusan Cristian
81684073f2 Backed out 3 changesets (bug 1440333) for firefox-functional-test failures on test_no_certificate.py on a CLOSED TREE
Backed out changeset 2dad70b2a723 (bug 1440333)
Backed out changeset c705b49c2bae (bug 1440333)
Backed out changeset 9906b468eb78 (bug 1440333)
2018-02-26 16:19:18 +02:00
Paolo Amadini
885de209fb Bug 1440333 - Part 3 - Raise the ViewShown event after the main view is active. r=Gijs
This also adds a new "active" property that can be used by regression tests to determine whether they should still wait for the ViewShown event.

MozReview-Commit-ID: K25F09llooj

--HG--
extra : rebase_source : 8c9e2a86285be6453cd60b3da448876e6dfa7e8a
2018-02-26 13:18:22 +00:00
Paolo Amadini
76ef799b86 Bug 1440333 - Part 2 - Rename the "current" attribute to "visible". r=Gijs
MozReview-Commit-ID: EazXDT6JC3M

--HG--
extra : rebase_source : 5cca4cd0cf565ffbdf75a9777dfc15b359dcda57
2018-02-23 15:54:08 +00:00
Paolo Amadini
337d163883 Bug 1440333 - Part 1 - Remove the "in-transition" attribute. r=Gijs
This is made possible by a new workaround for a layout issue with panels that would prevent the main view from being displayed.

MozReview-Commit-ID: 3LGzq50QXt2

--HG--
extra : rebase_source : 5e594347fc612af2b3ee44748dd44383aa08f1a5
2018-02-25 20:37:55 +00:00
Paolo Amadini
c7bdffd735 Bug 1437512 - Part 2 - Remove the "panelmultiview" binding. r=Gijs
MozReview-Commit-ID: H9R7ahkCr2U

--HG--
extra : rebase_source : d6403d026b4539acc71325c600ee9ff3be667591
2018-02-25 18:43:55 +00:00
Paolo Amadini
c31491834b Bug 1437512 - Part 1 - Remove the "panelmultiview" binding construction. r=Gijs
MozReview-Commit-ID: 3oCvOe5th0B

--HG--
extra : rebase_source : 11ec16d78e61379d6efd359bd221b1829f89efa6
2018-02-25 18:41:45 +00:00
Mike Conley
4e9c3d2fe2 Bug 1434376 - Switch over all uses of BrowserUtils.promiseLayoutFlushed to window.promiseDocumentFlushed. r=Paolo
window.promiseDocumentFlushed will call a callback as soon as a style or layout
flush is not required for the document (which might be immediately). This is a
new ChromeOnly API introduced in an earlier patch in this series.

This patch also removes the now-unneeded BrowserUtils.promiseLayoutFlushed and
BrowserUtils.promiseReflowed methods and infrastructure.

MozReview-Commit-ID: Jv7KoxBXhHG

--HG--
extra : rebase_source : b8c9ae40dbdd0f5587d03e8b7c0833bd94032a78
2018-02-11 20:15:11 -05:00
Andreea Pavel
1aac7df383 Backed out 3 changesets (bug 1434376)for failing browser chrome at browser/base/content/test/performance/browser_urlbar_search_reflows.js on a CLOSED TREE
Backed out changeset b636251b75ab (bug 1434376)
Backed out changeset fccbba9cb959 (bug 1434376)
Backed out changeset b5128504011c (bug 1434376)
2018-02-25 12:44:28 +02:00
Mike Conley
96fbfba56f Bug 1434376 - Switch over all uses of BrowserUtils.promiseLayoutFlushed to window.promiseDocumentFlushed. r=Paolo
window.promiseDocumentFlushed will call a callback as soon as a style or layout
flush is not required for the document (which might be immediately). This is a
new ChromeOnly API introduced in an earlier patch in this series.

This patch also removes the now-unneeded BrowserUtils.promiseLayoutFlushed and
BrowserUtils.promiseReflowed methods and infrastructure.

MozReview-Commit-ID: Jv7KoxBXhHG

--HG--
extra : rebase_source : b8c9ae40dbdd0f5587d03e8b7c0833bd94032a78
2018-02-11 20:15:11 -05:00
Florian Quèze
682b1ec3b2 Bug 1440284 - change this.EXPORTED_SYMBOLS back to var EXPORTED_SYMBOLS in JS modules, r=mccr8. 2018-02-23 20:50:01 +01:00
Paolo Amadini
c6d3def00e Bug 1439358 - Part 8 - Change how visibility is controlled so knownViews can be removed. r=Gijs
MozReview-Commit-ID: 9dVZ1cOto8O

--HG--
extra : rebase_source : be13ed8d5c72b0e018dd0d27ef1fd3b7293bef48
2018-02-22 15:28:15 +00:00
Paolo Amadini
7a2372af52 Bug 1439358 - Part 7 - Close the main view synchronously before opening it in a different panel. r=Gijs
This also updates the AppMenu mozscreenshots module to work with the Photon main menu.

MozReview-Commit-ID: FciQH815F95

--HG--
extra : rebase_source : 5c129b0d4aa824bbe899066f2bb197106d1c0408
2018-02-22 11:25:10 +00:00
Paolo Amadini
a623dbe5af Bug 1439358 - Part 6 - Decouple view events from view visibility. r=Gijs
This stops redundant ViewHiding and late ViewShown events from being dispatched when the panel is closed during a ViewShowing event or a transition, and stops dispatching ViewHiding events when a view becomes invisible but is still open.

The panelMultiView property on "panelview" nodes is now set to null when the view is closed, indicating that the view can be immediately reused in a different panel. The Places view had to be updated so it doesn't rely on this property during the PanelMultiViewHidden event.

MozReview-Commit-ID: B1yU6si3eD3

--HG--
extra : rebase_source : 440ddc3eabcbe9d0f02a172f8adf047c66ca53ac
2018-02-22 14:20:11 +00:00
Paolo Amadini
3ffdb38d61 Bug 1439358 - Part 5 - Handle panel hiding during ViewShowing events. r=Gijs
The ViewHiding event is now dispatched consistently, regardless of whether the ViewShowing event is canceled or the panel is closed during the event. This is done by a new _openView helper, while the logic that is specific to each of the showMainView, showSubView, and goBack functions has been moved out of the _showView function.

MozReview-Commit-ID: 5WvW6THWbyb

--HG--
extra : rebase_source : 666c5744843f5197ab5130212096a1c83a2e3983
2018-02-22 17:11:25 +00:00
Paolo Amadini
5ef12b919b Bug 1439358 - Part 4 - Open views before the transition and close them after it. r=Gijs
This allows the openViews array to reflect the state of the navigation more accurately, paving the way for further simplification of the code. The showSubView function will now fail early when it's called with a view that is already open, so the rest of the code doesn't have to take this case into consideration.

MozReview-Commit-ID: 1VoIImxVTDN

--HG--
extra : rebase_source : b483f9c7e2782f070f5694d85a91a0bfefff5457
extra : source : 7ce7a10fd212989eee76b482632eac9b985d4b2e
2018-02-22 13:39:09 +00:00
Paolo Amadini
92a511a1a2 Bug 1439358 - Part 3 - Always raise ViewShowing events and don't update the "current" property. r=Gijs
The ViewShowing event is now called earlier and unconditionally, since we don't set the "current" attribute and call showMainView while the panel is closing anymore.

It is already the case that the ViewShowing event handlers don't depend on the "current" property, so we don't need to keep track of it before ViewShown events are dispatched.

MozReview-Commit-ID: Ii4SN03KjwW

--HG--
extra : rebase_source : 5e994fa4d54b2805b5eb10d9471bbb25bd21f24c
2018-02-19 11:17:52 +00:00
Paolo Amadini
660eb79aeb Bug 1439358 - Part 1 - Support "panelview" elements located anywhere in the document. r=Gijs
The showSubView public method now aligns with its callers and doesn't return a Promise anymore. The showMainView method still returns a Promise because at the moment it is used externally for asynchronous cleanup.

MozReview-Commit-ID: FcnEx5f5HKh

--HG--
extra : rebase_source : dc0a8e5267b7211c7ee3e2216bd1dc0cabdbd4bd
extra : intermediate-source : 9cc3eafb24f3936eb8ccb359f2f04e9839ae9ff2
extra : source : 7ce7a10fd212989eee76b482632eac9b985d4b2e
2018-02-12 16:44:00 +00:00
Masayuki Nakano
cf83ee7bb4 Bug 1438157 - part 2: Remove unnecessary second argument of EventUtils.synthesizeKey() r=smaug
Note that this patch also replaces legacy VK_* with KEY_*, and replaces
synthesizeKey() for inputting some characters with sendString() because
it's better and clearer what it does and it sets shiftKey state properly.

MozReview-Commit-ID: De4enbjux3T

--HG--
extra : rebase_source : 2296b84bff8e22f01eeb48cd8614fac5db11136a
2018-02-15 04:15:39 +09:00
Paolo Amadini
84fbdaa982 Bug 1437811 - Part 3 - Add a safety timeout for blockers registered by event handlers. r=Gijs
MozReview-Commit-ID: 6dfRVInzNps

--HG--
extra : rebase_source : a164b8221ed4f22ab49a24e97479d21ac132520b
2018-02-16 15:04:24 +00:00
Paolo Amadini
0eac64a01c Bug 1437811 - Part 2 - Prepare the main view just before opening the panel. r=Gijs
This allows the ViewShowing event for the main view to prevent the panel from opening. It also avoids setting up the main view if the panel is not opened.

MozReview-Commit-ID: LK8tBcz6lkK

--HG--
extra : rebase_source : beb721ff996f11d7e162a4ff431c38b30bf42ca6
extra : source : c8115e90ffa8af27ef00cbd0f8da68dce7ce36bd
2018-02-16 15:03:18 +00:00
Timothy Guan-tin Chien
b073441b39 Bug 1422386 - Remove toolbardecoration, toolbar, and toolbar-base binding, r=Paolo
The only purpose of these bindings was to insert a stylesheet, which has been
moved to be included in toolkit/content/components.css.

MozReview-Commit-ID: 23jqkIrbVvi

--HG--
extra : rebase_source : 8d13f7a8afa730207d40e1457e36ec51331c4ea7
2018-02-13 22:12:18 +08:00
Edouard Oger
06724df9cc Bug 1434670 - Synced tabs panels adjustments. r=dao
MozReview-Commit-ID: 8HrlWciU2Rg

--HG--
extra : rebase_source : 69372eeb368398bd6a99151f74439a01bf7e8538
2018-01-31 13:28:28 -05:00
Masayuki Nakano
8917ac460f Bug 1436926 - part 2: Remove unnecessary KeyboardEvent.code specification of callers of EventUtils.synthesizeKey() r=smaug
Now, callers of EventUtils.synthesizeKey() don't need to specify
KeyboardEvent.code value anymore if they assume that active keyboard layout
is US keyboard layout.

Note that this patch changes the meaning of only test_bug551434.html.
Some callers in it don't match the key value and code value but that looks
like that they don't checking such odd keyboard events.  So, they must be
bug of the test.

MozReview-Commit-ID: Itxo7yZ9rkK

--HG--
extra : rebase_source : 856ef3715c924ca16e993ea57d92d1243b5cc6be
2018-02-09 19:17:26 +09:00
Gijs Kruitbosch
d01899fa3f Bug 1437486 - don't reset the forget button duration when the popup is visible, r=johannh
MozReview-Commit-ID: 6TWGSSuZxsa

--HG--
extra : rebase_source : 21a5749e3dc32edebe159ac3a5ce53cfca63999c
2018-02-12 11:33:17 +00:00
Paolo Amadini
d59df3cdd5 Bug 1434883 - Part 2 - Use an asynchronous API to open PanelMultiView panels. r=Gijs
MozReview-Commit-ID: 3VzoxJ3Ociy

--HG--
extra : source : 22c83b1d417d7c7bd21a71109f4800f5d37bbb77
extra : intermediate-source : 6de7133c267288a468804f67f91df68b10b9793e
2018-02-06 09:02:27 +00:00
Narcis Beleuzu
d299fdd9b4 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-02-08 21:36:33 +02:00
Brindusan Cristian
4b424f0368 Merge inbound to mozilla-central. a=merge 2018-02-08 21:02:00 +02:00
Florian Quèze
c4e2b2a086 Bug 1434945 - toolbar.xml should ignore overflow/underflow events that don't come from its customization target, r=Gijs. 2018-02-08 19:40:16 +01:00
Paolo Amadini
d6977c62c9 Bug 1428930 - Move some XBL accessibility roles into XULMap.h. r=bgrins,surkov
MozReview-Commit-ID: Iye8XoQ7neq

--HG--
extra : rebase_source : e9101e02cdf30489eda8867cbf6784eeb923e47d
2018-02-07 13:23:53 +00:00
Edouard Oger
626be20bbb Bug 1427674 - Unify FxA content server URL preferences. r=markh,tcsc
MozReview-Commit-ID: 3zhHGAzQr0R

--HG--
extra : rebase_source : 013457dfb434c92134d2f244b389d21620c83595
2018-01-30 13:21:35 -05:00
Andrew McCreight
5dec0e0beb Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian
This patch was autogenerated by my decomponents.py

It covers almost every file with the extension js, jsm, html, py,
xhtml, or xul.

It removes blank lines after removed lines, when the removed lines are
preceded by either blank lines or the start of a new block. The "start
of a new block" is defined fairly hackily: either the line starts with
//, ends with */, ends with {, <![CDATA[, """ or '''. The first two
cover comments, the third one covers JS, the fourth covers JS embedded
in XUL, and the final two cover JS embedded in Python. This also
applies if the removed line was the first line of the file.

It covers the pattern matching cases like "var {classes: Cc,
interfaces: Ci, utils: Cu, results: Cr} = Components;". It'll remove
the entire thing if they are all either Ci, Cr, Cc or Cu, or it will
remove the appropriate ones and leave the residue behind. If there's
only one behind, then it will turn it into a normal, non-pattern
matching variable definition. (For instance, "const { classes: Cc,
Constructor: CC, interfaces: Ci, utils: Cu } = Components" becomes
"const CC = Components.Constructor".)

MozReview-Commit-ID: DeSHcClQ7cG

--HG--
extra : rebase_source : d9c41878036c1ef7766ef5e91a7005025bc1d72b
2018-02-06 09:36:57 -08:00
Johann Hofmann
7b865b61f7 Bug 1167238 - Part 3 - Clean up usage of sanitize.js to properly use Sanitizer.jsm. r=mak
This replaces all non-test usage of sanitize.js or legacy Sanitizer.jsm
to use the new Sanitizer.jsm module which does not hold internal state
and instead receives all configuration through function arguments (or by reading prefs).

MozReview-Commit-ID: KitMVptuIG3

--HG--
extra : rebase_source : e6696a5246db3f6ef9dd25aeab5d239d7fc7f8e3
2018-01-18 16:02:04 +01:00
Ursula Sarracini
eda0730782 Bug 1425496 - Add Recently Pocketed Items to Highlights r=Mardak
MozReview-Commit-ID: LyXKkQkPXte

--HG--
extra : rebase_source : 7cb303772463efd7179fcd672d022dc0a0e37015
2018-02-02 17:06:06 -05:00
Florian Quèze
2b1c8dccb6 Bug 1339461 - script-generated patch to convert foo.indexOf(...) == -1 to foo.includes(), r=Mossop. 2018-02-01 20:45:22 +01:00
Kris Maglione
918ed6c474 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl

--HG--
extra : source : 12fc4dee861c812fd2bd032c63ef17af61800c70
extra : intermediate-source : 34c999fa006bffe8705cf50c54708aa21a962e62
extra : histedit_source : b2be2c5e5d226e6c347312456a6ae339c1e634b0
2018-01-29 15:20:18 -08:00
Cosmin Sabou
9a65a40178 Backed out 3 changesets (bug 1431533) for Android mochitest failures on testEventDispatcher on a CLOSED TREE
Backed out changeset a1eca62826a1 (bug 1431533)
Backed out changeset 34c999fa006b (bug 1431533)
Backed out changeset e2674287e57f (bug 1431533)
2018-01-30 07:17:48 +02:00
Kris Maglione
6476f95b13 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl

--HG--
extra : source : 12fc4dee861c812fd2bd032c63ef17af61800c70
2018-01-29 15:20:18 -08:00
Brindusan Cristian
af8879d1eb Backed out 2 changesets (bug 1431533) for ESlint failures on a CLOSED TREE
Backed out changeset 6e56f4c8843e (bug 1431533)
Backed out changeset 12fc4dee861c (bug 1431533)
2018-01-30 02:32:43 +02:00
Kris Maglione
c276bb9375 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl

--HG--
extra : rebase_source : c004a023389f1f6bf3d2f3efe93c13d423b23ccd
2018-01-29 15:20:18 -08:00
Paolo Amadini
725589e703 Bug 1424264 - Part 3 - Use the minimum height from the older transitioning view. r=Gijs
This also fixes the clean up of the width and height properties of the viewContainer.

MozReview-Commit-ID: 28XQlUoLLCr

--HG--
extra : rebase_source : ce0df7ab26ce0212137003e2c700fac4d49e228d
extra : source : c06ebffb1795cf555f5ce609ab133b3bad594137
2018-01-26 14:20:10 +00:00
Paolo Amadini
84248294a8 Bug 1424264 - Part 2 - Move state related to view sizing to the PanelView class. r=Gijs
MozReview-Commit-ID: IsywTHd3qVV

--HG--
extra : rebase_source : 85b8496c46e068843bcda4b9f4b05b5e2853696b
extra : source : 84f3b647fe44b4483122953080dc43cc68defee6
2018-01-26 14:19:53 +00:00
Paolo Amadini
70a9370dd8 Bug 1424264 - Part 1 - Always update min-width and max-width before showing views. r=Gijs
This also removes some unneeded checks for variables that are now never false.

MozReview-Commit-ID: KVVwARLrpYO

--HG--
extra : rebase_source : 5d6ebaabce6964fd57cda83685194e339f143865
2018-01-26 14:05:11 +00:00
Paolo Amadini
0d7dab5bac Bug 1432016 - Part 4 - Move keyboard navigation to the PanelView class. r=Gijs
This allows removing the separate keyboard navigation map.

MozReview-Commit-ID: 2N0wflAvg7Y

--HG--
extra : rebase_source : 63b9ae6e4db0de1957cb011c69134894d311b703
2018-01-22 14:42:24 +00:00
Paolo Amadini
8297599fe3 Bug 1432016 - Part 3 - Use the PanelView class for knownViews and openViews. r=Gijs
MozReview-Commit-ID: CQ0Ao3FlRRc

--HG--
extra : rebase_source : 17fc6eeb96748028943708b83fc9fd5b6134d8b6
2018-01-22 13:06:55 +00:00
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
Paolo Amadini
f26eb575e4 Bug 1432016 - Part 1 - Add a PanelView class using a base class shared with PanelMultiView. r=Gijs
Only one method is moved to the PanelView class to simplify the keyboard navigation test.

MozReview-Commit-ID: CHB5FiT9ptn

--HG--
extra : rebase_source : ec588beae9f1208a37ce85f9d28029dfd979db24
2018-01-22 12:46:48 +00:00
Paolo Amadini
8fb049f21b Bug 1432015 - Part 5 - Remove unused code. r=Gijs
MozReview-Commit-ID: IoURPSdQAiR

--HG--
extra : rebase_source : a52da95d14752726590035aa4adea5a7605aae50
2018-01-21 11:37:50 +00:00
Paolo Amadini
fce2b33bda Bug 1432015 - Part 4 - Separate the set of known views from the stack of open views. r=Gijs
This makes the code easier to follow and facilitates future refactoring, for example the set of known views can be removed entirely by making the clean up and navigation code use the stack of open views.

The SlidingPanelView class can thus be removed, saving various lines of code. The class implemented a small optimization for garbage collection, that was already less effective because various other objects are created during each view transition anyways.

MozReview-Commit-ID: Z4JJMklUMf

--HG--
extra : rebase_source : 8789a35c4234fc691c62efeb3445b776b14fc1f9
2018-01-21 17:27:11 +00:00
Paolo Amadini
26c7b11e09 Bug 1432015 - Part 3 - Ensure that views passed to showSubView are added to the list of known views without having to reset the internal _panelViews variable. r=Gijs
MozReview-Commit-ID: Hld45ghdduv

--HG--
extra : rebase_source : e01d8facd56a4be21818879b21de75802d723db3
2018-01-17 15:04:18 +00:00
Paolo Amadini
11d708f26b Bug 1432015 - Part 2 - Remove the setMainView methods. r=Gijs
The setMainView method of PanelMultiView controls the "mainview" attribute, which is already set or removed later in the showSubView method. When called at construction time, it changes the mainViewId if there is at least one child in the "panelmultiview" element and the original mainViewId does not already reference the first child. This would be incorrect, but in practice it never happens for either ephemeral or static panels, and can be avoided for the throw-away activated page action panel.

The setMainView method of PanelUI is never called, and this makes the corresponding PanelMultiView method removable.

MozReview-Commit-ID: 5bNidHfKFTA

--HG--
extra : rebase_source : b527827d30d682d183981347c2caf3a8a5d81355
2018-01-21 15:59:41 +00:00
Kris Maglione
aec63e140c Backed out 3 changesets (bug 1431533) for Android mochitest bustage. CLOSED TREE
MozReview-Commit-ID: 5ubE9EMQpZ9

--HG--
extra : histedit_source : df68d7595925c07d9d6e8bacc2c46e69556f479a%2C72b768b9825e20ede6603ead75f871c50dc041f7
2018-01-24 22:04:59 -08:00
Kris Maglione
30b3a49bfd Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
MozReview-Commit-ID: 8V1ZT53ReiP

--HG--
extra : rebase_source : 12b5f8c3e125111db7382eb3d7d20a99fb2c35b3
extra : absorb_source : e99fa7f6eee02e7e6cadeb898c7fcf6dac9c902a
extra : histedit_source : d0dfc31fadc2b81d341c9d0cd1efec02923c003b
2018-01-24 15:48:47 -08:00
Dão Gottwald
6bd33a0edd Bug 1430747 - Stop setting unused customization-lwtheme attribute and --toolbox-rect-height, --toolbox-rect-height-with-unit CSS variables. r=mikedeboer
MozReview-Commit-ID: HpdE3I7ZeDY

--HG--
extra : rebase_source : b87cd595bf2002b6fd25883beedac06835a63e0d
2018-01-16 12:38:41 +01:00
Csoregi Natalia
7476b71e00 Merge inbound to mozilla-central r=merge a=merge 2018-01-12 23:59:06 +02:00
Gijs Kruitbosch
1f11d6af6f Bug 1426250 - make tests actually pass valid mouse coordinates when testing Customize Mode, r=jaws
MozReview-Commit-ID: IglKedBqrWQ

--HG--
extra : rebase_source : a388f02b8d5e00f7e670f41d049518be1de370dc
extra : histedit_source : 8f79f40d24f5456e22787a169cc9f6ae21c03c1e
2018-01-05 21:35:27 +00:00
Gijs Kruitbosch
6f12989f12 Bug 1426250 - allow changing log preference at runtime for CUI.jsm, r=jaws
MozReview-Commit-ID: 9kYBC27wowg

--HG--
extra : rebase_source : 014c898dff8b446cbaa87e1567b644a66dfe5b53
extra : histedit_source : 9e16d035a25f195c2e67278a4ecc7ff4fe07aaab
2018-01-05 21:31:53 +00:00
Tim Nguyen
e1b673bf04 Bug 1428938 - Remove legacy toolbar customization code. r=Gijs
MozReview-Commit-ID: 1ppfxI7yYJW

--HG--
extra : rebase_source : b4a2c44dd5e244c81e479e6b43e9669cc031f349
2018-01-11 16:35:17 +00:00
Dão Gottwald
827618fca1 Bug 1430128 - Remove remnants of the iconsize attribute. r=Gijs
MozReview-Commit-ID: 3a80XcR3NUM

--HG--
extra : rebase_source : 25607ac27fd4e84ebdbfe13a3c77ba2ea0df6d7b
2018-01-12 16:03:44 +01:00
Tim Nguyen
8d9a650ed6 Bug 1430009 - Remove reference to externalToolbars in customizableui toolbar.xml binding. r=Gijs
MozReview-Commit-ID: CMKNn7jdcVq

--HG--
extra : rebase_source : 573f6414595766f21984f987694eadff36d438a3
2018-01-12 08:56:31 +00:00
Paolo Amadini
1714b3aba4 Bug 1425736 - Don't show the attention badge for download failures on the application menu button. r=Gijs
MozReview-Commit-ID: A882hXl5o0

--HG--
extra : rebase_source : 1584f1141c3e8bc1aeb62559a7136dc9f0745899
2018-01-09 15:51:19 +00:00
Dorel Luca
04e91897cf Backed out 11 changesets (bug 1252998) for faling browser-chrome on browser/base/content/test/sanitize/browser_sanitize-offlineData.js
Backed out changeset a9ec63c01c50 (bug 1252998)
Backed out changeset a3e5299b882a (bug 1252998)
Backed out changeset aa511b206e21 (bug 1252998)
Backed out changeset 5875848a48ab (bug 1252998)
Backed out changeset 7fd2523680d1 (bug 1252998)
Backed out changeset a45e28e573a4 (bug 1252998)
Backed out changeset 92e8cc81b417 (bug 1252998)
Backed out changeset da38d133549e (bug 1252998)
Backed out changeset 5be23a98b47c (bug 1252998)
Backed out changeset 609093736110 (bug 1252998)
Backed out changeset f4955cf6447f (bug 1252998)

--HG--
rename : browser/base/content/test/sanitize/browser_purgehistory_clears_sh.js => browser/base/content/test/general/browser_purgehistory_clears_sh.js
rename : browser/base/content/test/sanitize/browser_sanitize-passwordDisabledHosts.js => browser/base/content/test/general/browser_sanitize-passwordDisabledHosts.js
rename : browser/base/content/test/sanitize/browser_sanitize-sitepermissions.js => browser/base/content/test/general/browser_sanitize-sitepermissions.js
rename : browser/base/content/test/sanitize/browser_sanitize-timespans.js => browser/base/content/test/general/browser_sanitize-timespans.js
rename : browser/base/content/test/sanitize/browser_sanitizeDialog.js => browser/base/content/test/general/browser_sanitizeDialog.js
2018-01-08 11:00:39 +02:00
Andrea Marchesini
f952b314f1 Bug 1252998 - StorageActivityService - part 5 - nsIStorageActivityService::getActiveOrigins, r=asuth 2018-01-08 08:31:38 +01:00
Edouard Oger
2040473d06 Bug 1426444 - Make Synced Tabs unverified state consistent. r=markh
MozReview-Commit-ID: D62SqelGXw2

--HG--
extra : rebase_source : ee6cd000ed6ee0bde094639c7c067f2eb7ec7e4c
2017-12-20 14:52:33 -05:00
Ian Moody
4228c58572 Bug 1425972 - Add a test for subview navigation on space keydown. r=Gijs
MozReview-Commit-ID: Hb5WlqOtibS

--HG--
extra : rebase_source : c6584d917f03824d1f4ed2b11ddb69bf3165f307
2017-12-20 16:48:19 +00:00
Ian Moody
576f8ac9fd Bug 1425972 - Add a test for interleaved arrow and tab navigation in the browser panel. r=Gijs
MozReview-Commit-ID: DBIop59CWCG

--HG--
extra : rebase_source : a14f4c16ae098758c7805482c12780452f3efdbf
2017-12-20 02:19:35 +00:00
Ian Moody
92dc6aecdf Bug 1425972 - Add a test for tab navigation in the browser panel. r=Gijs
MozReview-Commit-ID: L3C65YgRYd5

--HG--
extra : rebase_source : 9de26250aa9f18cf69818898e04b6b49b136b899
2017-12-20 00:18:19 +00:00
Ian Moody
acb5488eff Bug 1425972 - Manually handle Tab navigation in PanelMultiView so it syncs with Arrow navigation. r=Gijs
MozReview-Commit-ID: 5PjXFZBeWzM

--HG--
extra : rebase_source : cd0e2176fed7f9808808e45ea4aef794450af43c
2017-12-19 19:37:34 +00:00
Florian Quèze
7b5a7a03c6 Bug 1394914 - toolbars no longer need to wait for xul overlays to load before initializing CustomizableUI icons (avoid sidebar icon flickering), r=Gijs. 2017-12-19 23:40:40 +01:00
Margareta Eliza Balazs
1eebb5247e Backed out changeset 7c96cab6821a (bug 1394914) for failing bc in browser/base/content/test/performance/browser_windowopen_reflows.js r=backout a=backout on a CLOSED TREE
--HG--
extra : amend_source : 26399ce10f34ab1a32a07ce8669eeda7d2d63fc2
2017-12-20 14:32:53 +02:00
Margareta Eliza Balazs
060948a574 Merge inbound to mozilla-central r=merge a=merge 2017-12-20 11:47:11 +02:00
Florian Quèze
10d90b6bb5 Bug 1394914 - toolbars no longer need to wait for xul overlays to load before initializing CustomizableUI icons (avoid sidebar icon flickering), r=Gijs. 2017-12-19 23:40:40 +01:00
Gijs Kruitbosch
b260c43755 Bug 1424452 - stop having 2 different values for the 'panel' area type, r=jaws
MozReview-Commit-ID: 3spDhRhlOTF

--HG--
extra : rebase_source : c3d39c18ed645c8023da4488704ed186a405ffda
2017-12-09 12:37:20 +00:00
Tooru Fujisawa
034f9f1ec4 Bug 1424877 - Wait for the next event tick in promisePanelElementHidden in browser/components/customizableui/test/head.js. r=Gijs 2017-12-14 14:49:32 -06:00
Tooru Fujisawa
66fd8a5699 Bug 1424083 - Wait for the mouseover event instead of attribute in browser_customizemode_uidensity.js r=Paolo 2017-12-09 06:08:44 +09:00
Tooru Fujisawa
070eb80e9c Bug 1416446 - Part 0.2: Fix browser_981418-widget-onbeforecreated-handler.js to wait for events in correct order and timing. r=Paolo 2017-12-09 06:08:43 +09:00
Dorel Luca
9a04f22fb6 Backed out changeset 8ad560283f5e (bug 1416446) for failing browser-chrome's browser/base/content/test/permissions/browser_temporary_permissions_expiry.js on Windows 7 debug without e10s r=backout on a CLOSED TREE 2017-12-09 18:59:48 +02:00
Dorel Luca
2761bd8ba2 Backed out changeset 56343b0de5c2 (bug 1424083) for failing browser-chrome's browser/base/content/test/permissions/browser_temporary_permissions_expiry.js on Windows 7 debug without e10s r=backout on a CLOSED TREE 2017-12-09 18:58:40 +02:00
Tooru Fujisawa
b33da27b5b Bug 1424083 - Wait for the mouseover event instead of attribute in browser_customizemode_uidensity.js r=Paolo 2017-12-09 06:08:44 +09:00
Tooru Fujisawa
ef93d75551 Bug 1416446 - Part 0.2: Fix browser_981418-widget-onbeforecreated-handler.js to wait for events in correct order and timing. r=Paolo 2017-12-09 06:08:43 +09:00
Cosmin Sabou
c191e25cf5 Merge mozilla-inbound to mozilla-central r=merge a=merge 2017-12-08 11:56:44 +02:00
Bill McCloskey
9f4d083047 Bug 1412456 - Test changes to no longer use interposition (r=felipe,bgrins,mrbkap)
MozReview-Commit-ID: 2nQPOSGTr1s
2017-12-07 12:55:24 -08:00
shindli
76ee711dab Merge mozilla-central to autoland. r=merge a=merge CLOSED TREE 2017-12-08 00:24:48 +02:00
Paolo Amadini
d5768a5706 Bug 1423891 - Panel header is gone when going back from Bookmarks to Library. r=Gijs
MozReview-Commit-ID: Bfgg61BH9L8

--HG--
extra : rebase_source : aa50e87024c46f8337e806245a8aae34b5fa599f
2017-12-07 15:32:40 +00:00
Neil Deakin
60e7f4183f Bug 1419925, implement a promise-oriented version of waitForClipboard, promiseClipboardChange, change a selection of tests to use this instead. Simplify some other clipboard tests that were unreliable before the fix for 1394757. r=jmaher 2017-12-07 08:39:50 -05:00
Gijs Kruitbosch
bcb88dd3aa Bug 1415056 - reverse direction of horizontal shift in RTL when shifting palette items in customize mode, r=jaws
This also fixes the vertical offset because we take the correct branch in the yDiff if block lower down.

MozReview-Commit-ID: KbHkRx1575X

--HG--
extra : rebase_source : ed9189c10dd00badb4bce9982a7ba20b647cef98
2017-12-04 12:31:39 +00:00
Gijs Kruitbosch
3aefd1d81c Bug 1415056 - re-enable animations in the palette in customize mode, r=jaws
MozReview-Commit-ID: DXYBPCdXMBG

--HG--
extra : rebase_source : b19fabd92e2709909259b1517edba4b82a365f32
2017-12-04 12:15:10 +00:00
Dorel Luca
1208bc03a7 Merge mozilla-central to autoland r=merge on a CLOSED TREE
--HG--
extra : rebase_source : 5f22b0e83fd5f1b28e0c1ebbcc429c332835eb36
2017-12-07 00:27:29 +02:00
Paolo Amadini
b12ae1861e Bug 1417042 - Remove the "panelview" binding. r=Gijs
MozReview-Commit-ID: 26uQb3pteQd

--HG--
extra : rebase_source : 93263ff4f1e0d38292dbfef3f7385ddd881b25ef
extra : source : bce38a7817ee39ccd38f57f73f5acf81a41e1f69
2017-12-06 10:37:25 +00:00
Edouard Oger
7fabe73930 Bug 1422106 - Show broken heart when unverified in synced tabs sidebar/panel. r=markh
MozReview-Commit-ID: BDTdmcIOHmn

--HG--
extra : rebase_source : c2b534461715f8db1e6cb8bc7910311cc4ff6611
2017-11-30 16:01:40 -05:00
Paolo Amadini
fd72a1cb37 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

--HG--
extra : rebase_source : 5b0bc4e5d4d2d10d684c2c2bf94a9030aadd09bd
2017-11-28 16:53:42 +00:00
Paolo Amadini
224d94cc76 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

--HG--
extra : rebase_source : ee2876f45ac16dc6c58d3373dfd2e3cc847dd593
2017-11-30 21:28:00 +00:00
Edouard Oger
ae62aef149 Bug 1418466 - Add Connect Another Device button to relevant Sync UI. r=dao,markh
MozReview-Commit-ID: 5vBKH9NejVV

--HG--
extra : rebase_source : c160a5a1d7753d41c7afec3a822aefa9461684e6
2017-11-17 16:48:17 -05:00
Noemi Erli
e5e82c8496 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
016b5734e5 Bug 1418466 - Add Connect Another Device button to relevant Sync UI. r=dao,markh
MozReview-Commit-ID: 5vBKH9NejVV

--HG--
extra : rebase_source : e8628aba338b19142dc63add9bb380042096053f
2017-11-17 16:48:17 -05:00
Mike Conley
4250a7d5e6 Bug 1412471 - Fix intermittent failure in browser_panelUINotifications_fullscreen_noAutoHideToolbar.js by ensuring we wait for update popup. r=Gijs
MozReview-Commit-ID: Yypy0ls4Ap

--HG--
extra : rebase_source : 5ab46c85c58da785fe4ae31ed84da58698cc47fa
2017-11-24 10:55:41 -05:00
Edouard Oger
fb068875b7 Bug 1417520 p3 - Remove No Synced tabs yet title. r=markh
MozReview-Commit-ID: BYOMCnLk3bs

--HG--
extra : rebase_source : 0bbcdb63ac447e3bb9d13b869df22c46235d9d40
2017-11-17 15:07:17 -05:00
Edouard Oger
1cfc06aae1 Bug 1417520 p2 - Introduce sync-illustration-issues. r=dao,markh
MozReview-Commit-ID: 8VbiDUuGvTk

--HG--
extra : rebase_source : 594e44afc3634f6aa48ecbc991d49bcbb7ecf105
2017-11-16 13:26:19 -05:00
Gijs Kruitbosch
46b1167088 Bug 1420583 - fix new tab adjacency logic when using "restore defaults", r=jaws
When using "restore defaults", Customize mode unwraps all elements. The previous implementation
of _updateNewTabVisibility assumed that elements were wrapped in <toolbarpaletteitem>s when in
customize mode, but this isn't true during a reset. The new implementation just looks for the
<toolbarpaletteitem>s and their children as necessary.

MozReview-Commit-ID: FjNJ1n8foGi

--HG--
extra : rebase_source : c9de8a2a4d4dcf191281fead320acc2ddc1321d6
2017-11-27 15:23:42 +00:00
Tawny Hoover
a33fa6a1f2 Bug 1398992 = Make 'Recently Bookmarked' in Photon panels support browser.bookmarks.openInTabClosesMenu pref. r=jaws
MozReview-Commit-ID: 3Rio9EjwilT

--HG--
extra : rebase_source : dde522b0eb65b22ee74d8dfb6d5f1d1a5489237f
2017-11-24 21:54:54 -05:00
Mark Striemer
8a1f9ea7ae Bug 1390158 - Notify user of extension controlling New Tab on first access r=aswan,jaws
MozReview-Commit-ID: 1g9d4UTuOgr

--HG--
extra : rebase_source : 29e07cff103e7751bf4ca414a88f89136d3ac237
2017-11-22 19:00:58 -06:00
Gijs Kruitbosch
53181787f7 Bug 1418757 - new tab button isn't adjacent to the last tab when customizing in customize mode, r=jaws
MozReview-Commit-ID: bQoNfDD2sX

--HG--
extra : rebase_source : e8afb0662e82e3b879bd3b6e28aef27d477bf92c
2017-11-22 13:49:07 +00:00
Paolo Amadini
166ddcece1 Bug 1414244 - Part 7 - Remove unused code paths from PanelMultiview.jsm. r=Gijs
MozReview-Commit-ID: 9cwaAZXqDGO

--HG--
extra : rebase_source : 90cf1a99c2ca1a64709abfa7383462480282ba0f
2017-11-23 15:18:14 +00:00
Paolo Amadini
fc23659e93 Bug 1414244 - Part 6 - Fold the "photonpanelmultiview" binding into "panelmultiview". r=Gijs
MozReview-Commit-ID: IjvSZZUHUMt

--HG--
extra : rebase_source : a94e212e8af35b77806d1d62e020a511ab62e224
2017-11-21 14:21:32 +00:00
Paolo Amadini
5bf848634e Bug 1414244 - Part 5 - Remove the "panel-mainview" container. r=Gijs
MozReview-Commit-ID: 3NDGiy3Mwtq

--HG--
extra : rebase_source : 9c46b5dd69df05ff7688eae2e6b4aabaca4e2d8d
2017-11-11 22:56:15 +00:00
Paolo Amadini
90a19d3ca4 Bug 1414244 - Part 4 - Remove the "panel-clickcapturer" element. r=Gijs
MozReview-Commit-ID: 3aPVbnmr7QB

--HG--
extra : rebase_source : f59452147d08b3f75521c544f78f1c29b2c39814
2017-11-11 22:48:32 +00:00
Paolo Amadini
82f9f4f35d Bug 1414244 - Part 3 - Remove the "panel-subviews" container. r=Gijs
MozReview-Commit-ID: 2GGJ1myKuF5

--HG--
extra : rebase_source : e4089ae1ec828048f052932f13a687aca109b7c5
2017-11-11 22:09:30 +00:00
Paolo Amadini
b4f8aa9d1e Bug 1414244 - Part 2 - Remove the "viewtype" attribute. r=Gijs
MozReview-Commit-ID: 8fq0KLfYWnc

--HG--
extra : rebase_source : a75197f66d0b8699e1cad5640eb0bc20ee53ee0c
2017-11-21 13:22:47 +00:00
Paolo Amadini
46c88521a3 Bug 1414244 - Part 1 - Remove the "panelid" attribute. r=Gijs
MozReview-Commit-ID: 4o27h6PhCRg

--HG--
extra : rebase_source : 7be0dd97832033fa0d5304afd0def1cd3dcd3ddf
2017-11-11 13:05:51 +00:00
Alphan Chen
54f4537537 Bug 980904 - Disable the Character Encoding menu when document is decoded as UTF-8 without errors. r=hsivonen,emk,Gijs 2017-11-23 15:03:41 +08:00
Xidorn Quan
843aaedf4d Bug 1417600 - Wait for another frame before setting animation out to ensure start of the animation. r=jaws
MozReview-Commit-ID: 96nGBDgdr05

--HG--
extra : rebase_source : a5bdf5ff0576a3d24d02e0e35effaa13c6eace43
2017-11-16 10:33:04 -08: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
Tooru Fujisawa
50f5bf47cd Bug 1418739 - Part 2: Remove unused delayedStartup parameter from BrowserTestUtils.waitForNewWindow. r=smaug 2017-11-21 03:41:56 +09:00
Andreea Pavel
eaff9152a3 Backed out 1 changesets (bug 1417600) for failing browser/components/customizableui/test/browser_972267_customizationchange_events.js r=backout on a CLOSED TREE
Backed out changeset 04dac3301ecd (bug 1417600)
2017-11-17 12:51:12 +02:00
Xidorn Quan
948e8f416e Bug 1417600 - Wait for a style flush before setting animation out to ensure start of the animation. r=jaws
MozReview-Commit-ID: IhnmZ0L9yx

--HG--
extra : rebase_source : 013417c60cc85dbb90b8ab33afe60b55252d0b17
2017-11-16 10:33:04 -08:00
Johann Hofmann
3508660808 Bug 1362065 - Add the touchdownstartsdrag attribute to selected tabs on Windows. r=dao
This allows dragging them via touch gestures.

I'm not adding this attribute to all tabs (so that you need
to select a tab before dragging it), because the tab
strip can also be scrolled with touch gestures and
the two touch move actions would easily conflict
otherwise. It would also make it easier to accidentally
mess up your tabs when touching your window somehow.

MozReview-Commit-ID: IVWQtVGFE9j

--HG--
extra : rebase_source : b4d616f45de4362d2fd505dacbf7176d12a04e37
2017-11-10 12:06:50 +01:00
Mark Banner
ab78a2a54d Bug 1371293 - Fix instances of space-before-function-paren failures after ESLint 4 upgrade. r=mossop
MozReview-Commit-ID: 5XfdCSDjLEG

--HG--
extra : rebase_source : 96335eec91a40f893ff28a1c002653b758d8f24d
2017-11-06 13:46:21 +00:00
Gijs Kruitbosch
7cc3de1624 Bug 1388029 - remove dead CSS relating to the old panel, r=jaws
MozReview-Commit-ID: FoXjvWPc9in

--HG--
extra : rebase_source : b098e2efc8f154aaae5f4ddfd30558fb0f3299c1
2017-11-07 12:52:56 +00:00
Gijs Kruitbosch
8c1b02e3d4 Bug 1388029 - remove the remaining uses of AREA_PANEL, r=jaws
MozReview-Commit-ID: L017kRfHfOv

--HG--
extra : rebase_source : c9dcbb76d787281ac2dcf18c59786205aeaacaf9
2017-11-07 12:15:18 +00:00
Gijs Kruitbosch
d01a2b63d7 Bug 1388029 - remove notion of 'wide' widget and panel columns from the tree, r=jaws
MozReview-Commit-ID: IrCB3zn1BIT

--HG--
extra : rebase_source : efb192e8c82a4272078bd7754ef453113166b81c
2017-11-07 12:00:18 +00:00
Gijs Kruitbosch
f98c738db9 Bug 1388029 - remove useless param from PanelUI.showSubView, r=jaws
MozReview-Commit-ID: 9hkYtLxAOtQ

--HG--
extra : rebase_source : 76f0f2acb9c785e9497fccb493e5c158d9d35eb4
2017-11-07 11:54:47 +00: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
Jared Wein
aa66390484 Bug 1415054 - Handle RTL in empty customize mode better. r=gijs
MozReview-Commit-ID: HjqvOM1n14G

--HG--
extra : rebase_source : fb133bb320f37585f63f872ead38ba7e7f87e544
2017-11-08 15:32:21 -05:00
Gijs Kruitbosch
c2d962cea7 Bug 1408613 - stop trying to use a smaller image in the overflow panel which is wide enough, r=mikedeboer
MozReview-Commit-ID: Kh83oju1Dud

--HG--
extra : rebase_source : 30219c8ef0a3bc592191df4c01fd32de4004ef5f
2017-11-08 17:52:20 +01:00
Johann Hofmann
93aef727a2 Bug 1299286 - Add the touchdownstartsdrag attribute to customize mode elements. r=jaws
MozReview-Commit-ID: LziDBjACA0

--HG--
extra : rebase_source : b0c08cb1ecafa6fce4b9e55ce3dae65412c5070e
2017-11-03 13:12:10 +01:00
Gijs Kruitbosch
974b0a4c68 Bug 1408166 - prevent search bar popup from ever showing when browser_940307_panel_click_closure_handling is running to avoid it interfering with context menu clicks, r=florian
MozReview-Commit-ID: jyRcdAKpxR

--HG--
extra : rebase_source : 66d4452809e8b66383bf8cfb02cfc695b9ade37a
2017-11-07 10:54:10 +00:00
Thom Chiovoloni
837350c20d Bug 1411794 - Fix bug where sync tabs panel would become permanently empty. r=eoger
MozReview-Commit-ID: 2mRAPhABCXA

--HG--
extra : rebase_source : cd004aef3b604a8d2426c0896d83a57003f2ea8d
2017-11-01 21:58:55 -04:00
Gijs Kruitbosch
b8a8802972 Bug 1411011 - stop offering context menu (re)move options on skipintoolbarset items, r=jaws
Giving all these nodes ids doesn't seem like the right fix. `buildArea` already ignores skipintoolbarset
items before doing anything else with nodes, so bailing out early seemed like the right solution here.

MozReview-Commit-ID: H3EyqoospNR

--HG--
extra : rebase_source : 6dc06d18c82e2af5024be0aba271c270f7403839
2017-11-06 14:49:37 +00:00
Jared Wein
b8ffd9d167 Bug 1410666 - Remove unused PanelUI-popup code. r=mconley
Original patch authored by Tim Nguyen (:ntim).

MozReview-Commit-ID: 6qQnRMQXPTH

--HG--
extra : rebase_source : 319d160f3057173359f02adba44bdcc12a68e209
2017-10-31 14:38:15 -04:00
Coroiu Cristina
03154bfceb 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
2fdc4b7cdf Bug 1410666 - Remove unused PanelUI-popup code. r=mconley
Original patch authored by Tim Nguyen (:ntim).

MozReview-Commit-ID: 6qQnRMQXPTH

--HG--
extra : rebase_source : f85e763cc130a71ba0f4bda228a874ebf65b84be
2017-10-31 14:38:15 -04:00
Andrea Casaccia
71abace57c Bug 1402849 - Close library panel on mid mouse click r=mikedeboer
MozReview-Commit-ID: 8AM0efs7krS

--HG--
extra : rebase_source : 12795d3f89f0d158b2ba357aa72d014fc51b64e3
2017-10-31 09:16:50 +02:00
Jared Wein
77a52a2953 Bug 1413030 - Polish up a few conditions when the customization palette is mostly empty. r=mconley
MozReview-Commit-ID: Gr4sXTZo7pG

--HG--
extra : rebase_source : 2960fd2f09655c44692dd708767593374762eefb
extra : amend_source : 0dc4fdcda68a05851dbe61f50768d91b0683c246
2017-10-24 17:23:22 -04:00
Mark Banner
01008c7d57 Bug 1412778 - Enable ESLint rule no-cpows-in-tests across the whole tree. r=florian
MozReview-Commit-ID: 8pidN7x6MYh

--HG--
extra : rebase_source : 6a0d6800091231fc1535223bd7fc6df0ba40d47b
2017-10-30 09:55:39 +00:00
Edouard Oger
76547f53cc Bug 1395460 p1 - Remove usages of about:accounts. r=tcsc
MozReview-Commit-ID: APdGc9avJDw

--HG--
extra : rebase_source : aaa788be5251607ebedcb5b690da0e2a1a64e2cb
2017-10-24 14:05:52 -04:00
Sebastian Hengst
93903f0306 Backed out 2 changesets (bug 1395460) for eslint failure at browser/components/uitour/UITour.jsm:556 (no return value from arrow function). r=backout on a CLOSED TREE
Backed out changeset 0bc6d186d609 (bug 1395460)
Backed out changeset 6c028123001d (bug 1395460)
2017-10-26 23:33:04 +02:00
Edouard Oger
58876ecbe9 Bug 1395460 p1 - Remove usages of about:accounts. r=tcsc
MozReview-Commit-ID: APdGc9avJDw

--HG--
extra : rebase_source : 9da1cea9fb6494c057bc6587a7bcbdb4ac127448
2017-10-24 14:05:52 -04:00
Drew Willcoxon
7633396485 Bug 1409377 - Prevent the app menu's scrollbar from overlapping its content. r=mikedeboer
MozReview-Commit-ID: EHx5yi0pW6B

--HG--
extra : rebase_source : f6bce2b635c04026f9dc8a09bcff86b626c0b1c7
2017-10-25 12:42:28 -04:00
Johann Hofmann
2807fe98d1 Bug 1410352 - Make the overflow menu adhere to touchmode sizing. r=nhnt11
MozReview-Commit-ID: JhMIp65wuaq

--HG--
extra : rebase_source : b786a695a954ef72eb08bf7ea5710fee7f3ead42
2017-10-25 13:07:46 +02:00
Sebastian Hengst
fabade716b Backed out changeset cc55d4e3d13d (bug 1410352) for eslint failure at browser/components/customizableui/CustomizableUI.jsm:4339: 'aEvent' is already declared in the upper scope. r=backout
--HG--
extra : rebase_source : 29fad97f166d57cc9b192874f0ec82ea8b6c044c
2017-10-25 16:53:27 +02:00
Johann Hofmann
ad3fb07012 Bug 1410352 - Make the overflow menu adhere to touchmode sizing. r=nhnt11
MozReview-Commit-ID: JhMIp65wuaq

--HG--
extra : rebase_source : f18647cf4631e489ef2787884d69b08ceabfee4d
2017-10-25 13:07:46 +02:00
Mike de Boer
5f6fdc1ef0 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

--HG--
extra : rebase_source : 6e0441908617a954e782d8fcbbc16035e8c0e942
2017-10-23 13:40:18 +02:00
Sebastian Hengst
f9b5b9b40c merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 790IXj5MZ4f
2017-10-18 11:48:34 +02:00
Jared Wein
49cd682e0d 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

--HG--
extra : rebase_source : 63400055b28fe15764190127996a0420c5f1f722
2017-10-15 14:11:57 -04:00
Ryan VanderMeulen
e8cd5f653b Backed out 5 changesets (bug 1407351) for causing bug 1409395 and breaking nightlies.
Backed out changeset e6ee25ad6a9f (bug 1407351)
Backed out changeset 8e04412824b5 (bug 1407351)
Backed out changeset effeee94316e (bug 1407351)
Backed out changeset a53f34a45f9b (bug 1407351)
Backed out changeset 86a360e12b8a (bug 1407351)
2017-10-17 10:07:55 -04:00
Phil Ringnalda
dcda41b943 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
d29984c27b Bug 1033395 - Panels Should Be Anchored from the Same Height on the Toolbar. r=johannh
MozReview-Commit-ID: 6bhlfeD1esE

--HG--
extra : rebase_source : 6e2d645505f154ae556827032af2e51f32657484
2017-09-13 15:49:32 -04:00
Erica Wright
6146d651bb Bug 1407754 - exiting customize mode quickly after adding a toolbar item to toolbar properly adds it to the toolbar. r=jaws
MozReview-Commit-ID: C7uvVVWoIeB

--HG--
extra : rebase_source : 423b5a7449410a5064405fdb18a87017eb668c6c
2017-10-13 09:27:48 -04:00
Erica Wright
ca7e87e24c Bug 1033395 - Panels Should Be Anchored from the Same Height on the Toolbar. r=johannh
MozReview-Commit-ID: 6bhlfeD1esE

--HG--
extra : rebase_source : 9f6eeffb105baf8fe54c509369c6b5eadc88c598
2017-09-13 15:49:32 -04:00
Felipe Gomes
43ee76c5ed Bug 1407351 - Remove nightly-only e10s testing features from the main browser window. r=mikedeboer
The only thing that I didn't remove was the process ID on the tab tooltip, which I find to be super helpful. For that, I changed the check from E10S_TESTING_ONLY to NIGHTLY_BUILD.

MozReview-Commit-ID: 2qNWebBpsMY

--HG--
extra : rebase_source : b30a4492f839186584c074b82a1969973cda48e0
2017-10-17 13:39:50 -02:00
Felipe Gomes
4346cedc0e Bug 1407351 - Remove nightly-only e10s testing features from the main browser window. r=mikedeboer
The only thing that I didn't remove was the process ID on the tab tooltip, which I find to be super helpful. For that, I changed the check from E10S_TESTING_ONLY to NIGHTLY_BUILD.

MozReview-Commit-ID: 8wbjdYIC3gb

--HG--
extra : rebase_source : 2ea1b77d4a9fd9c3eb17853c8ec655b309a3fa8c
2017-10-16 14:00:30 -02:00
Dan Banner
7caa92d5d8 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
Julian Descottes
6a18c24749 Bug 1361080 - filter out hidden devtools menu items in customizableui test;r=jaws
DevTools are adding a hidden menuitem "Enable DevTools..." that will be used to
propose an onboarding screen to users. This hidden button makes a customizable ui
test fail. It needs to be filtered out.

MozReview-Commit-ID: IX4SlpDHdsT

--HG--
extra : rebase_source : e2c9e26b27b1bf8788739f8d6384c19473ffdd23
2017-10-11 17:04:22 +02:00
Mike de Boer
9fb6d528ad Bug 1407591 - Listen for the 'transitioncancel' event as well to ensure that a panel transition is also cleaned up properly in this rare case. r=Paolo
MozReview-Commit-ID: 2bph43ndzJJ

--HG--
extra : rebase_source : cc7d0def21df8b3c577b26546e8bf474faa58b3b
2017-10-12 13:26:04 +02:00
Erica Wright
4a9eee97d9 Bug 1407435 - After animating out from the toolbar, the widget no longer remains invisible. r=jaws
MozReview-Commit-ID: 5WmcIFWqBYi

--HG--
extra : rebase_source : dfd6745bf0b4b0cebf59992dfebe5cfc0c93f842
2017-10-11 15:12:21 -04:00
Erica Wright
86e507bf06 Bug 1406191 - Cleanup browser_widget_animation.js, remove event listener and close panel correctly. r=johannh
MozReview-Commit-ID: 6IjrdxnWPqa

--HG--
extra : rebase_source : 5b52caffa1d523964ee485859dd562919f5f971a
2017-10-10 15:59:14 -04:00
Gijs Kruitbosch
d25b8d71e5 Bug 1406738 - do not set the 'overflowing' attribute if the overflow menu only contains 'special' widgets (like flexible spaces), r=jaws
MozReview-Commit-ID: 1C5XaTCIUKA

--HG--
extra : rebase_source : e8cbfd944c7085ef1a821e346c6ea022a3bb851b
2017-10-11 12:05:15 +01:00
Dão Gottwald
8fa6f14905 Bug 1406625 - Remove leftover code and styling for <toolbarbutton type="menu-button"> r=mikedeboer
MozReview-Commit-ID: 8wBsluIMZHq

--HG--
extra : rebase_source : 8733868d1afc6a34b6e9050b6bd80f01097a66f3
2017-10-07 20:10:24 +02:00
Mike de Boer
219c7f3d50 Bug 1405942 - Make sure to always apply the descriptionHeightWorkaround in Photon panels on popupshown, because it might've missed elements that were hidden. r=Paolo
MozReview-Commit-ID: 9xSqoZGJ3MF

--HG--
extra : rebase_source : ce3547992d86d1343f1e2ef9aff953819a283ad4
2017-10-10 12:42:43 +02:00
Mike de Boer
50959cb695 Bug 1387808 - Don't ever fixate the width and height of the main view, but leave it flexible. r=Gijs
MozReview-Commit-ID: AJw6yI6Onje

--HG--
extra : rebase_source : 144739ba16418ce0867a6dd7ac086c4ea4676c51
2017-10-05 13:14:02 +02:00
Erica Wright
7e91455352 Bug 1390313 - Item added to the overflow menu should scale down and fade out. ui-r=epang r=Gijs
MozReview-Commit-ID: 5PxydbSfhpz

--HG--
extra : rebase_source : 3941fa6edb5e8eb0d14d6d04ad5b0d63ef1a5b84
2017-09-18 16:15:24 -04:00
Gijs Kruitbosch
19ef18501c Bug 1405720 - ensure only 1 theme is ever shown as selected in customize mode, r=jaws,johannh
The previous code here always set the `isActive` property on all themes. When writing the
patch for bug 1402981 I ran into issues because the default theme has an `isActive` property
anyway (it's a different type of object). So I tried to avoid setting `isActive` if it was
already present. Unfortunately, the result was that `isActive` values, once set, weren't
correctly updated. Worse, these values are (and were, prior to bug 1402981) persisted in
some cases.

There's no point persisting these values, all that will happen is that they'll start
mismatching the 'real' state of the world (LightweightThemeManager.currentTheme). So instead,
let's just not set the `isActive` property at all, and rely solely on the ID of the current
theme (or the default theme's ID, now that we no longer support non-lightweight-themes) to
establish whether any of the themes should appear selected or not.

MozReview-Commit-ID: 7rajS71FoQR

--HG--
extra : rebase_source : a99e04031ea9e122efdaf0436e354abe57439783
2017-10-05 15:17:12 +01:00
Edouard Oger
e29fd6597a Bug 1397744 - Show the Sync animation immediately after clicking the manual sync button. r=markh
MozReview-Commit-ID: AIBjAZZlYX6

--HG--
extra : rebase_source : cc4d0d3ca7d12b2f83b79fc7c5db9c05f77944cf
2017-09-20 13:16:19 -04:00
Sebastian Hengst
6c9c0c17e9 Backed out changeset 9ab9bde4021f (bug 1397744) for failing browser-chrome's browser/components/customizableui/test/browser_synced_tabs_menu.js. r=backout 2017-10-04 21:49:30 +02:00
Edouard Oger
27e4a543cc Bug 1397744 - Show the Sync animation immediately after clicking the manual sync button. r=markh
MozReview-Commit-ID: AIBjAZZlYX6

--HG--
extra : rebase_source : 23d246a20afd7069f095e29b2943851011813239
2017-09-20 13:16:19 -04:00
Sebastian Hengst
0b883eed0e Backed out changeset 97fdb9d392e5 (bug 1397744) for failing browser-chrome's browser/components/customizableui/test/browser_synced_tabs_menu.js. r=backout 2017-10-04 21:12:32 +02:00
Gijs Kruitbosch
8e37c2add4 Bug 1405643 - swap out overflow panel label to say 'menu' instead of 'panel', r=mkelly
MozReview-Commit-ID: DCEO6Snxxeu

--HG--
extra : rebase_source : f7238a1d28032524f67a8377d2752a3854de0cb7
2017-10-04 16:09:01 +01:00
Edouard Oger
bc78c3795e Bug 1397744 - Show the Sync animation immediately after clicking the manual sync button. r=markh
MozReview-Commit-ID: AIBjAZZlYX6

--HG--
extra : rebase_source : 3172be8b46d44c50ea4f2c806771e10172057cf3
2017-09-20 13:16:19 -04:00
Gijs Kruitbosch
d2d9cc5fb4 Bug 1405377 - remove trailing separator in recently closed tabs/windows subviews, r=mikedeboer
The third param of 'getTabsFragment' and 'getWindowsFragment' toggles whether the 'restore all' item
gets prefixed (true) or suffixed (false). The prefixed version doesn't get a separator, so this
seems like the simplest fix.

MozReview-Commit-ID: BzKWvndWUMp

--HG--
extra : rebase_source : 600af608c5c62ed000bec1778c05dcc75e7b8585
2017-10-03 19:29:36 +01:00
Jared Wein
5fde947458 Bug 1403382 - Dragging the back button out of the toolbar in customize mode shouldn't affect the toolbar height. r=Gijs
MozReview-Commit-ID: JOsb2y2pzqz

--HG--
extra : rebase_source : d8471cdda0dfc114c2efe7e200ca3c4f25ecabb8
2017-10-02 23:30:29 -04:00
Gijs Kruitbosch
c7a51be34d Bug 1402929 - add header to overflow panel in customize mode, r=mikedeboer
MozReview-Commit-ID: 7Z8Xk2X707J

--HG--
extra : rebase_source : 6422413079a4aeb0bf1e44ff39aaea58a2711166
2017-09-29 23:10:38 +01:00
Gijs Kruitbosch
d9dae67b93 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

--HG--
extra : rebase_source : 0a7865fcfd11eb5baca858cde71ea4e8b30d5afc
2017-09-29 17:55:50 +01:00
Maya Messinger
530424bf98 Bug 1396953 - fix flexible space widget disappearing when adding to toolbar r=Gijs
MozReview-Commit-ID: BuYzvBX439p

--HG--
extra : rebase_source : 2380bf5517da3982838e4c07dbc22a06c9f38465
2017-09-30 18:42:24 -04:00
Gijs Kruitbosch
49c8b259d5 Bug 1396423 - make it possible to drop items in what visually looks like the palette but isn't, r=mikedeboer
MozReview-Commit-ID: AqBwn9ovTjT

--HG--
extra : rebase_source : 58dd5d79db16d56be502f70cd7e533a4093f1c39
2017-09-29 15:40:48 +01:00
Gijs Kruitbosch
f207243be7 Bug 1402981 - add light and dark themes to the list of themes in customize mode by default, r=jaws
MozReview-Commit-ID: 4GxPEm119Yc

--HG--
extra : rebase_source : a1a6acf06e158fd937e6b53ea65cc91c2e4d02ce
2017-09-27 22:37:19 +01: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
Sebastian Hengst
e0196045d0 Backed out changeset 8855ba3f65ba (bug 1397744) for failing browser-chrome's browser/components/customizableui/test/browser_synced_tabs_menu.js. r=backout 2017-09-28 20:27:50 +02:00
Edouard Oger
c602795751 Bug 1397744 - Show the Sync animation immediately after clicking the manual sync button. r=markh
MozReview-Commit-ID: AIBjAZZlYX6

--HG--
extra : rebase_source : 562023d6bfdb78aa2fad6c42948b57db8bc04f99
2017-09-20 13:16:19 -04:00
Sam Foster
f933fa62ca Bug 1395674 - Adding subviewbutton-nav class to menu-type toolbarbuttons and display the '>' in the overflow list. r=Gijs
MozReview-Commit-ID: I1pGXA3ecxT

--HG--
extra : rebase_source : ebfd4dbc2191a921ea04f0fcf56270ad945c3e37
2017-09-25 19:29:04 -07:00
Erica Wright
a9e25e23df Bug 1401152 - Disable 'add to overflow menu' in the customize mode *palette* context menu for flexible space. r=Gijs
MozReview-Commit-ID: 5sQPsxVaVYz

--HG--
extra : rebase_source : 6eab6e7e9d65bc0b45dea6dac7daf3cd23fc6c77
2017-09-21 18:15:02 -04:00
Jonathan Kingston
3d183512ad Bug 1400812 - Removal of containers drawer icon. r=baku,dao
MozReview-Commit-ID: JK2tB0ITRqY

--HG--
extra : rebase_source : 26f534fe05e898d8b33cff1b629a84a5c6ae4dff
2017-09-21 16:26:26 +01:00
Mike de Boer
f7dd6d2d6d Bug 1401383 - remove anchor state after transition even if the transition is canceled, and always set main view as current, r=Gijs
We weren't removing the 'open' attribute from the anchor if the transition didn't complete.
This patch fixes this by moving the addition of 'open' into _transitionViews, and its removal into
_cleanupTransitionPhase.

MozReview-Commit-ID: TS0CcwsHVN

--HG--
extra : rebase_source : 1bdace324f22ee95002024fe68b572a16dd25aac
2017-09-21 22:18:07 +02:00
Mike de Boer
352843986a Bug 1402023 - Limit the 'Recent Activity' list in the Library to a maximum of 6 items. r=Gijs
MozReview-Commit-ID: AVHRKvAJjWe

--HG--
extra : rebase_source : 388488c561e6b8f180c918a25e43b7501a37e408
2017-09-21 18:25:41 +02:00
Doug Thayer
cb1a8fb21a 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

--HG--
extra : rebase_source : d24d83094d5b4ca400fe77358a3c1c2635e033d0
2017-09-20 15:58:25 -07:00
Gijs Kruitbosch
fda48d1b3f 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

--HG--
extra : rebase_source : cdd730f7777ed609386469762f7620d6d4805d7e
2017-09-20 22:54:38 +01:00
Sebastian Hengst
7824630fde Backed out changeset 658b68ee4d0a (bug 1401383) for frequently failing browser-chrome's browser/components/extensions/test/browser/browser_ext_browserAction_popup_resize.js, especially on Linux x64 asan. r=backout 2017-09-20 17:28:51 +02:00
Mike de Boer
ecca1af556 Bug 1388422 - Remove all traces of the Customize Mode tip panel that no longer applies. r=Gijs
MozReview-Commit-ID: IffDnXEqooR

--HG--
extra : rebase_source : 04344421e5152c1f7ba8959698ba7cff57448e15
2017-09-20 14:37:53 +02:00
Mike de Boer
c0b0c75c02 Bug 1388422 - Clean up all traces of the 'browser.uiCustomization.disableAnimation' pref used to disable Customize Mode transitions in unit tests. r=Gijs
MozReview-Commit-ID: 44Q9NbKEJeC

--HG--
extra : rebase_source : 4895a170b403195cd1bc7023fc905deff12c2de2
2017-09-20 14:25:58 +02:00
Gijs Kruitbosch
b078909af6 Bug 1401383 - remove anchor state after transition even if the transition is canceled, and always set main view as current, r=mikedeboer
Prior to this change, showMainView set the 'current' attribute on a main view, but then _cleanupTransitionPhase() would remove it again.
This patch fixes that by calling showMainView *after* _cleanupTransitionPhase.

Separately, we weren't removing the 'open' attribute from the anchor if the transition didn't complete.
This patch fixes this by moving the addition of 'open' into _transitionViews, and its removal into
_cleanupTransitionPhase.

MozReview-Commit-ID: 24FYaxDVlga

--HG--
extra : rebase_source : 41bb5ffe29ca8e0ec9acc1793ae87d63d28e1f43
2017-09-19 23:53:59 +01:00
Andrew Halberstadt
7527e600f0 Bug 1392787 - Disable manifestparser tests using 'disabled' key instead of comment, r=jmaher
MozReview-Commit-ID: IQL7hWxQX9F

--HG--
extra : rebase_source : b78cbf7913fc1b0a27dfa085c38957e2bc2467d0
2017-08-22 16:56:02 -04:00
Mike de Boer
f716107bf8 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

--HG--
extra : rebase_source : 5efd60f237f9123ecf57e2da820851b703c2045e
2017-09-19 16:17:16 +02:00
Gijs Kruitbosch
bad4eae2ab Bug 1399517 - remove CustomizableUI placements for old buttons to avoid saved state corruption, r=mikedeboer
MozReview-Commit-ID: 3XKPuz9KwlD

--HG--
extra : rebase_source : d3f6bc2bbb815158c78909ed83a6f7f15c7b43c0
2017-09-18 17:34:50 +01:00
Gijs Kruitbosch
b7ec7b74c5 Bug 1399517 - CustomizableUI shouldn't try to insert items next to nodes that aren't in the right container, r=mikedeboer
MozReview-Commit-ID: H9KY7YQwmlQ

--HG--
extra : rebase_source : 75f92768868003280a8e187ce6f2bbc2b88dd8ca
2017-09-18 16:36:46 +01:00
Drew Willcoxon
de32f1dce3 Bug 1400024 - Clicks on Zoom label in Photon app menu shouldn't close the menu. r=Gijs
MozReview-Commit-ID: 6zHRb27RBGw

--HG--
extra : rebase_source : 8713582d948b81a5558c539ad1d910d1139fea2d
2017-09-18 13:13:13 -07:00
Gijs Kruitbosch
088853fcdf Bug 1399935 - use horizontal panel for downloads checkbox panel at all times, r=mak
Rather than using left-hand-side at all times (which can go over the edge of the window
in some cases) this uses left or right-hand-side panels, always opening towards the
center of the window.

MozReview-Commit-ID: EvjDmKR1G5A

--HG--
extra : rebase_source : 12046edc24b564e035dff68a5e34bce3ff5fd507
2017-09-17 23:31:06 +01:00
Gijs Kruitbosch
27050c2c34 Bug 1399486 - show downloads auto hide panel after changing the pref instead of before, r=mak
Note that we will no longer show the panel if you use the context menu to move the item in one
window and have customize mode open in the other. I don't think that edgecase matters.

MozReview-Commit-ID: 3dzGr3cs2oQ

--HG--
extra : rebase_source : cc5f528557e35e48b0bc06e58b92fdcb7ecfa6fe
2017-09-17 18:09:35 +01:00
Maya Messinger
1710134422 Bug 1387846 change print button command to print instead of print preview on all platforms r=Gijs
MozReview-Commit-ID: IIxhCx4N362

--HG--
extra : rebase_source : b920e3c9333df0b2ee9cda92880b5effb4922e45
2017-09-17 17:23:00 -04:00
Mark Banner
e1b4d55203 Bug 1399968 - Ensure the inNavBar search pref really does get set correctly on startup. r=Gijs
Delay the initialisation of the pref until the toolbar has been initialised.

MozReview-Commit-ID: JxQajZ4wrCR

--HG--
extra : rebase_source : 42f936c5a3e6b7f8cdce1703d7d74883fc806d1c
2017-09-14 20:59:32 +01:00
Maya Messinger
11ffb95321 Bug 1398305 - reorder library dropdown items to spec r=Gijs
MozReview-Commit-ID: 912yc4MB5Ap

--HG--
extra : rebase_source : 8393ffa21314fc67784119b319abd0a73b6b3bcd
2017-09-14 11:37:22 -04:00
Gijs Kruitbosch
069f2c2997 Bug 1391280 - store last sidebar command irrespective of whether sidebar was open, r=bgrins,mixedpuppy
MozReview-Commit-ID: HBfdW5vEZaD

--HG--
extra : rebase_source : 5058884698a2a2144b921a36abbe7c8c3a1fda52
2017-08-23 14:06:26 +01:00
Mike de Boer
4c850e0f21 Bug 1388180 - Update the overflow panel styling in Customize Mode and show the overflow button as in the opened state, but with a disabled looking icon. r=Gijs
MozReview-Commit-ID: 387PZ2jp1SS

--HG--
extra : rebase_source : 4b6e865d725d9aeb32b0de98b2cfdbb35d8f2349
2017-09-13 19:28:45 +02:00
Doug Thayer
c06b48b5e7 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

--HG--
extra : rebase_source : f9bbe50bb7115b1a2be6aff8fe930bf6c9844dbb
2017-09-12 10:08:01 -07:00
Johann Hofmann
0dbe3971c5 Bug 1349552 - Part 3 - Add a test for drag space in customize mode. r=nhnt11
MozReview-Commit-ID: AiqY1J5WwYo

--HG--
extra : rebase_source : 4fb5cea18653a05f17c80595b48c8f3aae9b0d2a
2017-09-10 20:39:21 +02:00
Johann Hofmann
c90a0e9e12 Bug 1349552 - Part 2 - Add an extra drag space setting to customize mode. r=nhnt11
MozReview-Commit-ID: IWxdOeRwDeu

--HG--
extra : rebase_source : 953c988fdaab5a7bf64ecbdd363df846020063d9
2017-09-10 20:38:19 +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
Gijs Kruitbosch
c3acd03b82 Bug 1397447 - add UI and automatic toggles to make the auto-hide functionality more seamless, r=mak
MozReview-Commit-ID: 9xN3N4aLwfv

--HG--
extra : rebase_source : 54333982cce1dcb7cb84331734f170d4d79fbc29
2017-09-11 18:54:48 +01:00
Gijs Kruitbosch
3f3bcb5b73 Bug 1397447 - ensure the button is in the navbar by default, r=mak
MozReview-Commit-ID: H6r3dAEg4r1

--HG--
extra : rebase_source : fdb9b8d65745a57e3ac1ffa71cce10654032b177
2017-09-08 14:07:05 +01:00
Gijs Kruitbosch
ecf2be01ab Bug 1397447 - make downloads button autohide by default, r=mak
MozReview-Commit-ID: E9izQpa4fFZ

--HG--
extra : rebase_source : 11dc3f1b98f53f5897a3185253b68d2cf7d5083b
extra : source : 97f7f5175b2fc3adfb193783f7ecb70b5b9b4562
2017-09-08 14:16:36 +01:00
Kris Maglione
e3f6c844ae Bug 1391707: Follow-up: Skip idle in more places that incorrectly expect strict timing. r=me CLOSED TREE
MozReview-Commit-ID: BbMB5qk4F4e
2017-09-11 21:26:04 -07:00
Zibi Braniecki
70e0d2b8e8 Bug 1398390 - Only react to mousedown if it is a left-click. r=Gijs
MozReview-Commit-ID: Ie2Xgasg2eN

--HG--
extra : rebase_source : 5e58c418f91a1802328c4128dffd2c1ab9aa067f
2017-09-09 22:17:19 -07:00
Sebastian Hengst
a4b102b6d9 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
Zibi Braniecki
923420c64a Bug 1398390 - Only react to mousedown if it is a left-click. r=Gijs
MozReview-Commit-ID: Ie2Xgasg2eN

--HG--
extra : rebase_source : 9aeed150b6106210bbe06e8a98ae602e5471851b
2017-09-09 22:17:19 -07:00
Sebastian Hengst
5c5d753509 Backed out changeset 20f6207757f3 (bug 1374749) for failing browser-chrome's browser/base/content/test/urlbar/browser_page_action_menu.js. r=backout 2017-09-08 19:42:22 +02:00
Mike de Boer
dcde014112 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 : b473714a3de9ff34da8c936770d335b7e2ee01bd
2017-09-08 18:02:10 +02:00
Mike de Boer
02e344af23 Bug 1390336 - Disable panelview keyboard navigation using arrow keys in the overflow panel, because input boxes can be in there. r=Gijs
MozReview-Commit-ID: DxZv8JDp2Q2

--HG--
extra : rebase_source : b3bf90e60540a1b115a3bf2321fd4396863b5cce
2017-09-08 11:53:11 +02:00
Sebastian Hengst
6b5abf8cab merge mozilla-central to autoland. r=merge 2017-09-07 12:40:32 +02:00
Sebastian Hengst
8eb249afcc merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: JSRVc5yW6Kx
2017-09-07 12:39:12 +02:00
Paolo Amadini
fe96089fe4 Bug 1387416 - Place the search bar in the customization palette for new profiles. r=Gijs
MozReview-Commit-ID: Tq8YrZWG6P

--HG--
extra : rebase_source : 2e02e0a809d08ff26291a027b73a54668d6d5f9d
2017-09-06 13:09:27 +01:00
Zibi Braniecki
0e1ced7d71 Bug 1395871 - Open toolbar menus on mousedown, rather than oncommand.
MozReview-Commit-ID: A3P4QBBgcB8

--HG--
extra : rebase_source : 2a1b660f6489c5aece8f8b25935ad5799779629d
2017-09-01 01:54:34 -07:00
Gijs Kruitbosch
81a14da14a Bug 1396966 - fix dnd in a test to work in small screens, r=mystor
MozReview-Commit-ID: 7xqfLc1M0PA

--HG--
extra : rebase_source : 12031eea1a7106a00a0d921825c71731fdf33ea4
2017-09-06 19:39:53 +01:00