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

518 Коммитов

Автор SHA1 Сообщение Дата
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
Lina Cambridge ac99a741ef Bug 1511974 - Set up the mock Push socket in `test_permissions.html` to avoid network connections. a=testonly
Differential Revision: https://phabricator.services.mozilla.com/D13828

--HG--
extra : moz-landing-system : lando
2018-12-05 16:46:48 +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
Ehsan Akhgari 68a4d46702 Bug 1507677 - Add nsIContentPermissionRequest.topLevelPrincipal r=baku
This is required for the storage access API permission prompt.

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

--HG--
extra : moz-landing-system : lando
2018-11-20 01:52:47 +00:00
Andrew Halberstadt 004519ecc4 Bug 1470266 - [ci] Schedule serviceworker-e10s xpcshell tasks with linux64/debug on mozilla-central, r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D11380

--HG--
extra : moz-landing-system : lando
2018-11-08 22:08:16 +00:00
Ehsan Akhgari 54b2e44577 Bug 1502747 - Remove nsIContentPermissionType.access and all of its supporting code r=snorp,baku
This field was originally added for the b2g-only DeviceStorage API,
and isn't used for anything else right now.

This reverts the remaining parts of bug 1043136 and bug 1043136
as well as some support code for mobile.

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

--HG--
extra : moz-landing-system : lando
2018-10-30 07:48:55 +00:00
Julian Descottes 2fcd6cb020 Bug 1499096 - Update tests using ok() to is();r=Standard8
This changeset updates all the test that were wrongly using ok() and wanted to
use is() AND for which the assert is still passing without any modification
required.

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

--HG--
extra : moz-landing-system : lando
2018-10-23 07:12:23 +00:00
Ethan Glasser-Camp 44280cf5ff Bug 1467550: update no-op version ID, r=lina
Differential Revision: https://phabricator.services.mozilla.com/D8575

--HG--
extra : moz-landing-system : lando
2018-10-12 16:45:18 +00:00
Andrew Halberstadt 26da3328fb Bug 1470266 - [ci] Schedule serviceworker-e10s mochitest tasks with linux64/debug on mozilla-central, r=jmaher
This duplicates all the mochitest, based tests except with
dom.serviceWorkers.parent_intercept set to true. For now they are only run on
mozilla-central with linux64/debug.

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

--HG--
extra : moz-landing-system : lando
2018-10-05 19:12:27 +00:00
Cosmin Sabou 8bc1a4e74e Backed out changeset bf17ad5b022f (bug 1470266) for breaking test-verify. 2018-10-05 18:30:29 +03:00
Andrew Halberstadt 5fef7a02a1 Bug 1470266 - [ci] Schedule serviceworker-e10s mochitest tasks with linux64/debug on mozilla-central, r=jmaher
This duplicates all the mochitest, based tests except with
dom.serviceWorkers.parent_intercept set to true. For now they are only run on
mozilla-central with linux64/debug.

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

--HG--
extra : moz-landing-system : lando
2018-10-05 14:55:09 +00:00
Bogdan Tara df695afa1d Backed out changeset 423ba8ffc8d7 (bug 1470266) for robocop failures CLOSED TREE 2018-10-05 06:46:24 +03:00
Andrew Halberstadt 92eef97335 Bug 1470266 - [ci] Schedule serviceworker-e10s mochitest tasks with linux64/debug on mozilla-central, r=jmaher
This duplicates all the mochitest, based tests except with
dom.serviceWorkers.parent_intercept set to true. For now they are only run on
mozilla-central with linux64/debug.

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

--HG--
extra : moz-landing-system : lando
2018-10-05 02:05:12 +00:00
Dipen Patel aeed887ff8 Bug 1468222 Consolidate nsISSLStatus info nsITransportSecurityInfo r=Gijs,snorp,jcj,mcmanus,sfraser,keeler,baku,ato
Move all fields of nsISSLStatus to nsITransportSecurityProvider
Remove nsISSLStatus interface and definition
Update all code and test references to nsISSLStatus
Maintain ability to read in older version of serialized nsISSLStatus.  This
is verified with psm_DeserializeCert gtest.

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

