Commit Graph

562159 Commits

Author SHA1 Message Date
Bobby Holley
64bac56a29 servo: Merge #18751 - Poison hashtable buffers (from bholley:poison_hashtable); r=Manishearth
This gives us extra defense in depth.

Source-Repo: https://github.com/servo/servo
Source-Revision: 2bbc458c5b2ad44d008cfa57415fe41d1a7ada5e

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : b4c8722fd8a88da9c8d3f21b600085da637e9a9e
2017-10-04 23:54:56 -05:00
Liang-Heng Chen
ef46bde5d2 Bug 1405496 - remove unnecessary assertion; r=bagder
The assertion does not have to be true.

MozReview-Commit-ID: HrXpPsO0rQd

--HG--
extra : rebase_source : 31cb1a715f5487ed32f9e3b31442904a185896d7
2017-10-05 10:59:11 +08:00
Ray Lin
d2ab0da319 Bug 1404811 - Enable test_basic_creditcard_autocomplete_form.html mochitest in beta channel. r=lchang
MozReview-Commit-ID: 1I1YldZgqjt

--HG--
extra : rebase_source : 3f7482268b02b39d1a57a68502c8e10660df6280
2017-10-02 16:11:28 +08:00
steveck-chung
00bc92b5b4 Bug 1404281 - Fix credit card mochitest intermittent error by increasing binding time. r=lchang
MozReview-Commit-ID: IxlBeSPx2EM

--HG--
extra : rebase_source : 1da5939d9d899816cf0861537e2f401f1e41d979
2017-10-02 15:50:17 +08:00
Luke Chang
ec0506ab4b Bug 1401474 - [Form Autofill] Don't store computed fields on tombstones coming from sync. r=steveck
MozReview-Commit-ID: 6KIgFnV8QFv

--HG--
extra : rebase_source : 4fa537eb7ad9d4a7863d0c61084c6785aa25f0f5
2017-10-02 12:18:04 +08:00
Phil Ringnalda
89e75933a2 Backed out changeset 469b7b77071c (bug 1396286) for failures in browser_jsonview_encoding.js
MozReview-Commit-ID: EeDZAnOOmPK

--HG--
rename : devtools/client/jsonview/test/browser_jsonview_encoding.js => devtools/client/jsonview/test/browser_jsonview_utf8.js
2017-10-04 22:45:57 -07:00
JW Wang
06967bc27c Bug 1402584 - add logs for debugging. See comment 5 for the detail. r=gerald
MozReview-Commit-ID: 48zKkVt5hbK

--HG--
extra : rebase_source : 91a12ef83c5b2560eafe9f41226bfa87413aba92
2017-10-02 13:51:04 +08:00
Kit Cambridge
e9d579fe2a Bug 1405566 - Clamp future and far past synced history visit dates. r=markh
MozReview-Commit-ID: Gs0DpTTu1Ab

--HG--
extra : rebase_source : b836f4ae366eaf127935dee593dc51d2222e3aca
2017-10-04 14:16:29 -07:00
Brian Birtles
3afa921d85 Bug 1291413 - Fix assertion when resuming an Animation with both a start time and hold time; r=hiro
When we set the playback rate to zero on a play-pending animation that is
resuming from an aborted pause we can arrive in a state where both the start
time and hold time are resolved. However, we previously added an assertion that
only one of these is ever set at a time.

Part of the assertion is warranted since that method contains the following
code:

  if (mStartTime.IsNull()) {
    mStartTime = StartTimeFromReadyTime(aReadyTime);
    if (mPlaybackRate != 0) {
      mHoldTime.SetNull();
    }
  }

Here StartTimeFromReadyTime requires a non-null hold time. So either mStartTime
or mHoldTime needs to be non-null. The requirement that only one or the other be
non-null, however, is not in the spec and not necessary (as the test cases in
this bug show).

What this assertion does bring to light, however, is that in the case where we
have *both* the start time and the hold time, we need to consider whether to use
the start time as-is, or calculate it from the hold time.

I have filed the following spec issue for this:

  https://github.com/w3c/web-animations/issues/200



MozReview-Commit-ID: CTCT7Up1E5n

--HG--
extra : rebase_source : 95233f7cd2bc3c4bcc56615d8387fe54852986c1
2017-10-05 10:50:38 +09:00
Jean-Yves Avenard
7c9ee7c537 Bug 1215089 - P11. Correctly use stride parameter in place of width with webrender. r=mattwoodrow
MozReview-Commit-ID: KcI6fcOgSkX

