Граф коммитов

61805 Коммитов

Автор SHA1 Сообщение Дата
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
Phil Ringnalda 032b07550c Backed out changeset 4f7947062b4f (bug 1337062) for assertion failures in gfxVars.cpp
--HG--
extra : rebase_source : 307963eba4328b23edaf64e7255f5f501ace0efe
2017-04-06 20:11:19 -07:00
Gerald Squelart 9c16b0ccdc Bug 1337062 - Transfer initial gfxVars over command line - r=blassey
When a subprocess is launched, gfxVars updates (for non-default values) are
serialized and passed on the command line, up to a limit of 1023 characters,
and ensuring it should not overflow the command line size.

When the child starts, the command line parameter is given to gfxVars, so the
updates can be used during gfxVars::Initialize(), instead of doing a sync
request to the parent.

In case the updates are not sent, or in the unlikely case the child cannot
parse them, we fallback to the sync request -- The former case should be rare
enough that a slow sync request is acceptable: It should only happen if D3D
block-list is *modified* (most people would either use the default, or just
overwrite these prefs with short strings.)

MozReview-Commit-ID: 6MoJC0fe59Q

--HG--
extra : rebase_source : cdc2e451783160c579b8fc84050e8457c600523e
2017-03-28 12:16:41 +11:00
Xidorn Quan ea9834babb Bug 1343964 part 4 - Have document and svg:use element own URLExtraData. r=bholley,bz
MozReview-Commit-ID: 8451L5qJvEx

--HG--
extra : rebase_source : caa9b3ccd786563a59dc39fe7c23842928c173cc
2017-04-06 16:51:29 +10:00
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
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
Sebastian Hengst 548852b3a4 merge mozilla-central to autoland. r=merge a=merge 2017-04-07 22:16:26 +02:00
JW Wang eef6bbc8da Bug 1354444 - use shorter names for logging macros in FileBlockCache. r=kaku
MozReview-Commit-ID: 4uyYRjBupfN

--HG--
extra : rebase_source : 4b20ce71ceacfab6d6badb69e154fafbecdddb91
extra : source : dbce56553d04274b381a48efafbd2683a9cade9c
2017-04-07 15:05:30 +08:00
Henry Chang eec96acbf0 Bug 1343425 - Supports nsIURIClassifier.asyncClassifyLocalWithTables. r=baku
We add a new "on-off" protocol PURLClassifierLocal which calls
nsIURIClassifier.asyncClassifyLocalWithTables on construction and
calls back on destruction. Pretty much the same design as PURLClassifier.

In order to avoid code duplication, the actor implementation is templatized
and |MaybeInfo| in PURLClassifier.ipdl is moved around.

Test case is included and the custom event target is not in place for labelling.
The custom event target will be done in Bug 1353701.

MozReview-Commit-ID: IdHYgdnBV7S

--HG--
extra : rebase_source : ab1c896305b9f76cab13a92c9bd88c2d356aacb7
2017-04-07 14:15:16 +08:00
Chris Pearce a11f81c232 Bug 1349746 - Ensure we close media cache's temporary file if the cache shuts down while we're waiting for the FD to arrive. r=jwwang
MozReview-Commit-ID: HNXt3pYb1Iv

--HG--
extra : rebase_source : 5dccbbb4bf37bf31da145d70abab7373871a1413
2017-04-07 17:51:47 +12:00
JW Wang 3bffe4d29b Bug 1353607. P12 - replace |TimeUnit::ToMicroseconds()*double| with |TimeUnit::MultDouble()|. r=kikuo
MozReview-Commit-ID: 3QIBCCNf5G0

--HG--
extra : rebase_source : 2fc32888b25a8e99280719f9c05b8ad6e32a6ace
extra : intermediate-source : afdfb27d0351942c5d7cb40f2c5de41bcc17be34
extra : source : a21cc354bbb31fc93985c164d81d078bc48c830e
2017-03-29 15:00:46 +08:00
JW Wang 245c0bb647 Bug 1353607. P11 - use TimeUnit in RecomputeDuration(). r=kikuo
MozReview-Commit-ID: F16erI0580V

--HG--
extra : rebase_source : 19d992ea016dee69d6c65c6749d2df06e2226d4d
extra : intermediate-source : d08c41a590eef881e22b20bcadfb85d2ef089419
extra : source : 4e5a36536d34e51fbe92c640199fee6f5c8c712a
2017-03-29 14:52:08 +08:00
JW Wang df0ecce228 Bug 1353607. P10 - use TimeUnit in DropAudioUpToSeekTarget(). r=kikuo
MozReview-Commit-ID: 42HtGkCUsYI

--HG--
extra : rebase_source : 833a41333044936aec9b255b6480d594e5e29ff6
extra : intermediate-source : 3f7df8016e9f6b15a2be45216716ed9260dfd903
extra : source : 64bd1f792e8afa42dd3c87bc980d88d5fc557d5a
2017-03-29 14:46:15 +08:00
JW Wang 519fb03dfd Bug 1353607. P9 - change the underlying type of mCurrentPosition to TimeUnit. r=kikuo
MozReview-Commit-ID: ffquOIFlp3

--HG--
extra : rebase_source : 2f6e383a1995e91f395efb4d037e151a5a656248
extra : intermediate-source : 12403091f9cee42331e12eb13945b40d02dc842f
extra : source : 1149d57835c33231411692e74836fff37b3e74de
2017-03-28 18:13:22 +08:00
JW Wang 88fd9831d4 Bug 1353607. P8 - use TimeUnit in DispatchSetFragmentEndTime(). r=kikuo
MozReview-Commit-ID: IBLT0j7yMLK

--HG--
extra : rebase_source : a441e4f71c7286225deb3cc6719582b912549bd0
extra : intermediate-source : 2b7da6662a5a783e0cb9e574c5a8678c991aa306
extra : source : 0647d6d92deabbc38a22c5e681e71ce92fdd8267
2017-03-28 18:01:23 +08:00
JW Wang a40ec389de Bug 1353607. P7 - remove the unused function. r=kikuo
MozReview-Commit-ID: AWf7ritkbJ5

