Commit Graph

61659 Commits

Author SHA1 Message Date
Xidorn Quan
2df49dbac2 Bug 1343964 part 1 - Move URLExtraData into its own header. r=heycam
This patch does the following in addition to a simple move:
* change the type of the pointers from RefPtr to nsCOMPtr
* move it from mozilla::css namespace to mozilla

MozReview-Commit-ID: 72MYq6kWm4s

--HG--
extra : rebase_source : 400fe0d7cc422f22592c302cfd4e457830b77e3e
2017-04-04 10:04:13 +10:00
Mike Conley
2228d5aa1b Bug 1354080 - Stop doing needless work in the parent process every time the refresh driver ticks. r=kats
When we're animating, we tick the refresh driver. If that occurs in the parent process
when e10s is enabled, then we currently run TabParent::DidRefresh which does some
dimensions calculations and might send a message to the content process if the
dimensions have changed.

This was originally added to fix a B2G bug in bug 1153023. We don't need to do it
anymore, since we don't set CSS transforms on content browser windows.

MozReview-Commit-ID: JJ7AJHlSyWn

--HG--
extra : rebase_source : b45c9f02c3db8b7ecf0beb40fa7540db39473e8d
2017-04-06 18:11:34 -04:00
Wes Kocher
0c3144c6f6 Merge inbound to central, a=merge 2017-04-06 15:01:34 -07:00
Carsten "Tomcat" Book
7408344f87 Merge mozilla-central to mozilla-inbound 2017-04-06 13:10:09 +02:00
Carsten "Tomcat" Book
207b516e89 merge mozilla-inbound to mozilla-central a=merge 2017-04-06 12:50:50 +02:00
John Dai
6b23abee71 Bug 1350960 - Release CustomElementReactionsStack in TabGroup thread when DocGroup is going away. r=billm 2017-04-05 00:04:00 -04:00
Mark Banner
5cb239b14a Bug 1347482 - Change various DOM tests to run the navigator checks in sub-iframes. r=mystor
We have to run the navigator checks in sub-iframes as we need to set preferences which affect navigator's API
which may or may not be already initialised with the current settings. The sub-iframes will have a navigator
object set up with the expected preferences for the test.

The iframes all call into the parent to publish the test results, this is because the SimpleTest infrastructure
doesn't cope with results being published from sub-iframes.

MozReview-Commit-ID: GFVQHMVkbMP

--HG--
rename : dom/power/test/test_bug957899.html => dom/power/test/test_bug957899_iframe.html
rename : dom/presentation/tests/mochitest/test_presentation_availability.html => dom/presentation/tests/mochitest/test_presentation_availability_iframe.html
rename : dom/tests/mochitest/gamepad/test_check_timestamp.html => dom/tests/mochitest/gamepad/test_check_timestamp_iframe.html
rename : dom/tests/mochitest/gamepad/test_gamepad_connect_events.html => dom/tests/mochitest/gamepad/test_gamepad_connect_events_iframe.html
rename : dom/tests/mochitest/gamepad/test_gamepad_extensions.html => dom/tests/mochitest/gamepad/test_gamepad_extensions_iframe.html
rename : dom/tests/mochitest/gamepad/test_gamepad_frame_state_sync.html => dom/tests/mochitest/gamepad/test_gamepad_frame_state_sync_iframe.html
rename : dom/tests/mochitest/gamepad/test_gamepad_hidden_frame.html => dom/tests/mochitest/gamepad/test_gamepad_hidden_frame_iframe.html
rename : dom/tests/mochitest/gamepad/test_gamepad.html => dom/tests/mochitest/gamepad/test_gamepad_iframe.html
rename : dom/tests/mochitest/gamepad/test_navigator_gamepads.html => dom/tests/mochitest/gamepad/test_navigator_gamepads_iframe.html
rename : dom/tests/mochitest/geolocation/test_geolocation_is_undefined_when_pref_is_off.html => dom/tests/mochitest/geolocation/test_geolocation_is_undefined_when_pref_is_off_iframe.html
rename : dom/workers/test/test_navigator.html => dom/workers/test/test_navigator_iframe.html
rename : dom/workers/test/test_navigator.js => dom/workers/test/test_navigator_iframe.js
extra : rebase_source : fe0f3e342cb55b5e9da7038acb59b5e2a5c8767e
2017-04-04 21:53:27 +01:00
Mantaroh Yoshinaga
0d0fa5f03f Bug 1338069 - Don't use 'window' object when using getComputedStyle in tests. r=birtles
MozReview-Commit-ID: KWUNCIaF183

