Commit Graph

64864 Commits

Author SHA1 Message Date
Gabor Krizsanits
ef40e9d072 Bug 1373660 - Block the preallocated process manager while a content process is being launched.
We should not let the ppm to do work before the first paint in a new cp. This patch
makes sure that we only let the ppm spawn a new process after the last process reached
an idle state AND the main process becomes idle too. r=mrbkap
2017-06-29 21:44:40 +02:00
Sebastian Hengst
d5b9a05962 Backed out changeset bc8aa66de70b (bug 1374944) for frequently timing out in test_fullscreen-api-race.html. r=backout 2017-06-29 21:42:23 +02:00
Ehsan Akhgari
fcd758e764 Bug 1377019 - Add a test to ensure that a synthesized document has access to a cookie set before its controlling service worker has been registered; r=jdm 2017-06-29 15:35:49 -04:00
johndai1984
21ef8236e2 Bug 1340027 - Part 5: Add XSLTProcessor CEReactions annotation. r=smaug 2017-06-29 10:28:00 -04:00
johndai1984
4512523d9b Bug 1340027 - Part 4: Add DOM parsing CEReactions annotation. r=smaug 2017-06-29 10:27:00 -04:00
johndai1984
8360924d92 Bug 1340027 - Part 3: Add CSSStyleDeclaration CEReactions annotation. r=smaug 2017-06-29 10:26:00 -04:00
johndai1984
d6f71ee02d Bug 1340027 - Part 2: Add HTML CEReactions annotation. r=smaug 2017-06-29 10:26:00 -04:00
johndai1984
2344353ad0 Bug 1340027 - Part 1: Add DOM CEReactions annotation. r=smaug 2017-06-29 10:25:00 -04:00
Mats Palmgren
c4e9c5bd78 Bug 1375691 - Make RadioNodeList final and cleanup the code using it. r=bz
MozReview-Commit-ID: IJr4oMCoeJG
2017-06-29 20:53:46 +02:00
Mats Palmgren
4ab83f8814 Bug 1375688 - Use Lookup instead of Get+Remove/Put, and LookupForAdd instead of Get+Put, to avoid unnecessary hashtable lookups. r=froydnj
MozReview-Commit-ID: 1V611ywc3EQ
2017-06-29 20:53:46 +02:00
sotaro
1deee6448b Bug 1377024 - Add support of device reset test from about:support r=kats,dvander 2017-06-29 11:46:36 -07:00
Alexander Surkov
bf02d77384 Bug 1372985 - ARIA owned children ordering may be incorrect. r=eeejay 2017-06-29 14:30:58 -04:00
Ben Kelly
227c73cd89 Bug 1366089 Make EventTargetFor() support worker threads. r=baku 2017-06-29 11:28:56 -07:00
Yoshi Huang
8ebd97f178 Bug 1374944 - rewrite mochitest-3 tests for using data: URI. r=smaug 2017-06-29 10:46:25 -07:00
Andrea Marchesini
9214414749 Bug 1377101 - Add some return value checks in XHR, r=mystor 2017-06-29 10:27:59 -07:00
Cameron McCormack
09fa89b60e Bug 1372061 - Shuffle some fields around to avoid bindgen issues. r=emilio
MozReview-Commit-ID: IMzcnJRtGJi
2017-06-29 22:39:31 -07:00
Ting-Yu Chou
8f144f6221 Bug 1348099 part 3 - Fix the codegen so the methods for clearing cached attribute values are not unforgeable. r=bz
Current codegen list the methods for clearing cached attribute values in both
chrome only unforgeable methods and chrome only normal methods, but they should
exist only in the normal ones.

MozReview-Commit-ID: Il2JvCLZ2v3

--HG--
extra : rebase_source : 21b9c715c921c4ac7f6ed4c235ee79a3628162bd
2017-06-29 17:54:20 +08:00
Ting-Yu Chou
a1814c7263 Bug 1348099 part 2 - Add tests for DOM Xrays that properties are exposed to only proper object types. r=bz
MozReview-Commit-ID: Iu86lAviFJK

--HG--
extra : rebase_source : ac0df64b504212a090934427e2c091eb40641877
2017-06-22 14:43:11 +08:00
Ting-Yu Chou
2a8c9b7ffd Bug 1348099 part 1 - Binary search property id when resolve DOM Xrays own property. r=bz
Currently we resolve a property by iterating every prefable and check whether it
is enabled.  If it is, we linear search the ids that it manages.  This patch
changes that to binary searching to find whether the id being resolved is
present first, and checking whether its prefable is enabled only when we find
it.  This improves the performance of property resolution, especially when the
property is not present.

The patch stores all the property ids a NativePropertiesN owns in a single array
of PropertyInfo structs.  Each struct contains an id and the information needed
to find the corresponding Prefable for the enabled check, as well as the
information needed to find the correct property descriptor in the Prefable.  We
also store an array of indices into the PropertyInfo array, sorted by bits of
the corresponding jsid.  Given a jsid, this allows us to binary search for the
index of the corresponding PropertyInfo, if any.  The index array requires 2
bytes for each property, which is ~20k across all our bindings.  The extra
information stored in each PropertyInfo requires 4 bytes for each property,
which is about 40k across all our bindings in 32-bit builds, or 80k in 64-bit
builds due to alignment requirements on PropertyInfo.  However we save a bit of
memory from changing NativePropertiesN's trios to duos.

The array of unsorted ids is kept because XrayOwnPropertyKeys() includes only
properties that are enabled.  Without it, we will need to check every single
property to know whether its prefable is enabled or not, which is inefficient.

With this patch, initializing property ids takes longer because of the sorting.
I measured also insertion sort because I thought the ids should be nearly sorted
as they are generated sequentially at run time, but that's not the case and
NS_QuickSort() runs faster.

MozReview-Commit-ID: Lc4Z1ui3t0o

--HG--
extra : rebase_source : 314efe467a14428c57f90af2ecc0ec5c47a31993
2017-06-12 12:13:38 +08:00
Ryan Hunt
341325dac4 Bug 1376549 - Prevent APZ handling of keyboard shortcuts hardcoded in ESM. r=kats
MozReview-Commit-ID: 1IolnCXGPjQ

--HG--
extra : rebase_source : 748ed1700383f255d4c32f82d7e5f1455ede8d50
2017-06-28 16:06:47 -04:00
Carsten "Tomcat" Book
1367c473cd Merge mozilla-central to mozilla-inbound 2017-06-29 15:49:39 +02:00
Carsten "Tomcat" Book
5f00ae3a8b merge mozilla-inbound to mozilla-central a=merge 2017-06-29 15:47:04 +02:00
Carsten "Tomcat" Book
264428dcae Backed out changeset 41a89cb123e1 (bug 1372072) for causing perma failure in browser_windowRestore_perwindowpb.js 2017-06-29 12:35:09 +02:00
Olli Pettay
da0ec0a364 Bug 1375491, make child process to cache ime properties only at animation tick time, r=masayuki
--HG--
extra : rebase_source : 6f13f4d91fc4873d135824431adb4b0b2843b738
2017-06-29 14:46:11 +03:00
JW Wang
c6e43291cb Bug 1376363. P3 - remove MediaResource::GetContentType() and its friends. r=gerald
Note we remove the call to mChannel->SetContentType() from RecreateChannel().

The hint never works as expected for [1] is the only caller to
nsIChannel::GetContentType() and MediaResource::Create() always happens
before any reads from the resource.

[1] http://searchfox.org/mozilla-central/rev/b425854d9bbd49d5caf9baef3686e49ec91c17ec/dom/media/MediaResource.cpp#1500

MozReview-Commit-ID: 1n4yHEouCjC

--HG--
extra : rebase_source : 9a7345c29b985ddee7a90a94191e9d526e2a0a67
extra : source : 054d9ffaf21eb937a6349df76228269ad2d7dc2c
2017-06-26 21:39:16 +08:00
JW Wang
69f64ebb45 Bug 1376363. P2 - call ContainerType() in EnsureTelemetryReported(). r=gerald
MozReview-Commit-ID: 515Q6nXZ7WU

--HG--
extra : rebase_source : a13964ca23cd561db8f95ad2ffbeac5ff2411238
extra : source : 59e7c3d78a9df5b2827cb14a211d59113968f432
2017-06-26 17:11:48 +08:00
JW Wang
1e2be3e873 Bug 1376363. P1 - store container type in MediaDecoder. r=gerald
So we can remove MediaResource::GetContentType() in the future.

