Commit Graph

646765 Commits

Author SHA1 Message Date
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
Jeff Walden
23ca9b8e0d Bug 1543455 - Inline a static function in vm/CompilationAndEvaluation.cpp into its sole call site. r=arai
Differential Revision: https://phabricator.services.mozilla.com/D26952

--HG--
extra : rebase_source : 09bc702b38fb43c33cca1816f100ede2ff0d59fc
2019-04-09 18:23:09 -07:00
Jeff Walden
08efb53319 Bug 1543455 - Make JS::CompileUtf8{,ForNonSyntacticScope} omit Utf8 from their names and take SourceText<Utf8Unit>&. r=arai
Differential Revision: https://phabricator.services.mozilla.com/D26951

--HG--
extra : rebase_source : dc8b4fd9f60eb56e4e438b143aff45f2ac691c82
2019-04-09 17:03:32 -07:00
Jeff Walden
f9114beee7 Bug 1543455 - Rename JS::EvaluateUtf8 to JS::Evaluate and make it take |JS::SourceText<mozilla::Utf8Unit>&| for consistency with the UTF-16 form of the API. r=arai
Differential Revision: https://phabricator.services.mozilla.com/D26949

--HG--
extra : rebase_source : d84c7c1081442d0e45aba942dbdd16e626be3047
2019-04-09 13:56:18 -07:00
Andrew Swan
8ba41fe60d Bug 1541577 Drop AddonInstall references when installs finish r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D26013

--HG--
extra : rebase_source : 79d4ae90bb5851ecf41170b421d6f201b3abe573
2019-04-03 13:56:08 -07:00
Ciure Andrei
6d8c05133f Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2019-04-11 19:13:48 +03:00
Ciure Andrei
bc3c25dece Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2019-04-11 12:57:28 +03:00
Tim Nguyen
e70373f76a Bug 1543615 - Extend toolbar colors to the customization mode for all themes without a header image. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D27041

--HG--
extra : moz-landing-system : lando
2019-04-11 09:38:19 +00:00
Jonathan Kew
9c39f45719 Bug 723045 - Remove nsUnicodeRange and instead use ICU to look up Unicode blocks. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D25377

--HG--
extra : moz-landing-system : lando
2019-04-10 21:43:22 +00:00
Christian Holler
b3ef3681df Bug 1538465 - WebAssembly Fuzzing Target. r=bbouvier
Differential Revision: https://phabricator.services.mozilla.com/D25919

--HG--
extra : moz-landing-system : lando
2019-04-11 09:22:04 +00:00
Paul Adenot
b774a54cc4 Bug 1531833 - Update libcubeb to c0a717 (and rebase an in-tree patch). r=kinetik
This has been reviewed by snorp, kinetik, achronop, in bug 1531833, and the
rollup has been rubberstamped by achronop in
https://github.com/kinetiknz/cubeb/pull/501.

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

--HG--
extra : moz-landing-system : lando
2019-04-11 09:19:39 +00:00
Paul Adenot
387f4ae5fd Bug 1531833 - When the input is voice, activate the global communication mode. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D21738

--HG--
extra : moz-landing-system : lando
2019-04-11 09:19:35 +00:00
Paul Adenot
7806f50930 Bug 1531833 - Add a way to tell the graph driver that the audio input is voice. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D21737

--HG--
extra : moz-landing-system : lando
2019-04-11 09:19:34 +00:00
Paul Adenot
b64c360235 Bug 1531833 - Expose a way to set a global "communication mode" in CubebUtils, to be use by real-time duplex audio users. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D21736

--HG--
extra : moz-landing-system : lando
2019-04-11 09:19:34 +00:00
Paul Adenot
9936332833 Bug 1531833 - Add a Java method that enables and disable all that is needed to do audio communication with an earpiece. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D21735

--HG--
extra : moz-landing-system : lando
2019-04-11 09:19:34 +00:00
Paul Adenot
55767449c2 Bug 1531833 - Add bluetooth permission to GeckoView. r=snorp
This is needed to open an SCO channel and do proper (low-latency) bluetooth
communication when doing a call using WebRTC, or simply recording local audio in
a web application.