--HG--
extra : rebase_source : 93d7ba66d996d2b7fa835da272b509937a71f454
2017-04-06 12:43:47 +09:00
Boris Zbarsky
a66c62ea91 Bug 1352996. Remove vestige of AvailableIn/CheckAnyPermissions/CheckAllPermissions from WebIDL.py. r=qdot
MozReview-Commit-ID: HsvhRefytXQ
2017-04-05 23:04:26 -04:00
Kaku Kuo
7ab8b4bb1f Bug 1349097 P4 - add a mochitest; r=jwwang
MozReview-Commit-ID: A71wl09i0eq

--HG--
extra : rebase_source : 2ddd0504a94c7bbca2c6a127c23a6764b885ef21
extra : source : 1b8111b8d82a7745c4aaf5dd82512ffecea52cb7
2017-03-24 17:09:41 +08:00
Kaku Kuo
d894ae1293 Bug 1349097 P3 - don't dispatch another ended event while resuming the video decoder of an already-ended playback; r=jwwang
If the play state is already PLAY_STATE_ENDED, make MediaDecoder::PlaybackEnded() return early to prevent dispatching multiple ended event.

MozReview-Commit-ID: G5OU7WLYuMm

--HG--
extra : rebase_source : 17c8e355f59950166b112eaf2629f82b357fb60b
2017-04-05 22:57:25 +08:00
Kaku Kuo
944f44bf4d Bug 1349097 P2 - let CompletedState::HandleResumeVideoDecoding() seek to the last video frame; r=jwwang
StateObject::HandleResumeVideoDecoding() seeks to the current media time, however, if the playback had
ended and we would like to resume its video decoder, we should seek to the last video frame since the
audio might be longer than the video.

MozReview-Commit-ID: E6gAy7Ds9vn

--HG--
extra : rebase_source : a925d173689383e28ba136ebfb8e83a16151c1ce
2017-03-28 11:30:32 +08:00
Kaku Kuo
776b1dcb64 Bug 1349097 P1 - let HandleResumeVideoDecoding() take a const TimeUnit& argument; r=jwwang
MozReview-Commit-ID: BEBLUP9SwWC

--HG--
extra : rebase_source : 045520b1b17bfef7726fdad632f3611e67679c95
2017-03-28 11:21:41 +08:00
Hiroyuki Ikezoe
50ce1998ae Bug 1311257 - Update test expectations. r=heycam
MozReview-Commit-ID: K3HlC794cCo

--HG--
extra : rebase_source : 03d3df88c1d4ca452ab6d810efb9e7a154768b71
2017-04-06 10:34:51 +09:00
Hiroyuki Ikezoe
79052959a8 Bug 1311257 - Support missing keyframes handling for stylo. r=birtles
MozReview-Commit-ID: 1Iz6By2Y2Gp

--HG--
extra : rebase_source : 94dd3845c271e89f88dc7351b4cea179bd3bb2e5
2017-04-06 10:34:51 +09:00
Hiroyuki Ikezoe
e432173483 Bug 1311257 - getKeyframes() returns base computed values in missing keyframes. r=birtles
MozReview-Commit-ID: K8btLtALEfK

--HG--
extra : rebase_source : 1709e9a153790f90e26da7170273474a4a1d2dfd
2017-04-06 10:34:51 +09:00
Hiroyuki Ikezoe
2614ef2eac Bug 1311257 - Use underlying value for missing keyframes. r=birtles,heycam
mBaseStyleValuesForServo is a nsRefPtrHashtable<nsUint32HashKey, RawServoAnimationValue>
In this patch, we use void* instead of exposing nsRefPtrHashtable in FFI
because we just use the hash table as an argument of a C++ function, it means
we don't touch the hash table in Rust at all.

MozReview-Commit-ID: 1wM6NeF2S0t

--HG--
extra : rebase_source : 17908ff84d061e189f21641bf660dc9720b964bc
2017-04-06 10:34:51 +09:00
Hiroyuki Ikezoe
fa100db77c Bug 1311257 - Move stuff of KeyframeEffectReadOnly::ComposeStyleRule in Rust. r=heycam
After this, we will implement additive or accumulative calculation
in this Rust function.

MozReview-Commit-ID: 4xAvLz1oTIZ

--HG--
extra : rebase_source : c0672cb1c894eadaaebec94dce2f0d1c1a77d244
2017-04-06 10:34:51 +09:00
Hiroyuki Ikezoe
472261864f Bug 1311257 - Move AnimationPropertySegment in a separate header and expose it in FFI. r=heycam
This will be used for animation value composition in Rust.

