Граф коммитов

387 Коммитов

Автор SHA1 Сообщение Дата
Dão Gottwald efd44eae02 Bug 1515902 - Introduce panel-footer class to fix common color problem with footer buttons. r=ntim
Differential Revision: https://phabricator.services.mozilla.com/D15188

--HG--
rename : toolkit/themes/shared/close-icon.inc.css => toolkit/themes/shared/global.inc.css
extra : moz-landing-system : lando
2018-12-21 15:44:44 +00:00
Paolo Amadini 04937d8a4b Bug 1509388 - Part 2 - Build download-subview-toolbarbutton markup directly using JS. r=mak
This makes this derived class of DownloadElementShell more similar to DownloadsViewItem, and removes batch fagment handling because proper XBL construction requires elements to be connected to the document before they are accessed from JavaScript.

Differential Revision: https://phabricator.services.mozilla.com/D14573

--HG--
extra : rebase_source : 456f074d696b7fca115eea2a42e21108cb5f3047
2018-12-19 16:50:12 +00:00
Paolo Amadini b646eedd75 Bug 1509388 - Part 1 - Don't use a toolbarbutton element for the download-subview-toolbarbutton binding. r=Gijs
Download items in the Downloads Subview of the Library Panel are implemented using a XBL binding that is associated to a "toolbarbutton" element, but inherits from "button-base" in order to avoid the display="xul:button" of the "toolbarbutton" binding. This is because the item contains an inner button, and using a button CSS frame for the outer element would break hover behavior and mouse events.

This changes the binding so it doesn't use a "toolbarbutton" element, which is a different way to avoid the outer button CSS frame, and eventually allows removing support for the "display" attribute in XBL.

Differential Revision: https://phabricator.services.mozilla.com/D14572

--HG--
extra : rebase_source : e0f907aea98419c6f7ee4b53f645e4cfe0fcdf5a
2018-12-13 18:47:28 +00:00
Paolo Amadini 2368bbec8d Bug 1513149 - Hovering the action buttons doesn't display the command associated with the button. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D14172

--HG--
extra : rebase_source : 494ac54cf826305c84453db98efb66648107a59d
extra : amend_source : 3cc5421cea7026aa23dc735f682def5fc1f4a2d3
2018-12-11 18:27:01 +00:00
Tom Schuster 8c1f89b6e5 Bug 1503588 - Remove aDataLen parameter from nsITransferable.getAnyTransferData. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D10441

--HG--
extra : moz-landing-system : lando
2018-11-02 11:02:25 +00:00
Paolo Amadini 7dec374d5b Bug 1499704 - Use html:progress for downloads. r=dao,bgrins
Differential Revision: https://phabricator.services.mozilla.com/D8973

--HG--
extra : rebase_source : 2d0a67b70127176c9c7eb7de6b9c95b2f33356b9
2018-10-17 15:25:00 +01:00
Paolo Amadini 9b5dfa4c54 Bug 1452626 - Remove the "download" binding. r=mak,bgrins
Differential Revision: https://phabricator.services.mozilla.com/D7176

--HG--
extra : rebase_source : 8e279ae5222dc6f38d0bda5691a6c9d09ca3f4ce
2018-10-04 11:12:03 +01:00
Alexander Surkov ff145aa9c4 Bug 1491197 - replace progressmeter XBL binding by a custom element, r=paolo
--HG--
rename : toolkit/content/widgets/progressmeter.xml => toolkit/content/widgets/progressmeter.js
2018-10-03 11:13:05 +05:00
Paolo Amadini 3f076abbbe Bug 1493969 - Refactor the user interface update code of download elements. r=mak,ursula
Differential Revision: https://phabricator.services.mozilla.com/D4539

--HG--
extra : rebase_source : 28126433153bc3608ce43e97fa79ae0397e35a63
2018-09-28 14:59:30 +01:00
Paolo Amadini a022e14f01 Bug 1328519 - Simplify the definition of the Downloads Panel width. r=mak
The width is now defined on the entire list instead of the inner elements, similarly to other Photon panels like the main menu. This is a prerequisite for preventing layout issues while removing the "download" binding.

