Commit graph

647 commits

Author SHA1 Message Date
Brendan Dahl
72006224a4 Bug 1548026 - Noop download button's changed callback when unloaded. r=bzbarsky
Temporary workaround to prevent wrapper assertions in torn-down
window.

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

--HG--
extra : moz-landing-system : lando
2019-04-30 20:29:00 +00:00
Brian Grinstead
08992fb8e8 Bug 1546501 - Remove unnecessary type attributes (i.e. [type="application/javascript"]) on non-test script tags r=mossop
This is an autogenerated commit, generated with https://bug1546501.bmoattachments.org/attachment.cgi?id=9060222

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

--HG--
extra : moz-landing-system : lando
2019-04-24 19:43:57 +00:00
Rob Wu
1af4c55c01 Bug 1544834 - Replace non-test uses of deprecated Array generics r=evilpie,dao
- `Array.forEach` becomes for-of loop or `array.forEach`.
- `Array.slice(a)` or `Array.slice(a, 0)` becomes `Array.from(a)`.
- `Array.map` becomes `Array.from`
- `Array` copy + concatenation becomes Array literal + spread syntax.
- All other `Array.X(a, ...)` become `Array.prototype.X.call` or `Array.from(a).X(...)`

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

--HG--
extra : moz-landing-system : lando
2019-04-17 19:03:17 +00:00
Mike Conley
189f9c4505 Bug 1542756 - Bug 1543128 - Add option to only return visible nodes from nsIDOMWindowUtils.nodesFromRect. r=emilio
Depends on D26778

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

--HG--
extra : moz-landing-system : lando
2019-04-15 01:08:12 +00:00
Csoregi Natalia
9e8043e236 Backed out 10 changesets (bug 1542756, bug 1543128, bug 1543122) for multiple media failures /test_setSinkId.html. CLOSED TREE
Backed out changeset ce3a15e1b737 (bug 1543128)
Backed out changeset cea8c1af70ad (bug 1543128)
Backed out changeset aeb23f8f45fb (bug 1543128)
Backed out changeset a2e73d143aba (bug 1543128)
Backed out changeset 1692fc6491a0 (bug 1543128)
Backed out changeset 9fbce4274cfd (bug 1542756)
Backed out changeset 20092bcebe6a (bug 1543122)
Backed out changeset 1645d577016c (bug 1543122)
Backed out changeset 3fce0b7586c1 (bug 1543122)
Backed out changeset aab68db4131b (bug 1543122)
2019-04-13 06:22:47 +03:00
Mike Conley
0d5744162f Bug 1542756 - Bug 1543128 - Add option to only return visible nodes from nsIDOMWindowUtils.nodesFromRect. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D26809

--HG--
extra : moz-landing-system : lando
2019-04-13 01:22:58 +00:00
Mark Banner
dba6983e75 Bug 1415265 - Remove now unnecessary .eslintrc.js files or entries. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D23850

--HG--
extra : moz-landing-system : lando
2019-03-28 09:38:14 +00:00
Brian Grinstead
a797a66d25 Bug 1531119 - Remove editMenuCommands.inc.xul and make editMenuOverlay.js in charge of constructing the relevant commandset DOM r=bdahl,NeilDeakin
This allows us to drop preprocessing and makes it simpler to add edit menu functionality to any type of document.

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

--HG--
extra : moz-landing-system : lando
2019-03-21 14:18:48 +00:00
Dão Gottwald
260d7d0b2c Bug 1527572 - Properly style the download panel summary. r=Felipe
Differential Revision: https://phabricator.services.mozilla.com/D22096

--HG--
extra : moz-landing-system : lando
2019-03-08 02:55:20 +00:00
Felipe Gomes
69d7d4736f Bug 827976 - Downloads Manager doesn't need a reference to the hidden window. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D21079

--HG--
extra : moz-landing-system : lando
2019-03-04 18:52:55 +00:00
James Teh
9dd9138423 Bug 1531246: Support keyboard activation (space/enter) of the Downloads toolbar button when focused. r=Gijs
Depends on D21614

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

