Commit Graph

36 Commits

Author SHA1 Message Date
Cosmin Sabou
bf63534551 Merge mozilla-inbound to mozilla-central. a=merge 2019-01-29 12:01:56 +02:00
Timothy Guan-tin Chien
4dc1b99fe7 Bug 1518932 - Convert menulist to custom element r=paolo
This custom element replaces XBL <content> usage by directly prepend the two needed child nodes when the element is connected.

This is doable because

- There isn't any direct access of child nodes under <menulist>. Everyone seems to access via .menupopup, which is usually the only child.
- We don't need to move the children under <menulist>. If we need to and if the child is a <xbl:children> (which could happen if <menulist> is inside an XBL <content> that just get cloned to the document), the layout will get very confused and crash (see finding in bug 1514926)

Differential Revision: https://phabricator.services.mozilla.com/D16149
2019-01-28 18:24:08 +00: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
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
Brian Grinstead
26c903fe0b 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
2018-11-11 13:21:18 +00:00
prathiksha
adc3fe234b Bug 1501897 - Only selected items in the permission settings richlistbox should be tabable for accessibility reasons. r=johannh,Jamie
Only selected items in the permission settings richlistbox should be tabable for accessibility reasons.

Differential Revision: https://phabricator.services.mozilla.com/D10079
2018-11-02 05:07:45 +00:00
Cosmin Sabou
74656ef193 Backed out changeset 3141b7b79153 (bug 1501897) for browser chrome failures on browser_permissions_dialog. 2018-10-31 16:54:21 +02:00
prathiksha
f871b8d14e Bug 1501897 - Only selected items in the permission settings richlistbox should be tabable for accessibility reasons. r=johannh,Jamie
Only selected items in the permission settings richlistbox should be tabable for accessibility reasons.

Differential Revision: https://phabricator.services.mozilla.com/D10079
2018-10-31 13:56:57 +00:00
prathiksha
56e3b10496 Bug 1411700 - Show that an Extension is controlling the default notifications permission. r=flod,johannh
Show that an Extension is controlling the default notifications permission

Differential Revision: https://phabricator.services.mozilla.com/D5042
2018-10-19 04:31:33 +00: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
Kris Maglione
f6a4413b4c Bug 1484496: Part 5a - Convert browser/ nsISimpleEnumerator users to use JS iteration. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D3729
2018-08-18 19:27:33 -07:00
Paolo Amadini
a80747f919 Bug 1446362 - Part 2 - Remove "tree" from the permission preferences. r=johannh
MozReview-Commit-ID: 9IYpH8SvsCw
2018-06-22 14:13:53 +01:00
Kanika Saini
d5bdf8d25b Bug 1467062 - Permissions Policy added to configure camera, microphone, location and notifications r=Felipe
MozReview-Commit-ID: IqpEboxHjjt
2018-06-06 15:43:26 +05:30
Zibi Braniecki
31f4a23b3f Bug 1457021 - Migrate the JS of Preferences::SitePermissions to Fluent. r=flod,jaws
MozReview-Commit-ID: Fe4Q6CnTcuj
2018-04-25 16:24:39 -07:00
Zibi Braniecki
674fbdf08d Bug 1457948 - Migrate in-content/privacy.js to Fluent. r=flod,jaws
MozReview-Commit-ID: 7K7Wgm5ahTL
2018-04-30 10:29:18 -07:00
Dorel Luca
995f173383 Backed out changeset fba5e06d6365 (bug 1457948) for Browser-chrome failures on multipe files. CLOSED TREE 2018-05-08 10:54:13 +03:00
Zibi Braniecki
c71bdde78e Bug 1457948 - Migrate in-content/privacy.js to Fluent. r=flod,jaws
MozReview-Commit-ID: 7K7Wgm5ahTL
2018-04-30 10:29:18 -07:00
Dão Gottwald
7121db42ab Bug 1456611 - Remove insertItemAt and removeItemAt methods from XUL widgets. r=enn
MozReview-Commit-ID: BaChYp8bBbI
2018-04-24 21:42:26 +02:00
accakks
12f80cbed9 Bug 1444853 - Setting permissionsText in the site permissions dialog can be simplified r=prathiksha
MozReview-Commit-ID: 1pZiOJfNMfV
2018-03-14 20:27:15 +05:30
Florian Quèze
f6add2cafd 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
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
Prathiksha
9002a560cb Bug 1428581 - Make labels of the permission prompt checkboxes clickable. r=johannh
MozReview-Commit-ID: GPPmYqOX3Jb
2018-01-09 18:11:50 +05:30
Prathiksha
9a8089ff39 Bug 1368744 - Provide a way for users to deny permission prompts by default in about:preferences. r=johannh
MozReview-Commit-ID: 3k3LRi7N8PX
2017-12-20 22:32:20 +05:30
Johann Hofmann
04908d62f7 Bug 1379560 - Part 2 - Add support for custom default permissions in SitePermissions.jsm. r=Paolo
Part 1 added support for changing default permissions via pref. This
patch adds support in the frontend code, which is required to actually
make it work for most permission prompts.

This patch introduces the concept of SitePermissions.PROMPT (which
already exists in the permission manager) to distinguish between
the default UNKNOWN state and the explicit PROMPT state. They both
have the same effect (always asking the user for confirmation).

MozReview-Commit-ID: 2Gg9uwigter
2017-07-10 23:33:37 +02: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
Prathiksha
fd8b502bf9 Bug 1388107 - Support unknown capability values in the sitePermissions.xul dialog. r=johannh
MozReview-Commit-ID: 94mG93fe5OY
2017-10-02 22:12:12 +05:30
Prathiksha
cbdf57ebfd Bug 1400219 - Align permission status menulists in the permission dialog with the header and adjust the menulist margin. r=johannh
MozReview-Commit-ID: LaY1YaNZydg
2017-09-08 19:11:02 +05:30
Prathiksha
bf4573bf72 Bug 1385221 - Implement Permission sorting in the Permissions dialog. r=johannh
MozReview-Commit-ID: 1F9eZ54ppbB
2017-08-16 21:27:02 +05:30
Prathiksha
f39a452f64 Bug 1385222 - Add the search functionality in the sitePermissions.xul dialog. r=johannh
MozReview-Commit-ID: JFkZPfL0hJl
2017-08-08 12:19:47 +05:30
Johann Hofmann
40ff4a0cf9 Bug 1387987 - Use listheader instead of richlistitem as list header in the permission dialog. r=prathiksha
MozReview-Commit-ID: DJayquaZ01V
2017-08-07 10:42:15 +02:00
Prathiksha
d4144b4e4e Bug 1373206 - Create a new dialog for notification settings under Firefox Preferences to match the new spec. r=johannh
MozReview-Commit-ID: 5gk4mr3D0jT
2017-06-29 23:49:35 +05:30