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

107 Коммитов

Автор SHA1 Сообщение Дата
Victor Porof 584e273f90 Bug 1561435 - Format toolkit/mozapps/, a=automatic-formatting
# ignore-this-changeset

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

--HG--
extra : source : fc2db4029f7eeae4942b42ca0b23873f150012b2
2019-07-05 11:17:14 +02:00
Jared Wein a283135e4f Bug 1553373 - Change to use html:input type=password instead of xul:textbox type=password in Master Password dialogs since they use common styling which defines proper styling for html:input[type=password] now. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D32517

--HG--
extra : moz-landing-system : lando
2019-05-29 16:34:07 +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
Jonas Allmann 1db9db7604 Bug 1529231, Remove all occurences of ondialogaccept and ondialogcancel, r=Gijs
Removed all occurences of ondialogaccept.
Removed all occurences of ondialogcancel.
Replaced all removed attributes with event handlers.

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

--HG--
extra : moz-landing-system : lando
2019-03-26 18:34:02 +00:00
Marco Bonardo 5c4e44ce0a Bug 1528751 - Add a custom eslint rule to check "consistent" if bracing. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D20753

--HG--
extra : moz-landing-system : lando
2019-02-28 08:39:33 +00:00
Brendan Dahl 74c580a4c5 Bug 1527733 - Remove special XUL DOM tree traversal. r=smaug
Move functionality out of XULDocument::AddElementToDocumentPost:
1) Convert all XUL link elements into HTML link elements which have
code to handle when they are added to the DOM.
2) Move handling of the end of a linkset element into nsXULElement's DoneAddingChildren callback.
3) Move document direction reset to where the root element is created.

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

--HG--
extra : moz-landing-system : lando
2019-02-14 10:43:35 +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
Cosmin Sabou 599a15d354 Merge mozilla-inbound to mozilla-central. a=merge 2019-01-29 12:01:56 +02:00
Timothy Guan-tin Chien 0de6e5d4aa 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

--HG--
rename : toolkit/content/widgets/menulist.xml => toolkit/content/widgets/menulist.js
extra : moz-landing-system : lando
2019-01-28 18:24:08 +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
Tim Nguyen cbfb044695 Bug 1521285 - Remove XUL grid layout from toolkit/mozapps/preferences/changemp.xul. r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D17051

--HG--
extra : moz-landing-system : lando
2019-01-22 21:20:44 +00:00
Paolo Amadini 5d354ce421 Bug 1429940 - Part 2 - Use HTML headings inside the "label" element for labeling "groupbox" elements in Preferences, instead of the "caption" element. r=MarcoZ,dao,jaws,flod
This makes it possible to navigate by headings when using accessibility technology.

Information labels displayed when removing the master password are also restored.

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

--HG--
extra : rebase_source : 42f156dbccf074445cf7e08d8de246058437c91b
2018-11-20 15:14:18 +00:00
Jack Smith 283514b93b Bug 1502396 - Convert change and remove master password dialogs in about:preferences to use Fluent r=jaws,Gijs,flod
Differential Revision: https://phabricator.services.mozilla.com/D10949

--HG--
extra : moz-landing-system : lando
2018-11-06 21:39:17 +00:00
Jack Smith e1f7803613 Bug 1491676 - Moves master password dialog strings r=flod,Gijs,zbraniecki
Depends on D8552

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

--HG--
extra : moz-landing-system : lando
2018-11-14 23:08:51 +00:00
Cosmin Sabou 7f37bee189 Backed out 4 changesets (bug 1491676) for causing browser chrome failures on browser_storagePressure_notification. CLOSED TREE
Backed out changeset 08cbaa2f9183 (bug 1491676)
Backed out changeset fae949de1ed5 (bug 1491676)
Backed out changeset aeb045b90321 (bug 1491676)
Backed out changeset e75c59f129ea (bug 1491676)
2018-11-07 20:53:48 +02:00
Jack Smith 9e7051f7cd Bug 1491676 - Moves master password dialog strings r=flod,Gijs,zbraniecki
Depends on D8552

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

--HG--
extra : moz-landing-system : lando
2018-11-07 18:04:30 +00:00
Ciure Andrei c5b96773e4 Backed out 4 changesets (bug 1491676) for browser-chrome permissions failures CLOSED TREE
Backed out changeset e860d0d115d0 (bug 1491676)
Backed out changeset 04b83b7977c4 (bug 1491676)
Backed out changeset eb19b384d908 (bug 1491676)
Backed out changeset 76ea995336dc (bug 1491676)
2018-11-07 13:44:26 +02:00
Jack Smith 14b6748808 Bug 1491676 - Moves master password dialog strings r=flod,Gijs,zbraniecki
Depends on D8552

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

