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

646793 Коммитов

Автор SHA1 Сообщение Дата
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
Jeff Walden 0b6c60dfa7 Bug 1543498 - Make PAC scripts be compiled directly as UTF-8 without inflating. r=arai
Differential Revision: https://phabricator.services.mozilla.com/D27174

--HG--
extra : rebase_source : 766ee54ec9514ef7de4e612a4913f25737bc0d64
2019-04-10 10:54:02 -07:00
Jeff Walden 4f4b68dc9c Bug 1543458 - Compile UTF-8 files in jsapi-tests without inflating to UTF-16. r=arai
Differential Revision: https://phabricator.services.mozilla.com/D26957

--HG--
extra : rebase_source : c87123cf49f42ae02fd3418648ad3c3232b63ff0
2019-04-10 10:19:00 -07:00
Jeff Walden 43acc4e9ce Bug 1543458 - Compile lines of UTF-8 interactive input to xpcshell and jsshell without inflating to UTF-16. r=arai
Differential Revision: https://phabricator.services.mozilla.com/D26956

--HG--
extra : rebase_source : b7c8192533c8b8a6b824441c9813d5b928bb9900
2019-04-10 09:42:58 -07:00
Andrew Swan 4884d814ae Bug 1541577 followup: fix racy test r=me
--HG--
extra : rebase_source : d0398fbf75b9a9894e7c06defe0d616cc1ec71c7
2019-04-11 15:43:14 -07:00
Karl Tomlinson b275f554ac Bug 1542932 Remove CustomElementConstructor copy r=bzbarsky
Depends on D26868

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

--HG--
extra : moz-landing-system : lando
2019-04-10 15:45:57 +00:00
Karl Tomlinson e4131b866f Bug 1542932 Change define() parameter functionConstructor from Function to CustomElementConstructor r=bzbarsky
Depends on D26867

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

--HG--
extra : moz-landing-system : lando
2019-04-10 15:45:11 +00:00
Karl Tomlinson 9e68172512 bug 1542932 Generate CustomElementConstructor from WebIDL callback definition r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D26867

--HG--
extra : moz-landing-system : lando
2019-04-11 23:05:10 +00:00
Karl Tomlinson 99521124d0 Bug 1542932 align CustomElementConstructor::Construct() parameters with WebIDL bindings conventions r=bzbarsky
Depends on D26865

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

--HG--
extra : moz-landing-system : lando
2019-04-10 15:25:15 +00:00
Karl Tomlinson 26e9ce40c3 bug 1542932 Add code generation for callback constructors r=bzbarsky
TreatNonObjectAsNull is rejected in the parser because / so that there is no
need to implement the equivalent of CallCallback.getCallGuard().

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

--HG--
extra : moz-landing-system : lando
2019-04-11 20:54:17 +00:00
Boris Zbarsky ext:(%2C%20Karl%20Tomlinson%20%3Ckarlt%2B%40karlt.net%3E) eb7c3dbdf6 Bug 1542932 part 1. Add support for callback constructors in the IDL parser. r=qdot
Differential Revision: https://phabricator.services.mozilla.com/D26864

--HG--
extra : moz-landing-system : lando
2019-04-10 20:32:57 +00:00
Boris Zbarsky 86cc26b364 Bug 1543564 part 3. Get rid of pointless nsPIDOMWindowOuter::GetOuterWindow method. r=farre
Differential Revision: https://phabricator.services.mozilla.com/D27028

--HG--
extra : moz-landing-system : lando
2019-04-11 14:14:15 +00:00
Boris Zbarsky d0bcf72821 Bug 1543564 part 2. Get rid of pointless nsPIDOMWindowInner::AsInner methods. r=farre
Differential Revision: https://phabricator.services.mozilla.com/D27027

--HG--
extra : moz-landing-system : lando
2019-04-11 14:12:43 +00:00
Boris Zbarsky 6d78fdff25 Bug 1543564 part 1. Get rid of pointless nsPIDOMWindowOuter::AsOuter() methods. r=farre
Differential Revision: https://phabricator.services.mozilla.com/D27026

--HG--
extra : moz-landing-system : lando
2019-04-11 12:12:04 +00:00
Cameron McCormack ad0b101ef6 Bug 1543582 - Only include quotes around XPCOM strings in MOZ_DBG, not operator<<. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D27031

--HG--
extra : moz-landing-system : lando
2019-04-11 23:44:57 +00:00
Liang-Heng Chen b100d76702 Bug 1539536 - implement content blocking measurements using prio; r=Ehsan,englehardt
randomly choose 1% users and their 0.14% page view to measure content blocking.

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

--HG--
extra : moz-landing-system : lando
2019-04-11 22:15:07 +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
Jeff Walden d201fc4b29 Bug 1543455 - Make JS::{Compile,Evaluate}Utf8Path operate directly on UTF-8 data without first inflating it. r=arai
Differential Revision: https://phabricator.services.mozilla.com/D26950

--HG--
extra : rebase_source : 5263ded87c29973c22852e64d2fcca937968b083
2019-04-09 14:35:02 -07:00
Jeff Walden a3171569ec Bug 1543458 - Perform non-inflating nonsyntactic UTF-8 compilation in jsapi-tests. r=arai
Differential Revision: https://phabricator.services.mozilla.com/D26955

--HG--
extra : rebase_source : f876f9371c3ba3f9335cd8ba14f90c97d885ab87
2019-04-10 09:19:30 -07:00
Jeff Walden 9b200d1b43 Bug 1543458 - Perform non-inflating syntactic UTF-8 compilation in jsapi-tests. r=arai
Differential Revision: https://phabricator.services.mozilla.com/D26954

--HG--
extra : rebase_source : 110ce637549a620d428a6aef8bbdd28efd6276ca
2019-04-10 09:08:53 -07:00
Jeff Walden 3a9a35b609 Bug 1543455 - Don't document JS::CompileUtf8FileDontInflate as invoking functionality with known bugs now that the last known bug's been fixed -- just suggest it's experimental. r=arai
Differential Revision: https://phabricator.services.mozilla.com/D26953

--HG--
extra : rebase_source : b7f3ef5598bd18955e95b0b3bd4c8cfdb82b1606
2019-04-09 18:29:43 -07:00