Andi-Bogdan Postelnicu
4aee2df8a5
Bug 1671641 - Make `dom/l10n` buildable outside of `unified-build` environment. r=sg
...
Depends on D94967
Differential Revision: https://phabricator.services.mozilla.com/D94968
2020-10-28 12:49:46 +00:00
Ricky Stewart
02a7b4ebdf
Bug 1654103: Standardize on Black for Python code in `mozilla-central`.
...
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.
To produce this patch I did all of the following:
1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.
2. Run ./mach lint --linter black --fix
3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.
4. Make some ad-hoc manual updates to `testing/marionette/client/setup.py`, `testing/marionette/harness/setup.py`, and `testing/firefox-ui/harness/setup.py`, which have hard-coded regexes that break after the reformat.
5. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).
# ignore-this-changeset
Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-26 18:34:53 +00:00
Bogdan Tara
da1098d4aa
Backed out 10 changesets (bug 1654103, bug 1672023, bug 1518999) for PanZoomControllerTest.touchEventForResult gv-junit failures CLOSED TREE
...
Backed out changeset ff3fb0b4a512 (bug 1672023)
Backed out changeset e7834b600201 (bug 1654103)
Backed out changeset 807893ca8069 (bug 1518999)
Backed out changeset 13e6b92440e9 (bug 1518999)
Backed out changeset 8b2ac5a6c98a (bug 1518999)
Backed out changeset 575748295752 (bug 1518999)
Backed out changeset 65f07ce7b39b (bug 1518999)
Backed out changeset 4bb80556158d (bug 1518999)
Backed out changeset 8ac8461d7bd7 (bug 1518999)
Backed out changeset e8ba13ee17f5 (bug 1518999)
2020-10-24 03:36:18 +03:00
Ricky Stewart
c0cea3b0fa
Bug 1654103: Standardize on Black for Python code in `mozilla-central`. r=remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,perftest-reviewers,devtools-backward-compat-reviewers,jgilbert,preferences-reviewers,sylvestre,maja_zf,webcompat-reviewers,denschub,ntim,whimboo,sparky
...
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.
To produce this patch I did all of the following:
1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.
2. Run ./mach lint --linter black --fix
3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.
4. Make some ad-hoc manual updates to `testing/marionette/client/setup.py`, `testing/marionette/harness/setup.py`, and `testing/firefox-ui/harness/setup.py`, which have hard-coded regexes that break after the reformat.
5. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).
# ignore-this-changeset
Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-23 20:40:42 +00:00
Dorel Luca
1ff59cb7a3
Backed out changeset 7558c8821a07 (bug 1654103) for multiple failures. CLOSED TREE
2020-10-22 03:51:06 +03:00
Ricky Stewart
50762dacab
Bug 1654103: Standardize on Black for Python code in `mozilla-central`. r=remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,perftest-reviewers,devtools-backward-compat-reviewers,jgilbert,preferences-reviewers,sylvestre,maja_zf,webcompat-reviewers,denschub,ntim,whimboo,sparky
...
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.
To produce this patch I did all of the following:
1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.
2. Run ./mach lint --linter black --fix
3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.
4. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).
# ignore-this-changeset
Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-21 21:27:27 +00:00
Christoph Kerschbaumer
359ca7017e
Bug 1666419: Assert IsSafeToRunScript. r=emilio
...
Differential Revision: https://phabricator.services.mozilla.com/D91391
2020-09-28 06:29:44 +00:00
Markus Stange
41c70bcd59
Bug 1666617 - Add an observer description argument to AddRefreshObserver. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D91082
2020-09-25 02:36:29 +00:00
Simon Giesecke
de7bab0f06
Bug 1650145 - Replace all value uses of Empty[C]String by 0-length _ns literals. r=froydnj,geckoview-reviewers,agi
...
Differential Revision: https://phabricator.services.mozilla.com/D82325
2020-09-23 15:17:15 +00:00
Nathan Froyd
cfb8fb313f
Bug 1662251 - stop assigning from NS_Convert* values, mostly; r=sg
...
This patch was generated by running:
```
perl -p -i \
-e 's/^(\s+)([a-zA-Z0-9.]+) = NS_ConvertUTF8toUTF16\((.*)\);/\1CopyUTF8toUTF16(\3, \2);/;' \
-e 's/^(\s+)([a-zA-Z0-9.]+) = NS_ConvertUTF16toUTF8\((.*)\);/\1CopyUTF16toUTF8(\3, \2);/;' \
$FILE
```
against every .cpp and .h in mozilla-central, and then fixing up the
inevitable errors that happen as a result of matching C++ expressions with
regexes. The errors fell into three categories:
1. Calling the convert functions with `std::string::c_str()`; these were
changed to simply pass the string instead, relying on implicit conversion
to `mozilla::Span`.
2. Calling the convert functions with raw pointers, which is not permitted
with the copy functions; these were changed to invoke `MakeStringSpan` first.
3. Other miscellaneous errors resulting from over-eager regexes and/or the
replacement not being type-aware. These changes were reverted.
Differential Revision: https://phabricator.services.mozilla.com/D88903
2020-09-02 09:54:37 +00:00
Simon Giesecke
1e6ec7ec86
Bug 1656117 - Reduce include dependencies on nsRefreshDriver.h. r=mstange
...
The abstract observer base classes are moved to a separate header file
nsRefreshObservers.h and the includes are adjusted accordingly.
Some method implementations are moved to the corresponding implementation files
to avoid the need to include the nsRefreshDriver.h file in the header.
Differential Revision: https://phabricator.services.mozilla.com/D85764
2020-08-04 21:17:50 +00:00
Dave Townsend
c551d1b151
Bug 1642398: Add a lint rule to warn about multiple calls to document.l10n.formatValue. r=Standard8,preferences-reviewers,ntim
...
Differential Revision: https://phabricator.services.mozilla.com/D77900
2020-07-02 18:51:44 +00:00
Simon Giesecke
cd8b8939b9
Bug 1648010 - Replace uses of NS_LITERAL_STRING/NS_LITERAL_CSTRING macros by _ns literals. r=geckoview-reviewers,jgilbert,agi,hsivonen,froydnj
...
Differential Revision: https://phabricator.services.mozilla.com/D80860
2020-07-01 08:29:29 +00:00
Aaron Klotz
5338289548
Bug 1648631: Part 3 - Update tests to work with the revised L10nRegistry API; r=zbraniecki,robwu
...
Depends on D81390
Differential Revision: https://phabricator.services.mozilla.com/D81391
2020-06-26 20:27:57 +00:00
Gijs Kruitbosch
1e9bcf361a
Bug 1645246 - add error reporting when fluent overwrites child elements (rather than just text), r=zbraniecki
...
Differential Revision: https://phabricator.services.mozilla.com/D79813
2020-06-16 23:54:51 +00:00
Gijs Kruitbosch
7a932125e9
Bug 1645246 - fluent shouldn't release-crash if one translation clobbers another element listed for translation, r=zbraniecki,smaug
...
See https://bugzilla.mozilla.org/show_bug.cgi?id=1645246#c4 for what causes the crash.
I'm avoiding translating as well as attempting to update prototypes
for disconnected elements, which I've verified fixes the crash.
Differential Revision: https://phabricator.services.mozilla.com/D79508
2020-06-17 13:07:15 +00:00
Dave Townsend
155fe87ea2
Bug 1642423: document.l10n.formatValues should accept simple strings as well as L10nKeys. r=zbraniecki
...
Differential Revision: https://phabricator.services.mozilla.com/D77857
2020-06-08 18:11:00 +00:00
Butkovits Atila
a561ed634b
Backed out changeset 3b5928fd85e5 (bug 1642423) for causing failure at test_getAttributes.html. CLOSED TREE
2020-06-06 00:32:42 +03:00
Dave Townsend
67bca5c4f4
Bug 1642423: document.l10n.formatValues should accept simple strings as well as L10nKeys. r=zbraniecki
...
Differential Revision: https://phabricator.services.mozilla.com/D77857
2020-06-05 19:57:05 +00:00
Zibi Braniecki
065441a790
Bug 1631593 - Lazify JSM initialization. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D71834
2020-06-04 17:02:01 +00:00
Zibi Braniecki
79c24a615e
Bug 1631593 - Cache bundles in Localization C++. r=jfkthame,smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D71815
2020-05-31 07:12:31 +00:00
Zibi Braniecki
df730b0525
Bug 1631593 - Move aIsSync to Localization C++. r=stas,jfkthame
...
Differential Revision: https://phabricator.services.mozilla.com/D71679
2020-05-31 07:12:35 +00:00
Zibi Braniecki
099f8774bd
Bug 1631593 - Move resourceIds to Localization C++. r=stas,jfkthame
...
Differential Revision: https://phabricator.services.mozilla.com/D71677
2020-05-31 07:12:38 +00:00
Razvan Maries
5e4d4827aa
Backed out 6 changesets (bug 1631593) for perma failures on browser_aboutCertError_exception. CLOSED TREE
...
Backed out changeset f176af77900a (bug 1631593)
Backed out changeset 74b6fa2a1409 (bug 1631593)
Backed out changeset 7fbc8e2c4a4a (bug 1631593)
Backed out changeset 77ff0aee23f6 (bug 1631593)
Backed out changeset 90bde53721ac (bug 1631593)
Backed out changeset ea777b1a9380 (bug 1631593)
2020-05-31 09:58:41 +03:00
Zibi Braniecki
f549a16cc7
Bug 1631593 - Lazify JSM initialization. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D71834
2020-05-30 09:37:15 +00:00
Zibi Braniecki
2a163b0aca
Bug 1631593 - Cache bundles in Localization C++. r=jfkthame,smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D71815
2020-05-30 09:37:02 +00:00
Zibi Braniecki
780f61eb15
Bug 1631593 - Move aIsSync to Localization C++. r=stas,jfkthame
...
Differential Revision: https://phabricator.services.mozilla.com/D71679
2020-05-30 09:36:37 +00:00
Zibi Braniecki
b7cc044565
Bug 1631593 - Move resourceIds to Localization C++. r=stas,jfkthame
...
Differential Revision: https://phabricator.services.mozilla.com/D71677
2020-05-30 09:36:25 +00:00
Randell Jesup
e068346a1f
Bug 1602757: disable process caching/preallocation while testing browser_resource_uri r=zbraniecki
...
Differential Revision: https://phabricator.services.mozilla.com/D76534
2020-05-30 14:38:59 +00:00
Narcis Beleuzu
4e6564f9f0
Backed out 7 changesets (bug 1602757, bug 1640801, bug 1612063, bug 1569928) for wpt failures on operator-dictionary-spacing-002/003/006.html CLOSED TREE
...
Backed out changeset 11277f03c48c (bug 1640801)
Backed out changeset 6d2a92d25b8f (bug 1569928)
Backed out changeset 383fd9b931ae (bug 1602757)
Backed out changeset 58ec60831af6 (bug 1602757)
Backed out changeset 4b9c579de3b2 (bug 1602757)
Backed out changeset a34288a6f60c (bug 1612063)
Backed out changeset 5134aaa3278e (bug 1602757)
2020-05-29 05:38:02 +03:00
Randell Jesup
793c7e1cdd
Bug 1602757: disable process caching/preallocation while testing browser_resource_uri r=zbraniecki
...
Differential Revision: https://phabricator.services.mozilla.com/D76534
2020-05-28 21:37:28 +00:00
Narcis Beleuzu
0d860681b7
Backed out 6 changesets (bug 1602757, bug 1612063, bug 1569928) for wpt failure on operator-dictionary-spacing-001.html . CLOSED TREE
...
Backed out changeset 0f9c7960f36e (bug 1569928)
Backed out changeset 9456c9f960c9 (bug 1602757)
Backed out changeset 8dc7e11dbb9c (bug 1602757)
Backed out changeset 8bacf5ad656e (bug 1602757)
Backed out changeset b15fc1090ac7 (bug 1612063)
Backed out changeset bd19c329c6b7 (bug 1602757)
2020-05-28 21:29:25 +03:00
Randell Jesup
2a1082919d
Bug 1602757: disable process caching/preallocation while testing browser_resource_uri r=zbraniecki
...
Differential Revision: https://phabricator.services.mozilla.com/D76534
2020-05-28 14:33:53 +00:00
Narcis Beleuzu
34d12babb2
Backed out 5 changesets (bug 1602757, bug 1612063) for marionette failures on test_crash.py
...
Backed out changeset 232da017dc6a (bug 1602757)
Backed out changeset 32851bed1929 (bug 1602757)
Backed out changeset 1c6a6bfaaeef (bug 1602757)
Backed out changeset 45e22f062bce (bug 1612063)
Backed out changeset a7d7edf158a4 (bug 1602757)
2020-05-23 23:45:59 +03:00
Randell Jesup
2208332d44
Bug 1602757: disable process caching/preallocation while testing browser_resource_uri r=zbraniecki
...
Differential Revision: https://phabricator.services.mozilla.com/D76534
2020-05-23 05:07:53 +00:00
Peter Van der Beken
af82496fc7
Bug 1639310 - Remove unnecessary implicitJSContext annotations. r=mccr8
...
Differential Revision: https://phabricator.services.mozilla.com/D76020
2020-05-19 20:48:21 +00:00
Dorel Luca
134e648c76
Backed out 6 changesets (bug 1631593) for Assertion failure in xpcom/base/nsCycleCollector.cpp. CLOSED TREE
...
Backed out changeset 35b4cd4bb12a (bug 1631593)
Backed out changeset a20b9fb485fc (bug 1631593)
Backed out changeset 8ade55be1042 (bug 1631593)
Backed out changeset ee3255e55ab3 (bug 1631593)
Backed out changeset 7d5a3d1035dc (bug 1631593)
Backed out changeset 90972e768c33 (bug 1631593)
2020-05-19 20:02:59 +03:00
Zibi Braniecki
3e0c621a68
Bug 1631593 - Lazify JSM initialization. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D71834
2020-05-19 16:28:28 +00:00
Zibi Braniecki
f6d6adc6b3
Bug 1631593 - Move aIsSync to Localization C++. r=stas,jfkthame
...
Differential Revision: https://phabricator.services.mozilla.com/D71679
2020-05-19 16:27:58 +00:00
Zibi Braniecki
749612612f
Bug 1629291 - Don't set l10n as cached if there was any error during initial translation. r=mossop
...
Differential Revision: https://phabricator.services.mozilla.com/D74818
2020-05-14 16:56:57 +00:00
Csoregi Natalia
9f074fab9b
Backed out changeset 4309266ff43d (bug 1629291) for frequent assertion failures on ErrorResult.h. CLOSED TREE
2020-05-13 10:23:18 +03:00
Zibi Braniecki
fabff274c8
Bug 1629291 - Don't set l10n as cached if there was any error during initial translation. r=mossop
...
Differential Revision: https://phabricator.services.mozilla.com/D74818
2020-05-12 23:22:03 +00:00
Zibi Braniecki
3701c67646
Bug 1631381 - Reject the initial translation if allocating an element fails. r=emilio
...
Differential Revision: https://phabricator.services.mozilla.com/D74343
2020-05-08 11:33:53 +00:00
Simon Giesecke
a84bea3851
Bug 1626570 - Improve handling of copying arrays in dom/l10n/. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D73651
2020-05-05 10:17:52 +00:00
Zibi Braniecki
816c29ddb0
Bug 1627809 - Make the DocumentL10n translate the document when initialized lazily. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D71224
2020-04-30 17:57:06 +00:00
Zibi Braniecki
ff33f89421
Bug 1627809 - Make DocumentL10n translate all roots and add ConnectRoot with initial translation. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D70981
2020-04-30 17:56:54 +00:00
Zibi Braniecki
4084d5c48b
Bug 1627809 - Move DocumentL10n construction earlier. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D70976
2020-04-30 17:56:41 +00:00
Zibi Braniecki
1427870732
Bug 1627809 - Move Localization.jsm construction to Localization constructor. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D70973
2020-04-30 18:22:38 +00:00
Zibi Braniecki
30bcee56da
Bug 1627809 - Rename *DocumentTranslation to *Translation. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D70971
2020-04-30 17:55:26 +00:00
Simon Giesecke
c0341c3791
Bug 1628715 - Part 10: Activate nodiscard attributes on AppendElement(s). r=xpcom-reviewers,nika,peterv
...
Differential Revision: https://phabricator.services.mozilla.com/D70834
2020-04-24 14:34:15 +00:00