--HG--
extra : moz-landing-system : lando
2018-09-11 00:07:30 +00:00
Csoregi Natalia 0400fe7b57 Backed out changeset bd8baf88f373 (bug 1468222) for test_security-info-parser.js failures. CLOSED TREE 2018-09-08 03:16:25 +03:00
Dipen Patel 0679e09a9a Bug 1468222 Consolidate nsISSLStatus info nsITransportSecurityInfo r=snorp,ato,sfraser,keeler,baku,mcmanus,Gijs
Move all fields of nsISSLStatus to nsITransportSecurityProvider
Remove nsISSLStatus interface and definition
Update all code and test references to nsISSLStatus
Maintain ability to read in older version of serialized nsISSLStatus.  This
is verified with psm_DeserializeCert gtest.

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

--HG--
extra : moz-landing-system : lando
2018-09-07 22:50:17 +00: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
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
Ethan Glasser-Camp 57732c952b Bug 1472238: compare old and new versions and prefer what we had r=lina
When a component registers after having already registered once, there
are two sources of truth for the version ID: one implicit in the
connection to Megaphone, and one coming from the component call to
addListener. Try to handle this more thoroughly.

MozReview-Commit-ID: EsYgO0mzQ9w

--HG--
extra : rebase_source : c4823e44733f218da842aabf5c0961500a461c82
2018-06-29 12:49:55 -04:00
Ethan Glasser-Camp 28d4573142 Bug 1472238: ensure version is not an empty string r=lina
MozReview-Commit-ID: CbPFJkl3vGr

--HG--
extra : rebase_source : 01ebbd07b8f5e36fbe4dbe985edfa1549125ec77
2018-06-29 12:43:42 -04:00
Ethan Glasser-Camp 23f3f097ec Bug 1472238: hook up alwaysConnect pref changes r=lina
The original code had a bug in that going from disabled to enabled
would always connect, whereas actually we want to only connect if
there are records (or alwaysConnect is on).

We maintain the existing behavior that if the user has set
dom.push.connection.enabled to false, we don't connect, figuring that
this is the way a privacy-conscious user might indicate that they
don't want to talk to "the mothership".

MozReview-Commit-ID: ClbhYhnHVog

--HG--
extra : rebase_source : b404f4cf327590d9e55e3d9ceefbd2660715f7b3
2018-06-29 12:33:20 -04:00
Boris Zbarsky 1312fcd10f Bug 1476145 part 5. Stop using getInterface(nsIDOMWindowUtils) in DOM code. r=mccr8 2018-07-24 19:47:41 -04:00
Kris Maglione 7aa3564a28 Bug 1477579: Part 3 - Avoid duplicating static strings in category manager entries. r=froydnj
Much like the component manager, many of the strings that we use for category
manager entries are statically allocated. There's no need to duplicate these
strings.

This patch changes the category manager APIs to take nsACStrings rather than
raw pointers, and to pass literal nsCStrings when we know we have a literal
string to begin with. When adding the category entry, it then skips making
copies of any strings with the LITERAL flag.

MozReview-Commit-ID: EJEcYSdNMWs
***
amend-catman

--HG--
extra : source : aa9a8f18e98f930a3d8359565eef02f3f6efc5f9
extra : absorb_source : 81a22ab26ee8017ac43321ff2c987d8096182d37
2018-07-23 17:41:06 -07:00
Brindusan Cristian 91a3707d5f Backed out 3 changesets (bug 1477579) for build bustages on xpcshell\selftest.py and crashtest failures on /components/nsComponentManager.cpp. CLOSED TREE
Backed out changeset aa9a8f18e98f (bug 1477579)
Backed out changeset 5fb0b7746a5d (bug 1477579)
Backed out changeset 8359f8fe4184 (bug 1477579)
2018-07-24 04:55:03 +03:00
Kris Maglione dfd38a6ac3 Bug 1477579: Part 3 - Avoid duplicating static strings in category manager entries. r=froydnj
Much like the component manager, many of the strings that we use for category
manager entries are statically allocated. There's no need to duplicate these
strings.