MozReview-Commit-ID: zWUNF2uGpf

--HG--
extra : rebase_source : 04f50c4db9dac8503f878a8a1986e627f9a074a3
extra : source : 10737393beaabed640aa3ff67fac2a07567400b4
2017-06-26 17:10:47 +08:00
Ralph Giles
efcb8bc380 Bug 1376636 - Exempt AV1 decoding from the vp9 benchmark. r=gerald
Accept av1 video in the webm decoder even when we've determined
the machine is too slow for software vp9 decoding. While we're
at an experimental stage with this codec, poor performance is
preferable to not being able to see a demo at all.

MozReview-Commit-ID: 6DJHCPfXHlA

--HG--
extra : rebase_source : 8fb5c0dac6483abf4775e3546dadd5aaa45947ac
2017-06-27 17:20:00 -07:00
Olli Pettay
39697929f3 Bug 1376936 - nsContentLists should stop observing mutations when their refcnt drops to 0, r=ehsan 2017-06-29 13:25:15 +03:00
Jan de Mooij
53de04c6f6 Bug 1375505 part 1 - Change iterator code to return JSObject* instead of returning bool + outparam. r=evilpie 2017-06-28 21:00:43 -07:00
Nicolas B. Pierron
09b27eb5ff Bug 1376634 - Fix telemetry reports to report cacheable scripts instead of only small scripts. r=mrbkap 2017-06-29 00:48:55 +00:00
Andrea Marchesini
39c0311d3d Bug 1376951 - Let's use CheckedUint32 more broadly in WebSocket code, r=mystor 2017-06-28 17:16:29 -07:00
Tim Huang
db3305baa3 Bug 1372072 - Part 1: Spoofing network information API and blocking ontypechange event when 'privacy.resistFingerprinting' is true. r=arthuredelstein,baku
This patch makes the network information API always returns the default type 'unknown'
and blocking the ontypechange event while connection type changed when 'privacy.
resistFingerprinting' is true.

MozReview-Commit-ID: 4eOdHgAGtyY

--HG--
extra : rebase_source : 78449fb4888b787062ff2139e36c219e0eac0b2c
2017-06-13 11:10:30 +08:00
Kilik Kuo
200981e17f Bug 1368904 - Handle unexpected error callback from GeckoHlsPlayer. r=JamesCheng
MozReview-Commit-ID: CQDjFXiFDrQ

--HG--
extra : rebase_source : 48624955e10c3df3b860bcf77ada11da43f9d068
2017-06-28 15:09:00 -07:00
Masayuki Nakano
5a78a77b68 Bug 1375825 - part2: ContentEventHandler::ExpandToClusterBoundary() should check the return value of nsTextFrame::PeekOffsetCharacter() r=jfkthame
ContentEventHandler::ExpandToClusterBoundary() doesn't check the return value of nsTextFrame::PeekOffsetCharacter().  Therefore, it may set its result to reversed offset. (e.g., when aForward is true and offset is 6, the result may be 5.  When aForward is false and offset is 5, the result may be 6.)

For avoiding that, ContentEventHandler::ExpandToClusterBoundary() should check the result and only when it returns nsIFrame::FOUND, it should compute the proper offset.

On the other hand, it's too bad for ContentEventHandler that nsTextFrame::PeekOffsetCharacter() to return nsIFrame::CONTINUE_UNSELECTABLE when the user-select style is "all" because IME doesn't expect such cases.

Therefore, this patch adds additional argument to nsIFrame::PeekOffsetCharacter(), aOptions which is a struct containing bool members.  The reason why it's not a bit mask enum is, such struct doesn't cause simple mistake at checking the value and the code is shorter.  When mIgnoreUserStyleAll of it is true, this patch makes nsTextFrame not return nsIFrame::CONTINUE_UNSELECTABLE.

MozReview-Commit-ID: ACNNBTP92YZ

--HG--
extra : rebase_source : bd85da902e7fb59135d15514cb20a5599a4a640b
2017-06-29 10:58:16 +09:00
Masayuki Nakano
179e1ee17e Bug 1375825 - part1: Create test for querying text rect in a non-editable element in a contenteditable element r=smaug
This patch adds some automated tests for reproducing bug 1375825 and makes nsQuetyContentEventResult::GetText() work with eQueryTextRect event because ContentEventHandler sets it to the text which was used for computing the rect.

MozReview-Commit-ID: Gk8IV2Vln6V

--HG--
extra : rebase_source : 2d7127c09713358cf9a69fbbc180c325981794b2
2017-06-23 22:36:05 +09:00
Sebastian Hengst
9a1a3b8ebd Backed out changeset 0e4bdf5c1628 (bug 1376636) for Android bustage. r=backout 2017-06-29 03:28:18 +02:00
Cameron McCormack
e9022dc34e Bug 1376647 - Use new MayHaveAnonymousChildren flag to skip work in AllChildrenIterator and some util functions. r=bholley
MozReview-Commit-ID: 783VtcY7qQF
2017-06-27 17:53:39 -07:00
Ralph Giles
892c70acff Bug 1376636 - Exempt AV1 decoding from the vp9 benchmark. r=gerald
Accept av1 video in the webm decoder even when we've determined
the machine is too slow for software vp9 decoding. While we're
at an experimental stage with this codec, poor performance is
preferable to not being able to see a demo at all.

MozReview-Commit-ID: 6DJHCPfXHlA

--HG--
extra : rebase_source : 0819c3ddd437e9e56b18ba1fc6c56d4bdaebfa77
2017-06-27 17:20:00 -07:00
Olli Pettay
0e561a84cf Bug 1371242, try to run CC slices more likely during idle periods, r=mccr8
--HG--
extra : rebase_source : 9727cb14deafe3b92139646074ea201126579c1f
2017-06-28 22:38:53 +03:00
Jan Keromnes
5257fdad8c Bug 1372977 - Use nullptr in /media and /dom/media (clang-tidy: modernize-use-nullptr). r=bwc 2017-06-28 15:38:00 -04:00
Timothy Nikkel
f5f492a80c Bug 1376087. r=bz 2017-06-28 18:45:55 -04:00
Ben Kelly
4dd00f9b49 Bug 1375235 - Don't create the AudioChannelWindow unnecessarily when checking for audio activity in the window. r=padenot
--HG--
extra : source : af66c0b948814ad0283c57533861d8c63cb14352
2017-06-22 06:40:00 -04:00
Ryan VanderMeulen
cdd9ee8a97 Backed out changeset af66c0b94881 for landing with the wrong bug number in the commit message. 2017-06-28 18:37:16 -04:00
Mantaroh Yoshinaga
0f2de51f8e Bug 1374564 - Add drop-shadow's serialization test. r=hiro
MozReview-Commit-ID: Cf3Zhvwmklv

--HG--
extra : rebase_source : c1a630bc7a4431cbbd6147833b5a1b85cf508066
2017-06-30 16:28:13 -07:00
Mantaroh Yoshinaga
309d53e2f3 Bug 1374564 - Remove skipping code of getkeyframes which used text-shadow serialization. r=hiro
MozReview-Commit-ID: Fh9D8dXMF4R

--HG--
extra : rebase_source : ba33f1b9656c3b6922a8bea89a0ef4ec169a7af8
2017-06-30 15:11:33 -07:00
Alex Gaynor
b636380391 Bug 1374557 - Part 1 - Add the ability to specify a list of paths to whitelist read access to in the macOS content sandbox; r=haik
MozReview-Commit-ID: HXBkyR7Tts2

--HG--
extra : rebase_source : 6daf50a4d7a4ff2ff85dfac43891149353e813aa
2017-06-21 10:19:28 -04:00
Alastor Wu
bea16a4f12 Bug 1373177 - part3 : enable test. r=jolin
MozReview-Commit-ID: 5jbD0hkyLDf

--HG--
extra : rebase_source : 6dbcb4a84f0b7eb79dfd50a85798dc965cf59362
2017-06-30 11:12:54 -07:00
Kartikaya Gupta
d47c5defe3 Bug 1370089 - Assume APZ is enabled in TabChild if we are queried before we have the compositor options. r=dvander
MozReview-Commit-ID: KHvAvGCQQUr

