Commit Graph

646609 Commits

Author SHA1 Message Date
Alastor Wu
f076a8ece9 Bug 1540740 - part2 : using TimeUnit as input parameter for 'AdjustForStartTime()'. r=jya
There is no need to cast to `TimeUnit` to `int64` and then cast to `TimeUnit` again.

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

--HG--
extra : moz-landing-system : lando
2019-04-11 17:32:54 +00:00
alwu
aebb6d8617 Bug 1540740 - part1 : let the return value of 'AdjustForStartTime()' to tell whether the adjustment is succeeded r=jya
Now the caller of `AdjustForStartTime()` should check the return value to know whether the adjustment is succeeded.

If the error happens the caller should handle it and return an error.

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

--HG--
extra : moz-landing-system : lando
2019-04-11 20:43:00 +00:00
Oana Pop Rus
76651301a1 Backed out changeset acb04833e713 (bug 1500533) for assertion failure in nsHttpChannel.cpp on a CLOSED TREE 2019-04-11 23:15:08 +03:00
Noemi Erli
aa44fadac3 Backed out 3 changesets (bug 1536170) for xpcshell failures in test_bookmark_duping.js CLOSED TREE
Backed out changeset 57c26f8e0bf7 (bug 1536170)
Backed out changeset ccea2e827d9d (bug 1536170)
Backed out changeset 51a67bffd7d2 (bug 1536170)
2019-04-11 23:05:24 +03:00
Cosmin Sabou
af07021e88 Backed out 10 changesets (bug 1536411) for causing leaks in CondVar, MessagePortService, MessagePortServiceData.
Backed out changeset eda5854cd7e8 (bug 1536411)
Backed out changeset f94dfbf2476c (bug 1536411)
Backed out changeset c68dc3152faa (bug 1536411)
Backed out changeset f67d157e8baf (bug 1536411)
Backed out changeset 1107a9767f38 (bug 1536411)
Backed out changeset ccbe1af00fb9 (bug 1536411)
Backed out changeset 552c4b588524 (bug 1536411)
Backed out changeset 2eb20578159b (bug 1536411)
Backed out changeset 45708d22bb6d (bug 1536411)
Backed out changeset 87601ef1d4d4 (bug 1536411)
2019-04-11 22:48:49 +03:00
Chris Martin
2d1a0515d9 Bug 1052579 - Add explicit arena to several char-copying JS functions r=sfink
Several of these JS char-copying functions allocate memory, and currently
they implicitly do it in the MallocArena. They now take an explicit argument
about which arena they perform their allocation in.

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

--HG--
extra : moz-landing-system : lando
2019-04-11 17:53:07 +00:00
Ehsan Akhgari
bf2a5e6e54 Bug 1500533 - Ensure that TLS session resumption tickets are only consumed if the channel isn't isolated by anti-tracking checks; r=michal,baku
Differential Revision: https://phabricator.services.mozilla.com/D26996

--HG--
extra : moz-landing-system : lando
2019-04-11 18:36:16 +00:00
Michael Kaply
2ff9f81d03 Bug 1542371 - Add basic support for ExtensionSettings policy. r=Felipe
Differential Revision: https://phabricator.services.mozilla.com/D26376

--HG--
extra : moz-landing-system : lando
2019-04-11 19:10:49 +00:00
Oana Pop Rus
fdb93637f9 Backed out 3 changesets (bug 1539694) for spidermonkey build bustage in Promise.cpp CLOSED TREE
Backed out changeset b69cb7f4f305 (bug 1539694)
Backed out changeset 2e36a4f4d996 (bug 1539694)
Backed out changeset 75b6666c5095 (bug 1539694)
2019-04-11 22:21:56 +03:00
Shane Caraveo
a401892884 Bug 628041 refresh the install blocked panel text r=flod,aswan
Differential Revision: https://phabricator.services.mozilla.com/D25881

--HG--
extra : moz-landing-system : lando
2019-04-11 18:56:47 +00:00
dlee
2d7d027aab Bug 1543341 - Refine Safe Browsing log output. r=baku
After calling Lookup API per table, Safe Browsing outputs too many debug
message for a single URL lookup. Refine the current output.

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

--HG--
extra : moz-landing-system : lando
2019-04-11 18:57:56 +00:00
Mike Conley
16b25917b7 Bug 1540150 - Make it impossible to enter the native drag-drop loop in test automation. r=NeilDeakin
Differential Revision: https://phabricator.services.mozilla.com/D25428

--HG--
extra : moz-landing-system : lando
2019-04-11 17:17:36 +00:00
Cosmin Sabou
17142f45ab Bug 1543604 - Disable resource-timing-level1.sub.html on mac and android for frequent failures.
Reviewers: jmaher