I think this is more of a GeckoView thing, but I'm a bit fuzzy on the
distinction, maybe it's the wrong manifest. I tested using Fennec.

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

--HG--
extra : moz-landing-system : lando
2019-04-11 09:19:33 +00:00
nidhi
ad7be73c4a Bug 1543143 - deleted bogus selector in aboutLicense.css r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D27039

--HG--
extra : moz-landing-system : lando
2019-04-11 09:23:08 +00:00
Tim Nguyen
a439aefa4d Bug 1543474 - Stop using netError.css in about:robots. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D26999

--HG--
extra : moz-landing-system : lando
2019-04-11 09:03:53 +00:00
Tim Nguyen
3cd6c19dfd Bug 1531214 - Update remaining library icons to SVG. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D27011

--HG--
extra : moz-landing-system : lando
2019-04-11 08:53:18 +00:00
Jan de Mooij
6dab6dad9c Bug 1541404 part 8 - Add ICEntry::isForPrologue and use it instead of ICEntry::isForOp. r=tcampbell
Depends on D26677

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

--HG--
extra : moz-landing-system : lando
2019-04-10 16:28:07 +00:00
Jan de Mooij
1fdaa3ca31 Bug 1541404 part 7 - Implement ICScript::interpreterICEntryFromPCOffset and BaselineFrame::setInterpreterPC. r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D26677

--HG--
extra : moz-landing-system : lando
2019-04-10 14:15:55 +00:00
Jan de Mooij
1dcde6d700 Bug 1541404 part 6 - Move the isForOp check into ComputeBinarySearchMid to simplify maybeICEntryFromPCOffset and improve perf a bit. r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D26676

--HG--
extra : moz-landing-system : lando
2019-04-10 13:47:17 +00:00
Jan de Mooij
7cd158c097 Bug 1541404 part 5 - Unshare ComputeBinarySearchMid for ICEntries and RetAddrEntries. r=tcampbell
The next patches want to make some changes to the ICEntries version. The
simplest way to do that is by removing the abstraction.

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

--HG--
extra : moz-landing-system : lando
2019-04-10 13:47:08 +00:00
Jan de Mooij
409be1d23c Bug 1541404 part 4 - Fix JSOP_GOSUB resume offset to point to the jump target op instead of the op after it. r=tcampbell
This fixes issues with try-finally in the interpreter.

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

--HG--
extra : moz-landing-system : lando
2019-04-10 13:46:50 +00:00
Jan de Mooij
09bf26b10d Bug 1541404 part 3 - Store offset of the code after the warm-up check in BaselineScript. r=tcampbell
This lets us OSR from Baseline Interpreter => Baseline Compiler code in the
prologue.

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

--HG--
extra : moz-landing-system : lando
2019-04-10 13:46:46 +00:00
Jan de Mooij
00342e8d42 Bug 1541404 part 2 - Fix some issues with bytecode pc lookup for interpreter frames. r=tcampbell
Also simplifies GetPcScript a bit by using an early return instead of a nullptr
retAddr.

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

--HG--
extra : moz-landing-system : lando
2019-04-11 06:53:27 +00:00
Daniel Varga
fc6614312a Merge mozilla-central to autoland. a=merge 2019-04-11 07:25:42 +03:00
Daniel Varga
2f4a6dc373 Merge autoland to mozilla-central. a=merge 2019-04-11 07:21:46 +03:00
Coroiu Cristina
4a56b6ca02 Backed out 4 changesets (bug 1540387) for xpcshell failures at toolkit/mozapps/extensions/test/xpcshell/test_shutdown.js on a CLOSED TREE
Backed out changeset 0f940b496e58 (bug 1540387)
Backed out changeset f8e11c0bb2a4 (bug 1540387)
Backed out changeset e3ca91d64e82 (bug 1540387)
Backed out changeset ee2913c76f4a (bug 1540387)
2019-04-11 02:57:19 +03:00