Differential Revision: https://phabricator.services.mozilla.com/D6284

--HG--
extra : rebase_source : 1d77af762d2ff30f534d9a82dd7f27d61cd73572
2018-09-19 17:01:09 +01:00
Paolo Amadini 1044705311 Bug 1452629 - Part 5 - Remove the "downloadDetailsFull" description element. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D4461

--HG--
extra : rebase_source : cd5065468e1b8405c26e4935292084a2dd59af61
2018-08-28 16:53:04 +01:00
Paolo Amadini 7a497b003a Bug 1452629 - Part 4 - Remove the "downloadShowMoreInfo" description element. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D4460

--HG--
extra : rebase_source : 605db9a887b7781ca99e4ac242da57403e6cd844
2018-08-28 15:41:36 +01:00
Paolo Amadini 40b6912bb0 Bug 1452629 - Part 3 - Remove the "downloadOpenFile" description element. r=mak
The "Open File" message is now correctly displayed when hovering the one-pixel-wide clickable area around the action button.

Differential Revision: https://phabricator.services.mozilla.com/D4459

--HG--
extra : rebase_source : c77a2ad0a35c5e53430a2988d30712913b4ddf82
2018-08-28 15:36:36 +01:00
Paolo Amadini 65779f2fbc Bug 1452629 - Part 2 - Avoid redundant button label elements in the "download" widget. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D4447

--HG--
extra : rebase_source : d2559544de5eaaca501fa83768ce344f7d0ed483
2018-08-28 15:57:52 +01:00
Paolo Amadini 6c526b121c Bug 1452629 - Part 1 - Avoid redundant button elements in the "download" widget. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D4441

--HG--
extra : rebase_source : 20e1cec5b5cdca8616700abd22a8f62a7fa8b081
2018-09-13 16:16:46 +01:00
Mark Banner 691543ee89 Bug 1486739 - Add missing dangling commas in browser/, services/, taskcluster/ and toolkit/. r=mossop
Automatic changes by ESLint, except for manual corrections for .xml files.

Differential Revision: https://phabricator.services.mozilla.com/D4439

--HG--
extra : moz-landing-system : lando
2018-08-31 05:59:17 +00:00
Paolo Amadini e2b5fe8aac Bug 1457218 - Part 1 - Don't inherit from "menu-button-base" in the "download-subview-toolbarbutton" binding. r=bgrins
Differential Revision: https://phabricator.services.mozilla.com/D4529

--HG--
extra : rebase_source : 545d684145b8620292221f14ddaae36c4c423db5
2018-08-30 10:28:01 +01:00
Brendan Dahl f6923ccc24 Bug 1485426 - Use createXULElement instead of createElement in XUL docs. r=bgrins
Preparing for transitioning to XHTML.

MozReview-Commit-ID: JLlmUxsvhIB

Differential Revision: https://phabricator.services.mozilla.com/D4265

--HG--
extra : moz-landing-system : lando
2018-08-25 00:16:27 +00:00
Brian Grinstead abf1620630 Bug 1479125 - Migrate calls that expect an element to be returned to use element variation firstChild etc to firstElementChild etc;r=Paolo
This allows the JS to work in HTML documents, where whitespace is preserved. In XUL
documents, whitespace is ignored when parsing so text nodes are generally not returned.

The following changes were made, with manual cleanups as necessary (i.e. when firstChild actually
refers to a text node, or when firstChild is used in a loop to empty out an element):

  firstChild->firstElementChild
  lastChild->lastElementChild
  nextSibling->nextElementSibling
  previousSibling->previousElementSibling
  childNodes->children

MozReview-Commit-ID: 95NQ8syBhYw

