Commit Graph

54 Commits

Author SHA1 Message Date
Jan Varga
1de3f3e91b Bug 1533426 - browser/components/preferences/in-content/tests/siteData/browser_siteData2.js fails with LSNG enabled; r=johannh 2019-03-07 22:06:39 +01:00
Kris Maglione
856fa07b17 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
2019-01-17 10:18:31 -08:00
Kris Maglione
f498964d86 Bug 1519596: Part 1 - Remove several unnecessary/unused ChromeUtils.import() calls. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D16377
2019-01-11 16:59:23 -08:00
danielleleb
9f95423b4a Bug 1517756 - Moves 'use strict' statement to top of file. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D17280
2019-01-22 20:53:20 +00:00
Paolo Amadini
c6bd36fe27 Bug 1516442 - Move "listheader" outside of "richlistbox". r=bgrins
The only uses of "listheader" are part of in-content preferences, and they are updated to use adjacent elements. This is in preparation for the removal of the inner scrollbox in the "richlistbox" binding.

Differential Revision: https://phabricator.services.mozilla.com/D15387
2018-12-26 17:00:31 +00:00
Tom Schuster
8605c9d777 Bug 1462418 - Implement Delete key functionality to remove site data. r=johannh 2018-09-04 11:17:37 +02:00
Mark Banner
462116b7f9 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
2018-08-31 05:59:17 +00:00
Brendan Dahl
532fe1f6b0 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
2018-08-25 00:16:27 +00:00
Michael Kohler
94f27ee7cd Bug 1447952 - Use relative time format in the site data manager. r=johannh 2018-05-30 17:46:54 +03:00
Cosmin Sabou
581f63c07e Backed out changeset c3172bfa5d63 (bug 1447952) for frequent browser chrome failures on browser_siteData.js. CLOSED TREE 2018-05-29 22:01:04 +03:00
Michael Kohler
49e6628589 Bug 1447952 - Use relative time format in the site data manager. r=johannh
Reviewers: johannh

Bug #: 1447952

Differential Revision: https://phabricator.services.mozilla.com/D1142
2018-05-26 18:10:01 +02:00
Trisha
536c51c30c Bug 1451412 - Use a DocumentFragment to build the site data list r=johannh
MozReview-Commit-ID: 5TbwqwmW5Q1
2018-05-24 03:49:33 +08:00
Zibi Braniecki
09df11ab43 Bug 1453765 - Switch Fluent from warning to throwing errors when in debug/testing mode. r=Gijs
MozReview-Commit-ID: 1y7FTCPWRxb
2018-05-22 20:49:29 -07:00
Zibi Braniecki
78189ddbb4 Bug 1457021 - Migrate the JS of Preferences::SiteData to Fluent. r=flod,johannh
MozReview-Commit-ID: 5sYMU3dDTRy
2018-04-23 10:12:21 -07:00
Michael Kohler
f70901560c Bug 1453589 - Select next item in list when removing items in Site Data Manager. r=johannh
Select next item in list when removing items in Site Data Manager. When there
are multiple selected sites, it will select the next item after the last
previously selected item.

Differential Revision: https://phabricator.services.mozilla.com/D965
2018-04-19 13:36:11 -04:00
Margareta Eliza Balazs
2a946dee82 Backed out changeset 525f1fb9501e (bug 1453589) for ES lint failure in /builds/worker/checkouts/gecko/browser/components/preferences/in-content/tests/siteData/head.js on a CLOSED TREE 2018-04-19 16:57:30 +03:00
Michael Kohler
2122efedc2 Bug 1453589 - Select next item in list when removing items in Site Data Manager. r=johannh
Select next item in list when removing items in Site Data Manager. When there
are multiple selected sites, it will select the next item after the last
previously selected item.

Differential Revision: https://phabricator.services.mozilla.com/D965
2018-04-19 09:35:31 -04:00
Johann Hofmann
6f4809103a Bug 1442183 - Allow multiple selection in the site data manager list. r=prathiksha
MozReview-Commit-ID: D1u3963xC6C
2018-04-11 08:59:49 +02:00
Johann Hofmann
458644c48f Bug 1348223 - Part 2 - Move SiteDataManager.jsm to components and improve functionality for getting and removing by host. r=florian
This commit is in preparation of using SiteDataManager in the page info
window to display site data information for a individual hosts.