Tags: #secure-revision

Bug #: 1543604

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

--HG--
extra : rebase_source : 13ce723dac711be80167db053167136a28517f63
2019-04-11 21:37:29 +03:00
Liang-Heng Chen
6b0c93a5f1 Bug 1543393 - shardIndex should not use ceil(); r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D26909

--HG--
extra : moz-landing-system : lando
2019-04-11 18:47:28 +00:00
Barret Rennie
1a53df3674 Bug 1536170 - Replace all usage of Async.yieldingIterator with Async.yieldingForEach r=tcsc
Differential Revision: https://phabricator.services.mozilla.com/D26593

--HG--
extra : moz-landing-system : lando
2019-04-11 18:40:02 +00:00
Barret Rennie
82b99337ac Bug 1536170 - Add unit tests for Async.yieldingForEach() r=tcsc
Differential Revision: https://phabricator.services.mozilla.com/D26592

--HG--
extra : moz-landing-system : lando
2019-04-11 18:39:54 +00:00
Barret Rennie
e46873db47 Bug 1536170 - Replace Async.jankYielder r=tcsc,markh,eoger
`Async.jankYielder` is known to, unfortunately, cause jank by creating a lot of
immediately resolved promises that must be then GCed. For a collection of 50
items, it will create 50 promises and 49 of them will immediately resolve.

Instead of `Async.jankYielder`, we now have `Async.yieldState`, which simply
keeps track of whether or not the caller should yield to the event loop. Two
higher level looping constructs are built on top of it:

* `Async.yieldingIterator`, which has been rewritten to not create extraneous
  promises; and
* `Async.yieldingForEach`, which is a replacement for awaiting
  `Async.jankYielder` in a loop. Instead, it accepts the loop body as a
  function.

Each of these can share an instance of an `Async.yieldState`, which allows an
object with multiple loops to yield every N iterations overall, instead of
every N iterations of each loop, which keeps the behaviour of using one
`Async.jankYielders` in multiple places.

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

--HG--
extra : moz-landing-system : lando
2019-04-11 18:39:43 +00:00
Perry Jiang
2d0959a500 Bug 1539535 - Add a (temporary) null check in RemoteWorkerChild::CloseWorkerOnMainThread r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D26794

--HG--
extra : moz-landing-system : lando
2019-04-11 03:31:45 +00:00
André Bargull
a74b1bb84f Bug 1539694 - Part 3: Update xray tests for Promise. r=peterv
Depends on D25209

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

--HG--
extra : moz-landing-system : lando
2019-04-10 10:29:49 +00:00
André Bargull
e89cfcac3e Bug 1539694 - Part 2: Implement Promise.allSettled stage 3 proposal. r=jorendorff
Nightly-only for now because the proposal only just reached stage 3.

Promise.allSettled is similar to Promise.all, except that each element also has
an own reject handler. Apart from that most code from Promise.all can be reused
for Promise.allSettled, including calling the `CommonPerformPromiseAllRace`
helper function.

Because each element has an own reject handler and we need to track if either
function of the resolve/reject handler pair was already called, it's not
possible to reuse the same trick as in `PromiseAllResolveElementFunction` where
the data-holder slot is used to track if the handler was already called. Instead
`PromiseAllSettledElementFunction` uses the values array to check if the
current index position is still set to `undefined` as a mean to verify that the
resolving functions for each element weren't already called.

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

--HG--
extra : moz-landing-system : lando
2019-04-11 12:22:43 +00:00
André Bargull
675d1e61cb Bug 1539694 - Part 1: Modify shared Promise.all/race helper to allow passing in a different reject function. r=jorendorff
And a shared helper function for Promise.all, Promise.race, and soon
Promise.allSettled to avoid code repetition.

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

--HG--
extra : moz-landing-system : lando
2019-04-11 12:22:16 +00:00
André Bargull
85304a345e Bug 1542736 - Part 10: Remove unnecessary includes for ctype.h. r=jwalden
Differential Revision: https://phabricator.services.mozilla.com/D26513

--HG--
extra : moz-landing-system : lando
2019-04-11 11:37:30 +00:00
André Bargull
bc37112b80 Bug 1542736 - Part 9: Replace std::isspace with js::unicode::IsSpace. r=jwalden
Remove the last remaining call to ctype functions.

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

--HG--
extra : moz-landing-system : lando
2019-04-11 11:37:26 +00:00
André Bargull
5f26e8e10b Bug 1542736 - Part 8: Replace std::isalpha with mozilla::IsAsciiAlpha. r=jwalden
More removal of ctype functions.

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

--HG--
extra : moz-landing-system : lando
2019-04-11 11:37:22 +00:00
André Bargull
0c99203bf6 Bug 1542736 - Part 7: Replace std::tolower with js::unicode::ToLowerCase. r=jwalden
std::tolower can be safely replaced with js::unicode::ToLowerCase in both contexts.

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