--HG--
extra : rebase_source : 186d805f7a2a56694dda9032aceac2dfe5424753
2018-08-08 15:22:53 -07:00
Boris Zbarsky 270fa12c79 Bug 1476145 part 3. Stop using getInterface(nsIDOMWindowUtils) in browser/. r=gijs 2018-07-24 19:47:41 -04:00
Mark Banner d887b96d07 Bug 1474638 - Change users of nsIDownloadHistory::removeAllDownloads() to PlacesUtils.history.removeVisitsByFilter. r=mak
Also change PlacesUtils.history.removeVisitsByFilter to be able to remove by transition type.

MozReview-Commit-ID: Bkiv0ScUi07

Differential Revision: https://phabricator.services.mozilla.com/D2056

--HG--
rename : toolkit/components/places/tests/unit/test_download_history.js => toolkit/components/places/tests/history/test_download_history.js
extra : moz-landing-system : lando
2018-07-11 16:04:25 +00:00
Paolo Amadini 9a186571b7 Bug 1473521 - Load "richlistbox.css" as a document stylesheet. r=bgrins
This adds an ID selector to the rules meant to override "richlistitem". This was missing only in the Downloads Panel and the Downloads View.

MozReview-Commit-ID: D6NEQlICGQi

--HG--
extra : source : 6e8b64c40476c995c94440c38a6263fd9989770c
2018-07-06 19:25:18 +01:00
Mike de Boer ecf63670d4 Bug 1034036 - Part 2: Rename and shorten `getMostRecentBrowserWindow` to `getTopWindow` and modernize the style used in BrowserWindowTracker.jsm. r=dao
MozReview-Commit-ID: EvgAhq4uR3a

--HG--
extra : rebase_source : 8fd8040cd1eee94675d4e9ca0c8ccc60db9e1bf7
2018-04-11 12:05:59 +02:00
Mike de Boer d16ee58ded Bug 1034036 - Part 1: Merge RecentWindow.jsm and UpdateTopLevelContentWindowIDHelper.jsm into one module called 'BrowserWindowTracker.jsm'. r=dao
MozReview-Commit-ID: 9qzq1aGvjDu

--HG--
rename : browser/modules/UpdateTopLevelContentWindowIDHelper.jsm => browser/modules/BrowserWindowTracker.jsm
extra : rebase_source : 9c4a728e13fd691d377e7f221c5632646115daca
2018-04-11 12:05:56 +02:00
Brendan Dahl 9f9ae1e187 Bug 1443971 - Remove allDownloadsViewOverlay.xul. r=Paolo
This overlay was used in two places: places.xul and
contentAreaDownloadsView.xul. Move the commandset, menuppop and
downloadsRichListBox into include files. Inline the scripts and
DTDs.

MozReview-Commit-ID: LroiQlRTE2T

--HG--
rename : browser/components/downloads/content/allDownloadsViewOverlay.js => browser/components/downloads/content/allDownloadsView.js
rename : browser/components/downloads/content/allDownloadsViewOverlay.xul => browser/components/downloads/content/downloadsCommands.inc.xul
rename : browser/components/downloads/content/allDownloadsViewOverlay.xul => browser/components/downloads/content/downloadsContextMenu.inc.xul
rename : browser/components/downloads/content/allDownloadsViewOverlay.xul => browser/components/downloads/content/downloadsRichListBox.inc.xul
rename : browser/themes/linux/downloads/allDownloadsViewOverlay.css => browser/themes/linux/downloads/allDownloadsView.css
rename : browser/themes/osx/downloads/allDownloadsViewOverlay.css => browser/themes/osx/downloads/allDownloadsView.css
rename : browser/themes/shared/downloads/allDownloadsViewOverlay.inc.css => browser/themes/shared/downloads/allDownloadsView.inc.css
rename : browser/themes/windows/downloads/allDownloadsViewOverlay.css => browser/themes/windows/downloads/allDownloadsView.css
extra : rebase_source : 978d2ddd1e177374b0fc354ca46f11bfc447fe59
2018-03-19 16:21:50 -07:00
Brendan Dahl f4384d768c Bug 1439766 - Replace editMenuOverlay.xul by inlining and preprocessing. r=Gijs
The overlay elements with children of editMenuOverlay.xul are moved into
include files (editMenuCommands.inc.xul and editMenuKeys.inc.xul). For
the other single elements in the overlay, the attributes are inlined
wherever they are used.