--HG--
extra : rebase_source : f0d1bc3737f5bdd0ebe67aaa0440da4d4dcb81c4
extra : intermediate-source : a1988b5e24c807885719330e00d0ee53541ad5ea
extra : source : b87cf11a3235a6cb5f3369f6fbf8a6bdf7f5d005
2017-03-28 17:29:24 +08:00
JW Wang 285e8bf172 Bug 1353607. P6 - use TimeUnit in CheckSlowDecoding(). r=kikuo
MozReview-Commit-ID: 524aRA1uUaQ

--HG--
extra : rebase_source : 9983ee9167c7e6420d7ebd529be8a985027c40d5
extra : intermediate-source : 56e1187c40b910d8cc233bd1dd86c963d0bdb249
extra : source : 29470ceae137940b6432a402249a56a82572adf0
2017-03-28 17:27:56 +08:00
JW Wang 1058fbba54 Bug 1353607. P5 - change the type of mDecodedAudioEndTime/mDecodedVideoEndTime to TimeUnit. r=kikuo
MozReview-Commit-ID: 2bVQD5BViU4

--HG--
extra : rebase_source : bfd903ba579728faee4e52028a475667b4345825
extra : intermediate-source : 7244b47b97aa15dbaea76e39646af208ef49640c
extra : source : 3a568910e2e46d766531407a488a3d825700321c
2017-03-28 17:20:17 +08:00
JW Wang fd5ea35288 Bug 1353607. P4 - change the type of mFragmentEndTime to TimeUnit. r=kikuo
MozReview-Commit-ID: FhUZMpXokSt

--HG--
extra : rebase_source : ad31b3f7efc88c35b94f1131fa4ccd99047e118d
extra : intermediate-source : 4afe1a64d13c7cb35025cc07cefc103132ea4c7c
extra : source : d6b2c91dc8845c718815080b7ce94d729154c3d0
2017-03-28 17:14:01 +08:00
JW Wang a87c5d2b36 Bug 1353607. P3 - use TimeUnit in ScheduleStateMachineIn(). r=kikuo
MozReview-Commit-ID: 5mfquK9TiDa

--HG--
extra : rebase_source : 97cf7b15265befc7b1ff14fbb4a39996a4cfb799
extra : intermediate-source : 0e2a1312d5c807860815ccd53b05d208bd2381de
extra : source : 50a8e1cbb21471033b19702962c9f27df26ae174
2017-03-28 17:10:59 +08:00
JW Wang fde98e4988 Bug 1353607. P2 - let GetDecodedAudioDuration() return a TimeUnit. r=kikuo
MozReview-Commit-ID: 5pLyACshP3e

--HG--
extra : rebase_source : ffc0235f14c12d4d8f44871ae5769a171222aebd
extra : intermediate-source : 422eff08d660192625ccabd4f2f063418ddab460
extra : source : ba186badc48371a0db16a1ffce8f188030558129
2017-03-28 16:54:39 +08:00
JW Wang 613fc16b11 Bug 1353607. P1 - remove the dead code. r=kikuo
MozReview-Commit-ID: 6FPq2ucZde5

--HG--
extra : rebase_source : 1b8b09e11b1cc0f993cca8ad93c7ad609c15fc6c
extra : intermediate-source : 2b8343bf767b81a1682a42c9873a36090414fab8
extra : source : 45d42bdde43465f28b4d5d57781bf37d62259b39
2017-03-28 16:49:31 +08: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
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
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
Jeremy Chen 5d31163dcd Bug 1341758 - update reftest expectations for image-orientation support. r=emilio
MozReview-Commit-ID: 6IdJU1YWbvJ

--HG--
extra : rebase_source : 6f7f95a7fd67558ecfd16071a2f7db4d267d7f1a
2017-04-11 16:32:20 +08:00
Carsten "Tomcat" Book 023be17063 Merge mozilla-central to autoland 2017-04-11 10:24:02 +02:00
Kaku Kuo 5af5ecf03f Bug 1348200 P2 - use resources in dom/canvas/test; r=dbaron
Followed by P1, we can use resources in dom/canvas/test now.

MozReview-Commit-ID: 4Pnj1fbcze4

--HG--
extra : rebase_source : 989e0f9c7230665a20527fc4d54bb0748233c133
2017-04-10 15:13:45 +08:00
Kaku Kuo e2f0c84312 Bug 1348200 P1 - prepare resources; r=dbaron
Put crossorigin/image.png, crossorigin/video.sjs, and media/test/320x240.ogv into mochitest.ini.

MozReview-Commit-ID: BYHMyx4mKFM

--HG--
extra : rebase_source : ef2eaca8c7fbe0152b651beb926710501de2cf9e
2017-04-10 15:08:37 +08:00
Chih-Yi Leu 068467ef9a Bug 1311802 - Part3 - Initialize VRHMDSensorstate in VRMockDisplay to prevent crash; r=daoshengmu
MozReview-Commit-ID: ArGz64pDgZ7

--HG--
extra : rebase_source : ec2fdd91a1adce3493ebe71f195415416b1d3693
2017-03-30 16:42:25 +08:00
Chih-Yi Leu 990edba4be Bug 1311802 - Part2 - Add Mochitest implementation; r=daoshengmu
MozReview-Commit-ID: K9Z0AWIi9Yp

MozReview-Commit-ID: DJ8lO4zsFjn

--HG--
extra : rebase_source : 2501f6b6a20e23e4104a58ea51082abf817e77af
2017-03-30 12:02:37 +08:00
Chih-Yi Leu 8aea1c1b28 Bug 1311802 - Part1 - Add SetMountState interface for VRMockDisplay; r=baku,daoshengmu
MozReview-Commit-ID: 7MFHIri2Bq7

