551234 Commits

Author SHA1 Message Date
Eugen Sawin
14c89f86b5 Bug 1386240 - [1.3] Check success status when enabling or disabling geolocation events. r=jchen 2017-08-08 18:15:54 +02:00
Paul Adenot
09ca1b1297 Bug 1384655 - Remove obsolete latency measuring macros in downstream code we don't use anymore. r=jesup
MozReview-Commit-ID: ARAWGe7yFM4

--HG--
extra : amend_source : b1b3f4f33c9c2b15465ac5670a3639b8527a16a3
2017-08-08 10:00:37 +02:00
Geoff Brown
4fc548a698 Bug 1385629 - Use correct tooltool cache directory for Marionette and Firefox-UI tests on osx; r=whimboo 2017-08-08 09:31:57 -06:00
Dyex
db4f4de93a Bug 1369710 - [mozlint] Ensure that a valid path is entered. r=ahal
MozReview-Commit-ID: 6HOE9hmOkCx

--HG--
extra : rebase_source : 584a4391b832e794dc084254e9203b3a65c89419
2017-08-08 19:20:31 +05:30
Eric Rahm
a750d8eb22 Bug 1380154 - Part 2: Generate a DAFSA and use it for eTLDs. r=jduell
This replaces our giant sorted array of eTLD names with a more compact DAFSA.

MozReview-Commit-ID: 3zMBzUM9QUg
2017-07-17 16:10:18 -07:00
Eric Rahm
65313fd340 Bug 1380154 - Part 1: Add the Chromium DAFSA generator. r=njn
This imports Chromium's `make_dafsa.py` script [1]. It takes in a gperf
formatted file (note: gperf is *not* required) and converts that to a compact
binary representation of the string data in the form of a deterministic
acyclic finite state automaton (DAFSA) [2].

The only change made to the script was to make it handle the arguments our
file generation script passes in to the `main` function.

It also imports the logic for traversing the DAFSA [3] almost verbatim in
`Dafsa.cpp`. A thin wrapper was added so that we can reuse the DAFSA structure
for multiple tables.

The only change made to the original logic was to swap in mozilla style
assertions and rename the not found constant from `kNotFound` to
`Dafsa::kKeyNotFound` in order to avoid a collision with `kNotFound` defined in
our nsString code.

[1] 6ba04a9056/tools/dafsa/make_dafsa.py
[2] https://en.wikipedia.org/wiki/Deterministic_acyclic_finite_state_automaton
[3] a2a90a35aa/net/base/registry_controlled_domains/registry_controlled_domain.cc (72)

MozReview-Commit-ID: Eion9POHZm5
2017-07-17 16:09:42 -07:00
Joel Maher
0003b91c8f Bug 1388356 - add pref apz.test.fails_with_native_injection for windows to allow touch based events to work in windows 10 tests. r=kats
MozReview-Commit-ID: 3QJ1aFpxGxY
2017-08-08 15:08:04 -04:00
Aaron Klotz
19b37af0ff Bug 1386798: Add profiler markers for a11y events; r=surkov
MozReview-Commit-ID: EGvmB9qbKKx
2017-08-02 15:31:08 -06:00
Blake Kaplan
a79a7ad8b5 Bug 1374460 - Remove internal code that used to be used for showModalDialog. r=smaug
MozReview-Commit-ID: 4QuUpvbOiOA

--HG--
extra : rebase_source : dca2eac96b057d4ecb3908d5d19f2c7bf9ca33bb
2017-07-13 17:20:10 -07:00
Blake Kaplan
263a31a811 Bug 1374460 - Remove all code related to showModalDialog. r=smaug
MozReview-Commit-ID: GCGwBfIx2SJ

--HG--
extra : rebase_source : 44108de8ebbd9c0d8ed9ab69d50ad973c4883b6e
2017-07-13 16:42:03 -07:00
Tristan Bourvon
3bd6c5f20a Bug 1374024 - add static-analysis annotation for class functions that return dangling pointers. r=mystor
MozReview-Commit-ID: 44Ltj5FZAZD
2017-07-13 12:00:06 +02:00
Tristan Bourvon
cdc988e24a Bug 1374024 - apply clang-format on some files from static analysis. r=mystor
MozReview-Commit-ID: COh2u6PIeY
2017-07-13 12:00:06 +02:00
Henry Chang
8ab6a91cb0 Bug 1355746 - Part 4. Fix intermittent full screen test failures. r=smaug,xidorn
We found that a window will not get focus immediately after exiting full screen
mode on Linux. This seems to be a long-standing issue which surfaces due to the
change of background HTML parsing timing. So, we try to get focus everytime
before requesting full screen mode to ensure the request will not fail because
of the focus issue.