--HG--
extra : rebase_source : e1847be7dd54fa6db10f9992d62f589c7b914576
2017-06-30 14:51:33 -04:00
Boris Zbarsky
f6e9a6a347 Bug 1376954 part 3. Allow nursery allocation of DOM nodelists. r=smaug 2017-06-30 10:15:52 -07:00
Boris Zbarsky
d471a06f87 Bug 1376954 part 2. Support nursery allocation of DOM proxy objects. r=smaug,jonco 2017-06-30 10:15:52 -07:00
Boris Zbarsky
239e1057ca Bug 1376954 part 1. Ensure that we don't try to nursery-allocate non-wrappercached DOM objects. r=smaug 2017-06-30 10:15:51 -07:00
Ting-Yu Lin
51d252c459 Bug 1377196 Part 1 - Store nsBindingManager* in ServoStyleSet. r=heycam
We need to call nsBindingManager's method from ServoStyleSet in a later
patch.

Also, we call nsStyleSet::SetBindingManager() immediately after we call
nsStyleSet::Init(). Therefore, we could pass binding manager to Init()
directly, and delete SetBindingManager().

MozReview-Commit-ID: 43WTpW3mSKX

--HG--
extra : rebase_source : f24f6085c51dfae1a969aee1e073720097d240d5
2017-06-29 13:43:59 -07:00
Michael Froman
aceffe65df Bug 1373858 - make sure all fields are checked in the cancelled pairs. r=drno
MozReview-Commit-ID: 5F3hmCQBIUg

--HG--
extra : rebase_source : 1ed3c2f47ed05438d9ca1768de567c03a07d5ef4
2017-06-29 13:27:41 -05:00
Boris Chiou
6fb9815e98 Bug 1375812 - Test the result of interpolation from interpolatematrix to none. r=birtles
MozReview-Commit-ID: 3oiSVo2WCWE

--HG--
extra : rebase_source : 1f4940332e0c03a572a16ab210e8673e2c836f6c
2017-06-28 10:57:50 -07:00
Chris Pearce
d4a2f03ae3 Bug 1376957 - Call rand_s() before starting GMP sandbox on Windows. r=bobowen
The loading of Widevine CDM 970 is being blocked on Windows 7 by our sandbox
when the CDM calls RtlGenRandom(). Chrome is calling s_rand() before enabling
the sandbox [1] in order to load the appropriate DLLs so that the call
succeeds, so we should do the same.

[1] https://cs.chromium.org/chromium/src/content/ppapi_plugin/ppapi_thread.cc?l=424&rcl=d0d190c09619cb359296999438551b66f0e1cdb1

MozReview-Commit-ID: IvmlQY0ohHc

--HG--
extra : rebase_source : d84780fda8181d2afaf4526ea37526522e90431c
2017-06-28 15:19:30 -07:00
Ting-Yu Lin
322430d9e4 Bug 1375513 Part 1 - Support non-chrome XBL bindings with stylesheets for stylo. r=heycam
MozReview-Commit-ID: bclwwk6uzI

--HG--
extra : rebase_source : 1dcbc7ef2f482333991e3bce1cf18ee5924c2740
2017-06-27 22:49:19 -07:00
Sebastian Hengst
0dae3d6940 Backed out changeset ee62473b968c (bug 1376647) for build bustage: no member named 'MayHaveAnonymousChildren' in 'nsIContent' at dom/base/nsContentUtils.cpp:10258. r=backout on a CLOSED TREE 2017-06-29 01:09:42 +02:00
Chris Pearce
c1a1beca7f Bug 1376509 - Bump supported playack rates to [1/16,16]. r=padenot
Chrome supports playback rates in the ranges of [1/16,16], so we may as well
support the same.

MozReview-Commit-ID: 7mMXQfPiv9d

--HG--
extra : rebase_source : 5dd0b717ad711f49ff3df5156cc07d48c8a694b7
2017-06-28 10:00:58 -07:00
Chung-Sheng Fu
a33a8c708d Bug 1337161 - Fix leak of GamepadPlatformService r=jhao,Lenzak
MozReview-Commit-ID: CPLg8kyL0xH

--HG--
extra : rebase_source : d3a42b792e63b6fe9893976bcf972cf039c2263b
2017-06-22 16:56:18 +08:00
Chung-Sheng Fu
49fb1d27d8 Bug 1337161 - Hide information of connected gamepads from content when privacy.resistFingerprinting is true r=arthuredelstein,smaug
MozReview-Commit-ID: Di6ba9B4w0d

--HG--
extra : rebase_source : 69b392d4c0fa7ed5ac8f4fa02091153537a99798
2017-06-15 17:59:26 +08:00
Jean-Yves Avenard
d61a420f11 Bug 1376838: Revert "Bug 1360006: Whitelist VP9 decoder to intel GPU only." r=cpearce
This reverts commit 77f2dd5563d2c3e9ad7ada388036f1846c1e2107

MozReview-Commit-ID: 71Hr05Z6hA4

--HG--
extra : rebase_source : 3efa2e95d2a560b43443a07fc1948cf146d054f0
2017-06-28 19:45:24 +02:00
Cameron McCormack
e0c3937257 Bug 1372061 - Remove unused StyleChildrenIterator::IsNeeded. r=bholley
MozReview-Commit-ID: LH8xZMrcdO1

--HG--
extra : rebase_source : 5d2e6a729442f7a7b8ded5d8b976933b53780b69
2017-06-27 23:56:13 -07:00
Cameron McCormack
a0ce63693c Bug 1372061 - Change StyleChildrenIterator FFI functions to use placement new/delete. r=bholley
MozReview-Commit-ID: BEWvJcaJxA

--HG--
extra : rebase_source : 48b4982001a305b95a88578cb278c3c6e4beac70
2017-06-27 23:56:13 -07:00
Cameron McCormack
4cfbfe320e Bug 1372061 - Add node flag recording whether we might have anonymous children. r=bholley
MozReview-Commit-ID: CMaxJ1JnuYJ

--HG--
extra : rebase_source : ac5651b0d42125fd2a4ff3f5ce03f7a6c6ab1fbb
2017-06-27 23:56:12 -07:00
Cameron McCormack
e389f956ce Bug 1376647 - Use new MayHaveAnonymousChildren flag to skip work in AllChildrenIterator and some util functions. r=bholley
MozReview-Commit-ID: 783VtcY7qQF

--HG--
extra : rebase_source : 9837ea050a56c86cc7572bc1f51945cb67b55226
2017-06-27 17:53:39 -07:00
Cameron McCormack
e86592ca35 Bug 1374999 - stylo: Iterate over manually created editor NAC. r=bholley
MozReview-Commit-ID: 1CiWVfYbxaJ

--HG--
extra : rebase_source : 48ea8a0f1cb0a4072632f706ffd99529bb4447b1
2017-06-27 17:34:48 -07:00
Kartikaya Gupta
7332c6da98 Bug 1376782 - Replace gfxSize with a typedef to SizeDouble. r=jrmuizel
Most of the changes in this patch are just using the explicit
constructor from gfx::IntSize to gfx::Size, since gfxSize did
that implicitly but gfx::Size doesn't.

MozReview-Commit-ID: CzikGjHEXje

--HG--
extra : rebase_source : 9d19977f2a774d9a2a653db923553a6c2e06f82a
2017-06-28 11:41:21 -04:00
Matt Brubeck
8f14d009f9 Bug 1367312 - stylo: Implement :-moz-lwtheme* pseudo-classes. r=emilio
MozReview-Commit-ID: 4T6Tn1VEwXP

--HG--
extra : rebase_source : c2dd0b62757c3da5380414fa3214248b9328d38a
2017-06-28 09:04:49 -07:00
Chung-Sheng Fu
3f9fb1de56 Bug 1369357 - Enabling privacy.resistFingerprinting implies disabling browser.zoom.siteSpecific r=arthuredelstein,dao
MozReview-Commit-ID: XmzvzyUVnu

--HG--
extra : rebase_source : f8819d740923cdc1ebec3d4d76a718abbf39548c
2017-06-19 10:33:23 +08:00
Cameron McCormack
93d7710ae0 Bug 1376805 - Disable stylo for about: pages other than about:blank. r=bholley
MozReview-Commit-ID: F3gSY2uDGJ7