MozReview-Commit-ID: Lg4dZrQW1WC

--HG--
extra : rebase_source : e03b19aa7907c122f773b2b06df96aee4fe32ae2
2017-04-06 10:34:50 +09:00
Hiroyuki Ikezoe
80d32932a1 Bug 1311257 - Store base styles for stylo. r=birtles
MozReview-Commit-ID: DcEx4aTDOY0

--HG--
extra : rebase_source : 39d161ca8226b75c6b1c6afec675b8763eb83c1f
2017-04-06 10:34:50 +09:00
Tobias Schneider
3f75e90062 Bug 1313972 - Intermittent dom/base/test/test_intersectionobservers.html | rootBounds should is set to null for cross-origin observations [observe subframe]. r=me
MozReview-Commit-ID: Gggt0RpyVm2
2017-04-05 23:32:47 -07:00
Olli Pettay
a998b2054d Bug 1353502 - nsContentUtils::RemoveScriptBlocker() shouldn't have diagnostic asserts since such show up in performance profiles, r=qDot 2017-04-06 12:08:14 +03:00
JW Wang
9e90566794 Bug 1353668. P3 - rename CMLOG to LOG. r=kaku
MozReview-Commit-ID: 67dN3NEBCA7

--HG--
extra : rebase_source : 2a7e2efd25078d64db2bb6aa454c6fbcc6f53da1
extra : source : e9753b7008497378a3a9ff3e97a00d4af68c5d95
2017-04-05 17:38:20 +08:00
JW Wang
db15462627 Bug 1353668. P2 - remove RESOURCE_LOG. r=kaku
MozReview-Commit-ID: 1PelTy83ETW

--HG--
extra : rebase_source : 10c37d38aca14da009557f81a1e34b96945d4024
extra : source : 5931f833ad91d177e393bf0cba36e2653f42de28
2017-04-05 17:27:35 +08:00
JW Wang
a7ba58c6c2 Bug 1353668. P1 - add a member function, CopySegmentToCache. r=kaku
MozReview-Commit-ID: 5uEWpMigspX

--HG--
extra : rebase_source : 51860bbc6e4de4f80045c774d3393158ff2251dd
extra : source : 9cb8013b0761a95eb0b30b83d05361a6d4dad7fd
2017-04-05 17:24:03 +08:00
JW Wang
555e36e1d0 Bug 1351574. P2 - let MediaDecoderReader::DecodeVideoFrame() take TimeUnit instead of int64_t. r=jya
MozReview-Commit-ID: 84z2yir8sfX

--HG--
extra : rebase_source : 9eda512734dfd7d72b107ee5c6e2c2bac9553b44
extra : source : 5c9d90e876ced6d35dd269e10c817de4f30288b3
2017-03-30 18:07:53 +08:00
JW Wang
8944536d62 Bug 1351574. P1 - let MediaDecoderReader::RequestVideoData() take TimeUnit instead of int64_t. r=jya
MozReview-Commit-ID: DOsYkcJ77Em

--HG--
extra : rebase_source : 3a62ef115f29121ff8b3f10651e4085ee9b0a5f9
extra : intermediate-source : cad177b6c8fbdc3dee80cc8fdb553b2d9d60bd04
extra : source : d26b8549793add957cb4620418fa861a3b8c7aec
2017-03-29 16:52:57 +08:00
Chris Pearce
967567edb5 Bug 1351953 - Pre-allocate shmems for the CDM process to use for storing decrypted and audio samples. r=gerald
Makes transfer of samples between the content and CDM processes use shmems.

The Chromium CDM API requires us to implement a synchronous interface to supply
buffers to the CDM for it to write decrypted samples into. We want our buffers
to be backed by shmems, in order to reduce the overhead of transferring decoded
frames. However due to sandboxing restrictions, the CDM process cannot allocate
shmems itself.  We don't want to be doing synchronous IPC to request shmems
from the content process, nor do we want to have to do intr IPC or make async
IPC conform to the sync allocation interface. So instead we have the content
process pre-allocate a set of shmems and give them to the CDM process in
advance of them being needed.

When the CDM needs to allocate a buffer for storing a decrypted sample, the CDM
host gives it one of these shmems' buffers. When this is sent back to the
content process, we copy the result out (uploading to a GPU surface for video
frames), and send the shmem back to the CDM process so it can reuse it.

We predict the size of buffer the CDM will allocate, and prepopulate the CDM's
list of shmems with shmems of at least that size, plus a bit of padding for
safety. We pad frames out to be the next multiple of 16, as we've seen some
decoders do that.