--HG--
extra : rebase_source : 2293c2be075f7a24472a8d58752982b153c5d6f5
2017-10-05 01:42:28 +02:00
Jean-Yves Avenard
d28995afd5 Bug 1215089 - P10: Enable 10/12 bits video with OGL compositor. r=mattwoodrow
MozReview-Commit-ID: AOSZla0ZX4S

--HG--
extra : rebase_source : b128a7979602fe78111a9c656bf3801fa26dbf56
2017-09-30 01:22:40 +02:00
Jean-Yves Avenard
1f7ad17007 Bug 1215089 - P9: Add support for 10/12 bits YUV surface with OpenGL compositor. r=mattwoodrow
MozReview-Commit-ID: BR9G7cyopz0

--HG--
extra : rebase_source : c9a29724d5c729ae8c0ae64c36428fe426ea006c
2017-09-29 21:51:29 +02:00
Jean-Yves Avenard
fa09392130 Bug 1215089 - P8: Only enable 10/12 bits videos with software compositor. r=mattwoodrow
MozReview-Commit-ID: 2tdeH2kdZ3P

--HG--
extra : rebase_source : 4c257032868d6c295c72b1b2a3c64d046e903d7f
2017-09-29 21:39:50 +02:00
Jean-Yves Avenard
3cd54027fe Bug 1215089 - P7: Add support for 10/12 bits YUV surface with basic compositor. r=mattwoodrow
MozReview-Commit-ID: Ej4MbvHnSk9

--HG--
extra : rebase_source : c88e8641ce343917b4f433b515aefe653b23eaa6
2017-09-29 16:37:56 +02:00
Jean-Yves Avenard
3828ad5fbe Bug 1215089 - P6: Remove dead code. r=mattwoodrow
The method isn't called and the comments referring to it are no longer applicable.

MozReview-Commit-ID: 2FFWhj7wzht

--HG--
extra : rebase_source : 5987c52a2a220185a61a45d18a6229aa7e5d8ea3
2017-10-04 03:26:45 +02:00
Jean-Yves Avenard
0fc33ae81a Bug 1215089 - P5: Convert 10/12 bits YUV image to 8 bits prior conversion to RGB. r=mattwoodrow
For now, convert 10/12 bits YUV image to 8 bits. Native support will be tracked in bug 1379948

MozReview-Commit-ID: LOr9X5xxKY7

--HG--
extra : rebase_source : 279e00832543501616af0a4a5958917b72533a4c
2017-09-29 13:43:09 +02:00
Jean-Yves Avenard
e9ab6e6eaf Bug 1215089 - P4: Add support to 10 and 12 bits YUV images to FFmpeg decoder. r=kentuckyfriedtakahe
This allows for decoding VP9 profile 2 and 3.

At this stage, it is not possible to render the decoded frames.

MozReview-Commit-ID: DFXMvaM8Ynb

--HG--
extra : rebase_source : e17f24a00595461910f6d0cbd8ef4ba25453e8c5
2017-06-29 23:11:06 +02:00
Jean-Yves Avenard
72e08420b1 Bug 1215089 - P3: Add mBitDepth member to YCbCr data structure. r=kamidphish,mattwoodrow
MozReview-Commit-ID: BNLawJOfj3w

--HG--
extra : rebase_source : f538373e317e3e1e5452c0a0d6e00e810148ea87
2017-06-29 23:09:20 +02:00
Jean-Yves Avenard
f57ec08586 Bug 1215089 - P2: Add YUV422 support to ffmpeg decoder. r=kentuckyfriedtakahe
This allows for VP9 profile 1 support.

MozReview-Commit-ID: KymoerXNyzA

--HG--
extra : rebase_source : db8eef696ae19ff7065e34863a1ee4b576369229
2017-06-29 23:07:03 +02:00
Jean-Yves Avenard
27445fee7a Bug 1215089 - P1: Properly use frame dimensions to determine planes divisors. r=jgilbert
There's no guarantee that the stride of the uv planes is twice as wide as the y plane's stride. This relationship is only true between the planes' width.

MozReview-Commit-ID: JInge1c86Z1

--HG--
extra : rebase_source : 0e9cf5be06812712d50a42db7630f396d0020791
2017-10-04 23:26:42 +02:00
Manish Goregaokar
27fdd43199 servo: Merge #18734 - stylo: all shorthand should not apply to internal properties (from Manishearth:stylo-all); r=upsuper
r=xidorn https://bugzilla.mozilla.org/show_bug.cgi?id=1404057

