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

630 Коммитов

Автор 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
Brian Grinstead b57202f633 Bug 1503342 - Rename richlistbox.children to richlistbox.itemChildren so .children will refer to the normal DOM API;r=paolo
In Bug 1479125 we put calls to .children that were intended to access child elements into the custom
method, which is a slower path. We may eventually want to remove itemChildren altogether and just assume
that all children are items, but that's out of scope for a perf fix like this.

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

--HG--
extra : moz-landing-system : lando
2018-11-11 13:21:18 +00:00
Dão Gottwald 8d6b57d979 Bug 1506112 - Replace customize-context-autoHide class with meaningful id. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D11469

--HG--
extra : moz-landing-system : lando
2018-11-09 16:23:52 +00:00
Eliza Balazs c87f5760f9 Bug 1306510 - Disable browser_libraryDrop.js on win10 ccov for almost perma fail. r=jmaher 2018-11-06 06:54:00 +02: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
Kris Maglione 80327d3561 Bug 1484496: Part 5a - Convert browser/ nsISimpleEnumerator users to use JS iteration. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D3729

--HG--
extra : rebase_source : e187b8e9a6b6db7ebc762adda5e489b25c7a7e43
extra : histedit_source : 868cb99d09954a51d6be321fcb516475ef70eb33
2018-08-18 19:27:33 -07:00
Brian Grinstead 4995c61b0f Bug 1482667 - Migrate mochitest-browser tests in browser/ to use element variations of firstChild, etc;r=paolo
Differential Revision: https://phabricator.services.mozilla.com/D3530

--HG--
extra : moz-landing-system : lando
2018-08-17 16:45:52 +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 4abc5c5a25 Bug 1446940 part 2. Stop getting docshells from windows via getInterface in browser. r=gijs 2018-08-01 13:07:10 -04:00
Mark Banner d20e34a9ab Bug 1468980 - Change downloads code to save downloads via the new async history API. r=mak
MozReview-Commit-ID: BeKPtVH43RF

--HG--
extra : rebase_source : a12866b36a31e7036493451fcec3c3d0d929b079
2018-07-27 11:35:27 +01: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
Mark Banner db90034793 Bug 1473607 - Add a test for clearing all downloads via the Library window commands. r=paolo
MozReview-Commit-ID: EkIcgCskYeV

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

--HG--
extra : moz-landing-system : lando
2018-07-09 15:37:40 +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
Paolo Amadini 86d16ff4dd Bug 1472635 - Prevent suppressing executable warnings using the "don't ask me this again" checkbox. r=Gijs
A hidden preference matching "browser.download.manager.alertOnEXEOpen" is kept, but is renamed in order to recover cases where the checkbox was used accidentally.

This also cleans up duplicate unused strings in the "browser" folder.

MozReview-Commit-ID: GyccRiyoVGs

--HG--
extra : rebase_source : 8211ad1c94894535b2b98dde0549d7ab52a879b0
2018-07-02 15:42:58 +01:00
Oriol Brufau 74229456be Bug 1452970 - Add auto-hide option to Download toolbar icon context menu r=Gijs
MozReview-Commit-ID: VVPQesdzJ6

--HG--
extra : rebase_source : 2888919d678044edb782e70bf0e7f755b232af56
2018-04-14 11:26:03 +02:00
shindli 88da23b0b7 Backed out changeset b12b76bbe1c6 (bug 1452970) for TV failures in browser/components/downloads/test/browser/browser_downloads_autohide.js on a CLOSED TREE 2018-05-09 15:16:40 +03:00
Oriol Brufau 91cda569e3 Bug 1452970 - Add auto-hide option to Download toolbar icon context menu r=Gijs
MozReview-Commit-ID: VVPQesdzJ6

--HG--
extra : rebase_source : 4e53ac52adcfd2862a73ba875b59690027b13da0
2018-04-14 11:26:03 +02:00
Kris Maglione a259026c9d Bug 1456035: Part 4 - Convert callers of XPCOMUtils.generateQI to ChromeUtils.generateQI. r=mccr8
This also removes any redundant Ci.nsISupports elements in the interface
lists.