--HG--
extra : moz-landing-system : lando
2018-11-05 16:57:09 +00:00
Paolo Amadini 42c8938dfc Bug 1493844 - Part 2 - Remove the "caption" and "groupbox" bindings. r=bgrins,dao,jaws,johannh,surkov
Proper native "groupbox" styling depends on the structure of the XBL binding. By restyling the Page Info dialog, the native styling is now unused except for the Print Page Setup dialog on Windows. The native apperance is thus not applied by default anymore, and the "groupbox" element can just be used semantically for accessibility. The Print Page Setup dialog applies the native styling on its own in a way that still works on Windows.

The only other consumers of "groupbox" are the in-content Preferences pages and dialogs. These are updated to use simpler styles that don't depend on the binding structure.

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

--HG--
extra : rebase_source : af36d911980517f9b53036f4cd4f800c5e20ad22
2018-10-23 10:14:06 +01:00
Paolo Amadini 3a2f47fd3f Bug 1428869 - Use html:progress in front-end code. r=bgrins,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D9009

--HG--
extra : rebase_source : 0e2d20dc6060a4c0ee278ef05d67668aec12e64f
2018-10-18 15:41:21 +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
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
Zibi Braniecki c4de9748da Bug 1457021 - Migrate the JS of Preferences::Fonts to Fluent. r=flod,jaws
MozReview-Commit-ID: A5yrLylYBjm

--HG--
extra : rebase_source : 762e0ae11f57bbf96a2f98d4e6cec2df8b3d8ad3
2018-04-19 17:12:18 -07: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
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
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
Myk Melez c3da3e7642 Bug 1379338 - scriptify preferences XBL; r=jaws
MozReview-Commit-ID: Egyzs2KxhzH
2018-01-04 21:37:47 -08:00
Sebastian Hengst bc8e5f198e Backed out 2 changesets (bug 1379338) for failing Marionette headless' test_anonymous_content.py TestAnonymousNodes.test_find_anonymous_children. r=backout on a CLOSED TREE
Backed out changeset 232c97d7c2ea (bug 1379338)
Backed out changeset a76ff10b9bff (bug 1379338)
2018-01-04 20:15:18 +02:00
Myk Melez f5bb45814e Bug 1379338 - scriptify preferences XBL; r=jaws
MozReview-Commit-ID: 7NRHlSsdOtf
2018-01-04 07:34:15 -08:00
Mark Banner e4262540c6 Bug 1417944 - Enable ESLint rule mozilla/use-services for toolkit/. r=mossop
MozReview-Commit-ID: JhHXYma5Adp

--HG--
extra : rebase_source : 79d9876a82b39070d5d3cd1e9464e23d113c88a8
2017-11-22 13:36:34 +00:00
Jared Wein 6d23a3e261 Bug 1378366 - Change 'var' to 'const' and 'let' in fontBuilder.js. r=timdream
MozReview-Commit-ID: 3QYWdnVzgJs

--HG--
extra : rebase_source : b7d1dfd517eed88df35909c6e2f6785c60bb3301
2017-10-27 06:51:16 -04:00
Jared Wein f953e19feb Bug 1378366 - If the default font is not found, use 'Default' as the name for an unchanged font preference. Previously this would show up as blank in this case. r=timdream
MozReview-Commit-ID: G1GEwWNtBMi