--HG--
extra : rebase_source : f4da04c615440efa5f5641fc76473f000c501548
2017-06-28 10:17:45 -07:00
Carsten "Tomcat" Book
257a632d4b Merge mozilla-central to autoland on a CLOSED TREE 2017-06-28 16:33:00 +02:00
Carsten "Tomcat" Book
152c0296f8 Backed out changeset e9dfba832730 (bug 1343728) for incomplete backout / making bug 1375293 worse on a CLOSED TREE
--HG--
extra : amend_source : 4c9ee2458a3413a2fe6f0b3e7785d1b2f211137f
2017-06-28 15:53:58 +02:00
Carsten "Tomcat" Book
058c1e8ff5 Backed out changeset edbd391db6d8 (bug 1343728) 2017-06-28 15:52:06 +02:00
Carsten "Tomcat" Book
ba466337dd Backed out changeset 4364536ae549 (bug 1343728) 2017-06-28 15:52:04 +02:00
Carsten "Tomcat" Book
6365f16e57 Backed out changeset a1e773337202 (bug 1350633) 2017-06-28 15:52:01 +02:00
Carsten "Tomcat" Book
7918eeee02 merge mozilla-inbound to mozilla-central a=merge 2017-06-28 13:23:29 +02:00
Sebastian Hengst
4da7fd48e3 Backed out changeset e744a3029de2 (bug 1375940) for failing dom/events/test/test_dblclick_kill_window.html. r=backout 2017-06-28 02:24:15 +02:00
Sebastian Hengst
6485200026 Backed out changeset 852f7fddf9a7 (bug 1375940) 2017-06-28 02:20:44 +02:00
Milan Sreckovic
2a443ce1ef Bug 1337062: Transfer initial gfxVars with SendXPCOMProcessAttributes. Deal with potential (future) race condition. r=dvander,gerald
MozReview-Commit-ID: GYezEAg7ozQ

--HG--
extra : rebase_source : 7771f0e47ec7397117b96e702a620301089c57a1
2017-06-27 17:04:17 -04:00
Masayuki Nakano
71bb543ee5 Bug 1376424 - part1: TabChild should notify TabParent of "request to commit composition" handled r=m_kato
The problem is, only when requesting IME to commit or cancel composition is handled synchronously, TabParent does not send the dispatched eCompositionCommit(AsIs) event to the remote process.  Therefore, TabParent (and ContentCacheInParent) never receives  the message from the remote process.

This patch makes TabChild notifies TabParent of eCompositionCommitRequestHandled special event message after TabChild dispatches eCompositionCommit into the DOM tree.  Then, ContentCacheInParent should decrease mPendingCompositionCount and mPendingEventsNeedingAck as usual composition event messages.

MozReview-Commit-ID: 7ec5HPiE687

--HG--
extra : rebase_source : a9366abf6f8feec2d6ac639fd37f5b5c6ddd9586
2017-06-27 23:41:12 +09:00
Masayuki Nakano
a6f874fcf1 Bug 1376424 - part0: Backout the patch for bug 1368554 r=m_kato
TextComposition in the main process is destroyed when the main process sends eCompositionCommit(AsIs) to focused remote process.  Therefore, ContentCacheInParent::mCompositionPendingCount is never 2 or more now.

It may cause ContentCacheInParent::Assign() setting older composition's start offset to current composition's start offset in the main process.

For making uplift the following patch easier, the wrong patch should be backed out first.

MozReview-Commit-ID: IHWc7qZBQtc

--HG--
extra : rebase_source : d3936fa82ed670217b711d15bbb0201a8741501b
2017-06-27 22:02:07 +09:00
Carsten "Tomcat" Book
45f2e51f0a Merge mozilla-central to autoland 2017-06-28 13:47:29 +02:00
Samuel Vargas
2bc96fc2e7 Bug 1372385 - Remove unexpected OSX mochitest pass from errata. r=jgilbert
--HG--
extra : rebase_source : 7f760ba69dcf55dbfb786a5f9f4296b4d7a7ed17
2017-06-23 18:01:00 -04:00
Samuel Vargas
69f9ce7cef Bug 1372385 - Fix premultiplication for LUMINANCE / LUMINANCE_ALPHA on WebGL2 conformance test. r=jgilbert
--HG--
extra : rebase_source : 6b81a5a3f6d1b5e0692813f7e8b9b3cb13e7a9c0
2017-06-15 15:29:00 -04:00
Olli Pettay
a341ed0842 Bug 1346590 - Simplify directionality handling by relying on cycle collector. r=ehsan 2017-06-27 19:48:31 -04:00
Mantaroh Yoshinaga
f6bb5b5b40 Bug 1376513 - Fix expected value for serizalization value for text-shadow of mochitest and skip this test case on gecko. r=hiro
MozReview-Commit-ID: CTOGgCiYTeD

--HG--
extra : rebase_source : 65eaab1e5f1daba5ac25048ef63d2c63ef2f1698
2017-06-27 13:47:45 -07:00
Petr Sumbera
ac723ae99f Bug 1376277 - nsWrapperCache.h: add support for 64bits sparc build. r=glandium 2017-06-27 01:33:49 -07:00
Mats Palmgren
dfa2a20e6b Bug 1376293 part 2 - Use Lookup instead of Get+Remove, to avoid unnecessary hashtable lookups. r=froydnj
MozReview-Commit-ID: JQEEBkc5vEp
2017-06-28 01:03:15 +02:00
Mats Palmgren
6b66a26ec0 Bug 1376293 part 1 - Remove an unnecessary GetWeak call before Remove, and use Lookup instead of GetWeak+Remove, to avoid unnecessary hashtable lookups. r=froydnj
MozReview-Commit-ID: HaVrGEDB41i
2017-06-28 01:03:14 +02:00
Michael Layzell
f4df168819 Bug 1375940 - Part 3: Fix test check to match updated behaviour, a=bustage
MozReview-Commit-ID: 22w56hVrJgI
2017-06-27 18:02:57 -04:00
Sebastian Hengst
77c4e92e81 Backed out changeset 2a386ea17990 (bug 1344751) for bustage. r=backout on a CLOSED TREE 2017-06-28 00:01:30 +02:00
Catalin Badea
6f29260d28 Bug 1344751 - use nsStandardURL for http and https in workers. r=baku 2017-06-27 14:45:09 -07:00
Sebastian Hengst
23ae2c3edb Backed out changeset 0dc1a4c1c038 (bug 1375457) for failing /workers/interfaces/SharedWorkerGlobalScope/name/setting.html. r=backout 2017-06-27 22:25:29 +02:00
Michael Layzell
3c82b8c224 Bug 1350633 - Remove the Msg_GetWidgetNativeData sync IPC, r=billm, r=jimm
MozReview-Commit-ID: Bql29wgVDZ5
2017-06-27 16:24:48 -04:00
Michael Layzell
31e36ee704 Bug 1343728 - Part 4: Remove the window creation sync IPC calls, r=billm, r=smaug
MozReview-Commit-ID: IWayDUWuRrf
2017-06-27 16:24:48 -04:00
Michael Layzell
b4909cdead Bug 1343728 - Part 3: Add StableStateEventTarget, an event target which runs dispatched runnables at the next stable state, r=smaug
MozReview-Commit-ID: 8dlo5Z60qsG
2017-06-27 16:24:48 -04:00
Michael Layzell
c7ffb02592 Bug 1343728 - Part 1: Add the ability to temporarially delay remote docshells from becoming active, r=smaug
MozReview-Commit-ID: KAaeu5ETc0x
2017-06-27 16:24:48 -04:00
Michael Layzell
068e7442ed Bug 1375940 - Part 1: Add a test for destroying a window during a click event while double-clicking, r=smaug
MozReview-Commit-ID: BdyWjvG9q8m
2017-06-27 16:24:48 -04:00
Kartikaya Gupta
788b4add8d Bug 1375497 - Hook up the testing APIs in DOMWindowUtils. r=pchang
DOMWindowUtils needs to handle both ClientLayerManager and WebRenderLayerManager
in order for these APIs to work with webrender. There's unfortunately a fair
amount of code duplication here but even using a common interface and polymorphism
there's a fair amount of boilerplate so I'm not sure that's any better.

MozReview-Commit-ID: Efggm9mBVNy

--HG--
extra : rebase_source : 5691b0e3840a7161e7893691dbaf22d11084fc8f
2017-06-27 20:29:06 -04:00
JW Wang
02c08823c6 Bug 1376360. P3 - remove the call path for null aStreamListener in FileMediaResource::Open(). r=gerald
Null aStreamListener is passed only when cloning.
Since we remove cloning in P2, we can now remove the call path.

MozReview-Commit-ID: B0vKVy5jsqo

