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

270 Коммитов

Автор SHA1 Сообщение Дата
Barret Rennie c1d06a6c0c Bug 1289211 - Rename InfallibleTArray to nsTArray in extensions/spellcheck/ r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D36952

--HG--
extra : moz-landing-system : lando
2019-07-10 03:28:47 +00:00
Ryan VanderMeulen d4d246dca3 Bug 1517477 - Upgrade Hunspell to version 1.7.0. r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D15652

--HG--
extra : moz-landing-system : lando
2019-07-03 16:18:23 +00:00
Victor Porof 5af464dcc4 Bug 1561435 - Format extensions/, a=automatic-formatting
# ignore-this-changeset

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

--HG--
extra : source : 31cb194f2a6651332aa71a41c0f06a29daf8a186
2019-07-05 10:46:07 +02:00
Makoto Kato cb97dec989 Bug 1560517 - Update LICENSE, README and license.hunspell to 1.6.1 r=RyanVM
No one includes `license.hunspell`, so we don't need our custimze block (`#include "config.h"`)

Also, some files isn't updated to 1.6.1, so we should update it.

Depends on D35516

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

--HG--
extra : moz-landing-system : lando
2019-06-21 14:26:53 +00:00
Makoto Kato e20f6f80c7 Bug 1560517 - Add update script and patch files for hunspell library r=masayuki
Add `update.sh` script and patch files to update hunspell library easily.

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

--HG--
extra : moz-landing-system : lando
2019-06-21 18:57:35 +00:00
Boris Zbarsky d0cff2d0c6 Bug 1556925 part 2. Stop using [array] in mozISpellCheckingEngine.getDictionaryList. r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D33744

--HG--
extra : moz-landing-system : lando
2019-06-05 12:57:32 +00:00
Boris Zbarsky bfd87b53d8 Bug 1556925 part 1. Stop using [array] in mozISpellCheckingEngine.suggest. r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D33743

--HG--
extra : moz-landing-system : lando
2019-06-05 12:50:13 +00:00
Makoto Kato d75677fa6d Bug 1524443 - Hold mozSpellChecker when using async IPC. r=masayuki
When using `CheckAsync` IPC, we don't hold `mozSpellChecker`. It causes that
`mozSpellChecker` may be destroyed during IPC call.

The destructor of `mozSpellChecker` destroys actor of spellchecker IPC via
`Send__delete__`. Although IPC rejects pending promises of async IPC during
destroying actor, it cannot remove replay messages from parent process.
So route error occurs.

So we have to keep `mozSpellChecker` during async IPC.

And we cannot convert attached test case to crashtest or mochitest since this
depends on navigation and timing. So I don't add it.

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

--HG--
extra : moz-landing-system : lando
2019-05-08 13:21:55 +00:00
Sylvestre Ledru e226046cb8 Bug 1547143 - Format the tree: Be prescriptive with the pointer style (left) r=Ehsan
# ignore-this-changeset

Depends on D28954

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

--HG--
extra : moz-landing-system : lando
2019-05-01 08:47:10 +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
Kris Maglione b2f85650a1 Bug 1524687: Part 12 - Convert everything else to static registration. r=erahm
--HG--
extra : source : 625f71135038f79c075f758e316fbb00097c9a18
extra : intermediate-source : 7a1ef487a9e74d66b112034051e49b77023860b8
extra : histedit_source : 88d19dbee4a99faa191e49e2847c4c59aba05b0c%2C5ee702f97153152d31124e0c5f3e8318cbeb3195
2019-01-29 16:03:41 -08:00
arthur.iakab 470dbf03b6 Backed out 5 changesets (bug 1524687) for causing build bustages on platform.h CLOSED TREE
Backed out changeset 0f06a6b51bfe (bug 1524687)
Backed out changeset 7a1ef487a9e7 (bug 1524687)
Backed out changeset accad7b4cbc7 (bug 1524687)
Backed out changeset eb33f7e6467c (bug 1524687)
Backed out changeset 86cf09db340b (bug 1524687)
2019-02-21 02:04:02 +02:00
Kris Maglione 95c0cf7aa9 Bug 1524687: Part 12 - Convert everything else to static registration. r=erahm
--HG--
extra : rebase_source : ccc1b4f8559152237e523b67ea76e2b406c1cb11
extra : intermediate-source : e8ad5619116c31fc4d38e0e789ddb9b5d2a5bb25
extra : source : 625f71135038f79c075f758e316fbb00097c9a18
2019-01-29 16:03:41 -08:00
Jonathan Kingston 3421b8fcff Bug 1520868 - Replacing AsyncOpen2 with AsyncOpen always r=valentin
Replacing js and text occurences of asyncOpen2
Replacing open2 with open

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