MozReview-Commit-ID: 2pOShFZcq8A

--HG--
extra : rebase_source : 47a9431e02549b483874ddfba804bed0d1c6a534
extra : intermediate-source : 64f74f99771510bc06aaf4e9fc875e61b4c67a75
extra : source : 57f259680880504181191c5fe5fa9688c0692703
2017-07-12 10:49:11 +08:00
Henry Chang
31e6f23f84 Bug 1355746 - Part 3. Test cases for IdleTaskRunner. r=smaug
MozReview-Commit-ID: 3RsC1pT9Fzc

--HG--
extra : rebase_source : 0e809780c75c9b8115e7242822ba1d44a1a0fe5d
extra : intermediate-source : 0a7daa942672d158b160b3e1af3ddbb88b36c953
extra : source : 08210ea8446bd222cda5c19ee326f8ffdbb65b3f
2017-07-12 14:13:44 +08:00
Henry Chang
55356f4f83 Bug 1355746 - Part 2. Polish IdleTaskRunner and reuse it for background parsing. r=smaug
This patch is mainly to make IdleTaskRunner reusable by nsHtml5TreeOpExecutor.
The only necessary work to that purpose is to remove the dependency of
sShuttingDown, which was a static variable in nsJSEnvironment.cpp.
The idea is to have a "MayStopProcessing" as a callback for the consumer to
return sShuttingDown.

In addition to sShuttingDown, we use std::function<bool()> as the runner
main callback type.

MozReview-Commit-ID: FT2X1unSvPS

--HG--
extra : rebase_source : 3fe2d4f597f53e9a90f3dc8d5009df04240534ba
extra : intermediate-source : 41f6715c344ce26f7820cecb2544db8c50dca796
extra : source : 042f10937305e34245bdaf75dcb816db7738254e
2017-07-12 09:23:15 +08:00
Henry Chang
fab3d4644c Bug 1355746 - Part 1. Rename CollectRunner to IdleTaskRunner and move to xpcom/threads/IdleTaskRunner.h/cpp r=smaug
Nothing is changed in this patch except for renaming and code move around.
The strategy is to have the final file setup in this patch without any
detail change. The actual code change will be in the next patch so that
we can focus on reviewing the diff in the next patch regarding IdleTaskRunner.

MozReview-Commit-ID: 4Bul9mZ7z1n

--HG--
extra : rebase_source : b978da3a3c68da58f9fd93502bcc4295acd699ce
extra : source : 833d4b69accbf7d1d60f9f11d807ee37d608b6fe
2017-08-07 13:50:47 +08:00
André Bargull
419b26dee6 Bug 1377349 - Remove support for nested destructuring in object rest properties. r=shu 2017-07-10 07:53:10 -07:00
André Bargull
0865d1a536 Bug 1382209 - Part 2: Use correct YieldHandling for module contexts. r=shu 2017-08-09 11:37:23 +02:00
André Bargull
c838e0d0aa Bug 1382209 - Part 1: Add new restrictions for "yield" and "await" as binding identifiers per ES2018 draft spec. r=shu 2017-08-09 11:37:01 +02:00
André Bargull
a1ebd80a83 Bug 1387400 - Part 2: Pass the original regexp flags to the specializer replacer functions. r=till 2017-08-09 11:36:34 +02:00
André Bargull
e80a99ac14 Bug 1387400 - Part 1: Only call GetElemBaseForLambda for large strings. r=till 2017-08-09 11:32:31 +02:00
André Bargull
532414f472 Bug 1387968 - Part 3: Remove unnecessary or duplicate rooting in RegExp code. r=till
--HG--
extra : rebase_source : c1a38b5cd8184ac75075c8c062c52466644eaeb6
2017-08-09 11:31:47 +02:00
André Bargull
c70f65a1f9 Bug 1387968 - Part 2: Optimize array accesses and allocations in RegExpGetSubstitution. r=till
--HG--
extra : rebase_source : 06bba8286960b5f805b152aeaceb52c62b275913
2017-08-09 11:31:29 +02:00
André Bargull
1618ce2e73 Bug 1387968 - Part 1: Reduce array copies for RegExpGetSubstitution with captures. r=till
--HG--
extra : rebase_source : d7af86e7dae8453c7bd8446934544653bce52481
2017-08-09 11:31:04 +02:00
Paul Adenot
53d0c89c38 Bug 1388372 - Fix assert and null check properly to account for the pass-through mode in gUM. r=jesup
MozReview-Commit-ID: 9kFZG0LwKRM