MozReview-Commit-ID: 792cuzUvQxT

--HG--
extra : rebase_source : 58e4c05bde16cee873d37c6198de102d048499c2
2018-02-22 15:48:24 -08:00
Ciure Andrei befcb6cb4f Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2018-02-23 02:06:26 +02:00
Paolo Amadini f37e407659 Bug 1439358 - Part 2 - Don't use the "current" property when restoring focus from the blocked downloads subview. r=Gijs
MozReview-Commit-ID: ASmmdQMctr5

--HG--
extra : rebase_source : 7d990c407e63e6c5a2db3c644e84da7f243e9909
2018-02-22 12:20:53 +00:00
Brendan Dahl aa526601d4 Bug 1434077 - Inline indicators overlay. r=Paolo
This is part of the work to remove XUL overlays. The overlay was originally
created to help startup performance, but inlining the overlay seems to
no longer have detrimental effects to performance and is more straightforward.

MozReview-Commit-ID: 7sfVel6qvgv

--HG--
extra : rebase_source : b6311cf1fb98851b4f4203c314ae9ecc8160d766
2018-02-14 12:20:58 -08:00
Brendan Dahl bd38c4bf4c Bug 1434077 - Inline downloads overlay. r=Paolo
This is part of the work to remove XUL overlays. The overlay was originally
created to help startup performance, but using a hidden panel instead seems to
have no detrimental effects to performance and is more straightforward.

MozReview-Commit-ID: JlWcZEhPXyH

--HG--
rename : browser/components/downloads/content/downloadsOverlay.xul => browser/components/downloads/content/downloadsPanel.inc.xul
extra : rebase_source : 60a9fec344b1e346594015cd36947fe1779257a7
2018-02-06 15:55:50 -08:00
Boris Zbarsky fce30e834b Bug 1436508 part 10. Remove use of nsIDOMKeyEvent in JS. r=masayuki
MozReview-Commit-ID: GGciORX62Yh
2018-02-09 11:17:09 -05: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
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
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
Paolo Amadini d5882582e3 Bug 1424469 - The Downloads view in the Library window doesn't get focus when opened. r=mak
We have to keep track of the focused element while we remove the richlistbox element temporarily.

MozReview-Commit-ID: AePydUyyUS7

--HG--
extra : rebase_source : 1dbab87a07a4d95780e0abf29efec94ea73344cf
extra : amend_source : 6e685a648e0ba674eba791e1dc7138f67bd7f1e0
2018-01-30 14:38:25 +00: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 fc2d7ac38d Bug 1419005 - Remove the "download-toolbarbutton" binding. r=mak
MozReview-Commit-ID: Al6jXNz4jjM

--HG--
extra : rebase_source : 96db291791a9181bcf4a0094a49ae70558ac992b
2017-11-20 14:20:29 +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
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
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
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
Mike de Boer 934012625c Bug 1398346 - Follow up patch to correct one of the selectors to be more precise and avoid potential issues. rs=Paolo
MozReview-Commit-ID: 4nZ16XB7xQA
2017-09-29 15:54:14 +02:00
Mike de Boer 5f1c377014 Bug 1398346 - Hide the 'Open File' status label for failed downloads and/ or downloads where the file went missing for items in the Downloads subview in the Library panel. r=Paolo
MozReview-Commit-ID: 1j9tkqydyVZ

--HG--
extra : rebase_source : 6beaf5ce90095c784341780340450ff32daf4d9c
2017-09-29 14:18:10 +02:00
Boris Zbarsky 624fdefa57 Bug 1400898 part 1. Remove the one script use of nsIDOMChromeWindow. r=farre
MozReview-Commit-ID: I31eceiJP55
2017-09-19 10:13:22 -04:00