Commit Graph

646597 Commits

Author SHA1 Message Date
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
Andrea Marchesini
4b6aa5b40f Bug 1536411 - StoragePrincipal - part 0 - WorkerPrivate::StorageAccess, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D24024

--HG--
extra : moz-landing-system : lando
2019-04-11 16:26:49 +00:00
Dylan Roeh
6da9d85f13 Bug 1509110 - Add testing for onHistoryStateChange and gotoHistoryIndex. r=geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D24532

--HG--
extra : moz-landing-system : lando
2019-04-11 16:47:12 +00:00
Dylan Roeh
a7923fe371 Bug 1509110 - Add HistoryItem and HistoryList classes, HistoryDelegate.onHistoryStateChange callback, and GeckoSession.gotoHistoryIndex. r=esawin,geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D24439

--HG--
extra : moz-landing-system : lando
2019-04-11 16:46:49 +00:00
Andrea Marchesini
85f93c4ddc Bug 1541934 - mozStorageConnection can crash on shutdown, r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D26491

--HG--
extra : moz-landing-system : lando
2019-04-11 16:43:13 +00:00
James Graham
67f9ca11b8 Bug 1536804 - Add a task for summarising wpt metadata, r=ahal
This task runs on wpt metadata changes and uploads an artifact
containing the summarised metadata.

Depends on D24178

Depends on D24178

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

--HG--
extra : moz-landing-system : lando
2019-04-11 16:39:50 +00:00
James Graham
157b19df11 Bug 1536804 - Add a mach command to summarise wpt metadata, r=ato
This parses the metadata files without evaluating the conditional
expressions, producing a JSON summary file in which each possible
condition is represented as a string.

Not all data from the metadata files appears in the summary, only
exceptional cases likely to be of interest to engineers and unlikely
to be on wpt.fyi e.g. tests that have lsan leaks or tests that crash,
not just tests that fail. This is intended to keep the filesize down.

Depends on D24177

Depends on D24177

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

--HG--
extra : moz-landing-system : lando
2019-04-11 16:40:07 +00:00
James Graham
7ff756b465 Bug 1536804 - Factor out a base class for the wpt metadata compilers, r=ato
The manifest compilers follow a mostly common design so it seems
reasonable to put the common parts into a base class, and allow
subclasses to override the functionaility where required.

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

--HG--
rename : testing/web-platform/tests/tools/wptrunner/wptrunner/wptmanifest/backends/static.py => testing/web-platform/tests/tools/wptrunner/wptrunner/wptmanifest/backends/base.py
extra : moz-landing-system : lando
2019-04-11 16:40:15 +00:00
Andreea Pavel
f955a60145 Backed out changeset 78ed7f9d6566 (bug 1542530) for failing test_text_selection.html on a CLOSED TREE 2019-04-11 19:38:18 +03:00
Alastor Wu
68a7ddd191 Bug 1534993 - ensure AudioSink always returning valid position. r=jya
It's possible to overflow when we do the position calculation, we should only store the position which won't cause the integer overflow when adding it to start time.

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

--HG--
extra : moz-landing-system : lando
2019-04-11 03:38:52 +00:00
Ehsan Akhgari
f0d972a9fc Bug 1543717 - Move the workaround for Google recaptcha to all.js to make it usable for GeckoView too; r=baku
GeckoView is going to use ETP, so they're going to need this
workaround pref.

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

--HG--
extra : moz-landing-system : lando
2019-04-11 15:38:34 +00:00
Julian Descottes
2416e24e10 Bug 1538731 - Add test for panel reloading with about:devtools-toolbox;r=daisuke
Depends on D26899
This test would timeout with the fix in the previous patch

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

--HG--
extra : moz-landing-system : lando
2019-04-11 14:50:04 +00:00
Julian Descottes
375ef75753 Bug 1538731 - Stop using async methods in performance panel initializer.js;r=daisuke
Follow up to 1524982. We started using the browserloader to load almost all perf panel files.
However we kept two async methods in the js file loaded by performance/index.xul, which defeated the purpose.

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

--HG--
extra : moz-landing-system : lando
2019-04-11 14:46:55 +00:00