--HG--
extra : rebase_source : 0853efd16f1dd3743c6e07a9fa274ac82daac3d0
extra : source : 56872eb4e342150fddb7ae82b5c7156f07642a51
2017-08-09 14:58:44 +02:00
Ryan VanderMeulen
0668040c4e Bug 1388551 - Update harfbuzz to version 1.4.8. r=jfkthame
--HG--
extra : rebase_source : ed754f01ec7503c17218c6ccc52009d76ea98098
2017-08-09 08:57:22 -04:00
Ryan Hunt
c484a93af5 Bug 1387566 - Enabled "apz.keyboard.passive-listeners" in nightly. r=kats
MozReview-Commit-ID: 566GvdCxkqK

--HG--
extra : source : 6a1c370f519e9d2e7702b48721a3afd70ada3863
extra : amend_source : 4034661c9c256b8c78e7c03ceed437b42ceec231
2017-08-08 15:13:44 -05:00
Valentin Gosu
a44fac0e8f Bug 1380617 - Fix web platform tests meta to expect punycode encoding r=annevk
MozReview-Commit-ID: 4PU6Zg105SB
2017-08-09 17:44:12 +02:00
Valentin Gosu
953c52ffc5 Bug 1380617 - Fix tests that expect unicode encoding of hostname r=smaug
MozReview-Commit-ID: 6EGhUJmtjTc
2017-08-09 17:44:08 +02:00
Valentin Gosu
3b95ce67d2 Bug 1380617 - Fix tests that use nsIURI.host expecting unicode domain name r=smaug,honzab
MozReview-Commit-ID: GKnbpc8GMb2
2017-08-09 17:44:06 +02:00
Valentin Gosu
c58dcf6937 Bug 1380617 - Add test checking that URL.origin returns punycode r=smaug
MozReview-Commit-ID: 4YOu1blsiej
2017-08-09 17:44:03 +02:00
Valentin Gosu
77c03044f9 Bug 1380617 - Set network.standard-url.punycode-host to true r=mcmanus
MozReview-Commit-ID: H6vFyq6SdiJ
2017-08-09 17:44:01 +02:00
Valentin Gosu
7520c99a2c Bug 1380617 - Add nsIURI.displayPrePath r=mcmanus,Gijs
- Use displayPrePath in the pageInfo permissions that shows "Permissions for:"
- The extra displayPrePath method is necessary because it's difficult to compute it manually, as opposed to not having a displaySpecWithoutRef - as it's easy to get that by truncating displaySpec at the first '#' symbol.

MozReview-Commit-ID: 9RM5kQ2OqfC
2017-08-09 17:43:58 +02:00
Valentin Gosu
d1bbd84d19 Bug 1380617 - Make the PageInfo panel return unicode URLs r=Gijs
- fixing the hostName in getWindowInfo fixes the issue across the PageInfo panel
- fixing docInfo.referrer also fixes the Referring URL on the General tab
MozReview-Commit-ID: 9x9uWp2R3Yj
2017-08-09 17:43:56 +02:00
Valentin Gosu
7096f198fc Bug 1380617 - Make sure "Did you mean to go to X" displays unicode domain r=Gijs
MozReview-Commit-ID: 4EbA4QJuNIX
2017-08-09 17:43:53 +02:00
Valentin Gosu
3ebf792b66 Bug 1380617 - Change firefox code to use uri.displaySpec when unicode URLs are wanted r=Gijs
* Make URL bar show unicode URL by making losslessDecodeURI call uri.displaySpec
* Make sure URL bar copying returns unicode variant