This was done using the following script:

acecb401b7/processors/chromeutils-generateQI.jsm

MozReview-Commit-ID: AIx10P8GpZY

--HG--
extra : rebase_source : a29c07530586dc18ba040f19215475ac20fcfb3b
2018-04-22 20:55:06 -07:00
Kris Maglione a7b308c3a2 Bug 1456686: Part 1 - Fix unused and shadowed explicit imports. r=standard8
These issues were previously ignored due to the nature of our global import
rules. They need to be fixed before that rule can be updated.

MozReview-Commit-ID: DCChktTc5TW

--HG--
extra : rebase_source : cffb1c9762191c579d1397c8169e6e7635d229da
extra : histedit_source : dea59ddd2daaae52069c5faceae9149a4f08dd73
2018-04-24 20:18:09 -07: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
Florian Quèze 22cb324da8 Bug 854464 - round the percentComplete value of the download indicator before setting it to set it at most 100 times, r=paolo. 2018-04-16 14:27:13 +02:00
Marco Castelluccio dbeabc37e3 Bug 1423667 - Reenable some tests that were disabled because of a Clang update. r=jmaher
--HG--
extra : rebase_source : 1ace11df58e858905e9d53c32d9cf8e1f75046d4
2018-04-05 09:20:47 +01: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
Ursula Sarracini 8189974edc Bug 1448143 - Factor out a size getter from DownloadsViewUI.jsm so other consumers can access it r=Mardak
MozReview-Commit-ID: EgyfXz1ntys

--HG--
extra : rebase_source : 8a2fcdd366764a6cf0d51a14d7df2f70fb1a3af0
2018-03-23 14:21:48 -04:00
Michael Webster 1a8239407b Bug 1418749 - Add a TaskbarProgress implementation for gtk3/x11. r=paolo,karlt
This adds support for download progress reporting via the XApp
method currently used in the Cinnamon desktop, by establishing a new
X11 window property to be supported/read by the window manager.

See https://github.com/linuxmint/xapps/blob/master/libxapp/xapp-gtk-window.c,
as well as https://github.com/linuxmint/muffin/commit/39045da0ea06f
for more details.

The property-setting code lives in nsWindow - it's a small and stable
enough chunk that it made more sense to do this than actually depend on
another external library.  As nsWindow is already using x11 calls, this
seemed the safest place for it, without affecting the build.

The TaskbarProgress instance is initialized via the DownloadsTaskbar
js module, and is handed a pointer to the current main window to call
SetProgress on.  Most of the javascript side of this is in line with
how the other platforms are handled.

Without a supporting window manager/desktop environment (currently just
Cinnamon/Muffin 3.6,) the simplest way to observe working behavior is
by calling 'xprop -spy' on the browser window being testing and watching
for updates during a download.

--HG--
extra : rebase_source : 0606f6c87116204ec290c19276072d0c1c35691e
2018-03-08 18:43:00 +02:00
Mark Banner a32bc883e7 Bug 1434446 - Enable no-unused-vars for global scope on jsm files in browser/. r=mossop
MozReview-Commit-ID: ERT1Fili25d

--HG--
extra : rebase_source : c62ad4e97fc5da7c59cbb03ba08928f7bbe5be6b
2018-03-01 20:06:06 +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
Sebastian Hengst 769222fadf merge mozilla-inbound to mozilla-central. a=merge
--HG--
rename : browser/base/content/tabbrowser.xml => browser/base/content/tabbrowser.js
2018-02-28 12:54:12 +02:00
Tooru Fujisawa 9a32a77bc1 Bug 1435910 - Part 0.2: Add BrowserTestUtils.{promiseAlertDialogOpen,promiseAlertDialog}. r=Gijs 2018-02-28 10:36:42 +09: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
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
Ciure Andrei befcb6cb4f Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2018-02-23 02:06:26 +02:00