Normally the CDM won't allocate more than one buffer at once, but we've seen
cases where it allocates two buffers, returns one and holds onto the other. So
the minimum number of shmems we give to the CDM must be at least two, and the
default is three for safety.


MozReview-Commit-ID: 5FaWAst3aeh

--HG--
extra : rebase_source : a0cb126e72bfb2905bcdf02e864dc654e8340410
2017-03-28 18:59:11 +13:00
Chris Pearce
37ae2a9f5a Bug 1351953 - Make DecryptJob::PostResult take a mozilla::Span instead of nsTArray. r=gerald
This means we can pass anything that converts implicitly to a Span to
PostResult, including an nsTArray<uint8_t>. We can also pass a Span
that contains the contents of a Shmem's buffer.

MozReview-Commit-ID: 8AAcRmVCEVy

--HG--
extra : rebase_source : 44dfbc465db14bb689a653e6c0b3cbc626c0a0d1
2017-04-05 10:32:19 +12:00
Chris Pearce
fb5a8a3e0d Bug 1351953 - Send Data to CDM for decrypt and or decode in shmems. r=gerald
MozReview-Commit-ID: 2UdGimoOLKr

--HG--
extra : rebase_source : 04879d8c1639bf6f14cebc6031d8cc23e05e567a
2017-03-27 13:19:38 +13:00
JW Wang
65d7ce66ea Bug 1351053. P1 - add some assertions to debug who is holding the lock. r=jya
MozReview-Commit-ID: 6twXYbLm8Da

--HG--
extra : rebase_source : e122060580ca446e8de454384770e678bf18a117
2017-04-05 16:25:56 +08:00
Karl Tomlinson
1b6a37c1b9 bug 1353246 adjust int/float comparison to treat floats just outside the range of int as outside r=padenot
float(numeric_limits<int>::max()) can round up and so this inequality was
false even when f was (float)0x80000000 (without rounding) and could not be
represented by an int.

--HG--
extra : rebase_source : 758b66fcab9ec540cf444e573f7f3a7bf9c06ba2
2017-04-04 16:10:26 +12:00
Karl Tomlinson
cb207295b9 crashtest for bug 1274083 r=jesup
This needed some fine tuning to produce the crash, and so is a very specific
test.  It is still of value because this specific situation is not otherwise
tested, and it provides input to fuzzers for potential similar situations.

--HG--
extra : rebase_source : d87ec7d1e483a0a3045f07d7686b2be1b80a2e7f
2017-04-04 16:18:19 +12:00
Boris Zbarsky
8bd97a5230 Bug 1352926 - Make sure to check the right character for being semicolor or comma. r=farre
MozReview-Commit-ID: DOb1qYb8Tz4

--HG--
extra : rebase_source : c32eb7f63d132803bf5332320b3f7917159804f8
2017-04-04 16:24:46 -04:00
Brian Birtles
61d7e366f8 Bug 1315874 - Use base style context to resolve base values in nsSMILCSSProperty; r=heycam
MozReview-Commit-ID: 12Y6svWgXG

--HG--
extra : rebase_source : 345712d11b268648a18660decf4d2989384cd3c3
2017-04-03 16:49:27 +09:00
Brian Birtles
c94eac8983 Bug 1315874 - Pass a base style context to nsSMILCSSProperty; r=heycam
We will use this in the next patch in this series to fetch the base style.

(I tried simply passing this as a parameter to GetBaseStyle but it proved to be
more complicated since all the overrides of GetBaseStyle would need to be
updated to take a parameter that would be irrelevant to most of them.)

MozReview-Commit-ID: Fdr4rFUlE9V

--HG--
extra : rebase_source : 26978951302b4764938959a065402f05220b6093
2017-04-03 16:49:10 +09:00
Brian Birtles
33041d1214 Bug 1315874 - Drop 'ForElement' from GetStyleContextForElementXXX methods; r=heycam
In the next patch we want to add a method called
GetUnanimatedStyleContextForElementNoFlush but that's much too long. Instead it
seems better to just drop 'ForElement' from all these methods since it should be
fairly obvious we are getting the style context for an element given that the
first argument is an element.

MozReview-Commit-ID: JQKaEuCKV2F

--HG--
extra : rebase_source : 3ba51f3b00d1ec7bc91102629d9c0abb88992fef
2017-04-05 14:39:23 +09:00
Brian Birtles
6a706e8040 Bug 1315874 - Add MightNeedBaseStyle helper method; r=dholbert
We will use this in a subsequent patch in this series to determine if we need to
fetch a style context at the beginning of ComposeAttribute (when we create the
nsISMILAttr) or not.