MozReview-Commit-ID: 3YmUZInvoAT
2018-03-22 17:48:13 +01:00
accakks
22c51f3768 Bug 1437880 -Disable "Remove Selected" button in the site data manager dialog if a website is deselected. r=prathiksha
MozReview-Commit-ID: 7YhXjg84QSx
2018-03-23 20:04:34 +05:30
Johann Hofmann
e09cdaaebb Bug 1441198 - Part 1 - Use correct copy for cookies and site data in about:preferences. r=nhnt11
This mostly changes "cookies" to "cookies and site data" and amends a few
other details.

MozReview-Commit-ID: 97xTSQPw2DA
2018-02-28 09:37:48 +01:00
Johann Hofmann
2c602a5936 Bug 1432745 - Merge the "persistent" column in the site data manager into the "usage" column. r=nhnt11
MozReview-Commit-ID: 6a2ZOhC7p3a
2018-02-21 11:06:29 +01:00
Johann Hofmann
5e2b8d561e Bug 1431029 - Show a "last accessed" column in the site data manager. r=Gijs
MozReview-Commit-ID: LidkPQ6kLfX
2018-02-20 14:54:43 +01:00
Johann Hofmann
4b2d20aff9 Bug 1421737 - Part 3 - Simplify the "remove selected sites" dialog in site data management. r=Gijs
We are no longer implicitly deleting cookies when removing site data because
cookies are now listed as part of the site data manager. We're also no longer
deleting cookies based on the base domain, which makes most of the UI in the
removal dialog unnecessary. Instead of a tree box with sub domains we're now
showing a simple listbox domains to be deleted.

MozReview-Commit-ID: GWv5QVxEiiy
2018-02-05 17:42:54 +01:00
Johann Hofmann
eea4ca7873 Bug 1421737 - Part 2 - Convert the siteListItem XBL binding to plain JS and add a cookies row. r=Gijs
This commit primarily intends to add cookies to the site data manager,
but while touching this code I transformed the siteListItem XBL binding to plain JS.

This also removes the #SiteDataRemoveSelectedDialog binding rule, because it is
unnecessary, <dialog> elements already have this binding.

MozReview-Commit-ID: EpTd2E0vPN9
2018-02-09 20:56:04 +01:00
Michael Kohler
96c7a7663d Bug 1432759 - 'Remove selected' should be greyed out if no item is selected in the site data manager r=johannh
MozReview-Commit-ID: 5MejSmaVJeA
2018-02-05 20:39:28 +01:00
Andrew McCreight
272cee1e65 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
2018-02-06 09:36:57 -08:00
Johann Hofmann
05a5aaecc3 Bug 1422163 - Part 1 - Make a new confirm dialog for clearing all site data that allows you to clear cache. r=Gijs
MozReview-Commit-ID: G9xQXlfT9Ay
2018-01-10 12:24:40 +01:00
Narcis Beleuzu
992019d6d1 Backed out 2 changesets (bug 1422163) for mochitest bc failure on /browser_clearSiteData.js. on a CLOSED TREE
Backed out changeset 7ab250439e7b (bug 1422163)
Backed out changeset 7eed1367d341 (bug 1422163)
2018-02-01 19:46:56 +02:00
Johann Hofmann
dcdd131887 Bug 1422163 - Part 1 - Make a new confirm dialog for clearing all site data that allows you to clear cache. r=Gijs
MozReview-Commit-ID: G9xQXlfT9Ay
2018-01-10 12:24:40 +01:00
Narcis Beleuzu
14e8d47637 Backed out 2 changesets (bug 1422163) for mochitest bc6 failure on /browser_clearSiteData.js. on a CLOSED TREE
Backed out changeset f8a8160484c8 (bug 1422163)
Backed out changeset 60cd03e9c5ac (bug 1422163)
2018-02-01 16:33:52 +02:00
Johann Hofmann
45bdd86c45 Bug 1422163 - Part 1 - Make a new confirm dialog for clearing all site data that allows you to clear cache. r=Gijs
MozReview-Commit-ID: G9xQXlfT9Ay
2018-01-10 12:24:40 +01:00
Kris Maglione
0bb74efdf1 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
2018-01-29 15:20:18 -08:00
Cosmin Sabou
f09d6d985d 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
fd67f090b2 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
2018-01-29 15:20:18 -08:00
Brindusan Cristian
483ba301cb 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
683a97d172 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
2018-01-29 15:20:18 -08:00
Dan Banner
5af4450327 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
Fischer.json
125cac4f8b Bug 1390675 - Preferences -> Site Data -> Settings cannot be closed with the Escape key, r=Gijs
MozReview-Commit-ID: Jb2YE6QFSMN
2017-08-21 16:26:42 +08:00
Jared Wein
e3ef742b08 Bug 1375883 - Replace 'sites' with 'websites' in strings for preferences since the Mozilla language guide prefers the full 'websites' term. r=mconley
MozReview-Commit-ID: GVB7wnjULL6
2017-07-31 16:06:12 -04:00
Fischer.json
25264c4591 Bug 1364852 - Handle error from Services.eTLD.getBaseDomainFromHost, r=Gijs
Quota Manager could return origin which being set to eTLD (see bug 1365892 for more details) or in ipv4/ipv6. That could cause error while calling Services.eTLD.getBaseDomainFromHost. This patch handles these expected errors.