--HG--
extra : rebase_source : a93fad61325d29faa2d45e7c1d3762616ab72cff
2017-06-23 16:35:09 +08:00
JW Wang
286ed749b6 Bug 1376360. P2 - make FileMediaResource non-cloneable. r=gerald
It doesn't make much sense to clone a FileMediaResource for they have no data to share.

MozReview-Commit-ID: IoR87DAUCFa

--HG--
extra : rebase_source : eab6c0f013be9e3b1877d29f16c1701f27460578
2017-06-23 16:28:36 +08:00
JW Wang
a05b9a90ee Bug 1376360. P1 - give CloneData() a default implementation for most resource types don't support clone. r=gerald
Also remove CanClone() overrides that are identical to that of the base class.

MozReview-Commit-ID: A0Q5ychQtso

--HG--
extra : rebase_source : 3369558a8e6bc9f86ab6dcdc39fe40f686041001
2017-06-23 16:26:30 +08:00
Masatoshi Kimura
68794e5c6e Bug 1376164 - Turn nsDocumentViewer::mHintCharset and mForceCharacterSet into const mozilla::Encoding*. r=hsivonen
MozReview-Commit-ID: HTi2eNwDH99

--HG--
extra : rebase_source : 13c702981c188a395b6026883c3731e816f55240
2017-06-25 22:46:08 +09:00
Kartikaya Gupta
66730bcc5b Bug 1376449 - Robustify startDrawing to prevent calling callback function after stop() has been called. r=pehrsons
MozReview-Commit-ID: 5vPtTHBGJhN

--HG--
extra : rebase_source : fc5ac99c261120c10d43616650c94bdbf63d3bbc
2017-06-27 13:55:45 -04:00
Andrew Swan
e9b0926a4a Bug 1369517 Make automation work with legacy extensions disabled r=rhelmer
- Set the extensions.legacy.enabled pref for mochitests etc
- Skip a plugin-inside-xpi test for now if legacy extensions
  are force-disabled.  That test can just be removed once we
  get to 57.

MozReview-Commit-ID: As9LtkQTcTS

--HG--
extra : rebase_source : fcc84daef95c453e893cc3b98498fdb87f54b1bb
2017-06-01 21:20:08 -07:00
Tim Huang
5baaeb9625 Bug 1369319 - Part 1: Block device sensor events when 'privacy.resistFingerprinting' is true. r=arthuredelstein,bz
This patch adds a nsDeviceSensors::IsSensorEventBlocked() function to check
whether device sensor events should be blocked and replaces original
'device.sensors.enabled' check with this function. This function will not only
check 'privacy.resistFingerprinting' but also check 'device.sensors.enabled'.

MozReview-Commit-ID: 7NZiBHWN6y6

--HG--
extra : rebase_source : 54d4cd99e5dfb089f11b19b0b487ff5add34b69c
2017-06-20 11:10:06 +08:00
Carsten "Tomcat" Book
4e00eff077 merge mozilla-inbound to mozilla-central a=merge 2017-06-27 10:56:41 +02:00
Joanmarie Diggs
2ffc4eeb7d Bug 1376111 - Fix AXRoleDescription for ARIA heading role. r=MarcoZ
The AXRoleDescription should be "heading" not "AXHeading." Add a new
localized string and use it for roles::HEADING.
2017-06-26 00:43:00 -04:00
Boris Zbarsky
165cfab86b Bug 1371424 - Trace the right thing in TypedArray's TraceSelf implementation. r=mccr8 2017-06-08 16:56:43 -04:00
Daosheng Mu
51833534e1 Bug 1368284 - Add SH_ADD_AND_TRUE_TO_LOOP_CONDITION shader compile work around for Intel drivers on MacOSX; r=jgilbert
MozReview-Commit-ID: JMHuZirH4L5

--HG--
extra : rebase_source : b015176a20feba7a9032255323c0f2e4960a85d2
2017-06-26 08:39:30 -07:00
Hiroyuki Ikezoe
260c76375c Bug 1376247 - Set content property to generate ::before and ::after element for animations. r=birtles
For this test case, we can't use global '::before' and '::after' selectors
since it changes visiting order for the pseudo elements on updating styles
and leads to different results of observed records.

MozReview-Commit-ID: 4e4eZTmr0gJ

--HG--
extra : rebase_source : f966aef3145e317a81262eaf67f402a80af3a90c
2017-06-26 16:26:05 +09:00
Bill McCloskey
f115503a0b Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-26 14:19:58 -07:00
Geoff Brown
a9a8f70cf5 Bug 1324163 - Skip test browser_permissionsPromptDeny.js on osx for intermittent failures; r=me,test-only 2017-06-26 14:45:15 -06:00
Ehsan Akhgari
d4de856fb8 Bug 1376317 - Move the pref var cache for dom.placeholder.show_on_focus to nsContentUtils; r=smaug 2017-06-26 16:17:49 -04:00
Bevis Tseng
a29c316c12 Bug 1352401 - Part 2: Count active IDBOpenRequest, IndexedDB databases/transactions. r=janv
--HG--
extra : rebase_source : 3f59fe1087678af689384b34db440960966e00af
2017-06-16 19:06:36 +08:00
Masatoshi Kimura
b515c9c804 Bug 1373984 - Turn nsIDocument::mCharacterSet into mozilla::NotNull<const mozilla::Encoding*>. r=hsivonen
MozReview-Commit-ID: GF0YXDwfA14

--HG--
extra : rebase_source : fdae0046f882d47fb539a7f882364e5c5caafdcd
extra : source : 49249788c0dee331ac2989dc39f0505d965a7bd8
2017-06-18 20:37:50 +09:00
Carsten "Tomcat" Book
259377b6ab merge mozilla-inbound to mozilla-central a=merge 2017-06-26 13:25:51 +02:00
Tobias Schneider
a07fe5b976 Bug 1369253 - Disable redundant dom/base/test/test_intersectionobserver_no_root.html on all platforms. r=jmaher
--HG--
extra : rebase_source : 5b879051cfc906193fd58927b336921c2ffe52df
2017-06-25 15:32:46 -07:00
Olli Pettay
70cd98776b Bug 1375484 - ScrollSelectionIntoViewEvent should be called during refresh driver tick, r=ehsan 2017-06-25 00:38:42 +03:00
Mats Palmgren
bc9111ed74 Bug 1375696 - Use LookupForAdd instead of Get+Put, and Lookup instead of GetWeak+Remove, to avoid unnecessary hashtable lookups. r=froydnj
MozReview-Commit-ID: EPbMZAsdS6B
2017-06-24 19:23:08 +02:00
Mats Palmgren
bbaa13e6a7 Bug 1375698 part 2 - Make mBoxObjectTable a nsRefPtrHashtable of BoxObject instead of nsInterfaceHashtable of nsPIBoxObject (that we then need to downcast). r=bz
MozReview-Commit-ID: AVfZZp21u2e
2017-06-24 19:23:08 +02:00
Mats Palmgren
969156ef55 Bug 1375698 part 1 - Call "new BoxObject" instead of do_CreateInstance(contractID) and remove some unnecessary error handling since "new" is infallible. r=bz
MozReview-Commit-ID: 32upaFJehsh
2017-06-24 19:23:07 +02:00
David Anderson
07b79273e2 Add Advanced Layers to the compositor line in about:support. (bug 1365879 part 22, r=milan) 2017-06-23 14:23:13 -07:00
Joel Maher
a039d5288b Bug 1311239 - Intermittent dom/security/test/hsts/browser_hsts-priming_hsts_after_mixed.js. temporarily disable. r=gbrown
MozReview-Commit-ID: EWCAOjebfcH
2017-06-23 15:12:34 -04:00
Tim Taubert
907f818103 Bug 1375744 - Add U2FTokenTransport::Cancel() to abort requests on HW devices r=qDot
This patch adds a Cancel() method to the U2FTokenTransport interface so that
we can forward request cancellations to the actual token manager implementation.
The current softtoken doesn't need that as it processes API calls synchronously,
USB HID tokens however need a cancellation mechanism.