This patch changes the category manager APIs to take nsACStrings rather than
raw pointers, and to pass literal nsCStrings when we know we have a literal
string to begin with. When adding the category entry, it then skips making
copies of any strings with the LITERAL flag.

MozReview-Commit-ID: EJEcYSdNMWs
***
amend-catman

--HG--
extra : rebase_source : 4f70e7b296ecf3b52a4892c92155c7c163d424d2
2018-07-23 17:41:06 -07:00
Tiberius Oros 93bed26733 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-07-03 00:59:47 +03:00
James Willcox 0d904ab620 Bug 1467919 - Don't initialize PushService unless dom.push.enabled is true r=lina
MozReview-Commit-ID: JfQUHf1JCRb
2018-07-02 11:46:48 -05:00
Mark Banner d42be1aa80 Bug 1470455 - Add the 'expected' arguments to throws/rejects for dom/push/test/xpcshell/test_broadcast_success.js. r=lina
MozReview-Commit-ID: DKYHIlJtD2P

--HG--
extra : rebase_source : cd27c3ab1c608086c877a75fdf144f162db720e0
2018-06-22 11:47:58 +01:00
Jeff Gilbert 5b753da289 Bug 1470325 - s/FooBinding/Foo_Binding/g - r=qdot
MozReview-Commit-ID: JtTcLL5OPF0
2018-06-26 17:05:01 -07:00
Ben Kelly 565053bfe8 Bug 1470254 Don't send push events to child process when e10s pref is flipped. r=mrbkap 2018-06-23 10:13:10 -07:00
Ethan Glasser-Camp bad5e0b59e Bug 1440022: initial implementation r=lina
MozReview-Commit-ID: GMnGfpUSnox

--HG--
extra : rebase_source : 859c7b3d6c7ef70850b80b6a7356cef76ec66570
2018-04-11 10:53:20 -04:00
Ethan Glasser-Camp 693edd476b Bug 1440022: Some infrastructure for testing broadcast_subscribe r=lina
MozReview-Commit-ID: 8Re4EGCSbmi

--HG--
extra : rebase_source : b8a138bd1914ac3a25f8b20415523c9506c6539e
2018-04-11 10:48:01 -04:00
Ethan Glasser-Camp 161e5175e1 Bug 1440022: Some plausible test cases r=lina
MozReview-Commit-ID: ITQStnQWtNX

--HG--
extra : rebase_source : 0c56ed0f07f5854728c7566a6cbb6d78dc8c8da1
2018-04-08 11:46:18 -04:00
Ethan Glasser-Camp a0486a80d1 Bug 1440022: disconnect push tests from actually running r=lina
These tests were only not connecting due to an implementation detail
of the Push component.

MozReview-Commit-ID: 49JPgsfRxTF

--HG--
extra : rebase_source : 10a9116cbd4ecfbd8071b856bfafa59fe6dcdffc
2018-06-13 20:46:17 -04:00
Mark Banner 5aaf4808e7 Bug 1468938 - Add the 'expected' arguments to throws/rejects for dom/. r=lina
MozReview-Commit-ID: 2YwFxCFoi5d

Differential Revision: https://phabricator.services.mozilla.com/D1666
2018-06-15 16:36:54 +00:00
Andrea Marchesini e39f6cd8a9 Bug 1468592 - use nsIEffectiveTLDService::hasRootDomain instead of custom hasRootDomain implementations, r=valentin 2018-06-14 04:31:14 -07:00
Bogdan Tara 3719c11a02 Backed out 4 changesets (bug 1440022) for nsSocketTransport crashes when trying to access the internet CLOSED TREE
Backed out changeset 9fa127e6df56 (bug 1440022)
Backed out changeset 4f84a6745a51 (bug 1440022)
Backed out changeset 00cf71bb3861 (bug 1440022)
Backed out changeset b7d5b0db60ad (bug 1440022)
2018-06-11 22:17:53 +03:00
Ethan Glasser-Camp 6b074ef615 Bug 1440022: initial implementation r=lina
MozReview-Commit-ID: GMnGfpUSnox

