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

10323 Коммитов

Автор SHA1 Сообщение Дата
Andrew McCreight ea6021b769 Bug 1494127 - Fix trivial calls to do_QueryInterface that return an nsresult r=smaug
Calls to do_QueryInterface to a base class can be replaced by a static
cast, which is faster.

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

--HG--
extra : moz-landing-system : lando
2018-10-01 21:38:43 +00:00
Andrew McCreight 837f0af066 Bug 1493737 - Fix many trivial calls to do_QueryInterface r=smaug
If class A is derived from class B, then an instance of class A can be
converted to B via a static cast, so a slower QI is not needed.

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

--HG--
extra : moz-landing-system : lando
2018-10-01 21:38:01 +00:00
Ehsan Akhgari 999d070b06 Bug 1494145 - Reland bug 1491061 part 3 again (this time without the browser.contentblocking.rejecttrackers.ui.enabled pref) 2018-09-25 23:27:25 -04:00
Ekanan Ketunuti ced19a86b0 Bug 1493920 - Add words to en-US dictionary and remove the problematic word "hangry". r=ehsan 2018-09-26 06:49:22 +07:00
Andrea Marchesini b958c6f170 Bug 1260399 - Remove deprecated messages in nsICookieManager methods - part 3 - nsICookieManager.cookieExists, r=ehsan 2018-09-24 11:37:57 +02:00
Andrea Marchesini 61a7f9a598 Bug 1260399 - Remove deprecated messages in nsICookieManager methods - part 1 - nsICookieManager.add(), r=ehsan 2018-09-24 11:37:56 +02:00
Ehsan Akhgari f62ff8f898 Bug 1493148 - Backout changeset 7a1ee0e4b6d7 (bug 1491061 part 3) 2018-09-21 15:25:16 -04:00
Ehsan Akhgari 8ee6edfff8 Bug 1491061 - Part 3: Update existing tests that require the content blocking prefs; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D6356
2018-09-20 13:43:05 -04: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
Jorg K 73b02cccc3 Bug 1490212 - Follow-up: Remove NS_{JA,RU,UK}*DETECTOR_CID defines. r=hsivonen 2018-09-14 01:07:00 +03:00
Ehsan Akhgari 6d56a36888 Bug 1489793 - Part 1: Remove the XPCOM component registration for EditorSpellCheck; r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D5371
2018-09-12 18:58:53 -04:00
Jorg K 2ed840c40b Bug 1490212 - Remove the *XPCOMStringDetector classes. r=hsivonen 2018-09-12 10:11:00 +03:00
Ekanan Ketunuti 4999563d5f Bug 1490541 - Bug - Add words to en-US dictionary. r=ehsan 2018-09-12 16:48:38 -04:00
shindli 53d4f9c065 Backed out 2 changesets (bug 1489793) for failures in editor/spellchecker/tests/test_bug1219928.html
Backed out changeset 9d793ccd3fca (bug 1489793)
Backed out changeset 30219dab424e (bug 1489793)
2018-09-12 05:59:31 +03:00
Ehsan Akhgari d536808f38 Bug 1489793 - Part 1: Remove the XPCOM component registration for EditorSpellCheck; r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D5371
2018-09-11 19:17:46 -04:00
Ehsan Akhgari d212ff2809 Bug 1489787 - Part 1: Remove nsITextServicesFilter and replace nsIEditorSpellCheck.setFilter() with nsIEditorSpellCheck.setFilterType(); r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D5353
2018-09-10 08:14:59 -04:00
Ehsan Akhgari 38e3c284c9 Bug 1488659 - Part 2: Remove some dead code and mark the remaining detector classes as final; r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D5393
2018-09-10 07:59:42 -04:00
Ehsan Akhgari 15fb2860c4 Bug 1488659 - Part 1: Remove the XPCOM registrations for character detector classes; r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D5392
2018-09-10 07:59:42 -04:00
Ekanan Ketunuti f3f6216cc7 Bug 1488970 - Add words to en-US dictionary. r=Ehsan 2018-09-06 11:49:36 +07:00
Ehsan Akhgari 6bbaf2cf8c Bug 1489147 - Remove the XPCOM component registration for nsXPConnect; r=mccr8
We move the XPConnect() singleton accessor to nsIXConnect to make it available for consumers outside of XPConnect.  Most of the consumers of the singleton accessor just need the nsIXPConnect public interface, except for the IsShuttingDown() member which this patch adds to nsIXPConnect as well.