--HG--
extra : moz-landing-system : lando
2019-04-11 11:37:18 +00:00
André Bargull
be72efc64e Bug 1542736 - Part 6: Replace std::isprint with js::IsAsciiPrintable. r=jwalden
Provide js::IsAsciiPrintable as a safe alternative to std::isprint, which doesn't
lead to UB for inputs not representable as `unsigned char` and which also doesn't
depend on the current locale.

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

--HG--
extra : moz-landing-system : lando
2019-04-11 11:58:17 +00:00
André Bargull
e801ce18a3 Bug 1542736 - Part 5: Replace std::isdigit with mozilla::IsAsciiDigit. r=jwalden
mozilla::IsAsciiDigit is equivalent to std::isdigit, except it's not necessary
to worry about UB when calling it with an input which can't be represented as
`unsigned char`.

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

--HG--
extra : moz-landing-system : lando
2019-04-11 11:35:26 +00:00
André Bargull
db7c7bb385 Bug 1542736 - Part 4: Replace JS_UNDEC with js::AsciiDigitToNumber. r=jwalden
js::AsciiDigitToNumber is an optimised version of mozilla::AsciiAlphanumericToNumber
for known ASCII digit-only cases, which avoids the extra comparisons for ASCII
alphabetical characters. This ensures replacing JS_UNDEC with js::AsciiDigitToNumber
still emits the same assembly.

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

--HG--
extra : moz-landing-system : lando
2019-04-11 11:35:06 +00:00
André Bargull
0a02337b5b Bug 1542736 - Part 3: Replace JS7_ISOCT and JS7_UNOCT macros with proper functions. r=jwalden
JS7_ISOCT and JS7_UNOCT were only used in TokenStream, so the new functions were
directly moved into that file instead of adding them to util/Text.h.

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

--HG--
extra : moz-landing-system : lando
2019-04-11 11:34:41 +00:00
André Bargull
4a0bd67ecd Bug 1542736 - Part 2: Replace JS7_ISHEX with mozilla::IsAsciiHexDigit. r=jwalden
Clang and GCC generate slightly better assembly when IsAsciiHexDigit is called,
because the `cmp` instruction for the `< 127` check in JS7_ISHEX is no longer
emitted.

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

--HG--
extra : moz-landing-system : lando
2019-04-11 11:34:16 +00:00
André Bargull
429f41348e Bug 1542736 - Part 1: Replace JS7_UNHEX with mozilla::AsciiAlphanumericToNumber. r=jwalden
This avoids a call to std::tolower, making hex-conversions slightly faster.

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

--HG--
extra : moz-landing-system : lando
2019-04-11 11:33:56 +00:00
André Bargull
95a26641c7 Bug 1536695 - Part 2: Support infallible conversion for BigInt types. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D26119

--HG--
extra : moz-landing-system : lando
2019-04-11 14:08:33 +00:00
André Bargull
ab632c5202 Bug 1536695 - Part 1: Avoid computing constant scalar-type when calling canConvertInfallibly. r=jandem
The scalar-type matches TypeIDOfType<T>::id, which is a constant, so it's not
necessary to recompute the type for each call to canConvertInfallibly.

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

--HG--
extra : moz-landing-system : lando
2019-04-11 11:23:45 +00:00
Nico Grunbaum
560f318141 Bug 1532898 - have VideoConduit directly record its telemetry r=mjf
moves where the VideoConduit related telemetry is recorded, so that non-standard stats can be removed from the stats report

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

--HG--
extra : moz-landing-system : lando
2019-04-11 00:46:45 +00:00
Jim Mathies
bced24bebb Bug 1543173 - Turn off REQUIRE_DEFERRED_MESSAGE_PROTECTION in PluginModuleContentParent when native events are disabled. r=bobowen
Differential Revision: https://phabricator.services.mozilla.com/D26941

--HG--
extra : moz-landing-system : lando
2019-04-11 07:40:57 +00:00
Tom Prince
17465c3c75 Bug 1543747: Don't display exceptions from bouncer when the checks fail; r=sfraser
Differential Revision: https://phabricator.services.mozilla.com/D27135

--HG--
extra : moz-landing-system : lando
2019-04-11 18:05:22 +00:00
Oana Pop Rus
212a653d81 Backed out 6 changesets (bug 1531833) for geckoview failures on PermissionDelegateTest.media CLOSED TREE
Backed out changeset f90ad6bb8ebd (bug 1531833)
Backed out changeset 465570a54b46 (bug 1531833)
Backed out changeset e725253ee976 (bug 1531833)
Backed out changeset 74ad8e7a722b (bug 1531833)
Backed out changeset b1268e5f7023 (bug 1531833)
Backed out changeset e3ec78b2db1f (bug 1531833)