MozReview-Commit-ID: qlfb8nh8cV
2017-05-18 00:29:31 +08:00
Fischer.json
9c888bab05 Part 2: Bug 1348733 - Update tests for site data manager now that we use quota storage manager, r=Gijs
The patch does
- update both the in-content and in-content-old tests
- add the offline test page for appcache testing case
- update tests for switching to Quota Manager from Permission Manager to get sites list
- add one test case of grouping sites across scheme, port and origin attributes by host
- add one test case of list site using quota usage or site using appcache

MozReview-Commit-ID: 6brLVwzmSgf
2017-05-10 09:46:46 -04:00
Fischer.json
0099c14a27 Part 1: Bug 1348733 - List sites using quota storage or appcache in Settings of Site Data, r=Gijs
This patch does:
- remove codes about counting and removing http cache per site
- group and list sites based on host across scheme, port and origin attributes
- list sites using quota usage or appcache
- sort sites descending by usage by default

MozReview-Commit-ID: 29zZTzOsC7c
2017-04-11 22:47:48 +08:00
Florian Queze
451928e614 Bug 1356569 - Remove notifyObservers' last parameter when it is falsy, r=jaws. 2017-04-14 21:51:39 +02:00
Sebastian Hengst
f75839c723 Backed out changeset 55f3df15eaa6 (bug 1356569) 2017-04-14 23:39:17 +02:00
Florian Queze
61aabdf237 Bug 1356569 - Remove notifyObservers' last parameter when it is falsy, r=jaws. 2017-04-14 21:51:39 +02:00
Fischer.json
73b6531644 Part 1: Bug 1354530 - Update the strings about Storage Manager according to the latest v1 specs, r=jaws
MozReview-Commit-ID: H9gCEZS7U3N
2017-04-07 21:04:49 +08:00
Fischer.json
71a3493ba7 Bug 1338757 - "Remove All Shown" and button in about:preferences should use its own accesskey, r=jaws
MozReview-Commit-ID: 2ucF0GqOCJV
2017-02-13 11:43:37 +08:00
Fischer.json
5b645d203b Bug 1338036 - Switch button label from "Remove All" to "Remove All Shown" when filtering by keyword in about:preferences, r=jaws
MozReview-Commit-ID: 8iK6bg8i0uT
2017-02-09 12:00:12 +08:00
Fischer.json
16489000da Bug 1312380 - Should be able to remove data of all sites visible on the list in Settings of Site Data, r=jaws
MozReview-Commit-ID: 5hkmYLGGkue
2017-01-31 21:34:08 +08:00