--HG--
extra : moz-landing-system : lando
2019-03-01 12:00:45 +00:00
Cosmin Sabou
a706bb3916 Backed out 16 changesets (bug 827976) for causing bug 1532054. a=backout
Backed out changeset 54c0b12443ed (bug 827976)
Backed out changeset 92b45080d080 (bug 827976)
Backed out changeset 443087a359f9 (bug 827976)
Backed out changeset f976c2d4cebb (bug 827976)
Backed out changeset 66cffb171024 (bug 827976)
Backed out changeset 845e1d0b2402 (bug 827976)
Backed out changeset fd94066a1d76 (bug 827976)
Backed out changeset e253b264e7bd (bug 827976)
Backed out changeset 07ef335770a8 (bug 827976)
Backed out changeset 9d3805d77b99 (bug 827976)
Backed out changeset eed600ceb606 (bug 827976)
Backed out changeset 3b64368cff52 (bug 827976)
Backed out changeset 69d0378e0c09 (bug 827976)
Backed out changeset 9203871a5c6f (bug 827976)
Backed out changeset 96a507c818e2 (bug 827976)
Backed out changeset e254496ff95b (bug 827976)
2019-03-02 20:40:01 +02:00
Felipe Gomes
c1f177e427 Bug 827976 - Downloads Manager doesn't need a reference to the hidden window. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D21079

--HG--
extra : moz-landing-system : lando
2019-03-01 21:06:58 +00:00
Myk Melez
25349d2601 Bug 1518283 - prohibit blank lines at the beginning and end of blocks (eslint padded-blocks) r=mossop,Standard8
Differential Revision: https://phabricator.services.mozilla.com/D17526

--HG--
extra : moz-landing-system : lando
2019-01-30 17:26:25 +00:00
Kris Maglione
e930b89c34 Bug 1514594: Part 3 - Change ChromeUtils.import API.
***
Bug 1514594: Part 3a - Change ChromeUtils.import to return an exports object; not pollute global. r=mccr8

This changes the behavior of ChromeUtils.import() to return an exports object,
rather than a module global, in all cases except when `null` is passed as a
second argument, and changes the default behavior not to pollute the global
scope with the module's exports. Thus, the following code written for the old
model:

  ChromeUtils.import("resource://gre/modules/Services.jsm");

is approximately the same as the following, in the new model:

  var {Services} = ChromeUtils.import("resource://gre/modules/Services.jsm");

Since the two behaviors are mutually incompatible, this patch will land with a
scripted rewrite to update all existing callers to use the new model rather
than the old.
***
Bug 1514594: Part 3b - Mass rewrite all JS code to use the new ChromeUtils.import API. rs=Gijs

This was done using the followng script:

https://bitbucket.org/kmaglione/m-c-rewrites/src/tip/processors/cu-import-exports.jsm
***
Bug 1514594: Part 3c - Update ESLint plugin for ChromeUtils.import API changes. r=Standard8

Differential Revision: https://phabricator.services.mozilla.com/D16747
***
Bug 1514594: Part 3d - Remove/fix hundreds of duplicate imports from sync tests. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16748
***
Bug 1514594: Part 3e - Remove no-op ChromeUtils.import() calls. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16749
***
Bug 1514594: Part 3f.1 - Cleanup various test corner cases after mass rewrite. r=Gijs
***
Bug 1514594: Part 3f.2 - Cleanup various non-test corner cases after mass rewrite. r=Gijs

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

--HG--
extra : rebase_source : 359574ee3064c90f33bf36c2ebe3159a24cc8895
extra : histedit_source : b93c8f42808b1599f9122d7842d2c0b3e656a594%2C64a3a4e3359dc889e2ab2b49461bab9e27fc10a7
2019-01-17 10:18:31 -08:00
Kris Maglione
2fe0de01dc Bug 1519596: Part 1 - Remove several unnecessary/unused ChromeUtils.import() calls. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D16377

--HG--
extra : rebase_source : 6c4311387d25de425806aeb6c4691e12c9fcb855
2019-01-11 16:59:23 -08:00
Dão Gottwald
01a2ec62f5 Bug 1518441 - Remove obsolete styling for toolbarseparators in the downloads panel footer. r=paolo
Differential Revision: https://phabricator.services.mozilla.com/D15919

--HG--
extra : moz-landing-system : lando
2019-01-08 15:23:54 +00:00
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