Source-Repo: https://github.com/servo/servo
Source-Revision: 43686a8738513db728eebcc535b5ac6e1a2f17f7

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 5784892f190d950ae76099a2aea7841cb70eb1c8
2017-10-04 20:57:24 -05:00
Fischer.json
697de71c07 Bug 1403402 - Should not migrate profile for a fresh install, r=MattN
MozReview-Commit-ID: D9uMUXO2PV5

--HG--
extra : rebase_source : 15d73291206905e2e146200084b699434d2e1140
2017-09-28 11:44:59 +08:00
cku
30669a5437 Bug 1343147 - Part 2. A crash test of painting elements with both perspective and transform in generate text mask for background-clip:text. r=mstange
MozReview-Commit-ID: 6KKo9ap2VZu

--HG--
extra : rebase_source : 8c780d6b95389f8b1ba76655c0562246a11b894d
extra : source : 42907ee02b4c09f29283c330389811df5c8a2570
2017-09-08 14:24:17 +08:00
cku
3997f2cb11 Bug 1343147 - Part 1. Do not double applying transform vector of the root frame in a glyph mask into the target context. r=mstange
When we generate the glyph mask for a transformed frame in
GenerateAndPushTextMask, the transform vector had been applied into aContext[1],
so we should find a way to prevent applying the vector again when painting the
glyph mask.

In bug 1299715, I tried to prevent double apply at [2], it caused two problems:
1. We only skip generating nsDisplayTransform, but we may still create a
nsDisplayPerspactive bellow. Since the parent of a nsDisplayPerspective must be
a nsDisplayTransform, which have been ignored, so we hit this assertion.
2. We skip all transform for all frames while painting the glyph mask, which is
not correct. We should only skip double applying transform vector of the root
frame.

This patch fixes both of these issues:
a. We will still create a nsDisplayTransform for the root frame if need. But
the transform matrix we apply into the target context will be an identity
matrix, so we fix #1 above.
b. In #a, we change the transform matrix to an identity matrix only for the root
frame of the  glyph mask, so we fix #2.

[1]
https://hg.mozilla.org/mozilla-central/file/59e5ec5729db/layout/painting/nsDisplayList.cpp#l752
[2]
https://hg.mozilla.org/mozilla-central/file/ce2c129f0a87/layout/generic/nsFrame.cpp#l2806

MozReview-Commit-ID: 973lkQQxLB6

--HG--
extra : rebase_source : aef80444e94d3af7eca776c981f8faded03bc985
2017-10-03 11:29:19 +08:00
Nevin Chen
fcfb4b1f6d Bug 1405287 - Change splash screen image. r=jwu
MozReview-Commit-ID: 9RH2XLj6LRq

--HG--
extra : rebase_source : 555b44b0493b65713a7728e2bb3b1749428e0bcd
2017-10-03 06:02:00 -04:00
bechen@mozilla.com
d262781541 Bug 1324883 - part2: Once a MediaElement receive document unload event, remove all MediaElements in gElementTable with the same uri. r=jwwang
MozReview-Commit-ID: 7Z0ouKsebp8

--HG--
extra : rebase_source : ffb52a12f9a31280dc3be1093b73099394fe7a17
2017-10-03 12:07:13 +08:00
bechen@mozilla.com
b6e091b3ea Bug 1324883 - Shutdow the decoder when receiving nsIWebProgressListener with flag LOAD_RELOAD_BYPASS_PROXY_AND_CACHE in docshell. r=jwwang,smaug
We register the nsIWebProgressListener at the root docshell(GetSameTypeRootTreeItem) to handle video element embedded in iframe.

MozReview-Commit-ID: D4CavLDAnKD

--HG--
extra : rebase_source : 93032297272bbfc8570dce0c8c13ea9f0d45f7a8
2017-10-03 12:07:09 +08:00
Jim Chen
e3de08b829 Bug 1404144 - 4. Preload child process in geckoview_example in multiprocess mode; r=snorp
In geckoview_example multiprocess mode, preload child process during
startup to make e10s startup faster.

MozReview-Commit-ID: GinwBZlrnps

--HG--
extra : rebase_source : a43ef4708d311c9a100aafba0c84ee4a2e27090b
2017-10-04 22:28:44 -04:00
Jim Chen
3b801bac89 Bug 1404144 - 3. Add flag to preload child process during main GeckoThread startup; r=snorp
We need to wait for GeckoThread to load the Gecko libs in the main
process before we can launch any child processes, so that the child
process doesn't try to extract libs, which can conflict with any
extraction going on in the main process.