--HG--
rename : layout/style/test/test_asyncopen2.html => layout/style/test/test_asyncopen.html
extra : moz-landing-system : lando
2019-02-12 16:08:25 +00:00
Makoto Kato eb0becd162 Bug 1503491 - Part 2. Remove PRemoteSpellcheckEngine::Check. r=mccr8,masayuki
Let's going away due to unused.

Depends on D19303

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

--HG--
extra : moz-landing-system : lando
2019-02-10 22:28:45 +00:00
Alex Gaynor 0f01791ffc Bug 1512990 - Part 4 - remove declarations of Recv/Answer methods from IPDL protocol base class; r=froydnj
For cases where the class has direct calls (that is, we cast `this` to the
subclass before making the call) no longer declare Recv/Answer methods on the
base class at all. This should ensure that slots for them are not generated in
vtables, and also allow the derived class to choose the method signature (e.g.
whether it wants to take something by reference or by value).

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

--HG--
extra : moz-landing-system : lando
2019-02-06 15:58:43 +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
Ehsan Akhgari e5e885ae31 Bug 1521000 - Part 2: Adjust our clang-format rules to include spaces after the hash for nested preprocessor directives r=sylvestre
# ignore-this-changeset

--HG--
extra : amend_source : 7221c8d15a765df71171099468e7c7faa648f37c
extra : histedit_source : a0cce6015636202bff09e35a13f72e03257a7695
2019-01-18 10:16:18 +01:00
Makoto Kato 65e177f953 Bug 1502661 - Part 1. Add async IPC to check word by spellchecker. r=masayuki
Actually we have no async IPC for spellchecker, so I would like to add async
IPC to check word.

When using full check, spellchecker requests a lot of words to check word. New
async IPC should allow multiple words per IPC to reduce IPC call.

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

--HG--
extra : rebase_source : e54177c1779dc7e2e48c189a65cbc212b4aa519a
2018-11-17 23:37:11 +09:00
Jean-Yves Avenard 99f56c67bc Bug 1512214 - Use promise chaining. r=m_kato
Differential Revision: https://phabricator.services.mozilla.com/D13952

--HG--
extra : moz-landing-system : lando
2018-12-07 17:47:19 +00:00
Jean-Yves Avenard 48517afae6 Bug 1512298 - Make IPDL MozPromise exclusive. r=gerald,froydnj
MozPromise most common use is to have an single or exclusive listener. By making the MozPromise generated by IPDL exclusive we can also use move semantics.

While at it, we also use move semantics for the ResponseRejectReason and via the callback's reject method so that the lambda used with the MozPromise::Then can be identical to the one used by the IPDL callback.
As it currently is, it provides no advantage over a copy as it's just an enum; however, this will facilitate future changes where it may not be.

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

--HG--
extra : moz-landing-system : lando
2018-12-11 19:22:26 +00:00
Mark Banner 8c00ef3f30 Bug 1512052 - Add more .eslintrc.js files for test directories. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D13746

--HG--
extra : moz-landing-system : lando
2018-12-11 13:15:08 +00:00
Ciure Andrei ed617be144 Backed out 2 changesets (bug 1512052)for causing build bustages CLOSED TREE
Backed out changeset 4773a3f46c22 (bug 1512052)
Backed out changeset 2f48c5afbe57 (bug 1512052)

--HG--
rename : browser/components/attribution/test/xpcshell/.eslintrc.js => browser/components/attribution/test/.eslintrc.js
2018-12-05 05:47:39 +02:00
Mark Banner 8256078237 Bug 1512052 - Add more .eslintrc.js files for test directories. r=mossop
Depends on D13745

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

--HG--
extra : moz-landing-system : lando
2018-12-04 22:27:35 +00:00
Sylvestre Ledru 265e672179 Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format
# ignore-this-changeset

--HG--
extra : amend_source : 4d301d3b0b8711c4692392aa76088ba7fd7d1022
2018-11-30 11:46:48 +01:00
byron jones f7dfd8df9e Bug 1508256 - replace hunspell's README.mozilla with moz.yaml; r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D12298

--HG--
rename : extensions/spellcheck/hunspell/src/license.hunspell => extensions/spellcheck/hunspell/src/LICENSE
extra : moz-landing-system : lando
2018-11-20 01:33:40 +00:00
Makoto Kato a9fe8aa60c Bug 1504913 - Part 1. Use mozSpellChecker directly instead of nsISpellChecker. r=masayuki
When creating an instance of nsISpellChecker, we always use
mozSpellChecker::Create.  So we should use mozSpellChecker directly instead of
nsISpellChecker.

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