--HG--
extra : rebase_source : 7c3c690d76d184c6bca8465e4b992ae0d8de7507
2017-03-27 11:26:19 +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
Andrew McCreight fe0bcc3a40 Bug 1338272 - Require that the return value of MaybeSetPendingException is used. r=bz
Most of the time, the return value of this method should be checked,
because behavior should depend on whether or not an exception is
thrown. However, if it is called immediately after a throw it doesn't
need to be checked because it will always return true. bz said there
is no public API that lets you assume there is an exception because it
would be "too easy to misuse".

MozReview-Commit-ID: CqyicBbcNjW

--HG--
extra : rebase_source : a5b74ba88a927a90d491ceb8f0b750a67f62b0f4
2017-02-14 16:17:02 -08:00
Phil Ringnalda c582d2c9af Backed out changeset e8efc3c5d61f (bug 1337062) for crashes in mozilla::gfx::gfxVars::ApplyUpdate(mozilla::gfx::GfxVarUpdate
CLOSED TREE
2017-04-11 18:49:21 -07:00
Gerald Squelart 1564d36454 Bug 1341483 - MP4Metadata::GetTrackIndice() now also returns a success/error code - r=kinetik
MozReview-Commit-ID: BIgvy5eKNJl

--HG--
extra : rebase_source : 251d61df6136ab46d8efe33edd4199fa5aabd2f0
2017-03-15 16:55:50 +11:00
Gerald Squelart 2ea7fba755 Bug 1341483 - MP4Metadata::Crypto() now also returns a success/error code - r=kinetik
MozReview-Commit-ID: EywDv5JuDK6

--HG--
extra : rebase_source : 017cd996817b1aaa78f5c7bed9fa05da3baf442c
2017-02-27 21:32:03 +11:00
Gerald Squelart 7961918dfc Bug 1341483 - MP4Metadata::GetTrackInfo() now also returns a success/error code - r=kinetik
MozReview-Commit-ID: KQ3fJzZkrGW

--HG--
extra : rebase_source : b9f4324f50c81f4945c0a47e63af0cb616ba013e
2017-02-27 17:05:41 +11:00
Gerald Squelart c93b449e6b Bug 1341483 - MP4Metadata::GetNumberTracks() now also returns a success/error code - r=kinetik
In addition to the returned MediaResult, a special number-of-tracks value
(not just 0) indicates an unrecoverable error.

For Rust-vs-Stagefright comparison purposes, an error is considered the same
as 0 (because Stagefright never returns errors, but Rust may, so complaining
about that would be too noisy, and useless to us.)

MozReview-Commit-ID: IwadWSOIWr4

--HG--
extra : rebase_source : 29f53ee6a02a0431adb0b615a122a4e7b480108c
2017-02-27 13:36:59 +11:00
Gerald Squelart 1bbbbd132d Bug 1341483 - MP4Metadata::Metadata() now also returns a success/error code - r=kinetik
The returned MediaResult is used as error or warning in MP4Demuxer::Init().

MozReview-Commit-ID: Bnv4xG8bCJ4

--HG--
extra : rebase_source : c1952ed61396834b0cd7da58c9b64481a5c46ab1
2017-02-27 13:01:11 +11:00
Gerald Squelart 4101482ad6 Bug 1343437 - 'media.playback.warnings-as-errors' pref - r=jya
If 'media.playback.warnings-as-errors' is true, demuxing and decoding warnings
(i.e., non-fatal errors) will be treated as errors, causing playback to fail.

Currently set to false by default.

This could be later changed to catch and diagnose more issues.

MozReview-Commit-ID: BTaZ6TbIbNG

--HG--
extra : rebase_source : bacc24a46f588dd344e6d46178ae2d2c58882fcb
2017-03-03 16:10:48 +11:00
Gerald Squelart 7dca1275ff Bug 1343437 - TBM::OnDemuxer{Init,Reset}Done forward non-NS_OK MediaResult to HTMLMediaElement::DecodeWarning - r=jya
Similarly to the MediaFormatReader, TrackBuffersManager can forward warnings
from the demuxer initialization to the associated HTMLMediaElement.

Note that errors (sent to OnDemuxerInitFailed) are currently *not* forwarded
to the HTMLMediaElement by design. In the future, we may want to add this
feature so that mediasource errors can also be reported to webcompat.

MozReview-Commit-ID: GjluZbpmC9q

--HG--
extra : rebase_source : 57c02f86c56f054f209094d9697209300acc1288
2017-03-14 01:08:39 +11:00
Gerald Squelart f717376fb5 Bug 1343437 - MFR::OnDemuxerInitDone forwards non-NS_OK MediaResult to HTMLMediaElement::DecodeWarning - r=jya
The MediaFormatReader now takes the MediaResult from the Demuxer::Init promise
resolution, and if there are no other errors but the MediaResult is not NS_OK
it will forward that warning to the decoder owner (i.e., the associated
HTMLMediaElement).

MozReview-Commit-ID: 5rTmzqqPLI0

--HG--
extra : rebase_source : 5f81db185a01c012bf0418af2a42986db14a7e6f
2017-03-06 15:22:17 +11:00
Gerald Squelart 0cb411e982 Bug 1343437 - MP4Demuxer::Init resolves with a MediaResult - r=jya
If MP4Demuxer::Init detects some recoverable error (e.g., invalid tracks when
others may still be usable), it will eventually Resolve the promise with the
first warning.

Later on, errors/warnings from the MP4Metadata parser will also be handled, to
provide even better diagnostics.

MozReview-Commit-ID: E9Rly9dhXW3

--HG--
extra : rebase_source : cae214d0c80297bd61156dc1a305a186da0974fe
2017-02-27 10:10:28 +11:00
Gerald Squelart c0473802e5 Bug 1343437 - MediaDataDemuxer::InitPromise resolve-value is now a MediaResult - r=jya
In case of successful initialization, there could still be some warning about
a recoverable error. To carry more information about this potential warning,
the resolve-value type of the promise is changed from nsresult to MediaResult.

Existing code doesn't need to be changed:
- In Resolve() calls, the stored MediaResult can implicitly be constructed from
an nsresult -- always NS_OK at the moment anyway.
- In following Then(), the promise's MediaResult can implicitly be converted to
an nsresult.

Future patches will modify some of the Resolve's and Then's, to forward warning
details to some Decoder Doctor object...

MozReview-Commit-ID: J0bXDFxXQHQ

--HG--
extra : rebase_source : cb10cdfa80e34783a459e5946b746b9f1920bd87
2017-02-28 16:24:57 +11:00
Gerald Squelart 76e4d2f3eb Bug 1343437 - HTMLMediaElement::DecodeWarning() should store a warning instead of an error - r=jya
MozReview-Commit-ID: 47hURppxH5H

--HG--
extra : rebase_source : f373d61a61dfbabd64de3c5f99c056ee65dae643
2017-03-14 01:12:20 +11:00
Gerald Squelart b34950f944 Bug 1337062 - Transfer initial gfxVars with SendSetXPCOMProcessAttributes - r=dvander
MozReview-Commit-ID: EUnwXkDwBTZ

--HG--
extra : rebase_source : 2641d987a6f7326dc07766ba6b06c223a513e313
2017-04-11 15:36:56 +12:00
Gerald Squelart 63dbe37188 Bug 1337063 - Transfer child's initial ContentDeviceData with SendSetXPCOMProcessAttributes - r=dvander
MozReview-Commit-ID: IWCgL9aCusW

--HG--
extra : rebase_source : 31d901f99105224ac7445b487813b010fd643bb9
2017-04-12 09:37:35 +12:00
vincentliu 44a355f273 Bug 1347617 - In SVG ConvolveMatrix code, bail out if kernelUnitLength is negative or zero. r=dholbert 2017-04-06 15:40:35 -04:00
James Willcox 224324d56d Bug 1344347 - Move Android out-of-process decoder service into GeckoView r=jolin
MozReview-Commit-ID: QTnp95uhQV


--HG--
rename : mobile/android/base/aidl/org/mozilla/gecko/media/FormatParam.aidl => mobile/android/geckoview/src/main/aidl/org/mozilla/gecko/media/FormatParam.aidl
rename : mobile/android/base/aidl/org/mozilla/gecko/media/ICodec.aidl => mobile/android/geckoview/src/main/aidl/org/mozilla/gecko/media/ICodec.aidl
rename : mobile/android/base/aidl/org/mozilla/gecko/media/ICodecCallbacks.aidl => mobile/android/geckoview/src/main/aidl/org/mozilla/gecko/media/ICodecCallbacks.aidl
rename : mobile/android/base/aidl/org/mozilla/gecko/media/IMediaDrmBridge.aidl => mobile/android/geckoview/src/main/aidl/org/mozilla/gecko/media/IMediaDrmBridge.aidl
rename : mobile/android/base/aidl/org/mozilla/gecko/media/IMediaDrmBridgeCallbacks.aidl => mobile/android/geckoview/src/main/aidl/org/mozilla/gecko/media/IMediaDrmBridgeCallbacks.aidl
rename : mobile/android/base/aidl/org/mozilla/gecko/media/IMediaManager.aidl => mobile/android/geckoview/src/main/aidl/org/mozilla/gecko/media/IMediaManager.aidl
rename : mobile/android/base/aidl/org/mozilla/gecko/media/Sample.aidl => mobile/android/geckoview/src/main/aidl/org/mozilla/gecko/media/Sample.aidl
rename : mobile/android/base/aidl/org/mozilla/gecko/media/SessionKeyInfo.aidl => mobile/android/geckoview/src/main/aidl/org/mozilla/gecko/media/SessionKeyInfo.aidl
rename : mobile/android/base/java/org/mozilla/gecko/media/AsyncCodec.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/media/AsyncCodec.java
rename : mobile/android/base/java/org/mozilla/gecko/media/AsyncCodecFactory.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/media/AsyncCodecFactory.java
rename : mobile/android/base/java/org/mozilla/gecko/media/Codec.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/media/Codec.java
rename : mobile/android/base/java/org/mozilla/gecko/media/CodecProxy.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/media/CodecProxy.java
rename : mobile/android/base/java/org/mozilla/gecko/media/FormatParam.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/media/FormatParam.java
rename : mobile/android/base/java/org/mozilla/gecko/media/GeckoMediaDrm.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/media/GeckoMediaDrm.java
rename : mobile/android/base/java/org/mozilla/gecko/media/GeckoMediaDrmBridgeV21.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/media/GeckoMediaDrmBridgeV21.java
rename : mobile/android/base/java/org/mozilla/gecko/media/GeckoMediaDrmBridgeV23.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/media/GeckoMediaDrmBridgeV23.java
rename : mobile/android/base/java/org/mozilla/gecko/media/JellyBeanAsyncCodec.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/media/JellyBeanAsyncCodec.java
rename : mobile/android/base/java/org/mozilla/gecko/media/MediaDrmProxy.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/media/MediaDrmProxy.java
rename : mobile/android/base/java/org/mozilla/gecko/media/MediaManager.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/media/MediaManager.java
rename : mobile/android/base/java/org/mozilla/gecko/media/RemoteMediaDrmBridge.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/media/RemoteMediaDrmBridge.java
rename : mobile/android/base/java/org/mozilla/gecko/media/RemoteMediaDrmBridgeStub.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/media/RemoteMediaDrmBridgeStub.java
rename : mobile/android/base/java/org/mozilla/gecko/media/SamplePool.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/media/SamplePool.java
rename : mobile/android/base/java/org/mozilla/gecko/media/SessionKeyInfo.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/media/SessionKeyInfo.java
rename : mobile/android/base/java/org/mozilla/gecko/mozglue/SharedMemory.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/mozglue/SharedMemory.java
2017-04-06 14:32:58 -05:00
Sotaro Ikeda 1b3f1e93ba Bug 1353958 - Add Gpu process reset handling for QuantumRender. r=kats
MozReview-Commit-ID: 6ZkB1ezyWlK
2017-04-06 12:56:10 -04: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
bechen 30f3430251 Bug 1318542 - Make CueStyleBox apply ::cue. r=heycam,rillian
MozReview-Commit-ID: CNhFlffGAfh
* * *
[mq]: trash

MozReview-Commit-ID: KY2DfqPDmx0

--HG--
extra : rebase_source : fb16313ac5715ec1f544f8a80d0bad26aa42013d
2017-04-05 10:47:36 +08:00
Hiroyuki Ikezoe 018667911c Bug 1323648 - Enable crash tests in dom/base/crashtests. r=shinglyu
MozReview-Commit-ID: F96kiCLjqJg

--HG--
extra : rebase_source : af6d212fb628d3459a527e261846bbf5780fc860
2017-04-01 12:07:07 +09:00
Brian Birtles 5986b384f6 Bug 1353208 - Add check for attribute namespace ID when we decide if it should animate as a CSS property or not; r=dholbert
This seems like an existing bug. If the content specifies
attributeType="yer:opacity", we should not try to animate it as a CSS property.
This patch adds a namespace check before we try to animate as a CSS property.

MozReview-Commit-ID: 1LpBa23ddqX

--HG--
extra : rebase_source : c5a4edb4c48bfd6116e58d4ef3eb91384ee86bd5
2017-03-30 16:13:02 +09:00
Brian Birtles 6b8dbeadd1 Bug 1353208 - Simplify logic in GetCSSPropertyToAnimate to remove double negatives; r=dholbert
MozReview-Commit-ID: 41qhKdcNoNB

--HG--
extra : rebase_source : 22541e23514b950e6d48c72bb0ee4a1f992f67b1
2017-04-04 14:56:52 +09:00
Brian Birtles e96d223104 Bug 1353208 - Factor out nsSMILCompositor::GetCSSPropertyToAnimate helper method; r=dholbert
In bug 1315874 we will create a method to check if we're likely to need to
resolve base styles or not, and for that we need to extract the check for
whether or not we're animating a CSS property.

MozReview-Commit-ID: 9Ybsi91fro8

--HG--
extra : rebase_source : e2f72a7d807bfbe026fbd1a603cd993c3d502584
2017-03-30 13:10:08 +09:00
Brian Birtles 1efabc2e0b Bug 1353208 - Don't allocate separate heap memory for nsSMILCompositor::mCachedBaseValue; r=dholbert
nsSMILCompositor::mCachedBaseValue is an nsAutoPtr<nsSMILValue> that we allocate
on the heap. It looks like we did that back in bug 533291 presumably because it
makes transferring these cached values between nsSMILCompositor objects cheaper.

One drawback of this, however, is that mCachedBaseValue has two null states:
the mCachedBaseValue pointer can be null, and the pointed-to nsSMILValue can be
a null value (i.e. IsNull() returns true).

Now that we have move ctors and operators defined for nsSMILValue we can
transfer these objects between compositors cheaply without requiring the object
to be allocated as separate heap object. This patch makes mCachedBaseValue just
a regular nsSMILValue class member (i.e. drops the nsAutoPtr).

There's a subtle difference in behavior with regards to the first sample.
Previously we would compare the (initially) null mCachedBaseValue pointer with
the passed-in nsSMILValue and set mForceCompositing to true. With this patch,
however, we will only set mForceCompositing to true if the passed-in
mCachedBaseValue is not null.

I believe this is correct, however, since if we don't call GetBaseValue in
ComposeAttribute we should not be setting mForceCompositing to true (something
else should ensure that gets set to true), and if we do call GetBaseValue the
result should not be a null nsSMILValue (except in some OOM cases where we don't
really care if we miss a sample). This patch adds an assertion to check that
GetBaseValue does, in fact, return a non-null value. (I checked the code and
this appears to be the case. Even in error cases we typically return an empty
nsSMILValue of a non-null type. For example, the early return in
nsSMILCSSProperty::GetBaseValue() does this.)

MozReview-Commit-ID: BRJFa4xMdxz

--HG--
extra : rebase_source : f3e3ca1e01e73610523bde7583e2a002d2473184
2017-03-30 13:10:07 +09:00
Brian Birtles 8ff0648aee Bug 1353208 - Use UniquePtr for handling heap-allocated nsISMILAttr objects; r=dholbert
MozReview-Commit-ID: 10lA0ZaXChj

--HG--
extra : rebase_source : f5285b5363b2247ac73f63d9d13f8a109728a7c2
2017-03-30 13:10:07 +09:00
Brian Birtles b4442afb51 Bug 1353208 - Sort includes in nsSMILAnimationController.cpp; r=dholbert
We will add to these includes later in this patch series so we sort them now so
it's clear where to add to.

MozReview-Commit-ID: CgqlS3f62nu

--HG--
extra : rebase_source : 009e8de1961cfd3d0f9cd72061e2e8f254f03cad
2017-03-30 13:10:06 +09:00
Brian Birtles a8a97cdc11 Bug 1353208 - Drop a few remaining references to attributeType; r=hiro
These are left over from bug 1062106.

MozReview-Commit-ID: 4vfcT4O2tMz

--HG--
extra : rebase_source : 2d606f0d5470ae0c56318f7d682ff1ab3ad86f19
2017-03-30 13:10:06 +09:00
Makoto Kato 1c93a16bad Bug 1349879 - Intl object is hidden on Android beta and release channel. r=snorp,Waldo
Some interface tests into mochitest is failure on android beta and release.

test_serviceworker_interfaces.js has nonReleaseAndroid flag, so we should use it into test_interfaces.js and test_worker_interfaces.js

MozReview-Commit-ID: A1aHrTXwGil

--HG--
extra : rebase_source : 0990ec8a50b664ac711ee4977a104286f40ae07e
2017-03-30 19:44:28 +09:00
Nico Grunbaum deeb9fdcf9 Bug 1348657 - Part 2 - split send/recv packet counts r=jib
MozReview-Commit-ID: 2SENT4rGsLX

--HG--
extra : rebase_source : 8a6c960871ed7fffb28d5a7676d20c016daa3b58
2017-03-30 10:59:46 -07:00
Nico Grunbaum af67a2fb4c Bug 1348657 - implement framesEncoded, pliCount, nackCount and firCount for webrtc stats r=jib,smaug
MozReview-Commit-ID: E873mbcrlLL

--HG--
extra : rebase_source : ca6f5d7ab0490948aaed1ae793ed5906149b7236
2017-03-21 21:52:06 -07:00
Tobias Schneider fa547be7bd Bug 1353529 - Crash when using IntersectionObserver in XUL pages. r=mstange
MozReview-Commit-ID: 9RBrnst4Wkb

--HG--
extra : rebase_source : 257874993e1a1fa81931b2c513357c92b6f705a9
2017-04-04 20:14:46 -07:00
Carsten "Tomcat" Book 5d8f1744bf Merge mozilla-central to autoland 2017-04-05 14:52:39 +02:00
Paul Adenot 6d9a0e3387 Bug 1351456 - Don't assume that window.load will be called after the pref has been flipped. r=pehrsons
MozReview-Commit-ID: 2r6d6a5vIa

--HG--
extra : rebase_source : ed7ba96903fd92e51ccddb320213313e3b368e17
2017-04-03 13:20:33 +02:00
Wes Kocher f18ad1cfc8 Merge m-c to autoland, a=merge 2017-04-04 11:28:54 -07:00
Aryeh Gregor b03daa975a Bug 1314388 - Remove SVGZoomEvent; r=longsonr,smaug
Some code in SVGSVGElement.cpp might be unnecessary now, but Robert said
to leave it for a followup.

MozReview-Commit-ID: 8PpRGeGrREJ
2017-04-04 15:36:22 +03:00
Aryeh Gregor a7ed0e7cf4 Bug 1297414 - formatBlock should move non-editable nodes; r=masayuki
Before this change, if you did formatBlock on "a<span
contenteditable=false>b</span>c", it would become "acb", because the "a"
and "c" would be moved to the front of the node, and the "b" would be
left alone at the end because the editing code doesn't want to move it.
Now we will move the "b" as well, even though it's not editable, so that
the node remains "abc".  The rule is that a non-editable element cannot
have its attributes or children changed, but it can have its parent
changed, so there's nothing wrong with moving it here.

On the way, I fixed an exception in insert*List if there was an
uneditable inline node around.  I don't intend to fix all the todo's in
the test, but now it should have better coverage, at least.

MozReview-Commit-ID: 3okcGq4an3f
2017-04-04 13:47:28 +03:00
Aryeh Gregor c442eea5f2 Bug 1297414 - Support execCommand("defaultParagraphSeparator"); r=masayuki
Later commits will add the actual functionality.

MozReview-Commit-ID: 6Ac9V6MjZpa
2017-04-04 13:47:28 +03:00
Carsten "Tomcat" Book 14e0b51ace merge mozilla-inbound to mozilla-central a=merge 2017-04-04 12:35:03 +02:00
Paul Bignier 9103ac60ef Bug 1352808 - Typo fixes for 'browser' in comments. r=MattN
MozReview-Commit-ID: IA42yQO5Sb8

--HG--
extra : rebase_source : b5426724c5b740639f71e5d058742b01868085e2
2017-04-03 15:26:11 -07:00
Wes Kocher 734b25e05c Merge m-c to inbound, a=merge 2017-04-03 14:51:06 -07:00
Wes Kocher 53dde6a1d2 Merge inbound to central, a=merge 2017-04-03 14:50:18 -07:00
Olli Pettay 98fff73826 Bug 1351303, add main thread only cache for nsIAtoms to speed up atomization, r=froydnj
--HG--
extra : rebase_source : 9c67cd71c0721329eaeaaa96a295e90abc480042
2017-04-03 23:13:18 +03:00
Olli Pettay d5caa7c6c0 Bug 1352687, try to recycle HTMLInputElement's nsTextEditorState, r=baku
--HG--
extra : rebase_source : 05c8dc2bd0c29ce3064548e1cabac2d62803cabc
2017-04-03 20:40:48 +03:00
Masayuki Nakano 7fff9e9d7f Bug 1352949 Remove dom.keyboardevent.code.enabled r=smaug
KeyboardEvent.code has already been enabled and it's already available with Chrome too. So, we won't disable it.

MozReview-Commit-ID: LLlAoMebtsU
2017-04-03 18:04:27 +09:00
Carsten "Tomcat" Book ca094ba5be Merge mozilla-central to mozilla-inbound 2017-04-03 12:32:10 +02:00
Andrea Marchesini e0b947bce4 Bug 1352379 - Add a test for URLSearchParams and record<> CTOR, r=qdot 2017-04-03 10:01:35 +02:00
Andrea Marchesini 734fb9d343 Bug 1352379 - Remove an extra 2 spaces in urlSearchParams_commons.js, r=qdot 2017-04-03 10:01:18 +02:00
Xidorn Quan e3e4554871 Bug 1351957 - Create URLExtraData for holding base uri, referrer, and principal. r=heycam
MozReview-Commit-ID: 1wqTb3kvvWh

--HG--
extra : rebase_source : cae3dba21c916ab0f52056bd9db215249b650cd3
2017-03-30 18:54:48 +11:00
Sebastian Hengst 427e8f836d Backed out 2 changesets (bug 1314388) for timing out in dom/svg/test/test_zoom.xhtml. r=backout
Backed out changeset 804d8199aeca (bug 1314388)
Backed out changeset b7fab6a89c1d (bug 1314388)
2017-04-02 14:37:08 +02:00
Aryeh Gregor 4a039c1336 Bug 1314388 - Remove SVGZoomEvent; r=longsonr,smaug
Some code in SVGSVGElement.cpp might be unnecessary now, but Robert said
to leave it for a followup.

MozReview-Commit-ID: 8PpRGeGrREJ
2017-04-02 13:51:33 +03:00
Kate McKinley 76ebee76e8 Bug 1237868 - Don't set URI_IS_LOCAL_RESOURCE on media streams. r=baku
This patch only sets URI_IS_LOCAL_RESOURCE if the resource is a blob or
font table entry, to avoid having media streams treated as local
objects.

MozReview-Commit-ID: GOVr8FPByQy
2017-04-01 15:11:53 -04:00
Sebastian Hengst 948595ff2f merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-04-01 13:12:04 +02:00
Sebastian Hengst 65f9bb8041 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 5E7o1qELKmN
2017-04-01 13:09:55 +02:00
Wes Kocher 3a0357deec Merge m-c to inbound a=merge 2017-03-31 17:53:52 -07:00
Wes Kocher 483fea00ef Merge inbound to central, a=merge 2017-03-31 17:48:18 -07:00
Kartikaya Gupta 6c77e5ee0c Bug 1351777 - Use a BasicLayerManager in the content process if the corresponding parent-side layer manager isn't connected to the compositor. r=dvander
There are scenarios where we have a TabParent in the UI process hooked up to
a PuppetWidget with a BasicLayerManager. Webextensions fall into this category.
In this scenario, the parent-side layer manager is not hooked up to
the compositor (that is, there is no entry in the CompositorBridge layer tree
state map for the layers id). However, the content-side still ends up creating
a ClientLayerManager or a WebRenderLayerManager, which expects the layers id to
be registered in the compositor. This results in brokenness (in the case of the
ClientLayerManager/PLayerTransaction) or crashes (in the case of WebRenderLayerManager/
PWebRenderBridge). Instead, this patch changes this scenario to have the content
process use a BasicLayerManager which seems safer.

MozReview-Commit-ID: 3f80aZrRrmD

--HG--
extra : rebase_source : 10ec78dd7daf1c1c889929f0d79e0b75675b4b05
2017-03-31 11:43:21 -04:00
Kartikaya Gupta ec035abf34 Bug 1351777 - Remove aSuccess argument to RenderFrame constructor. r=dvander
Instead we can use the otherwise-unused function to check if initialization worked.
Technically, because of the way RenderFrame construction works, whether or not
initialization succeeds is exactly dependent on whether or not the frameloader is
non-null, so we could even just use that to check success. But this feels slightly
more readable/cleaner.

MozReview-Commit-ID: CGiIAA1h6V7

--HG--
extra : rebase_source : 2d4504f7d5fde3c394edca14fe01840c1738d197
2017-03-31 11:43:21 -04:00
Kartikaya Gupta c44b0fcca0 Bug 1351777 - Remove unnecessary cast and more tightly scope a local var. r=dvander
MozReview-Commit-ID: JEfQOdQ2HNJ

--HG--
extra : rebase_source : 4cd5e8df775b930b9fea487cbf447b3310a2bcbb
2017-03-31 11:43:21 -04:00
Boris Chiou a583863fc8 Bug 1352067 - Part 1: Make sure AnimationValue::{mGecko|mServo} are mutually exclusive. r=birtles,emilio
We will obsolete StyleAnimationValue in the future, and can treat
AnimationValue as a wrapper of RawServoAnimationValue to hide the FFIs
at that moment. For now, we still need both types, so it's better to make sure
they are mutually exclusive in AnimationValue. Therefore, let's add some
assertions.

Besides, I think those FFIs might do many things and it seems those methods
are not critical, so let's move them into the cpp file, so we can remove
some dependencies to avoid re-compiling so many files if someone needs
revise ServoBindings.h.

MozReview-Commit-ID: FJ1uTvEQ7NT

--HG--
extra : rebase_source : 8ef99c659f2721c8425364051db19b66536bccc6
2017-03-31 17:46:37 +08:00
Carsten "Tomcat" Book 24a3095c04 Merge mozilla-central to autoland 2017-03-31 14:49:11 +02:00
Carsten "Tomcat" Book 095969b8ee merge mozilla-inbound to mozilla-central a=merge 2017-03-31 14:45:33 +02:00
Geoff Brown d88e730a52 Bug 1284763 - Request longer timeout for test_anchor_area_referrer.html; r=jmaher
This test runs 276 seconds on average on Android Debug; when it takes longer
than 300 seconds, the test times out, producing intermittent failures.
2017-03-30 21:42:02 -06:00
Edgar Chen f76afcbcd5 Bug 1351979 - Change CustomElementRegistry::Define code to properly propagate out JS exceptions; r=wchen 2017-03-30 11:44:09 +08:00
Bryce Van Dyk 3d31dcb64c Bug 1349421 - Update handling of values derived from chunk duration in OpusTrackEncoder. r=derf
This changeset updates the handling of the variables based on
chunk.GetDuration() within the OpusTrackEncoder. This changeset alters places
where overflow could have taken place previously. It also adds asserts with
the dual purpose of defense and documentation for future developers.

MozReview-Commit-ID: 28vmAfE84ik

--HG--
extra : rebase_source : ebbd5f0d55c793324aec6b095dbe5403a7bf7b4c
extra : source : 21705a96856dc54a3330de9a55f19eef31badeec
2017-03-31 07:57:37 +13:00
Bryce Van Dyk 5aabc59b13 Bug 1349421 - Adjust handling of chunk duration in opus encoder. r=jesup
For very long chunks, the opus encoder could run into issues with processing.
This changeset seeks to address that by using CheckedInt to prevent a potential
int overflow when encountering extremely long durations.

MozReview-Commit-ID: 7uLZAARLf5w

--HG--
extra : rebase_source : 9519ce2a9e171c2e56fa445699770ab84596cdad
extra : source : fdbc277dbcc49c3a6785bfefe4ba7d80e03817d2
2017-03-30 13:38:10 +13:00
Ryan VanderMeulen 05037eec1a Merge m-c to inbound. a=merge 2017-03-30 15:21:27 -04:00
Ryan VanderMeulen 615c542a03 Merge inbound to m-c. a=merge
CLOSED TREE
2017-03-30 15:20:22 -04:00
Carsten "Tomcat" Book 74e36e1adb Merge mozilla-central to autoland on a CLOSED TREE
--HG--
extra : amend_source : 5026c19958cdc458c0f0887582fd00b8038fe93e
2017-03-30 16:48:10 +02:00
Catalin Badea fce9859c14 Bug 1325942 - Fix test_fetch_cors_sw_empty_reroute.html. r=ehsan 2017-03-29 01:49:00 +08:00
JW Wang 17fd6d8cd9 Bug 1352319. P12 - let CalculateNewCurrentTime() return a TimeUnit. r=kaku
MozReview-Commit-ID: 6bQdKvw0VEN

--HG--
extra : rebase_source : 4b6486f7626d3a3a44012485d7ee5c4ddf5e0ee2
extra : source : a0cb6689491d236a6cdd1196cfdf41c35cb46c20
2017-03-28 16:44:40 +08:00
JW Wang 7e2b1dfe92 Bug 1352319. P11 - change the type of NextFrameSeekingState::mCurrentTime to TimeUnit. r=kaku
MozReview-Commit-ID: Q4u92HgGdF

--HG--
extra : rebase_source : 4a6777c0e1ed50d84fa3ccce98667b461c094cd0
extra : source : 7995043baf379ec4f20e93acfd649f0307905d64
2017-03-28 16:38:26 +08:00
JW Wang 14d7d8bec7 Bug 1352319. P10 - let GetClock() return a TimeUnit. r=kaku
MozReview-Commit-ID: Efl1FemHOmJ

--HG--
extra : rebase_source : 39862017f074d30374c05f861cd360cc4d20aeb0
extra : source : a7363eb07fbef9ecd9a30037da6c9a0f356fadb1
2017-03-28 16:35:24 +08:00
JW Wang 308286b2e3 Bug 1352319. P9 - let GetMediaTime() return a TimeUnit. r=kaku
MozReview-Commit-ID: 7vrIzeMLP4Z

--HG--
extra : rebase_source : fe59f42336ea04d573579d8c6bdb1ecb8849f592
extra : source : 1d26e04ea6f7ad969ae995025d87c8b7836925fe
2017-03-28 16:16:56 +08:00
JW Wang 149633543d Bug 1352319. P8 - use TimeUnit in UpdatePlaybackPosition(). r=kaku
MozReview-Commit-ID: JkopzDG45Bq

--HG--
extra : rebase_source : c9bf356a4b421012f7756841aae8c3ced028c579
extra : source : fb3b140d5a5ecec923e75d11e314f216a88f502a
2017-03-28 16:01:55 +08:00
JW Wang d79d1e4a87 Bug 1352319. P7 - use TimeUnit in UpdatePlaybackPositionInternal(). r=kaku
MozReview-Commit-ID: ASzjKhHlhVA

--HG--
extra : rebase_source : a2fed6debead5ba37574dcc79b8ac7a5e2701064
extra : source : 678b5117a8b9d778e6f785b53cab3c0007061cfe
2017-03-28 15:57:38 +08:00
JW Wang 1b98a1aef1 Bug 1352319. P6 - let AudioEndTime/VideoEndTime return a TimeUnit. r=kaku
MozReview-Commit-ID: 6yyVl2RDrPm

--HG--
extra : rebase_source : c62f1972acb4c4f376fe2a1d689246a02ffb0fd8
extra : source : 9a7b19b5a668270cd9af875dd8b33791f69b542b
2017-03-28 15:50:53 +08:00
JW Wang f47a7d4631 Bug 1352319. P5 - rename AudioPrerollUsecs and let it return a TimeUnit. r=kaku
MozReview-Commit-ID: C3IdeNksQjn

--HG--
extra : rebase_source : f1dcc25e33dc0b8d3b09252509bf738088cc16ae
extra : source : 1b4d5af3409768bf3e2373e6627e2d72a6e290ab
2017-03-28 15:42:09 +08:00
JW Wang 747b792884 Bug 1352319. P4 - move AudioPrerollUsecs/VideoPrerollFrames into DecodingState. r=kaku
MozReview-Commit-ID: 3VuDj1TXZV2

--HG--
extra : rebase_source : 53471b886ee48e845e31b70e9e13d82b0620a6a7
extra : source : 383119c9b722b892d300cb56b92116af3285b60a
2017-03-28 15:38:34 +08:00
JW Wang 428f953b53 Bug 1352319. P3 - use TimeUnit in HasLowBufferedData(). r=kaku
MozReview-Commit-ID: HP7M78yKpww

--HG--
extra : rebase_source : 84069608ad345ea248b5584e8847df99d9d030a1
extra : source : 6a5be23e8d7ed332bfbd99717db24f22b0ad4824
2017-03-28 15:09:30 +08:00
JW Wang c2313c1dc6 Bug 1352319. P2 - rename variables and fix comments. r=kaku
MozReview-Commit-ID: G7II28F00Qp

--HG--
extra : rebase_source : 080df9f9c88d47b22f3aee24c66a342c2591861d
extra : source : e62c3c8524fe41601dcb5fa92b2b156906ad9234
2017-03-28 14:58:03 +08:00