MozReview-Commit-ID: 2gUd2R1TUBI

--HG--
extra : rebase_source : d48b9e2e744669a89f2b761cf6936f28948c17c3
2017-10-04 22:28:43 -04:00
Jim Chen
f281c874c0 Bug 1404144 - 2. Move start child process JNI call to GeckoProcessManager; r=rbarker
Avoid going through GeckoAppShell and move the start child process JNI
call directly to GeckoProcessManager.

MozReview-Commit-ID: KU62TiHVQJX

--HG--
extra : rebase_source : 0e8546da502257e1c59bc00b79f50c79a314f3e6
2017-10-04 22:28:43 -04:00
Jim Chen
ffe3e86076 Bug 1404144 - 1. Refactor child process code to support preloading; r=rbarker
Refactor the code in GeckoProcessManager and GeckoServiceChildProcess so
that, we can have a ChildConnection object that's bound but not started.
This way we can bind the connection to preload Gecko child process, but
hold off starting until told by Gecko main process.

Some code is simplified. For example, `IChildProcess.stop` is removed in
favor of killing the child process directly.

MozReview-Commit-ID: 4XgmTuT0IAs

--HG--
extra : rebase_source : 94fe748556c66f639d1f8e5bb26c28ea3ed950b3
2017-10-04 22:28:43 -04:00
Leo Khodel
c252244f67 Bug 1357575: Remove unused include prclist.h r=erahm
MozReview-Commit-ID: 751gsPAHKAt

--HG--
extra : rebase_source : 7140cd63ede88aa33dfef255689ee43ed98edefa
2017-10-04 16:42:36 -07:00
Kyle Machulis
e54a4653ba Bug 1404079 - Remove nsIDOMHTMLFrameElement; r=bz
MozReview-Commit-ID: GSvMwRpl7g4

--HG--
extra : rebase_source : a5e8ee45bae90eaa9ecdcc6f0bac0c9dac0ce2c8
2017-09-28 19:06:14 -07:00
Brian Birtles
ab450ccdb9 Bug 1404803 - Convert empty values to suitable zero values even when using discrete interpolation; r=hiro
Normally when we interpolate values for CSS properties we convert empty values
(such as the empty "from" value created for a by-animation) to a suitable zero
value. However, when we use discrete interpolation that step never occurs and in
some rare cases that means we end up setting the empty value on the target
attribute directly which will have an incorrect result (e.g. setting "" for the
height property will have no effect, whereas setting "0px" will).

This patch makes us perform the empty value to zero value conversion when
performing discrete animation.

Unfortunately it is not possible to test this behavior with shorthands since
there are currently no shorthand properties that are additive.

MozReview-Commit-ID: JFT1tis1RAR

--HG--
extra : rebase_source : cc444b6d4d5571c8ab231d88c4d349ea0713baaa
2017-10-04 15:04:23 +09:00
Mike Hommey
4d379e455b Bug 1403366 - Remove the --with-default-mozilla-five-home configure flag. r=froydnj
--HG--
extra : rebase_source : 354efac644a7fdeea507c0e87cf44183d773413d
2017-09-28 11:02:45 +09:00
Mike Hommey
e2e258506d Bug 1403366 - Remove outdated comment. r=froydnj
--HG--
extra : rebase_source : 810e0c072c2effb6eb1f3e3c3baef5dde69eee86
2017-09-28 11:01:15 +09:00
Mike Hommey
37d01456dc Bug 1403366 - Don't set MOZILLA_FIVE_HOME from multiple scripts. r=froydnj
It was seldom used before previous commit and now does nothing.

--HG--
extra : rebase_source : e0b1dcdabe798af478e054cde0df65facf25ea21
2017-09-28 11:00:09 +09:00
Mike Hommey
3af63f59c0 Bug 1403366 - When NS_XPCOM_INIT_CURRENT_PROCESS_DIR is not already set, fallback to BinaryPath's parent. r=froydnj
The Windows and OSX code paths were essentially doing the same thing,
and the Unix fallback was using an old convention that is pretty much
outdated.

Under normal conditions (XPCOM initialized by Firefox),
NS_XPCOM_INIT_CURRENT_PROCESS_DIR is set from BinaryPath anyways, so
this only really affects adhoc XPCOM initialization from e.g. C++ unit
tests.