Differential Revision: https://phabricator.services.mozilla.com/D5151
2018-09-06 16:39:35 -04:00
shindli 2a86142e74 Backed out changeset d4ae1994c20c (bug 1489147) for bustages in JSDebugger.cpp on a CLOSED TREE 2018-09-06 22:12:44 +03:00
Ehsan Akhgari bb7fcd9d69 Bug 1489147 - Remove the XPCOM component registration for nsXPConnect; r=mccr8
We move the XPConnect() singleton accessor to nsIXConnect to make it available for consumers outside of XPConnect.  Most of the consumers of the singleton accessor just need the nsIXPConnect public interface, except for the IsShuttingDown() member which this patch adds to nsIXPConnect as well.

Differential Revision: https://phabricator.services.mozilla.com/D5151
2018-09-06 14:52:07 -04:00
Ehsan Akhgari bff765cf05 Bug 1488784 - Part 2: Remove the XPCOM component registration for nsCookiePermission; r=jdm
Differential Revision: https://phabricator.services.mozilla.com/D5038
2018-09-05 11:56:17 -04:00
Jonathan Kew b5d54610de Bug 1487098 - Reorder boolean expression to take advantage of short-circuiting. r=decoder 2018-09-01 22:41:59 +01:00
Gurzau Raul f9a81a3e5a Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-08-31 00:51:52 +03:00
Kershaw Chang 08bb991b4d Bug 1357676 - Modify failed tests r=jdm
We've introduced a new pref network.cookie.quotaPerHost and also a rule that the value of network.cookie.maxPerHost should always be bigger than network.cookie.quotaPerHost. So, before changing the value of network.cookie.maxPerHost, we have to set network.cookie.quotaPerHost first.
This patch only sets network.cookie.quotaPerHost equal to network.cookie.maxPerHost - 1 in all failed tests.

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

--HG--
extra : moz-landing-system : lando
2018-08-30 15:41:37 +00:00
Michael Kaply f58d28b6fd Bug 1487372 - Update Autoconfig sandboxing URL. r=rtestard 2018-08-30 07:34:28 -05:00
Nicholas Nethercote fe34f19459 Bug 1486690 - Rename nsMemory::Clone() and remove unnecessary checks after it. r=glandium
The 'x' in the new name makes it clearer that it's infallible.

--HG--
extra : rebase_source : 51fd946c482befe8a8ca5bd88ecc967971f455da
2018-08-28 15:59:19 +10: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
Ekanan Ketunuti 780ed8d1ec Bug 1486338 - Add words to en-US dictionary. r=ehsan 2018-08-27 08:20:40 +07:00
Ehsan Akhgari a83bd2cb71 Bug 1486185 - Part 1: Make the Disable Protection button in the control centre UI work for the reject tracker cookie behavior; r=baku 2018-08-28 08:29:32 -04:00
Kris Maglione 3a5c05e76f Bug 1484496: Part 5e - Convert remaining nsISimpleEnumerator users to use JS iteration. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D3733

--HG--
extra : rebase_source : c0fac176d7b3d840c4dbb14f8d95ccfc7f83a5a8
extra : histedit_source : a92c40117d0808a3ad68c972f622a7a42c9ae8ba
2018-08-18 18:13:14 -07:00
Kris Maglione 2dee0aae3c Bug 1484496: Part 4b - Add intrinsic type information to most nsSimpleEnumerators. r=froydnj
This allows JS callers to automatically get the correct types during
interation, without having to explicitly specify them.

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