--HG--
extra : amend_source : 81aa19c352e72cac2369e014d19ec5a896538b21
2019-04-11 21:16:55 +03:00
Oana Pop Rus
7977731cfd Backed out 2 changesets (bug 1509110) for geckoview failures on HistoryDelegateTest on a CLOSED TREE
Backed out changeset 1bc29703a90f (bug 1509110)
Backed out changeset 9ed5bb5e0cfc (bug 1509110)
2019-04-11 21:12:26 +03:00
Jason Orendorff
ad4ed1f609 Bug 1477084 - Fix assertion with Debugger forcing return from an async generator before its initial yield. r=jimb
Differential Revision: https://phabricator.services.mozilla.com/D14789

--HG--
rename : js/src/jit-test/tests/debug/onStep-generator-resumption-01.js => js/src/jit-test/tests/debug/Frame-onStep-generator-resumption-03.js
extra : moz-landing-system : lando
2019-04-11 17:49:03 +00:00
Connor Sheehan
a8c491e89c Bug 1534463: patch run-task to clone from private hgweb mirrors r=tomprince
With tasks able to access the hgmointernal config from a Taskcluster
secret, we can now add functionality to `run-task` to support checking
out from the private hg service. Here we add add a `resolve_checkout_url`
function which takes the base/head repository URLs and determines
whether we should clone from the public or private service, returning
the resolved URL. The function pulls down the secret and checks that
the region the task is executing in is in the set of supported regions.
Then we generate a random number and default to the public service if
the number is lower than our "rate". If all the above conditions are
met, we replace `hg.mozilla.org` with the resolved domain name for the
given region.

We add a call to this function to `collect_vcs_options`, and skip
resolving the private URL if we aren't performing a checkout from
within `run-task`.

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

--HG--
extra : moz-landing-system : lando
2019-04-11 17:19:36 +00:00
Connor Sheehan
dc39c5fb12 Bug 1534463: give tasks access to hgmointernal Taskcluster secret r=tomprince
Now that we have added the necessary scopes to `ci-configuration`,
we can add the in-tree scopes to give tasks access to the
`hgmointernal` config Taskcluster secret.

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

--HG--
extra : moz-landing-system : lando
2019-03-27 18:47:21 +00:00
Andrea Marchesini
6c7d4cd432 Bug 1536411 - StoragePrincipal - part 9 - documentation, r=ckerschb,asuth
Differential Revision: https://phabricator.services.mozilla.com/D26479

--HG--
extra : moz-landing-system : lando
2019-04-11 16:47:24 +00:00
Andrea Marchesini
bba5a7d699 Bug 1536411 - StoragePrincipal - part 8 - SharedWorkers, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D25790

--HG--
extra : moz-landing-system : lando
2019-04-11 16:47:26 +00:00
Andrea Marchesini
677630aa7c Bug 1536411 - StoragePrincipal - part 7 - test for DOMCache and ServiceWorkers, r=Ehsan,asuth
Differential Revision: https://phabricator.services.mozilla.com/D25778

--HG--
extra : moz-landing-system : lando
2019-04-11 16:29:13 +00:00
Andrea Marchesini
0830861f7e Bug 1536411 - StoragePrincipal - part 6 - Cookies, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D24864

--HG--
extra : moz-landing-system : lando
2019-04-11 16:28:51 +00:00
Andrea Marchesini
7524dcd07e Bug 1536411 - StoragePrincipal - part 5 - Tests, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D24029

--HG--
rename : toolkit/components/antitracking/test/browser/head.js => toolkit/components/antitracking/test/browser/antitracking_head.js
extra : moz-landing-system : lando
2019-04-11 16:28:28 +00:00
Andrea Marchesini
6d8394e3f5 Bug 1536411 - StoragePrincipal - part 4 - BroadcastChannel, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D24028

--HG--
extra : moz-landing-system : lando
2019-04-11 16:28:13 +00:00
Andrea Marchesini
d0cbc4e278 Bug 1536411 - StoragePrincipal - part 3 - IDBFactory, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D24027

--HG--
extra : moz-landing-system : lando
2019-04-11 16:27:53 +00:00
Andrea Marchesini
dfe371cba0 Bug 1536411 - StoragePrincipal - part 2 - Worker and StoragePrincipal, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D24026

--HG--
extra : moz-landing-system : lando
2019-04-11 16:27:30 +00:00
Andrea Marchesini
5cfeeda19e Bug 1536411 - StoragePrincipal - part 1 - Implementation, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D24025

--HG--
extra : moz-landing-system : lando
2019-04-11 16:27:12 +00:00