--HG--
extra : rebase_source : 0feffa60e6dc788904d212a77acbf416279af083
extra : histedit_source : b89cc8270c2df70ae414479f43ac30e8aa0a3d42
2018-11-06 12:31:36 +09:00
Ehsan Akhgari ad7b8c9b02 Bug 1491569 - Remove the XPCOM registration for mozSpellChecker; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D5946
2018-09-15 20:13:51 -04:00
Nicholas Nethercote ac5efebb4b Bug 1486690 - Remove unnecessary checks after moz_xmalloc() calls. r=glandium
There are surprisingly many of them.

(Plus a couple of unnecessary checks after `new` calls that were nearby.)

--HG--
extra : rebase_source : 47b6d5d7c5c99b1b50b396daf7a3b67abfd74fc1
2018-08-28 15:56:01 +10:00
Makoto Kato 5074358d1a Bug 1480699 - Use IPDL's promise instead in PRemoteSpellcheckEngine. r=masayuki
Summary:
When implementing async call for PRemoteSpellcheckEngine, IPDL doesn't support
Promise.  But now, IPDL supports it, so I should convert to it to avoid
unexpected leak.

And SetDictionary supports empty string as parameter to clear dictionary.  So
SetDictionaryFromList should support empty string to clear it to remove
SetDictionary sync call.

Reviewers: masayuki

Tags: #secure-revision

Bug #: 1480699

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

--HG--
extra : rebase_source : 17fe76e6484f2af4021fe0d963e4fc47f53bebd8
2018-07-31 16:36:43 +09:00
Brian Hackett 3c13dd9f31 Bug 1479641 - Don't record counting allocator amount, r=froydnj.
--HG--
extra : rebase_source : 23de9644662c1f9ed36429074837e54bb7cac868
2018-07-31 19:22:54 +00:00
Makoto Kato efbf30c79f Bug 1477917 - Part 2. Use AString instead of wstring in spellchecker. r=masayuki
The language parameter of mozIPersonalDictionary is unused, so we should remove
this from parameter.  Then, no one uses mLanguage member of mozHunspell now.

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

--HG--
extra : moz-landing-system : lando
2018-07-26 03:13:51 +00:00
Makoto Kato 229108931f Bug 1477917 - Part 1. Remove unused methods for spellchecker. r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D2348

--HG--
extra : moz-landing-system : lando
2018-07-26 03:09:14 +00:00
Sylvestre Ledru c86ee15013 Bug 1477540 - Use RemoveLastElement instead of PopLastElement r=bhackett
The later is only interesting when the returned value is used

MozReview-Commit-ID: 8CF5HSkcttf

--HG--
extra : rebase_source : deb1761dd017108c9dba1d831a996baf54c7f425
2018-07-22 16:23:57 +02:00
Brian Hackett 9624bb7849 Bug 1464890 - Use integers instead of raw pointer values as PRemoteSpellCheck IDs, r=ehsan.
--HG--
extra : rebase_source : 3eac7443b7e0c382e432ff2b7c50f21efb23e668
2018-07-20 23:57:26 +00:00
Makoto Kato 445dde1b84 Bug 1469759 - Part 2. Get rid of mozISpellI18NManager. r=masayuki
No one uses mozISpellI18NManager, so we should get rid of this interface.

MozReview-Commit-ID: 7f0Cy3tHnt1

--HG--
extra : rebase_source : 414c81cd4bec07124a271138e60ca3fb62ccc439
2018-07-02 11:21:04 +09:00
Miko Mynttinen 4c85ef17cc Bug 1465060 - Part 1: Fix warnings for std::move() use r=froydnj
MozReview-Commit-ID: HpdFXqQdIOO

--HG--
extra : rebase_source : 1e7eea4f2d4ec16ec0c559a8afb26976ddbf4d07
2018-06-01 17:59:07 +02:00
arthur.iakab 7e765f798b Backed out 2 changesets (bug 1465060) for build bustages on security/sandbox/linux/reporter/SandboxReporter.cpp
Backed out changeset 7c8905b6b226 (bug 1465060)
Backed out changeset 10446073eca8 (bug 1465060)
2018-06-03 19:25:41 +03:00
Miko Mynttinen 8d9dc85cd4 Bug 1465060 - Part 1: Fix warnings for std::move() use r=froydnj
MozReview-Commit-ID: HpdFXqQdIOO