--HG--
extra : rebase_source : 66decefdde118f56b7cfba36a77b7f5b8a6e4922
2018-04-11 10:53:20 -04:00
Ethan Glasser-Camp 8e229ea686 Bug 1440022: Some infrastructure for testing broadcast_subscribe r=lina
MozReview-Commit-ID: 8Re4EGCSbmi

--HG--
extra : rebase_source : 8f851ce140f6e61816d002490de3b0af2fb5fe3d
2018-04-11 10:48:01 -04:00
Ethan Glasser-Camp 0910ae2529 Bug 1440022: Some plausible test cases r=lina
MozReview-Commit-ID: ITQStnQWtNX

--HG--
extra : rebase_source : 5bb1cadc31d67c25784a00d89aec3e35f7616a3c
2018-04-08 11:46:18 -04:00
Kris Maglione 7b7264f453 Bug 1464548: Part 3 - Update callers to use defineLazyGlobalGetters. r=mccr8
MozReview-Commit-ID: 9APGewiDDYB

--HG--
extra : rebase_source : 2931dd0eec0e4206414b698a9700fc20d922eb3a
2018-05-25 17:02:29 -07: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 bf4d9f1be5 Bug 1456035: Part 5 - Convert manual QueryInterface to ChromeUtils.generateQI. r=mccr8
Manually-implemented QueryInterface functions don't benefit from the
MozQueryInterface optimizaions, and a lot of them are in hot code, and
implement a large number of interfaces.

MozReview-Commit-ID: 8OzglraowZt

--HG--
extra : rebase_source : 5fff3d9973a0ea976096339a63ce9ff628b68441
2018-04-23 12:58:34 -07:00
Kris Maglione a259026c9d Bug 1456035: Part 4 - Convert callers of XPCOMUtils.generateQI to ChromeUtils.generateQI. r=mccr8
This also removes any redundant Ci.nsISupports elements in the interface
lists.

This was done using the following script:

acecb401b7/processors/chromeutils-generateQI.jsm

MozReview-Commit-ID: AIx10P8GpZY

--HG--
extra : rebase_source : a29c07530586dc18ba040f19215475ac20fcfb3b
2018-04-22 20:55:06 -07:00
Kris Maglione 219ed0cc06 Bug 1454813: Part 2b - Rename SpawnTask.js to AddTask.js. r=florian
The old name no longer makes sense, since it no longer exports an spawn_task
symbol, and add_task is what we really care about.

MozReview-Commit-ID: IE7B8Czv8DH

--HG--
rename : testing/mochitest/tests/SimpleTest/SpawnTask.js => testing/mochitest/tests/SimpleTest/AddTask.js
extra : rebase_source : 03bca5aa69a7625a49b4455a6c96ce4c59de3a5a
2018-04-18 11:43:45 -07:00
Peter Van der Beken f5754d679a Bug 888600 - Move ContentFrameMessageManager to WebIDL. Part 6: Mark some IDL interfaces as non-scriptable. r=bz.
--HG--
extra : rebase_source : 5911f91bd7a63cd3603494e087e3858bd0527500
2018-03-01 20:19:56 +01:00
Mark Hammond ad4ac608a7 Bug 1447397 - avoid allocating too much memory in test_crypto_encrypt.js, avoiding OOM on win32. r=kitcambridge
MozReview-Commit-ID: Is359cvtTJR

--HG--
extra : rebase_source : 10de8aeb7ebb091077fccfa3aabe435ae2406642
2018-03-21 09:34:41 +11:00
Mark Hammond 4cae8128c3 Bug 1442128 - support aes128gcm encryption in PushCrypto.jsm. r=kitcambridge,mt
MozReview-Commit-ID: HqLxm7wuZuv

--HG--
extra : rebase_source : 10512ec769ab43674e829363af06805e1b4844d6
2018-02-20 12:01:08 +11:00