MozReview-Commit-ID: CFBNmmFNNef

--HG--
extra : rebase_source : 4729b2e1194649f461c353fa74d99b5b7829a077
2017-04-03 16:49:09 +09:00
Brian Birtles
c02e19cf1f Bug 1315874 - Add a method to nsSMILCSSValueType that takes a StyleAnimationValue; r=dholbert
In a subsequent patch we will extract a StyleAnimationValue from an
nsStyleContext. Rather than serializing it and then re-parsing it into
a StyleAnimationValue, this patch adds a method to directly accept
a StyleAnimationValue since that is what nsSMILCSSValueType stores internally
anyway.

MozReview-Commit-ID: KBaLYAzAlWZ

--HG--
extra : rebase_source : b42f25236fba52939e07c63f5195d10678ea12bd
2017-03-30 16:53:15 +09:00
Kate McKinley
d082c41757 Bug 1322044 - Only mark a subdomain cached when includeSubDomains is true r=ckerschb,keeler
MozReview-Commit-ID: 3lFkuLauyGg

--HG--
extra : rebase_source : c356f1d4bef73b634eed6ca4d8078281ebc3ce3c
2017-02-13 13:36:01 +09:00
Sajid Ahmed
591da76059 Bug 1007034 - Add console warnings for the deprecated BindXXXParameter methods in mozIStorageBaseStatement and replace calls to the deprecated methods in dom/indexedDB/ActorsParent.cpp. r=mak
--HG--
extra : rebase_source : ac32534d36959ff7f3a1c3a382319e6de4225c2f
2017-04-05 14:08:25 -04:00
Wes Kocher
264adb55c2 Merge m-c to autoland, a=merge 2017-04-05 14:20:01 -07:00
Wes Kocher
3d900a5d7e Merge inbound to central, a=merge 2017-04-05 14:16:37 -07:00
Carsten "Tomcat" Book
c5364b4b43 Merge mozilla-central to mozilla-inbound 2017-04-05 14:50:28 +02:00
Carsten "Tomcat" Book
7a670cdd01 merge mozilla-inbound to mozilla-central a=merge 2017-04-05 14:33:35 +02:00
KuoE0
4f17947f0f Bug 1348738 - (Part 4) Add a nsIDocument arg to nsRepeatService::Start to get the event target from it. r=dholbert
In the new architecture of Quantum DOM, all timer callback need a
specified event target. So, we add the new document arg to Start
function to get the event target from it. And update all callers.

MozReview-Commit-ID: a482mukqGc

--HG--
extra : rebase_source : 36f9d47a4afd7c7113adf3f274656b694b8d0943
2017-03-29 16:40:05 +08:00
KuoE0
5f42875bfd Bug 1348738 - (Part 3) Add a string-label arg to nsRepeatService::Start and upgrade to InitWithNamedFuncCallback from InitWithFuncCallback. r=dholbert
In the new architecture of Quantum DOM, all runnables need a name label.
So, we add the new string-label arg to Start function, and update all
callers.

MozReview-Commit-ID: G9LXFjtFcQv

--HG--
extra : rebase_source : a19b605013be56d01780c831d2a48ada8825b1c7
2017-03-29 16:32:52 +08:00
Thomas Nguyen
afaba58d52 Bug 1339004 - Do DocGroup labeling in dom/security. r=ckerschb,smaug
MozReview-Commit-ID: 3QoH8P4J85I

--HG--
extra : rebase_source : 6f62454001fc02380f8aea99a56eff38de0e9fb6
2017-03-29 10:20:32 +08:00
bechen
268a2f5b7a Bug 1318542 - Label NODE_IS_NATIVE_ANONYMOUS on the elements from ::cue up to nsVideoFrame. r=bz,heycam
Since the ::cue div created by JS, it doesn't have the NODE_IS_NATIVE_ANONYMOUS flag.
We set the NODE_IS_NATIVE_ANONYMOUS when binding to domtree from the ::cue up to the RootOfAnonymousSubtree
so that GetClosestNonNativeAnonymousAncestor will return video element as style parent.

MozReview-Commit-ID: 3EiYOqnbY15

--HG--
extra : rebase_source : eedcd5948852c3405a719b9f3c3396ee009f7273
2017-04-05 10:48:52 +08:00
bechen
adb93a2342 Bug 1318542 - Add preference "media.webvtt.pseudo.enabled". r=rillian
MozReview-Commit-ID: BrdCPgapAYi

--HG--
extra : rebase_source : fdfd90313373394f2dc7f36c61a3a3fbd06c70f3
2017-04-05 10:48:49 +08:00