--HG--
extra : rebase_source : b3151fffd4c82159b633a48dead86f2c3b0a03d6
2017-09-28 10:49:48 +09:00
Mike Hommey
4fe7459180 Bug 1403366 - Stop requiring argv[0] for XRE_GetBinaryPath and the underlying BinaryPath::Get. r=froydnj
--HG--
extra : rebase_source : ac7bb0d7766fce5b6325c34c2868b26eec594e18
2017-09-28 10:37:27 +09:00
Mike Hommey
bdf125352e Bug 1403366 - Remove GetXULRunnerStubPath. r=froydnj
The difference between GetXULRunnerStubPath and XRE_GetBinaryPath was
removed in bug 552864.

--HG--
extra : rebase_source : 20060486de82c04bc888fade5be1f42675bc5d07
2017-09-28 10:31:14 +09:00
Mike Hommey
e68b54aab1 Bug 1403366 - Don't use nsDirectoryService::Create in nsDirectoryService::GetCurrentProcessDirectory. r=froydnj
Back in the day, there was no global with an already initialized
DirectoryService. But now there is, and, in fact,
GetCurrentProcessDirectory already errors out if that global is not set
by the time it's called. All calling nsDirectoryService::Create achieves
is doing the check again and calling QueryInterface, which we don't need
to do anyways.

--HG--
extra : rebase_source : 32f5080ecb8165cffd601799e72d278b482b0871
2017-09-28 08:46:43 +09:00
J.C. Jones
9f45608ca1 Bug 1405431 - Be more precise in WebAuthn signature verification assertion r=keeler
There's an intermittent which might be spurious because ASN.1 signatures might
sometimes be less than 70 bytes, but the actual floor is probably 68 (32 + 32
+ 4).

It's a sanity check, so I've adjusted it down and also am now emitting the
offending key bytes if this triggers again.

MozReview-Commit-ID: 1wwU9Q3BUPF

--HG--
extra : rebase_source : 2877deb770f8bf4bcf31dae40f75016892dc9d53
2017-10-04 11:21:18 -07:00
Robert Helmer
c42f57923a Bug 1348981 - only load system add-ons from a built-in list r=kmag
MozReview-Commit-ID: A6c5kaLmNPP

--HG--
extra : rebase_source : e20ec54eabb5ecb2cc0b85efb687dbed06f1d16a
2017-10-02 18:41:20 -07:00
Robert Helmer
b5691ba8af Bug 1348981 - provide method to re-initialize URLPreloader for xpcshell tests r=kmag
MozReview-Commit-ID: rnjEJc1Uir

--HG--
extra : rebase_source : ee273d624c3d4a4ec21506574f1e203fce4b2d45
2017-09-21 11:24:14 -07:00
Robert Helmer
cb1aad0897 Bug 1348981 - add Cu.readURI helper for sync file reading on startup r=kmag
MozReview-Commit-ID: 1yz25afCUDs

--HG--
extra : rebase_source : 549e28b7ceeb6556156d8f6e4d2a7470852d64c0
2017-09-19 12:13:08 -07:00
Robert Helmer
f0cf406637 Bug 1348981 - provide a list of valid system add-ons for packaging r=glandium
MozReview-Commit-ID: K2jCHBBJBqw

--HG--
extra : rebase_source : 0a1414d3e778d36f053800212e7d633eaa91de6b
2017-09-13 22:49:43 -07:00
Glenn Watson
bf632baa47 servo: Merge #18735 - Update WR (clip masks on angle gradients, fix clips on transformed images) (from glennw:update-wr-angle-clips); r=mbrubeck
Source-Repo: https://github.com/servo/servo
Source-Revision: 22685465156a07eadca0edfcc5eca119f3ec4681

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 25611e482b0de27e05ed124c93899bd2251e01c2
2017-10-04 17:09:40 -05:00
Wes Kocher
6dc323cfe9 Merge m-c to autoland, a=merge
MozReview-Commit-ID: Dxbv9TjDlDY
2017-10-04 16:47:41 -07:00
Wes Kocher
d8985b6e57 Merge inbound to central, a=merge
MozReview-Commit-ID: IUFdbLdYFhX
2017-10-04 16:37:59 -07:00
Wes Kocher
b44ad7dcfa Backed out changeset 0376b0f2075a (bug 1405445) for conflicting with the merge a=backout
MozReview-Commit-ID: 2ed0eV0Wow3
2017-10-04 16:36:49 -07:00