--HG--
extra : rebase_source : 9c972fd4f2108325fddb9413ad364dd94b99e832
2017-10-26 12:25:12 -04:00
Myk Melez 917428e84b Bug 1375978 - enumerate fonts asynchronously; r=jfkthame,nhnt11 2017-09-12 11:05:37 -07:00
Joel Maher bc070be3c8 Bug 1351067 - add BUG_COMPONENT to toolkit/* files. r=myk,enndeakin,mossop
MozReview-Commit-ID: 8mv5Oed68JL
2017-04-09 05:43:43 -04:00
Masayuki Nakano 8565cf58ac Bug 1344990 part.4 FontBuilder.readFontSelection() should return empty string when saved font isn't available r=jaws
FontBuilder adjusted font settings if reading font isn't available in the system.  Now, we support empty string value of "font.name.*" which means default font in the system.  If it's empty string, gfx checks default font from "font.name-list.*" at runtime.  Therefore, resetting "font.name.*" to empty string is the best approach if specified font becomes not available (e.g., uninstalled from the system).

Therefore, this patch replaces the code in FontBuilder.readFontSelection() with just returning empty string.

MozReview-Commit-ID: HgR88Qw8Xwe

--HG--
extra : rebase_source : 3878bf6a1c98ef7ba27c2cbdaaa9307061820f85
2017-03-29 23:55:37 +09:00
Jared Wein a54eda04ca Bug 1348068 - Enable the key-spacing rule for eslint and fix the related issues. r=standard8
Running eslint with --fix didn't fix many of the issues. The majority here had to be fixed by hand but a significant majority of the issues were related to a few files that I was able to use find-and-replace with. I regret not making this in to separate commits of the hand-fixes and the fixes from --fix but I don't recall --fix fixing any of the issues.

MozReview-Commit-ID: ANyg2qfo3Qx

--HG--
extra : rebase_source : 61d2aa91bf9474af3d72a5dea41b25dca442c1b7
2017-03-21 14:29:43 -04:00
Florian Quèze 9d62681259 Bug 1345253 - Use element.firstChild.remove() instead of element.removeChild(element.firstChild), r=jaws. 2017-03-08 10:17:52 +01:00
Jared Wein 43bac26d30 Bug 1331661 - Enable the 'quotes' rule for eslint and fix most of the errors with --fix. r=Gijs
MozReview-Commit-ID: 6tv0Z06CO4a

--HG--
extra : rebase_source : 014c0b04d8538dc5f15bc6dd4ed6bd220c55c5d4
2017-01-17 09:48:17 -06:00
Jared Wein b33bfba51a Bug 1329017 - Enable the no-useless-return rule for eslint and use eslint --fix to autofix the errors. r=standard8
MozReview-Commit-ID: 2MhpvzUDgtK

--HG--
extra : rebase_source : 1df2b81badfe556928f6424c8990e4b3fde7056f
2017-01-06 12:09:28 -05:00
Jared Wein 9141469edf Bug 1326511 - Enable brace-style and no-multi-spaces eslint rules for toolkit. r=MattN
MozReview-Commit-ID: FuVu8skcqOe

--HG--
extra : rebase_source : 8ab34c4e46a7c3075b459bf44786ec184d10d203
2016-12-30 21:47:25 -05:00
Jared Wein ecab54a7c9 Bug 1325464 - Enable object-shorthand rule and run 'mach eslint --fix' with the rule enabled. r=MattN
MozReview-Commit-ID: 7E7LPorrEje

--HG--
extra : rebase_source : 0572a35415a766a3f31d266760ecd07f0dcc3f72
2016-12-29 18:34:54 -05:00
Wes Kocher 0dfb7c2b5c Backed out 3 changesets (bug 1325464) for xpcshell failures a=backout
Backed out changeset 562ddc32cc21 (bug 1325464)
Backed out changeset cd10db6087dd (bug 1325464)
Backed out changeset 4079437c4648 (bug 1325464)
2016-12-29 14:05:44 -08:00
Jared Wein 7255df4e9a Bug 1325464 - Enable object-shorthand rule and run 'mach eslint --fix' with the rule enabled. r=MattN
MozReview-Commit-ID: 8WoGr8i6oCR

--HG--
extra : rebase_source : da7172285d43b820421557ed3b05887e091ff939
2016-12-29 15:20:47 -05:00
David Keeler 104c38c723 bug 1324071 - add nsIPK11Token.hasPassword to replace unnecessary uses of nsIPKCS11Slot.status r=Cykesiopka,gps,MattN,sebastian
MozReview-Commit-ID: C2jwQHPEDC0

--HG--
extra : rebase_source : 16271e70ef32da8657cdc4f8df41b7822430e3bf
2016-12-02 15:09:35 -08:00
Dave Townsend c5bb304fd9 Bug 1316882: Turn on space-before-function-paren eslint rule (toolkit). r=jaws
MozReview-Commit-ID: FGFwg6TYkvm

--HG--
extra : rebase_source : 4073cebbef1694393efe312aaafbdb803adbd304
2016-11-11 15:22:34 -08:00
Dave Townsend 4ac0e05ec7 Bug 1316882: Turn on func-call-spacing eslint rule. r=bgrins
MozReview-Commit-ID: GIkQnRX9woD

--HG--
extra : rebase_source : ed6e9af9b102aaf92965d089d8022b9d94e3f440
2016-11-10 15:05:32 -08:00