MozReview-Commit-ID: GTESwOSJW0P
* * *
[mq]: bug1380617-url-autofill.patch

MozReview-Commit-ID: JUxFZcpc3rN
2017-08-09 17:43:51 +02:00
vincentliu
ab39d5cc75 Bug 1386487 - Add checking mechanism if ID3D11Buffer created fail. r=rhunt, dvander 2017-08-09 23:23:18 +08:00
Joel Maher
79f2a178d9 Bug 1388483 - enable mochitest on windows 10. r=Callek
MozReview-Commit-ID: AmL8qbeLL1r
2017-08-09 10:51:39 -04:00
muthuraj90ec
0d332730e8 Bug 1370403 - Synthesize contextmenu MouseEvent when performing webdriver actions; r=maja_zf
MozReview-Commit-ID: 85nQTsTRttF
2017-08-09 07:51:18 -04:00
Sebastian Hengst
65c8f5216a Backed out changeset 56872eb4e342 (bug 1388372) for failing own crashtest, at least on OS X. r=backout 2017-08-09 13:36:01 +02:00
Jonathan Kew
92d0aff08b Bug 1384862 - Update WOFF2 code to latest upstream. r=sylvestre 2017-07-27 10:33:47 +02:00
Andrew Osmond
42e6712830 Bug 1388332 - Fix a shutdown crash when destroying image decoders before initializing its SurfacePipe. r=tnikkel
A default constructed SurfacePipe contains a NullSurfaceSink as its
filter in mHead. This filter does nothing and is merely a placeholder.
Since most SurfacePipe objects are constructed with the default
constructor, and NullSurfaceSink has no (modified) state, we use a
singleton to represent it. Normally the SurfacePipe owns its filter, so
it needs to do a special check for NullSurfaceSink to ensure it doesn't
free it explicitly.

A Decoder object contains a default constructed SurfacePipe until it
needs to create the first frame from an image. This is a very brief
window because it does not take very long or much data to get to this
stage of decoding.

The NullSurfaceSink singleton is freed upon shutdown, however some
ISurfaceProvider objects may be lingering after this. If their Decoder
has yet to create the first frame, that means the SurfacePipe actually
contains a dangling pointer to the already freed singleton. To make
things worse, it actually tried to free the filter because it didn't
match the singleton (it got freed!).

As such, this change removes NullSurfaceSink entirely. We never use the
SurfacePipe before initializing it with a proper filter, and it would be
considered a programming error to do so. Instead let SurfacePipe::mHead
be null, and assert that it is not null when any operations are
performed on the SurfacePipe.
2017-08-09 06:54:55 -04:00
Jonathan Kew
009efa5e70 Bug 1340910 - pt 2+3 - Import Brotli 0.6.0 from upstream, and Gecko updates required to work with Brotli 0.6.0 API changes. r=glandium 2017-08-09 11:45:39 +01:00
Jonathan Kew
a6860e142e Bug 1340910 - pt 1 - Update our Brotli import script to pull release 0.6.0 from upstream. r=glandium 2017-08-09 11:43:52 +01:00
Ami
18023835cc Bug 1388283 - Combine two if statements; r=dao 2017-08-08 23:46:00 +02:00
Ami
a0d49a5b2d Bug 1386218 - remove unused function gfxContext::HasComplexClip; r=jrmuizel 2017-08-02 02:12:00 +02:00
Tristan Bourvon
2e77c99160 Bug 1374024 - add checker to prevent dangling pointers returned by method calls on temporaries. r=mystor
MozReview-Commit-ID: 9khNt59ONF
2017-07-05 16:14:21 +02:00
Julian Seward
f6205f4ba0 Bug 1386680 - irregexp: reduce size of initial evaluation stack (post landing fixup). rs=jandem. 2017-08-08 16:10:59 +02:00
Dylan Roeh
ba0ab9fa3d Bug 1382637 - Zombify all tabs in BrowserApp.onDestroy() to stop video/audio recording when Fennec is swipe-to-killed. r=snorp 2017-08-07 12:14:35 -05:00
Joel Maher
6e07395e66 Bug 1364512 - enable crashtests for windows 10. r=Callek
MozReview-Commit-ID: 7tkUDO7TTbK
2017-08-08 09:57:14 -04:00