--HG--
extra : rebase_source : 619d0e0ff63a2453c80f0c4d9beb906d43fa9b01
2018-06-01 17:59:07 +02:00
Emilio Cobos Álvarez fffb25b74f Bug 1465585: Switch from mozilla::Move to std::move. r=froydnj
This was done automatically replacing:

  s/mozilla::Move/std::move/
  s/ Move(/ std::move(/
  s/(Move(/(std::move(/

Removing the 'using mozilla::Move;' lines.

And then with a few manual fixups, see the bug for the split series..

MozReview-Commit-ID: Jxze3adipUh
2018-06-01 10:45:27 +02:00
Kris Maglione c4035f104c Bug 1463637: Remove mozilla-config.h hacks for Hunspell extra includes. r=ted
MozReview-Commit-ID: 2yBlykhQsyV

--HG--
extra : rebase_source : d51a663c5f7d4c9cce09c649003c5577fe5952d0
2018-05-22 20:36:39 -07:00
Kris Maglione 2fe5dce32f Bug 1457321: Part 3 - Load built-in dictionaries from omnijar rather than scanning directories. r=aswan,ehsan
MozReview-Commit-ID: CgYHrcJsYfE

--HG--
extra : rebase_source : 5abbdcb64b30e8f7f3b568b4adf7a047b2a1bf79
2018-04-27 13:43:50 -07:00
Kris Maglione f8506d46d0 Bug 1460600: Remove unsupported --enable-system-hunspell flag. r=glandium
Our bundled Hunspell now significantly differs from upstream Hunspell. Most
importantly, it supports loading dictionaries from jar: URIs, which is now a
requirement for loading bundled and extension dictionaries. This means that
system Hunspell libraries are no longer compatible with our spell checker
code. We should remove the option to use them so that users don't fall into
the trap of trying to use them.

MozReview-Commit-ID: 2ihJe6YOnGf

--HG--
extra : rebase_source : ceb091b9475a2b101156405a02a60015fc36da17
2018-05-10 10:36:53 -07:00
Kris Maglione 6b12d08f7d Bug 1462937: Update callers to use nsIFile::GetDirectoryEntries as a nsIDirectoryEnumerator. r=froydnj
MozReview-Commit-ID: Iv4T1MVAF5

--HG--
extra : rebase_source : 1c518883d082884db7f9323a5acc20361228c26b
extra : histedit_source : 70a73c23d1199d3bfbb5379c78930401166c094b
2018-05-19 20:17:45 -07:00
Kris Maglione d9040aac36 Bug 1457072: Get rid of unpacked dictionaries and the remaining unpacked install code. r=aswan
MozReview-Commit-ID: K36cUkKtuOB

--HG--
extra : rebase_source : 860e0ebe7bc0589eadb3ddf8976d19bab01b6ce4
2018-04-26 01:27:48 -07:00
Cosmin Sabou 68fdb6cf4f Merge inbound to mozilla-central. a=merge 2018-04-27 13:04:36 +03:00
Kris Maglione f55bef228c Bug 1410214: Part 3 - Support packed WebExtension dictionaries. r=aswan,masayuki
MozReview-Commit-ID: 6nrw0IIe4UG

--HG--
extra : rebase_source : 3e2c2b24bd7a9136d326da9bea3d1dc197cb908b
extra : absorb_source : 9f7ab2b81c220463b82a74cb64e93528a54ff2c4
2018-04-26 13:26:05 -07:00
Kris Maglione e2d0c50adb Bug 1410214: Part 2 - Add a stub Hunspell FileMgr that allows it to read URLs. r=masayuki
This will allow us to store dictionaries in packed extension XPIs and/or
omni.ja, which should give us a significant startup performance win.

MozReview-Commit-ID: K7fzJJAywjC

--HG--
extra : rebase_source : 4022d27bc4896d8ef27d4141b6c9bc0dd9e1c0a0
extra : absorb_source : 04bdcab8ff8005a0537d1747ba52e84946e7806a
2018-04-26 13:29:04 -07:00
Kris Maglione d3904fd92f Bug 1410214: Part 1 - Implement support for WebExtension-style dictionary add-ons. r=aswan,gandalf
MozReview-Commit-ID: 3oylyEBgrzB

--HG--
extra : rebase_source : 640a71111fb84506906a2b150ea3d18339ebbdab
2018-04-26 13:32:38 -07:00
Doug Thayer ce5461c0d3 Bug 887889 - Fix leak in RemoteSpellCheckingEngineChild r=Ehsan
The work to migrate to Sqlite.jsm seems to have caused a timing problem
in our tests where shutdown the content process while this IPC message
is still unresolved. This causes us to destroy RemoteSpellCheckingEngineChild
without it having processed its RecvNotiy..., leading to the promise being
leaked. As far as I can tell this resolves all of our leak issues on try.

MozReview-Commit-ID: GdwVIp5dj1m

--HG--
extra : rebase_source : b7bf5838c53e40b49bea17df123028a2dbd26e5e
2018-04-19 14:33:18 -07:00