The SendRequestCancel() call has been removed from WebAuthnManager::Cancel() as
we're currently only calling this method either when the chrome process
cancels the request (and then we don't need to send it back again) or the
content process fails to process the data after a request was fulfilled and
thus there's nothing to cancel. We will touch this again later when the UI
cancels requests on tab switch and similar user actions.
2017-06-23 21:04:38 +02:00
JW Wang
43c85c2307 Bug 1376227. P5 - merge CreateResource() and Load() for they are highly coupled. r=gerald
MozReview-Commit-ID: EH9NROdQfmd

--HG--
extra : rebase_source : 63c2ba04de1a25fb05db15977d8a19638e31b272
2017-06-23 15:39:57 +08:00
JW Wang
42e66521f5 Bug 1376227. P4 - remove the unused parameter from FinishDecoderSetup(). r=gerald
MozReview-Commit-ID: 7Ux811oMq9y

--HG--
extra : rebase_source : 82f058ad862daf93bc3c5bbb2dbc6a1b57757811
2017-06-23 15:25:40 +08:00
JW Wang
350f03bde7 Bug 1376227. P3 - move Load() down the class hierarchy. r=gerald
So we won't pass an unused |nsIStreamListener**| to MediaSourceDecoder::Load().

MozReview-Commit-ID: 2TCby8m8K5H

--HG--
extra : rebase_source : 349179aa4303c0abd8b86a695789770e158e5c28
extra : intermediate-source : d6f550bd6709a0ee7db6033286af42565a20cdb1
extra : source : ed524d855a1a78665c499152a9360ba961655641
2017-06-23 14:12:41 +08:00
Jeff Gilbert
1f52f0ef2c Bug 1375721 - Use SH_SCALARIZE_VEC_AND_MAT_CONSTRUCTOR_ARGS on Intel+OGL. r=daoshengmu
MozReview-Commit-ID: AuXtjsY4IjQ

--HG--
extra : source : d5e61d70359afa2e24c444b94739bcf35f7460b2
extra : amend_source : 567166379cabc25106debfbd3c095f474ee58b6b
2017-06-22 18:54:16 -07:00
JW Wang
1dbf0f77fa Bug 1376227. P2 - remove unused code following P1. r=gerald
MozReview-Commit-ID: JbwY1Owtk7H

--HG--
extra : rebase_source : 0f82ac16f56ce6ba27944b093b49c8ff6479e66c
extra : intermediate-source : 38c1c8a70fb0209f8c6a3ca596664db9af089763
extra : source : 7cfe394c4790ca7687db9004c96380f088c2bb59
2017-06-21 17:34:22 +08:00
JW Wang
884c26d368 Bug 1376227. P1 - let MediaDecoder sub-classes have the knowledge how to create a MediaResource. r=gerald
MozReview-Commit-ID: 2fHEkU46MUr

--HG--
extra : rebase_source : 18f5b01a065d6acbdc88ce808f8bd1e8e462e8d7
extra : intermediate-source : e003e070535d95f7e6334f4a92d6d763d436023c
extra : source : 450d506c6bb85f53b44fed296a32845bcd777905
2017-06-21 17:30:56 +08:00
Cameron McCormack
fab1072b7f Bug 1291515 - Part 1: Introduce a pref for <style scoped>. r=bholley,dbaron
MozReview-Commit-ID: 1J9IvPrC0xh

--HG--
extra : rebase_source : 4a3da0dc41ec71d2804e6f8a778613e8749940be
2017-06-21 09:25:43 +08:00
Sebastian Hengst
dfc1ad2562 Backed out changeset 7235d05662b0 (bug 1373984) for Android bustage. r=backout on a CLOSED TREE 2017-06-25 18:30:13 +02:00
Masatoshi Kimura
2e04751921 Bug 1373984 - Turn nsIDocument::mCharacterSet into mozilla::NotNull<const mozilla::Encoding*>. r=hsivonen
MozReview-Commit-ID: GF0YXDwfA14

--HG--
extra : rebase_source : a84ab644f52e68676b45f112ff69f868d89f6177
extra : source : 49249788c0dee331ac2989dc39f0505d965a7bd8
2017-06-18 20:37:50 +09:00
Wes Kocher
913ce205d2 Backed out 2 changesets (bug 1291515) for reftest assertions in textarea-fieldset-legend-ref-2.html a=backout CLOSED TREE
Backed out changeset 4fac24cc0437 (bug 1291515)
Backed out changeset 4e8b918dc410 (bug 1291515)

MozReview-Commit-ID: F4yQK5ujqLP
2017-06-25 05:18:22 -07:00
Wes Kocher
e02435a31e Backed out changeset 77af189b5c49 (bug 1373984) for build bustage in nsHtml5Parser.cpp a=backout CLOSED TREE
MozReview-Commit-ID: 6kBmU71j2To
2017-06-25 05:10:14 -07:00
Cameron McCormack
deae2413d6 Bug 1291515 - Part 1: Introduce a pref for <style scoped>. r=bholley,dbaron
MozReview-Commit-ID: 1J9IvPrC0xh

--HG--
extra : rebase_source : 2c3a139cc5e4e223e5b9b7892020c96df2cf264c
2017-06-21 09:25:43 +08:00
Masatoshi Kimura
241039fd97 Bug 1373984 - Turn nsIDocument::mCharacterSet into mozilla::NotNull<const mozilla::Encoding*>. r=hsivonen
MozReview-Commit-ID: GF0YXDwfA14

--HG--
extra : rebase_source : 09da1685795583513bf019d61c58230c2c4d298d
extra : source : 49249788c0dee331ac2989dc39f0505d965a7bd8
2017-06-18 20:37:50 +09:00
Jean-Yves Avenard
f71786c57f Bug 1374774: P4. Correct H264 telemetry reporting. r=gerald
The code couldn't have worked, mNeedSPSForTelemetry can only be set if we didn't get an H264 extradata in the MP4 metadata.
So any calls to HasSPS(sample->mExtraData) would have always returned false.

MozReview-Commit-ID: 3PcRXJHBJyC

--HG--
extra : rebase_source : 5b70a1e40b38b61982264784c489f11ddf9d4682
2017-06-22 14:52:07 +02:00
Jean-Yves Avenard
234164b774 Bug 1374774: P3. Remove HasSPS method. r=gerald
It was only used in one spot, and incorrectly at that.

MozReview-Commit-ID: EWkkrAlYT7W

--HG--
extra : rebase_source : a19afe8f49e1e0fd430ddbff81978eb3511c5fb5
2017-06-22 14:44:21 +02:00
Jean-Yves Avenard
0ac3f1c5b4 Bug 1374774: P1. Move H264 methods into H264 code. r=gerald
HasSPS, ExtractExtraData and CompareExtraData have nothing to do with the handling of annex B format. They are raw H264 related methods.

It will also prevent in the following change to have cycling references between two headers.

MozReview-Commit-ID: FCs5aU4GcTU

--HG--
extra : rebase_source : a96fe0c70416d38690b0c2f1dee567b0b025e947
2017-06-22 14:36:11 +02:00
Eden Chuang
0a91438f97 Bug 1318990 - Mochitest for PaymentRequestUpdateEvent and PaymentRequest API show(). r=baku 2017-06-23 17:15:58 +08:00
Eden Chuang
4282643952 Bug 1318990 - PaymentRequestUpdateEvent interface and PaymentRequest API onshippingaddress/optionchange implementation. r=baku 2017-06-23 17:15:51 +08:00
Ben Kelly
8878d13ff4 Bug 1375287 Make TimeoutManager use a pref cache variable for dom.disable_open_click_delay. r=ehsan 2017-06-23 07:03:30 -07:00
Sebastian Hengst
261b25bf86 Backed out changeset 0d953ca28add (bug 1374774) for bustage at media/libstagefright/binding/H264.cpp(205). 'ptr' not declared. r=backout on a CLOSED TREE 2017-06-24 00:49:18 +02:00
Sebastian Hengst
ca778305be Backed out changeset 361c9c559b7e (bug 1374774) 2017-06-24 00:48:18 +02:00
Sebastian Hengst
1f514e90aa Backed out changeset e7e570157874 (bug 1374774) 2017-06-24 00:48:14 +02:00
Jean-Yves Avenard
bfeee68f7d Bug 1374774: P4. Correct H264 telemetry reporting. r=gerald
The code couldn't have worked, mNeedSPSForTelemetry can only be set if we didn't get an H264 extradata in the MP4 metadata.
So any calls to HasSPS(sample->mExtraData) would have always returned false.

MozReview-Commit-ID: 3PcRXJHBJyC

--HG--
extra : rebase_source : 4137b9c985ffe7ee3958fad509149bf911229eed
2017-06-22 14:52:07 +02:00
Jean-Yves Avenard
bcd57adc64 Bug 1374774: P3. Remove HasSPS method. r=gerald
It was only used in one spot, and incorrectly at that.

MozReview-Commit-ID: EWkkrAlYT7W

--HG--
extra : rebase_source : 9c719bbf668eafaac0415580ffdfa0cea0942673
2017-06-22 14:44:21 +02:00
Jean-Yves Avenard
abaade7f70 Bug 1374774: P1. Move H264 methods into H264 code. r=gerald
HasSPS, ExtractExtraData and CompareExtraData have nothing to do with the handling of annex B format. They are raw H264 related methods.

It will also prevent in the following change to have cycling references between two headers.

MozReview-Commit-ID: FCs5aU4GcTU

--HG--
extra : rebase_source : b204723cdbb599d4f0a227871ed28f5da39e9cff
2017-06-22 14:36:11 +02:00
Kartikaya Gupta
0514137fed Bug 1375897 - Report a success return from nsDOMWindowUtils::FlushApzRepaints in the WR-enabled codepath. r=botond
MozReview-Commit-ID: 5MaDaQjqu3p

--HG--
extra : rebase_source : a1210fa3d24db3401e44ea40ef185f241177b16a
2017-06-23 12:45:49 -04:00
Carsten "Tomcat" Book
aff5288bae Merge mozilla-central to mozilla-inbound 2017-06-23 13:00:34 +02:00
Carsten "Tomcat" Book
dc54f8e362 Backed out changeset dfdccf4dc6a1 (Bug 1368284) to fix bustage a=me 2017-06-23 12:56:08 +02:00
Carsten "Tomcat" Book
88fff78f64 Merge mozilla-central to mozilla-inbound 2017-06-23 12:22:24 +02:00
Carsten "Tomcat" Book
35cd4f0c51 Bug 1365879 - Revert merge conflict resolution to fix bustage a=me
--HG--
extra : amend_source : 5b5c8fb8a5226c001eb0092c6d32624ac3f4b8df
2017-06-23 12:18:40 +02:00
Carsten "Tomcat" Book
661c4ea09c Backed out changeset be62d3eb3b3b (bug 1365879) 2017-06-23 12:15:30 +02:00
Carsten "Tomcat" Book
7af37a52bd Merge mozilla-central to mozilla-inbound 2017-06-23 11:44:21 +02:00
Carsten "Tomcat" Book
5f51e5596e merge mozilla-inbound to mozilla-central a=merge 2017-06-23 11:28:19 +02:00
Florian Quèze
2924991bf6 Bug 1368456 - remove Promise.jsm imports in tests, r=mconley. 2017-06-23 11:25:52 +02:00
Florian Quèze
721c3ada5e Bug 1368456 - Remove imports of Promise.jsm from Firefox, r=mconley. 2017-06-23 11:25:18 +02:00
Phil Ringnalda
a53a350cd6 Backed out changeset 91f89d105e2f (bug 1372385) for unexpected passes of test_2_conformance__textures__misc__tex-image-with-format-and-type.html on OS X
MozReview-Commit-ID: 5GpTjEQ8zjQ
2017-06-22 22:23:59 -07:00
Nicholas Nethercote
58786e1ea7 Bug 1375392 - Tweak the PROFILER_LABEL* macros. r=mstange.
This patch makes the following changes to the macros.

- Removes PROFILER_LABEL_FUNC. It's only suitable for use in functions outside
  classes, due to PROFILER_FUNCTION_NAME not getting class names, and it was
  mostly misused.

- Removes PROFILER_FUNCTION_NAME. It's no longer used, and __func__ is
  universally available now anyway.

- Combines the first two string literal arguments of PROFILER_LABEL and
  PROFILER_LABEL_DYNAMIC into a single argument. There was no good reason for
  them to be separate, and it forced a '::' in the label, which isn't always
  appropriate. Also, the meaning of the "name_space" argument was interpreted
  in an interesting variety of ways.

- Adds an "AUTO_" prefix to PROFILER_LABEL and PROFILER_LABEL_DYNAMIC, to make
  it clearer they construct RAII objects rather than just being function calls.
  (I myself have screwed up the scoping because of this in the past.)

- Fills in the 'js::ProfileEntry::Category::' qualifier within the macro, so
  the caller doesn't need to. This makes a *lot* more of the uses fit onto a
  single line.

The patch also makes the following changes to the macro uses (beyond those
required by the changes described above).

- Fixes a bunch of labels that had gotten out of sync with the name of the
  class and/or function that encloses them.

- Removes a useless PROFILER_LABEL use within a trivial scope in
  EventStateManager::DispatchMouseOrPointerEvent(). It clearly wasn't serving
  any useful purpose. It also serves as extra evidence that the AUTO_ prefix is
  a good idea.

- Tweaks DecodePool::SyncRunIf{Preferred,Possible} so that the labelling is
  done within them, instead of at their callsites, because that's a more
  standard way of doing things.

--HG--
extra : rebase_source : 318d1bc6fc1425a94aacbf489dd46e4f83211de4
2017-06-22 17:08:53 +10:00
Gerald Squelart
3faa7098b0 Bug 1374441 - Backed out bug 1374173 (MediaCacheStream Seek&Read refactoring) - r=jwwang
Bug 1374173 seems to be the cause of all MediaCache intermittent assertion
failures. It's not an important bug, so let's back-out and verify that
intermittents disappear.

MozReview-Commit-ID: 2X8iW1hWu99

--HG--
extra : rebase_source : e22443a5b9d5ba9a6ce4b126953a880e8e469cd2
2017-06-23 13:18:07 +12:00
Chris Pearce
5734680cc7 Bug 1375708 - Use base::Time() instead of time(0) in WidevineDecryptor::GetCurrentWallTime(). r=gerald
On Linux some implementations of time(0) appear to be suffering from integer
overflow and giving us the wrong dates. This causes the time we expose to the
CDM to be wrong, and so licenses passed to the CDM are failing to authenticate,
and Netflix is thus broken on some Linux systems.

This is only happening in Firefox 54 and earlier, as in those versions we use
the WidevineDecryptor to talk to the CDM. In 55 (in beta) and later we use the
PChromiumCDM protocol to talk to the CDM. This doesn't use time(0) to get a
time for the CDM, so it's immune to the problem here.

So this patch makes the GetCurrentWallTime() implementation in
WidevineDecryptor match the code currently being used on Nightly and Beta in
the ChromiumCDMChild::GetCurrentWallTime() function.

Since we use the PChromiumCDM protocol to talk to the CDM on Nightly and Beta
by default, the WidevineDecryptor isn't actually being used on Nightly and
Beta. So this patch will only cause a behaviour change in Release, which still
uses the old backend. However it will make Release run the same code that we're
running in Nightly and Beta, so it should be safe to uplift to Release.

MozReview-Commit-ID: J58iDyinyQG

--HG--
extra : rebase_source : dcdf4a846f7b007526aa626db24598942f13f01d
2017-06-23 16:02:14 +12:00
bechen
64a0e9a63e Bug 1373975 - Modify the testcase to meet spec. if a cue.endTime is equal to playbacktime, the cue is not an activeCue. r=rillian
MozReview-Commit-ID: 24sXOtW3n54

--HG--
extra : rebase_source : e9ea01def3c9bdf4485530a1c8616b001e6f2dee
2017-06-23 09:36:20 +08:00
Nicholas Nethercote
f1364a75ea Bug 1374580 (part 3) - Remove ns{,C}Substring typedefs. r=froydnj.
All the instances are converted as follows.

- nsSubstring  --> nsAString
- nsCSubstring --> nsACString

--HG--
extra : rebase_source : cfd2238c52e3cb4d13e3bd5ddb80ba6584ab6d91
2017-06-20 19:19:52 +10:00
Nicholas Nethercote
fe9268c4cd Bug 1374580 (part 2) - Remove nsAFlat{,C}String typedefs. r=froydnj.
All the instances are converted as follows.

- nsAFlatString  --> nsString
- nsAFlatCString --> nsCString

--HG--
extra : rebase_source : b37350642c58a85a08363df2e7c610873faa6e41
2017-06-20 19:19:05 +10:00
Nicholas Nethercote
1572f96f5d Bug 1374580 (part 1) - Remove nsASingleFragment{,C}String typedefs. r=froydnj.
All the instances are converted as follows.

- nsASingleFragmentString  --> nsAString
- nsASingleFragmentCString --> nsACString

--HG--
extra : rebase_source : e6a1ddc8938fecd9a735b15e872c054edf4c7910
2017-06-20 19:18:17 +10:00
Phil Ringnalda
3b305b4a7d Backed out 2 changesets (bug 1373007) for failing to mark the unexpected passes on OS X
Backed out changeset 667c5d2b3f77 (bug 1373007)
Backed out changeset 730c95f8ee15 (bug 1373007)

MozReview-Commit-ID: 4qbmDgXpmbJ
2017-06-22 21:32:38 -07:00
David Anderson
52d5447f23 Add Advanced Layers to the compositor line in about:support. (bug 1365879 part 22, r=milan)
--HG--
extra : rebase_source : 123d4190c0343b60491f34757b26532b9def5075
2017-06-22 21:12:20 -07:00
Jeff Gilbert
ad01c14ec9 Bug 1375721 - Use SH_SCALARIZE_VEC_AND_MAT_CONSTRUCTOR_ARGS on Intel+OGL. - r=daoshengmu
MozReview-Commit-ID: AuXtjsY4IjQ
2017-06-22 20:03:11 -07:00
Tim Taubert
237ab99f6b Bug 1375512 - Don't require a U2F*TokenManager to expose IsRegistered() r=qDot 2017-06-23 04:50:31 +02:00
Tim Taubert
d22430064c Bug 1375450 - Remove unused U2FTokenManager::PrefPromise r=qDot 2017-06-23 04:49:44 +02:00
Nicholas Nethercote
915a56fb41 Bug 1375299 (part 2) - Remove PROFILER_MARKER. r=mstange.
PROFILER_MARKER is now just a trivial wrapper for profiler_add_marker(). This
patch removes it.

--HG--
extra : rebase_source : 9858f34763bb343757896a91ab7ad8bd8e56b076
2017-06-22 13:40:21 +10:00
Nicholas Nethercote
4b364cf3f3 Bug 1375299 (part 1) - Reduce usage of MOZ_GECKO_PROFILER. r=mstange.
This patch reduces the differences between builds where the profiler is enabled
and those where the profiler is disabled. It does this by removing numerous
MOZ_GECKO_PROFILER checks.

These changes have the following consequences.

- Various functions and classes are now defined in all builds, and so can be
  used unconditionally: profiler_add_marker(), profiler_set_js_context(),
  profiler_clear_js_context(), profiler_get_pseudo_stack(), AutoProfilerLabel.
  (They are effectively no-ops in non-profiler builds, of course.)

- The no-op versions of PROFILER_* are now gone. The remaining versions are
  almost no-ops when the profiler isn't built.

--HG--
extra : rebase_source : 8fb5e8757600210c2f77865694d25162f0b7698a
2017-06-22 06:26:16 +10:00
Mats Palmgren
4773d84ed5 Bug 1375097 - Remove nsRange::SetEnableGravitationOnElementRemoval() since it's now dead code. r=smaug
MozReview-Commit-ID: Er67fFQP5lF
2017-06-23 02:03:09 +02:00
Mats Palmgren
3ae8e80f81 Bug 1375075 - Remove a FlushPendingNotifications that we don't need anymore. r=cpearce
The code that needed it was removed in bug 1325053.

MozReview-Commit-ID: 8P60SOpqyPq
2017-06-23 02:03:09 +02:00
Mats Palmgren
c3f48d9dd2 Bug 1374875 - Use simpler mutation observer than nsRange for media elements. r=cpearce
MozReview-Commit-ID: FVPdHC6tBXg
2017-06-23 02:03:08 +02:00
Nicholas Nethercote
033f83145c Bug 1375387 - Reorder and section-ify GeckoProfiler.h. r=mstange.
This patch gives some structure and order to the profiler's API.

It also renames AutoProfilerRegister as AutoProfilerRegisterThread, to match
profiler_register_thread().
2017-06-22 14:28:47 +10:00
Joanmarie Diggs
1115881728 Bug 1375460 - "haspopup" AtkObject attribute missing if multiprocess enabled. r=surkov
Move the object attribute exposure of states::HASPOPUP from the ATK wrapper
code to the shared accessibility code. Call UniversalStatesFor() rather than
State() for performance.

--HG--
extra : rebase_source : e31c2d00da302538a7f6962d8f4dfd148a7d877e
2017-06-22 07:25:00 -04:00
Jeff Gilbert
676a7d42b3 Bug 1373007 - Update test markings.
MozReview-Commit-ID: GqfGNu1T048
2017-06-22 14:45:57 -07:00
Wes Kocher
3bb3ab3c6b Merge m-c to inbound, a=merge
MozReview-Commit-ID: Ot7Jjxzf5r
2017-06-22 14:18:12 -07:00
Wes Kocher
3947450ee6 Merge autoland to central, a=merge
MozReview-Commit-ID: DBM5ExEXtYD
2017-06-22 14:10:19 -07:00
Samuel Vargas
39d0d66ae6 Bug 1373007 - WebGL 1.04 extensions/webgl-draw-buffers-framebuffer-unsupported - r=jgilbert 2017-06-22 14:06:08 -07:00
Samuel Vargas
b2d3e3f7f6 Bug 1372385 - Fix premultiplication for LUMINANCE / LUMINANCE_ALPHA on WebGL2 conformance test - r=jgilbert 2017-06-22 14:03:45 -07:00
Olli Pettay
8d489930b6 Bug 1374416 - don't dispatch the selectionchange event for pages that don't have such a listener registered, r=mystor
--HG--
extra : rebase_source : 7fb95e7f3c766b9de3a00175a0133093e2d194b1
2017-06-22 21:01:27 +03:00
Andreas Farre
57d28e218a Bug 1373536 - Add missing includes due to added file. r=smaug
--HG--
extra : rebase_source : 1f71fd6d4101a78b3337f674f4ea4d4501c41093
2017-06-21 12:14:01 +02:00
Andreas Farre
97fadb7f9e Bug 1373536 - Clean up static API of TimeoutBudgetManager. r=smaug
--HG--
extra : rebase_source : aaaf54c48d480473569bdc87c58bd1c1d88966fc
2017-06-19 10:11:47 +02:00
Andreas Farre
8d5f7ca0b5 Bug 1373536 - Move TimeoutBudgetManager to its own file. r=bkelly
--HG--
extra : rebase_source : bde692176b4cf01dd6d6aaf167a91acf6c92e504
2017-06-16 09:17:09 +02:00
Ho-Pang Hsu
13dd8118c8 Bug 1290951 - P4.2: Add a mochitest for an useless imported script after an update. r=bkelly 2017-06-07 14:07:20 +08:00
Ho-Pang Hsu
1851f6f815 Bug 1290951 - P3.3: Move state checks to MOZ_DIAGNOSTIC_ASSERT(). r=bkelly 2017-06-07 14:06:23 +08:00
Ho-Pang Hsu
0dc81e4531 Bug 1290951 - P3.2: Tolerate missing imported scripts. r=bkelly 2017-06-07 14:16:21 +08:00
Ho-Pang Hsu
7ed52794dc Bug 1290951 - P3.1: Extend bytecheck to imported scripts. r=bkelly 2017-06-07 14:03:12 +08:00
Ho-Pang Hsu
e8863b6170 Bug 1290951 - P2.3: Change the relationship between CompareManager, CompareNetwork, and CompareCache. r=bkelly 2017-06-07 14:02:27 +08:00
Ho-Pang Hsu
6a270821f2 Bug 1290951 - P2.2: Make CompareManager::ComparisonFinished() public. r=bkelly 2017-06-07 14:01:50 +08:00
Ho-Pang Hsu
8f47260dec Bug 1290951 - P2.1: Simplify the relationship between CompareManager, CompareNetwork and CompareCache. r=bkelly 2017-06-07 13:59:48 +08:00
Ho-Pang Hsu
3ea8817c0f Bug 1290951 - P1.2: Change the lifecycle of CompareManager and CompareCache to get the script URL list before actual comparing. r=bkelly 2017-06-07 13:56:59 +08:00
Andreas Farre
4b620e2aca Bug 1373536 - Unify execution measurements. r=bkelly
Expose the utility framework for computing runnable execution time for
telemetry to be able to use it for managing budget times.

--HG--
extra : rebase_source : c7aba3d039116ed10597e7b58e2c6e7911cb493d
2017-05-30 13:08:11 +02:00
Ho-Pang Hsu
50b74db79a Bug 1290951 - P1.1: Move some function implementations out of their class definitions. r=bkelly 2017-05-24 11:32:59 +08:00