--HG--
extra : rebase_source : b708f382d8ea571d199c669bfed5b5a7ca9ffac4
extra : histedit_source : 7df6feb82088c8a5ca45dc28fe4d2b852c177fee
2018-08-18 21:06:32 -07:00
Ehsan Akhgari c3fdede510 Bug 1485114 - Avoid creating nsPermission objects in the permission manager needlessly; r=nika 2018-08-21 16:23:57 -04:00
Ehsan Akhgari 12e9766425 Bug 1484868 - Add the nsIPermissionManager::removeByType() API; r=nika 2018-08-21 15:10:13 -04:00
Ehsan Akhgari edb2dd1da5 Bug 1483541 - DeCOMtaminate nsAutoConfig; r=mkaply 2018-08-16 12:56:54 -04:00
Ekanan Ketunuti 35acc70c65 Bug 1481231 - Add words to en-US dictionary. r=Ehsan
--HG--
extra : amend_source : 9f3778a6d2913671f147a31f917257e62f6fbf49
2018-08-07 08:13:32 +07:00
Michael Kaply 63b4018555 Bug 1479857 - Use pref for Autoconfig on release, off by default r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D2801

--HG--
extra : moz-landing-system : lando
2018-08-09 14:57:42 +00: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
Boris Zbarsky d4993da381 Bug 1476142 part 4. Remove some unnecessary QIs on window in various parts of the tree. r=kmag
The crashtest was not testing anything useful, because getInterface is no longer exposed to web content.
2018-08-02 15:26:48 -04:00
Jan de Mooij 3af36d3d86 Bug 1479363 part 10 - Use JSAutoRealm instead of JSAutoRealmAllowCCW in other directories. r=mrbkap 2018-08-02 19:30:17 +02: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
Masayuki Nakano 0fadf6b9da Bug 1467796 - part 3: Make mozInlineSpellChecker::ReplaceWord() use TextEditor::ReplaceTextAsAction() r=m_kato,smaug
mozInlineSpellChecker::ReplaceWord() is used for replacing misspelled word
with a word.  So, this is necessary to be distinguished from insertText
command when we implement InputEvent.inputType.  So, we should make it
use TextEditor::ReplaceTextAsAction() instead (same as autocomplete).

This patch makes TextEditor::ReplaceTextAsAction() take optional argument
to make callers can specify replace range.  Then, the range is a spellchecker
selection range if the caller is mozInlineSpellChecker::ReplaceWord().
Prior to this patch, it clones the range for normal selection, but it's
expensive and we may be able to reuse cached range of Selection in this case.
So, this patch makes Selection::AddRangeInternal() checks if given range is
in another Selection and use mCachedRange as far as possible.

MozReview-Commit-ID: JIOTTsxlj4Q

--HG--
extra : rebase_source : 7c26b0255f08608ebe8c7045c9bcdca1dc70cadf
2018-07-04 22:51:55 +09:00
Masayuki Nakano efd8891532 Bug 1467796 - part 1: Split TextEditor::InsertTextAsAction() to itself and TextEditor::InsertTextAsSubAction() for internal use r=m_kato
For bug 1465702, we need to split TextEditor::InsertTextAsAction() to 2 methods.
One is for root of handling an edit operation.  The other is for internal use,
e.g., handling as a part of an edit operation.  Therefore, this patch creates
InsertTextAsSubAction() for the internal use.

MozReview-Commit-ID: CIU5zdp0owP

--HG--
extra : rebase_source : 79b58fb01e48d1831bbdea01ed7b1a26dcd1821b
2018-07-02 20:12:22 +09:00
Andrea Marchesini c0f96019e1 Bug 1430095 - Get rid of network.cookie.prefsMigrated, network.cookie.lifetime.enabled and network.cookie.lifetime.behavior prefs, r=valentin 2018-08-01 14:41:21 +02:00
Andrea Marchesini 5991b3ebdd Bug 1457170 - Get rid of nsICookieService::ACCEPT_FOR_N_DAYS, r=valentin 2018-08-01 14:41:21 +02:00
Andrea Marchesini c8f7722310 Bug 1479405 - Remove comments related to pref network.cookie.lifetimePolicy == 1-dontUse, r=valentin 2018-07-30 14:16:21 +02:00
Jan de Mooij 80adc67aba Bug 1478955 part 1 - Rename JSAutoRealm to JSAutoRealmAllowCCW. r=luke 2018-07-28 12:12:26 +02:00
Ekanan Ketunuti 0357874225 Bug 1477961 - Add words to en-US dictionary. r=ehsan 2018-07-27 06:59:07 +07: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