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

58671 Коммитов

Автор SHA1 Сообщение Дата
JW Wang 982fb8390e Bug 1329891. Part 1 - default Handle{Audio,Video}Canceled() to crash. r=kikuo
1. States (DecodeMetadataState and WaitForCDMState) happen before
DecodingFirstFrameState should never receive this event because they don't
decode at all.
2. DormantState and ShutdownState shouldn't receive this event because
they call ResetDecode() in the entry action.
3. CompletedState should never receive this event because it happens after
HandleEndOf{Audio,Video} which happens before Handle{Audio,Video}Canceled.

MozReview-Commit-ID: LdwpWlFHtRp

--HG--
extra : rebase_source : d48b8c7b2347fa745de006fcd1aff640cb474aa1
extra : intermediate-source : 981305f87ff796060666227cf89a23b51e607b54
extra : source : ee5e78f761568bea438c51b9e70eef9b83e14626
2017-01-09 15:44:18 +08:00
Wes Kocher 269e3163e5 Merge m-c to autoland, a=merge
MozReview-Commit-ID: 6wWFiDQ0QJ8
2017-01-10 18:35:54 -08:00
Wes Kocher 1d16e48df0 Merge inbound to central, a=merge
MozReview-Commit-ID: FLWmryRuVoL
2017-01-10 17:56:46 -08:00
Boris Zbarsky bfa711e9c3 Bug 1326522. Fix the include situation for unions containing primitives by making UnionTypes/UnionConversions header stuff look more like CGHeaders. r=peterv 2017-01-10 14:46:30 -05:00
Boris Zbarsky 0738cc6861 Bug 1329323. Stop throwing on nightly/aurora when trying to define a non-configurable property on the window, since we've determined that this is not web-compatible. r=peterv 2017-01-10 14:46:30 -05:00
Sebastian Hengst 6945ea68f5 Backed out changeset c6c6a1ba1218 (bug 1329814) for bustage due to undeclared variables. r=backout 2017-01-10 17:59:22 +01:00
Trevor Saunders ae8b177c6c bug 1329814 - fix race condition when shutting down a tab r=smaug
When TabChild recieves the Destroy message from its parent the doc accessibles
for that tab are shut down.  However if the Shutdown message sent by
DocAccessible::Shutdown() isn't recieved before the child process handles the
runnable that sends __delete__ to the tab parent actor the parent can send a
message to the already shut down doc accessible child actor.
2017-01-10 11:59:03 -05:00
Ben Kelly b54fac30f3 Bug 1329668 Handle partial initialized when ScriptLoader is canceled. r=baku 2017-01-10 08:20:16 -08:00
Ben Kelly 095ebc2535 Bug 1329693 Gracefully handle immediate ActorDestroy() in CacheStorage::ActorCreated(). r=asuth 2017-01-10 08:20:15 -08:00
Ben Kelly 14426edb1b Bug 1329682 Gracefully handle immediate ActorDestroy() calls in CacheStreamControlParent. r=asuth 2017-01-10 08:20:15 -08:00
Ben Kelly 076e2cbd26 Bug 1329669 Gracefully handle nullptr Cache actor in CacheStorage::Open() result. r=asuth 2017-01-10 08:20:15 -08:00
Ben Kelly 7254b4bfa4 Bug 1329284 Refactor DOM timeout to set mWhen/mTimeRemaining from one place. r=ehsan 2017-01-10 08:08:18 -08:00
Kartikaya Gupta 4e42f89a66 Bug 1328285 - Add support for drag-and-drop via touch in Windows content processes as well. r=smaug
MozReview-Commit-ID: FU7pKgFukDS
2017-01-10 09:21:33 -05:00
Carsten "Tomcat" Book fbe86342ad Merge mozilla-central to mozilla-inbound 2017-01-10 12:21:12 +01:00
Carsten "Tomcat" Book 89882dc5f4 merge mozilla-inbound to mozilla-central a=merge 2017-01-10 12:11:31 +01:00
Shing Lyu 11a1d3e940 Bug 1328825 - Update reftest-stylo.list and expectations. r=heycam
MozReview-Commit-ID: AMwdk5wvM0F
2017-01-10 15:50:59 +08:00
James Cheng 7524193d78 Bug 1325332 - Remove EME API disabled on android constrain r=smaug
MozReview-Commit-ID: 91BlevbCrmk

--HG--
extra : rebase_source : 2af97948dd00e9b7c4d08b5d6cb40cfbabc2c6ec
2017-01-09 16:10:25 +08:00
Jan Varga c4553baa05 Bug 1329689 - QuotaManager: Upgrade loop should also cover "from 0_0 to 1_0" case; r=asuth 2017-01-10 11:44:32 +01:00
Jon Coppeard ca898ea355 Bug 1325406 - Refactor rooting base class templates r=sfink r=mccr8 2017-01-10 10:12:14 +00:00
Phil Ringnalda 0413b8e93a Merge m-c to m-i
MozReview-Commit-ID: FYrJUOb5Llp
2017-01-09 18:48:50 -08:00
Phil Ringnalda d55961eb9d Backed out 2 changesets (bug 1322396) for unexpected-pass failures in browser_use_counters.js
Backed out changeset 211d8715c965 (bug 1322396)
Backed out changeset aae1f858f6de (bug 1322396)

MozReview-Commit-ID: EYvhigQ0NSO
2017-01-09 18:45:08 -08:00
Phil Ringnalda 225ab0637e Backed out changeset 27f8d8e9c4dc (bug 1149966) for frequent timeouts in test_form_submission.html
MozReview-Commit-ID: K5mb2MCCiGx
2017-01-09 18:42:17 -08:00
Hiroyuki Ikezoe 7af76a1bc9 Bug 1325193 - Stop processing KeyframeEffectReadOnly::UpdateProperties while composing the same effect's style. r=birtles 2017-01-10 09:49:05 +09:00
Wes Kocher 105aea2522 Merge m-c to inbound a=merge
MozReview-Commit-ID: G24aq5fbYNd
2017-01-09 16:44:58 -08:00
Wes Kocher 4f9d590133 Merge inbound to central, a=merge
MozReview-Commit-ID: 6jzg7wfFO2l
2017-01-09 16:34:44 -08:00
Geoff Brown 4499383617 Bug 1326005 - Skip test_peerConnection_renderAfterRenegotiation on android emulator, for frequent timeouts; r=me 2017-01-09 16:15:11 -07:00
Neil Deakin 726da10015 Bug 1328043, scrolling into view on focus should happen even when event shouldn't fire, fixes tabbing into blank iframes, r=smaug 2017-01-09 11:03:52 -05:00
Phil Ringnalda 8e3c56f8cf Merge m-c to autoland 2017-01-09 18:49:22 -08:00
Nicholas Nethercote bd8911a9f5 Bug 1325494 (part 5) - Slim down nsParserConstants.h. r=hsivonen.
Many of the constants aren't used. Also, the patch removes #includes of this
header that aren't necessary.

--HG--
extra : rebase_source : 75a0b6cea0cb0423f83b168fcc2be86d05352e2c
2016-12-23 13:51:04 +11:00
kvark bf329478e1 Bug 1329044 - Avoid taking const references to fields behind accessors. r=jgilbert 2017-01-09 10:16:00 -05:00
Ben Kelly 72c6b83915 Bug 1329716 Try to ensure we don't dispatch a SW event if the registration has been removed. r=asuth 2017-01-09 13:40:46 -08:00
Ben Kelly 5b3f27ba05 Bug 1329759 Gracefully handle a missing active service worker during interception. r=asuth 2017-01-09 13:40:46 -08:00
Nils Ohlmeier [:drno] 54ada30c75 Bug 1266667: socket reuse option for TCPSocket. r=mcmanus
MozReview-Commit-ID: CJEK714ruLl

--HG--
extra : rebase_source : a52f8c96c0fed3881f3480a38dc2167f1eb4c451
2016-12-21 23:38:06 -08:00
Wes Kocher 5b20fb2bce Merge m-c to autoland, a=merge
MozReview-Commit-ID: 8DYKNuMdzFd
2017-01-09 16:39:02 -08:00
Gerald Squelart 1cc4e2c254 Bug 1329319 - Allow NewRunnableMethod to method of a non-refcounted base class - r=froydnj
This is done by storing the object pointer based on the exact pointee type,
instead of as hinted by the method-pointer, which could be a non-refcounted
base class.

The stored pointer type is statically-checked to be derived from (or the same
as) the class type from the method-pointer, to prevent misuses.

One change had to be done in TrackBuffersManager, as it was passing another
type and relying on implicit pointer conversions. A simple `.get()` to pass
the raw pointer type (to be stored in a RefPtr) fixed that one issue.

MozReview-Commit-ID: 4kH0XdjB5Rk

--HG--
extra : rebase_source : 40ad68820cfce469ecda272f430062f05dfcd09f
2017-01-10 10:49:08 +11:00
Carsten "Tomcat" Book 47628ca590 Merge mozilla-central to autoland 2017-01-10 12:24:10 +01:00
Tobias Schneider 4c8db026e6 Bug 1321865: Enable Tests. r=smaug
--HG--
extra : rebase_source : 477288611dce6c306c30756ef7d49bf928caa48d
2016-12-15 16:03:05 -08:00
Nicholas Nethercote 649a29a85f Bug 1324330 (part 5) - Remove nsDOMClassInfo::mName. r=mccr8.
It's identical to the mClass.name.

--HG--
extra : rebase_source : 5697a1d7913335b6778de038f060ea51805076a2
2016-12-23 08:30:31 +11:00
Randell Jesup 3fa45d2f9b Bug 1326311: Avoid races in destroying MediaRecorder sessions - destroy on MainThread r=jib
MozReview-Commit-ID: 3DA4HxUuzje
2017-01-08 22:08:09 -05:00
pierre.brochard.1982@m4x.org f3a18dbce1 Bug 1326311: Fix thread and Track listener leaks starting and stopping MediaRecorder r=jesup
MozReview-Commit-ID: 3q6RgA4Ehtc
2017-01-08 22:06:28 -05:00
Mats Palmgren 2d0ba23745 Bug 1327902 - Test selecting over a user-select:none node next to an <input>. 2017-01-08 21:27:00 +01:00
Mats Palmgren 8eb3b6cd3a Bug 1327902 - Set the range boundary point outside (before) the node if it HasIndependentSelection(). r=smaug 2017-01-08 21:27:00 +01:00
Ryan VanderMeulen da6a7dfab8 Merge inbound to m-c. a=merge 2017-01-07 15:32:04 -05:00
Thomas Wisniewski c6aea6cc68 Bug 1329365 - Follow-up adding 201, 202, and 205 to the list of response codes which suppress XML parsing errors. r=bz 2017-01-06 23:23:56 -05:00
Ryan VanderMeulen 1e6f972917 Merge inbound to m-c. a=merge 2017-01-07 11:22:47 -05:00
Jan de Mooij 620a16d8f8 Bug 965992 part 4 - Add tests. r=bz 2017-01-07 10:22:30 +01:00
Tobias Schneider 7bf1d2ce13 Bug 1326194 - Unlink observed targets as soon as DOMSlots gets unlinked. r=mrbkap
MozReview-Commit-ID: 4OnDvyc98S8

--HG--
extra : rebase_source : ff6336a0af81babf37f5a89a2809a515eb8430cc
2017-01-06 13:47:06 -08:00
Alastor Wu 3bfd999bfd Bug 1323703 - implement a method to create DXVA2 decoder. r=mattwoodrow
When we want to decode with DXVA2 aPI directly instead of using it by MFT, we need to take responsibility for
creating a decoder and handle the related decoding operations by ourself. So implement a method to create and
hold a ref to DXVA2 decoder for DXVA2Manager.

MozReview-Commit-ID: 4EyrsjzEyYK

--HG--
extra : rebase_source : 6719bfe15243395711984d66919baca2bb74699e
2016-12-15 18:26:17 +08:00
JW Wang 063d3eaeb0 Bug 1329110. Part 7 - remove StateObject::HandleEndOfStream(). r=kaku
The same reason as P6. We would like to avoid virtual functions calls
inside a virtual function.

MozReview-Commit-ID: EYCk6tKPYSs

--HG--
extra : rebase_source : 8482799473e4cf856238b9fa7897e432b4e3a674
extra : source : 17769cff12ccc2157adc91c4fce7e4030f303b00
2017-01-09 13:18:37 +08:00
JW Wang ce97bad770 Bug 1329110. Part 6 - remove StateObject::HandleWaitingForData(). r=kaku
Since DecodingState is the only one that overrides the function, we will let it
just override HandleWaitingFor{Audio,Video}. We also reduce the code complexity
because it is hard to trace the code when one virtual function calls another
virtual function.

MozReview-Commit-ID: AdLXpDgvOyx

--HG--
extra : rebase_source : a8c2aef15537044d904f576976e08264524c26e4
extra : source : 60c230cff746f91653922223dc1f56e48c0d6120
2017-01-09 13:06:55 +08:00
JW Wang b338772d2a Bug 1329110. Part 5 - split Split StateObject::HandleVideoNotDecoded into small functions. r=kaku
MozReview-Commit-ID: Bfyekr4I6OX

--HG--
extra : rebase_source : 43579faa96eba1e2fae2db98a7336aa928006661
extra : source : ea122d8b79c7cb87ec3671cc849d1358cf97976d
2017-01-09 12:59:32 +08:00
JW Wang c981850d84 Bug 1329110. Part 4 - remove StateObject::HandleAudioNotDecoded(). r=kaku
MozReview-Commit-ID: 53iQ46klPMr

--HG--
extra : rebase_source : 279e78eacfb63a94b729c19b9f4473a6999c1e11
extra : source : adac40b710796c1ec9b9af420cade911bff3cc48
2017-01-09 12:45:43 +08:00
JW Wang 5bcdb2f65e Bug 1329110. Part 3 - add HandleEndOfAudio(). r=kaku
MozReview-Commit-ID: KGiWU8t79pv

--HG--
extra : rebase_source : 3809783134481a31135776a0bf0d5218afff6ba8
extra : intermediate-source : 4396f620afc3752a06005f79ed4721fa8ab2b584
extra : source : e12ce512f9153bf263150eeab3717671a2a01543
2017-01-06 17:54:59 +08:00
JW Wang 49a2f5c842 Bug 1329110. Part 2 - add HandleAudioCanceled(). r=kaku
MozReview-Commit-ID: IlzcucZOHpo

--HG--
extra : rebase_source : 7ee390235f6813117c7400bcbec13b376e7ef72a
extra : intermediate-source : 4ac81f01d3804c3e41b18ce3dcb5f19ab9cda69d
extra : source : 48a4f61f58bca7e48ac970494f0749417d8d5c4e
2017-01-06 17:49:11 +08:00
JW Wang 849a835855 Bug 1329110. Part 1 - add HandleWaitingForAudio(). r=kaku
MozReview-Commit-ID: B2ElMMYKt7m

--HG--
extra : rebase_source : da07871951b787e8c101a490ea78107e11ad80e8
extra : intermediate-source : da16ca5f7b522b191b183a4923722b3e4141117f
extra : source : 558d053ca2f80d9ed52bb72d2f822ec2ae36dfb6
2017-01-06 17:43:05 +08:00
J.C. Jones 0109e409da Bug 1309284 - WebAuthn JS API [part 3]: Support origin relax algorithm r=keeler
The WebAuthn specification calls for running the HTML5.1 algorithm that
occurs when you modify document.domain from JS, and use that algorithm's
output for the "Relying Party ID" through the rest of the WebAuthn algorithm.

This code paves the way for that to be added in Bug 1329764, once the spec
issues upstream are resolved.


MozReview-Commit-ID: DNNcr3Gh1Be

--HG--
extra : rebase_source : f9e956fcb7c4b1418bbab5d45dec684c0c20b00b
2017-01-09 13:55:59 -07:00
J.C. Jones a1af416c57 Bug 1309284 - WebAuthn JS API [part 2]: Bugfixes from testing r=keeler
Add more debugging information to signing operations for the NSS Soft Token.

Bugfixes in WebAuthentication.cpp:
- Calculate ArrayBuffer/View before using.
- Fix an instance where we should return NotSupportedError.
- Fix several instances where we should return Out Of Memory.
- Fix a MozPromise assertion that occurs in GetAssertion if you coerce an early
  return.
- Mark all constructors explicit.

MozReview-Commit-ID: DQWHqZIlau9

--HG--
extra : rebase_source : f0f2bdde650e61c90b9b47c20c2427f1340f2d97
2016-12-16 10:44:56 -07:00
J.C. Jones e6dd50ba10 Bug 1309284 - Implement W3C Web Authentication JS API [part 1] r=keeler,qdot
This patch implements the W3C Web Authentication API from
https://www.w3.org/TR/webauthn/, currently the 28 September 2016
working draft.

It utilizes a tentative binding of the U2F NSS Soft Token to provide
authentication services while waiting on Bug 1245527 to support USB HID-based
U2F tokens. This binding is not in the specification yet, so it should be
considered an experiment to help the specification move fowrard.

There are also a handful of deviations from the specification's WebIDL, which
are annotated with comments in WebAuthentication.webidl.

There are no tests in this commit; they are in Part 4 of this commit series.
There is a small script online at https://webauthn.bin.coffee/ to exercise this
code, but it doesn't do any automated checks.

There are also a handful of TODOS:
1) The algorithm to relax the same-origin restriction is in Part 3.
2) The use of AlgorithmIdentifier and having a way to coerce an object to a
   string is still missing.
3) Timeouts and deadlines aren't there, and are pending reworking how
   the nsIU2FToken interface works.

UPDATED:
- Address qdot, keeler review comments (thanks!)
- Address more qdot, keeler review comments (thanks!)

MozReview-Commit-ID: JITapI38iOh

--HG--
extra : rebase_source : 9a09e852dd0c8dc47f42dabbcf8b845a6828b225
2017-01-09 13:22:49 -07:00
Phil Ringnalda 21471d6ae6 Backed out changeset 4c14354de76c (bug 1325193) for unexpected crashtest assertions
CLOSED TREE

MozReview-Commit-ID: IRp0tAqHC8Q
2017-01-10 20:48:15 -08:00
Nicholas Nethercote 949658eb73 Bug 1329857 - Remove NS_METHOD and NS_CALLBACK. r=froydnj.
Bug 1295053 removed most uses of NS_METHOD and NS_CALLBACK, but one use was
unintentionally left behind (in the XPIDL parser) and another has since crept
in (in MediaDrmCDMProxy.h).

So this patch removes NS_METHOD and NS_CALLBACK. NS_METHOD_(nsresult) and
NS_CALLBACK_(nsresult, T) can still be used for the same purpose, but those
alternatives are less likely to be used unintentionally.

--HG--
extra : rebase_source : a50fc7b2a64a36d1ca9beda81bc0edb8f2ec1934
2017-01-10 14:08:43 +11:00
Hiroyuki Ikezoe 2b6f1ffa12 Bug 1325193 - A crash test.r=birtles 2017-01-11 12:01:10 +09:00
Wes Kocher 0b29e777da Merge m-c to inbound, a=merge
MozReview-Commit-ID: 6eBJRasdMck
2017-01-10 18:36:19 -08:00
George Wright 738fcd7d41 Bug 1329777 - Don't bail early from SwitchRenderingMode unless there's also no buffer provider r=Bas 2017-01-10 21:12:40 -05:00
Ryan VanderMeulen d62662c8d1 Bug 1244697 - Skip test_WorkerDebuggerGlobalScope.reportError.xul on Linux for intermittent timeouts. 2017-01-10 20:23:23 -05:00
Ryan VanderMeulen f83442a8e0 Bug 1244409 - Skip test_WorkerDebuggerManager.xul on Linux for intermittent timeouts. 2017-01-10 20:22:27 -05:00
kvark 1628c95538 Bug 1325685 - Ensure the cube attachment is complete. r=jgilbert
--HG--
extra : rebase_source : 470d4986bb6a552a56b39c6b44aabb41916acb9b
2017-01-10 09:32:00 -05:00
Ben Kelly eaa45329b2 Backout c55138fae801 (bug 1329693) r=me 2017-01-10 14:14:10 -08:00
Sebastian Hengst 1ad33c840a Backed out changeset 9532ebc3faf0 (bug 1328030) 2017-01-10 22:36:29 +01:00
Andrea Marchesini 2abf88ce1f Bug 1329744 - AudioBuffer ctor updated, r=padenot 2017-01-10 21:30:28 +00:00
Nathan Froyd ec503a0996 Bug 1329718 - remove nsISupportsVoid and associated machinery; r=erahm
Nothing uses it, it's virtually impossible to use from script, and there
are better ways to pass a |void*| around in C++.
2017-01-10 16:31:48 -05:00
Mats Palmgren 206a47399e Bug 1328030 - Add basic tests that select content including form controls, using various mouse/kbd gestures. 2017-01-10 21:37:49 +01:00
Gerald Squelart b3e89a3af9 Bug 1322964 - MozPromise.Then() taking only one resolve+reject function - r=jwwang
Then and ThenPromise can now be given only one function object, which takes a
`const MozPromise::ResolveOrRejectValue&`.

MozReview-Commit-ID: BEtc3spK9Yh

--HG--
extra : rebase_source : 1b16ad15ebfcdfb653d8d98073adee0f8b27b46e
2017-01-03 16:15:14 +11:00
Daniel Holbert 71b36d73b5 Bug 1329045 part 2: Convert some global variables to local variables, in test_use_with_hsts.html. r=xidorn
(Before we introduced async/await in this test, some of these needed to be
global, because they were used in several callbacks.)

MozReview-Commit-ID: 7mDzmUx1jQ

--HG--
extra : rebase_source : 6f3a2f58c8abc643b09258b54141d93658183519
2017-01-06 13:03:22 -08:00
Daniel Holbert 09339cd3aa Bug 1329045 part 1: Use async/await to simplify callbacks in mochitest test_use_with_hsts.html. r=xidorn
MozReview-Commit-ID: 3qMTOl3fQzg

--HG--
extra : rebase_source : 6492fe98a9888a3123fa902a14462ddbfeca1d1b
2017-01-06 13:03:21 -08:00
Iris Hsiao 7e248d8cc9 Merge mozilla-central to autoland 2017-01-06 11:13:22 -05:00
Masatoshi Kimura 4218f827c0 Bug 1149966 - Remove enablePrivilege calls from remaining mochitest. r=jmaher
MozReview-Commit-ID: D7KglhS4PCw

--HG--
extra : rebase_source : 4d0f848ea393a3db7e82d0e07700fe626e7caa49
extra : source : d5d6a19c81306edfaaf3e836c990bb40923623f4
2016-12-05 01:23:40 +09:00
Manish Goregaokar 960f182e2f Bug 1317208 - Stylo: Store servo computed values for animation properties; r=birtles,heycam
MozReview-Commit-ID: IoQLN5tdIBw

--HG--
extra : rebase_source : da6a19192b639feaef828d2849fc8e4f8085c0f4
2016-11-30 17:34:54 -08:00
JW Wang ffe2db6667 Bug 1321198 - this is a debugging patch which crashes when test_seek* time out to get the stack trace about what's stuck. r=jya
MozReview-Commit-ID: L7Q3Fyapkzf

--HG--
extra : rebase_source : 7738d13e5ab6e72b89f18423ae056dcccb485f6c
2017-01-11 11:15:24 +08:00
JW Wang bc485dd0e2 Bug 1330238 - remove the calls to requestLongerTimeout() and expectAssertions(). r=jya
1. requestLongerTimeout() is not needed because we don't have slow machines as B2G anymore.
2. Bug 634747 and 846769 are already fixed.

MozReview-Commit-ID: JbKtxHLdr8I

--HG--
extra : rebase_source : 7603c61637b8b142c8013bb8f431a49a93fac0c1
2017-01-11 11:01:28 +08:00
Kate McKinley edae411c07 Bug 1313595 - Lower HSTS priming timeout r=mayhemer
MozReview-Commit-ID: 5wOqtYM1MfD

--HG--
extra : rebase_source : 78cb81a9223c80b93b2c574846111eb3bad91c03
2016-12-08 11:07:55 -10:00
Ralph Giles d5608e0a47 Bug 1277037 - Make AudioCallbackDriver::StartStream fallible. r=jesup
Avoid crashing in the case that cubeb stream start fails and report
an error instead.

MozReview-Commit-ID: 75M392POyHo

--HG--
extra : rebase_source : 2c083cf129f12ad1e18d9065152cfee13987b071
2017-01-11 11:51:23 -08:00
Nico Grunbaum 526e90ef9f Bug 1329762 - stronger deprecation warnings on old PeerConnection.getStats usage. r=jib
MozReview-Commit-ID: 4M8AejNGWex

--HG--
extra : rebase_source : abca62e857e11f640108dbf254baf7b21df7d207
2017-01-09 12:44:22 -08:00
JW Wang a2f0f971ab Bug 1328782. part 3 - remove the |VideoQueue().GetSize() > 0| check. r=kikuo
Since |GetAmpleVideoFrames() * mPlaybackRate + 1| is positive,
|VideoQueue().GetSize() >= GetAmpleVideoFrames() * mPlaybackRate + 1| must imply
|VideoQueue().GetSize() > 0|

MozReview-Commit-ID: 6cZ2XfUrmj

--HG--
extra : rebase_source : fc77e2cdebc4621fa68f94c6c3db81d4d921b851
2017-01-05 12:09:55 +08:00
JW Wang e6bb1d40a3 Bug 1328782. part 2 - some more tweaks to the expression. r=kikuo
MozReview-Commit-ID: I1IcV88amob

--HG--
extra : rebase_source : a1be8f5496582c2117b3e30cd8010b769d970db7
2017-01-05 12:07:15 +08:00
JW Wang dbaf1d1389 Bug 1328782. part 1 - some tweaks to the expression. r=kikuo
MozReview-Commit-ID: 3Mt1c7TrSYy

--HG--
extra : rebase_source : 75cc57e6b0fec9698e874846ad1670f31124685f
2017-01-04 17:37:34 +08:00
Markus Stange 4bdc4ca0fb Bug 1323100 - Register most of the remaining threadfunc threads with the profiler. r=froydnj
As far as I can tell, this covers all the remaining threads which we start
using PR_CreateThread, except the ones that are created inside NSPR or NSS,
and except for the Shutdown Watchdog thread in nsTerminator.cpp and the
CacheIO thread. The Shutdown Watchdog thread stays alive past leak detection
during shutdown (by design), so we'd report leaks if we profiled it. The
CacheIO thread seems to stay alive past shutdown leak detection sometimes as
well.

This adds a AutoProfilerRegister stack class for easy registering and
unregistering. There are a few places where we still call
profiler_register_thread() and profiler_unregister_thread() manually, either
because registration happens conditionally, or because there is a variable that
gets put on the stack before the AutoProfilerRegister (e.g. a dynamically
generated thread name). AutoProfilerRegister needs to be the first object on
the stack because it uses its own `this` pointer as the stack top address.

MozReview-Commit-ID: 3vwhS55Yzt

--HG--
extra : rebase_source : 56dd27282e7bd09a7e7dc7ca09ccfe3a0198e7af
2017-01-05 16:34:26 +01:00
Markus Stange 927eee33e9 Bug 1323100 - Stop double-registering the Media_Encoder thread with the profiler. r=froydnj
MozReview-Commit-ID: 8TQMVhbw13s

--HG--
extra : rebase_source : b2a55afe65d9a68d1d20d08806cb016ce040d044
2016-12-21 23:06:56 +01:00
Markus Stange 942cdc08a8 Bug 1323100 - Stop double-registering the MediaStreamGraph thread with the profiler. r=froydnj
MozReview-Commit-ID: 7WxNLZpBWL4

--HG--
extra : rebase_source : 6dee759440f94e63a82c43ec295b9a6e9c020d21
2016-12-21 23:06:45 +01:00
Markus Stange 692210bd80 Bug 1323100 - Assign names to all remaining threads that are created through NS_NewThread and create them using NS_NewNamedThread instead. r=froydnj
MozReview-Commit-ID: 7W1dt2BBKJZ

--HG--
extra : rebase_source : c7e335dac2e0f02782f0eb229a7181c8d01317a2
2016-12-21 11:43:50 +01:00
Markus Stange 7a7e689099 Bug 1323100 - Use NS_NewNamedThread for the Android Audio thread. r=froydnj
MozReview-Commit-ID: IcKsOZCZVwB

--HG--
extra : rebase_source : 960388da77a8ab508f7ccf7d35289cb7ebe20606
2016-12-21 11:31:15 +01:00
Markus Stange d2dbdff4a9 Bug 1323100 - Use NS_NewNamedThread for IndexedDB threads. r=froydnj
MozReview-Commit-ID: Do4l5QL2qSG

--HG--
extra : rebase_source : ae45941a84ec25a45b796bd01d6bac48f3be6886
2016-12-21 11:26:48 +01:00
JW Wang a9218bbb8e Bug 1328811. Part 4 - remove the |mState != DECODER_STATE_SEEKING| check. r=kaku
When mState is SEEKING, DispatchDecodeTasksIfNeeded() is a no-op.

MozReview-Commit-ID: 3sV6RdUwFBV

--HG--
extra : rebase_source : 12f01ab491b5f4326b08b44dd0789139db174d99
extra : source : 89cccddea7603912e264405040071ba0a98bf8de
2017-01-05 14:48:42 +08:00
JW Wang 0a36f808bc Bug 1328811. Part 3 - inline NeedToDecode{Audio,Video} for DispatchDecodeTasksIfNeeded is the only caller. r=kaku
MozReview-Commit-ID: H1K6LJCjk4B

--HG--
extra : rebase_source : 382293f2aa91a134b895458866cc590798d36edd
extra : source : c0971794c58515b498d93caeccf8d8932f48614f
2017-01-05 14:44:45 +08:00
JW Wang 38ceee4499 Bug 1328811. Part 2 - remove the comment that is not valid anymore. r=kaku
MozReview-Commit-ID: JxrBRtKPAau

--HG--
extra : rebase_source : d62438f5546a67bac9004c9dea74580e23b4dd62
extra : source : d0e189f19de690e1244ab22b922ff0b70fd55e60
2017-01-05 14:39:35 +08:00
JW Wang ba927c6dfe Bug 1328811. Part 1 - remove the assertion. r=kaku
http://searchfox.org/mozilla-central/rev/82ebc0c5ea45477ef4a4bfb3bbff35069bd18cee/dom/media/MediaDecoderStateMachine.cpp#2980
The if statement ensures |mState != DECODER_STATE_COMPLETED|.

MozReview-Commit-ID: CyvfXj94E8s

--HG--
extra : rebase_source : 10007fda9e4c09647a7142b77415c332a69001b3
extra : source : 5936c72d33e155a2a942602b610e6d6407f9bef6
2017-01-05 14:38:52 +08:00
JW Wang da1657f4f3 Bug 1328810 - Remove the call to DispatchDecodeTasksIfNeeded() from MDSM::StopPlayback(). r=kaku
MozReview-Commit-ID: mZL1FJmea3

--HG--
extra : rebase_source : f1c22d86d60c4078e8c9bef389d0c6f3247154f0
extra : source : ab2eb5c6f2ba7de8be8e21b1a09a2c43efeffc62
2017-01-05 14:32:53 +08:00
Sebastian Hengst 5581aa23b1 Backed out changeset 1c2a7e11fe97 (bug 1328255) for failing test_session_scroll_position.html on Android. r=backout 2017-01-06 09:47:52 +01:00
Hiroyuki Ikezoe 67f3a5ff19 Bug 1328255 - Run test_animation_performance_warning.html in a new window with enabling requestIdleCallaback pref. r=birtles
window.requestIdleCallback can not be used right after enabling its pref in the
same window object. We need to open a new window after enabling the pref.

This patch moves waitForIdleCallback from testcommon.js for preventing from
being used in other tests unintentionally.

MozReview-Commit-ID: Erm2BPnikvB

--HG--
rename : dom/animation/test/chrome/test_animation_performance_warning.html => dom/animation/test/chrome/file_animation_performance_warning.html
extra : rebase_source : 19160631c3cd7a067ac47e02bc69c7b08f0169f2
2017-01-06 07:42:58 +09:00
Wes Kocher 0f254a30d6 Merge inbound to central, a=merge
MozReview-Commit-ID: 1ij6nLf8f8s
2017-01-05 17:30:35 -08:00
Iris Hsiao 8ca3b2dc24 Backed out changeset 724fdfe8f396 (bug 1324870) 2017-01-05 12:21:31 -05:00
Geoff Brown 4fdfff0c12 Bug 1324870 - Skip test_bug803225.html and test_ext_downloads_misc.js on linux32 only, to enable taskcluster migration; r=jmaher
--HG--
extra : rebase_source : eb4c1e94381f46d54619f0a3ba65e3f5beed2221
2017-01-05 09:15:11 -07:00
JW Wang f6c88fe5f9 Bug 1328831 - Remove MDSM::DispatchAudioOffloading. r=jolin
MozReview-Commit-ID: JVJOpmUHNp6

--HG--
extra : rebase_source : 7bcca5c52938b9e429c1e1833500bd85b64dc229
2017-01-05 17:38:17 +08:00
JW Wang 12437440a3 Bug 1328547. part 3 - inline NeedToDecode{Audio,Video} and remove some checks. r=kaku
1. |mState != DECODER_STATE_SEEKING| is true in DecodingState.
2. mSentFirstFrameLoadedEvent is true in DecodingState.
3. mMinimizePreroll is false because pop events fire only after MDSM starts playing.

MozReview-Commit-ID: FTkXmtEnzY5

--HG--
extra : rebase_source : 30392be881ebdb96469189a584a57b89d60cc2b4
2017-01-04 17:23:28 +08:00
JW Wang 55f78f10f6 Bug 1328547. part 2 - remove checks for IsShutdown() which is false in DecodingState. r=kaku
MozReview-Commit-ID: CmU79bt4XoR

--HG--
extra : rebase_source : 4580449f41a23924d887ff4f1d28cecf0ed77ee9
2017-01-04 17:13:49 +08:00
JW Wang 7bbc498596 Bug 1328547. part 1 - Move MDSM::Dispatch{Audio,Video}DecodeTaskIfNeeded into DecodingState. r=kaku
MozReview-Commit-ID: I2gT77VHutm

--HG--
extra : rebase_source : 39daa2eb03b780cd44e8e461d90ea38c5f163394
2017-01-04 17:10:37 +08:00
JW Wang 7e82a51137 Bug 1328781. part 2 - don't convert a double to an int64_t to avoid rounding errors. r=kikuo
MozReview-Commit-ID: 83Zxqr4aiMa

--HG--
extra : rebase_source : baadaff80de366e2ed6a88b2a8bbfaaf54b66c9d
2017-01-05 11:50:20 +08:00
JW Wang 0077fc4f6c Bug 1328781. part 1 - somewhat rewrite the expression. r=kikuo
MozReview-Commit-ID: 5959ZdWKI4k

--HG--
extra : rebase_source : 927c0edda7ff9870c555830e3f022d26e588e258
2017-01-04 17:35:04 +08:00
JW Wang 1bc32335e9 Bug 1328541 - Remove the call to DispatchDecodeTasksIfNeeded() from MDSM::MaybeStartPlayback(). r=kikuo
MozReview-Commit-ID: 9Qj01MSw4Ia

--HG--
extra : rebase_source : 5751a3f681f17656cca1bb28700a3a15ca96c6a6
2017-01-04 16:38:01 +08:00
cku 09c56e6da6 Bug 1323912 - Part 2. Pass opacity down to imgIContainer::Draw. r=mstange
Each concrete class of imgIContainer is able to handle opacity already. All we
need to do is pass opacity value to them.

MozReview-Commit-ID: EMkLnG3YXA1

--HG--
extra : rebase_source : b0a0aad1fec0c2765e96d23ed9b627345c793795
2017-01-03 13:53:22 +08:00
Phil Ringnalda d105fd40fd Merge m-c to autoland 2017-01-04 19:01:49 -08:00
Iris Hsiao c8e876e89c Backed out changeset c868ab532766 (bug 1323912) 2017-01-04 21:47:12 -05:00
Phil Ringnalda c83d1d7ce9 Merge m-i to m-c, a=merge
MozReview-Commit-ID: 51FMtH1yTe6
2017-01-04 18:33:32 -08:00
Christoph Kerschbaumer 99eda5a50b Bug 1272594 - Remove special cookie policy handling within InternalRequest (r=bkelly) 2017-01-04 21:43:39 +01:00
Boris Zbarsky 6d6f2704fc Bug 1326301. Put the global allocated by SimpleGlobalObject in the system zone, so we don't create tons of zones when we're converting JSON to dictionaries many times over. r=mccr8 2017-01-04 14:52:26 -05:00
Jim Chen 7d16ef42f3 Bug 1319660 - 2. Use previous node instead of sibling when adjusting last node; r=masayuki r=smaug
nsContentIterator in pre mode adjusts its last node if the node is a
childless node like <br>. However, right now it's using GetPrevSibling,
which can lead to error in some edge cases such as:

<p></p><div><br></div>

In this case, if the last node is <br> with offset 0, GetPrevSibling
will return <p> because <p> is <br>'s parent's previous sibling, and the
last node will be set to <p>. However, the correct last node in this
case is <div>, because <br> with offset 0 refers to the position to the
left of <br>, which is <div> with offset 0. In this case, PrevNode
returns the correct <div> value, so we should set the last node to the
result of PrevNode.

For the first node, for a childless node in pre mode, GetNextSibling and
NextNode are the same, so there is no bug in this case. Nevertheless,
this patch changes the call to NextNode to be consistent with calling
PrevNode for the last node.
2017-01-04 14:46:10 -05:00
cku adab9bea9f Bug 1323912 - Part 2. Pass opacity down to imgIContainer::Draw. r=mstange
Each concrete class of imgIContainer is able to handle opacity already. All we
need to do is pass opacity value to them.

MozReview-Commit-ID: EMkLnG3YXA1

--HG--
extra : rebase_source : 080a843b34cc1ca27831310d474243b4066f59f2
2017-01-03 13:53:22 +08:00
JW Wang 8c79a1d34c Bug 1326294 - this is a debugging patch which checks if mOwner points to a valid media element object. r=gerald
MozReview-Commit-ID: HRUigVOLdx

--HG--
extra : rebase_source : d44b4315a34b60c1d1a6ba98730a938ed375a937
2017-01-04 16:18:37 +08:00
Botond Ballo e8cc185f9d Bug 1326290 - Correct sequencing of layer transaction and StartAsyncScrollbarDrag messages. r=kats
In cases where a mouse click that starts a scrollbar drag is also what
layerizes the scroll frame, the StartAsyncScrollbarDrag message needs to
arrive after the layer transaction. This patch ensures it does.

MozReview-Commit-ID: A02qRb6yWxg

--HG--
extra : rebase_source : 3517e8c8a578a0bd257a80bb8cb81303d171bb6c
2017-01-04 13:42:36 -05:00
Carsten "Tomcat" Book bf21cb8f03 Merge mozilla-central to mozilla-inbound 2017-01-04 16:18:24 +01:00
Carsten "Tomcat" Book b4e6d275b7 merge mozilla-inbound to mozilla-central a=merge 2017-01-04 16:09:56 +01:00
Andrea Marchesini bc98b07905 Bug 1322550 - Rename DOMStorage to Storage, r=smaug
--HG--
rename : dom/storage/DOMStorage.cpp => dom/storage/Storage.cpp
rename : dom/storage/DOMStorage.h => dom/storage/Storage.h
rename : dom/storage/DOMStorageCache.cpp => dom/storage/StorageCache.cpp
rename : dom/storage/DOMStorageCache.h => dom/storage/StorageCache.h
rename : dom/storage/DOMStorageDBThread.cpp => dom/storage/StorageDBThread.cpp
rename : dom/storage/DOMStorageDBThread.h => dom/storage/StorageDBThread.h
rename : dom/storage/DOMStorageDBUpdater.cpp => dom/storage/StorageDBUpdater.cpp
rename : dom/storage/DOMStorageDBUpdater.h => dom/storage/StorageDBUpdater.h
rename : dom/storage/DOMStorageIPC.cpp => dom/storage/StorageIPC.cpp
rename : dom/storage/DOMStorageIPC.h => dom/storage/StorageIPC.h
rename : dom/storage/DOMStorageManager.cpp => dom/storage/StorageManager.cpp
rename : dom/storage/DOMStorageManager.h => dom/storage/StorageManager.h
rename : dom/storage/DOMStorageObserver.cpp => dom/storage/StorageObserver.cpp
rename : dom/storage/DOMStorageObserver.h => dom/storage/StorageObserver.h
2017-01-04 14:53:01 +01:00
JW Wang b550988fa4 Bug 1326335 - Ensure MDSM only decodes metadata once. r=kaku
MozReview-Commit-ID: AqKbR6OuQ40

--HG--
extra : rebase_source : b8da9e4a47ae79b01ed6fc878f4232244c555aef
extra : intermediate-source : 3ce2a998b1abc4acac397b653c721f96d84452b1
extra : source : 94103894f26463ac8ab4a8a59957ccf4f79ebecf
2016-12-23 19:23:58 +08:00
Phil Ringnalda 82ebc0c5ea Merge m-i to m-c, a=merge
MozReview-Commit-ID: FEe5yZfka5J
2017-01-03 18:40:26 -08:00
Sebastian Hengst d3f1bf94e1 Backed out changeset 2bd53e4e662b (bug 1303113) for various test failures in debug tests with e10s. r=backout 2017-01-03 20:53:59 +01:00
Milan Sreckovic e46c16114f Bug 1318283: UpdateFilter can sometimes invalidate the draw target. Back out the previous speculative patch. r=mstange
MozReview-Commit-ID: 8u2sjS9dyLu

--HG--
extra : rebase_source : 876ec3d4d2cd47d76fe57db645764eba281209d9
2017-01-03 12:01:11 -05:00
Tim Nguyen 668b50d4d7 Bug 1322938 - Disable test_lowDiskSpace.html on Android debug (bug 1328321). r=me
MozReview-Commit-ID: 7zC45kyXsOB
2017-01-03 19:12:39 +01:00
Tim Nguyen 10f9471f61 Bug 1322938 - Test whether dom.dialog_element.enabled works properly. r=smaug
MozReview-Commit-ID: 61HX8CuWki6
2016-12-23 16:01:51 +01:00
Tim Nguyen 97afb532ff Bug 1322938 - Put <dialog> element behind preference. r=smaug
MozReview-Commit-ID: 3thJ5B7Znwo
2016-12-23 16:01:50 +01:00
Tim Nguyen 5884019f51 Bug 1322938 - Emit close event when HTMLDialogElement.prototype.close() is called. r=smaug
MozReview-Commit-ID: 7OKlKFb3lok
2016-12-23 16:01:50 +01:00
Tim Nguyen d7db347638 Bug 1322938 - Basic implementation of HTMLDialogElement. r=smaug, masayuki
MozReview-Commit-ID: AU92mq2QZIc
2016-12-23 16:01:50 +01:00
Gabor Krizsanits 6df27d5c23 Bug 1303113 - Turn e10s-multi on in Nightly. r=me 2017-01-03 18:14:50 +01:00
Kartikaya Gupta b2cab8a5ed Bug 1147335 - Add support for drag-and-drop via touch (Windows-only, main-process-only). r=smaug
This patch adds a new non-DOM event type, "mousetouchdrag". The name is horrible, I
know. The "mouse" comes from the fact that it's a WidgetMouseEvent, and the
"touchdrag" comes from the fact that this event is fired at the start of a touch
gesture for drag-and-drop. Right now this event is only fired from the Windows
widget code, when we receive a touch-source doubleclick event from the OS. This
event is sent to us from the OS when it detects the sequence "touchstart, touchend,
touchstart" within certain time/distance constraints. Eventually we may detect
similar gestures for other platforms in the APZ GestureEventListener and dispatch
the "mousetouchdrag" event for those as well.

The only effect of this event is that it begins tracking a drag gesture in the
EventStateManager. Subsequent touchmove events can begin the actual drag-and-drop
operation by calling ::DoDragDrop. See the discussion in bug 1147335 for some
important caveats about DoDragDrop and how it only works with left-mouse-button
events (real or synthetic).

MozReview-Commit-ID: bGyOk6dRoJ
2017-01-03 10:55:48 -05:00
Jan Varga 965cffb389 Bug 1286914 - Part 1: Prevent creation of origin directories which are not supported by our origin parser; r=asuth 2017-01-03 13:46:34 +01:00
Carsten "Tomcat" Book 6b1cb3dcc9 Merge mozilla-central to mozilla-inbound 2017-01-03 12:43:37 +01:00
Carsten "Tomcat" Book 59622380b0 merge mozilla-inbound to mozilla-central a=merge 2017-01-03 12:37:53 +01:00
Cameron McCormack 171e45e09c Bug 1328223 - stylo: Ignore invalid URLs from @import rules. r=emilio
MozReview-Commit-ID: BTEPxCXiR9O
2017-01-03 18:35:15 +08:00
Cykesiopka 6ad50df726 Bug 1325104 - Stop using Scoped.h NSS types in CryptoKey.(cpp|h). r=ttaubert
Scoped.h is deprecated.

MozReview-Commit-ID: HVfrjM2haQf

--HG--
extra : rebase_source : acde1fb5db128db63cdb630d1e3c54175e69a768
2017-01-02 14:02:50 +08:00
Jeff Walden 1e9c3ebbb9 Bug 1325877 - Make sure we're working in the compartment of the objects we're working with. r=bz 2016-12-28 15:26:14 -06:00
Jeff Gilbert 11e66ffa63 Bug 1316546 - CopyTexImage can convert unsigned fixed-point to signed fixed-point. - r=lenzak800
MozReview-Commit-ID: FrdNXH84KMD
2017-01-02 15:19:24 -08:00
Phil Ringnalda 22be34bcc4 Merge m-i to m-c, a=merge
MozReview-Commit-ID: AqAUP3ETNr
2017-01-02 10:54:20 -08:00
Olli Pettay 1616bc079c Backout Bug 1321865 because of stability issues, r=backout 2017-01-02 14:23:17 +02:00
Jeff Gilbert ccb6840964 Bug 1326385 - Handle undefined images in BlitFramebuffer. - r=kvark
MozReview-Commit-ID: 3FjzETVL0AZ
2017-01-02 02:29:24 -08:00
Cameron McCormack 61569b57a1 Bug 1324624 - Tweak stylo crashtest assertion annotations a bit more.
MozReview-Commit-ID: D2AntG68VGr
2017-01-02 16:25:22 +08:00
Andreas Pehrson 4e5007c1c2 Bug 1314886 - Call mozCaptureStream() after "loadedmetadata" in test_streams_element_capture_reset. r=jwwang
MozReview-Commit-ID: 1i5VIfCWWRy

--HG--
extra : rebase_source : 00e78dc0214557bd53b773e918a56de8a56e9682
2016-12-30 10:56:49 +01:00
Chih-Yi Leu 7d79da08f4 Bug 1324592 - Use nsITimer to trigger DirectInput polling instead of DelayedDispatch. r=qdot 2016-12-29 15:00:00 -05:00
Phil Ringnalda 3f025b28e0 Merge m-c to m-i
MozReview-Commit-ID: 6JjpxZR3ese
2016-12-31 11:32:38 -08:00
Phil Ringnalda e8852fe6a8 Merge m-i to m-c, a=merge
MozReview-Commit-ID: LQ8vDnOLtXR
2016-12-31 11:07:26 -08:00
Ehsan Akhgari b4fa73d470 Bug 1325651 - Assume failure in case of early returns in a couple of places; r=bzbarsky 2016-12-31 11:40:49 -05:00
Olli Pettay 8f2731ad19 Bug 1326508 - PerformanceMainThread should not call NS_IMPL_CYCLE_COLLECTION_TRAVERSE_SCRIPT_OBJECTS, r=bz 2016-12-31 14:41:24 +02:00
Boris Zbarsky 66519f68ee Bug 1326388 part 2. Switch nsSVGElement from storing an nsStyleRule to storing a DeclarationBlock to represent its SMIL mapped attributes. r=dbaron 2016-12-31 01:11:05 -08:00
Boris Zbarsky ebb78498d2 Bug 1326388 part 1. Switch nsSVGElement from storing a StyleRule to storing a DeclarationBlock to represent its mapped attributes. r=dbaron
The current setup complicates things by causing the existence of StyleRule
instances that have a null GetDOMRule(), which
inDOMUtils::GetCSSStyleRulesrelies on to not return the relevant rules.  Since
we want to get rid of GetDOMRule(), better to not have a StyleRule there in the
first place.
2016-12-31 01:10:45 -08:00
Jeff Gilbert d61a07cd85 Bug 1295001 - Check interface blocks during validation. - r=kvark
MozReview-Commit-ID: 6nyTZPLmbdC
2016-12-30 21:40:20 -08:00
Wes Kocher 6e269458be Merge inbound to central, a=merge
MozReview-Commit-ID: KIm8XUkfyZW
2016-12-30 16:56:03 -08:00
Andreas Pehrson df4d42fabb Bug 1326386 - Restore test_gUM_active_autoplay.html. r=jesup
MozReview-Commit-ID: HKNgBRENrcY

--HG--
extra : rebase_source : ea1803f832b586e0bf10e3a9fbec96a0f0410bf2
2016-12-29 19:05:39 +01:00
Ryan VanderMeulen e2cc59fb34 Merge m-c to autoland. a=merge 2016-12-30 10:05:04 -05:00
Ryan VanderMeulen 9f48ae4f9f Merge inbound to m-c. a=merge 2016-12-30 10:04:47 -05:00
Masatoshi Kimura 0c6dc2ea73 Bug 1323683 - Fold nsIURIWithQuery into nsIURI. r=valentin.gosu
MozReview-Commit-ID: BFfgr42sNyx

--HG--
extra : rebase_source : a28d6a3c96f0c86dd7269147f130b3195b1f1faf
2016-12-28 20:40:21 +09:00
Cameron McCormack cd875e79a6 Bug 1326023 - Make Element::GetBindingURL return a strong reference. r=smaug
MozReview-Commit-ID: 5QI6UuvwDrE
2016-12-28 17:50:44 +08:00
Kris Maglione d823573e34 Bug 1325158: Part 1 - Don't return error result from OnRedirectVerifyCallback. r=ehsan
MozReview-Commit-ID: Hb3I0U8kxdz

--HG--
extra : rebase_source : 447f2e11e9e3f59f984de56689681780d85b7bd3
2016-12-24 18:24:41 -08:00
Wes Kocher 1a2e2404c4 Backed out changeset 263b1b07c2ac (bug 1325651) for being a possible cause of valgrind leaks a=backout 2016-12-30 10:56:57 -08:00
JW Wang 4eb1252534 Bug 1326330. Part 2 - add assertions and checks. r=JamesCheng
1. ensure the 'finish' event is notified only once.
2. assert pushing items to a finished queue.

MozReview-Commit-ID: 9lYWPANVz0m

--HG--
extra : rebase_source : c05b0c77fdee324798579e0e2ebec6ce6303cbf6
extra : intermediate-source : 80be35003c76fc9cc74f206576394b46317b7880
extra : source : 14f5d5c064fddbbcf5728fb4d19e9c0a4e45fac7
2016-12-23 19:19:04 +08:00
JW Wang 3985fd7208 Bug 1326330. Part 1 - remove unused functions. r=JamesCheng
MozReview-Commit-ID: 66XDaghbKUy

--HG--
extra : rebase_source : a25d3413d6f076366373b92fd51ff850bb1dd79e
extra : intermediate-source : a9f7a68b4bff23ec0a059f5cc2a7fca92c1501bd
extra : source : d2dbc97390bc85fba1bd0a53d780f6122cc96ac7
2016-12-23 19:17:11 +08:00
JW Wang 7be77921c0 Bug 1325321 - let DecodingState handle audio/video pop events. r=kaku
MozReview-Commit-ID: 9EjeOfn1vBU

--HG--
extra : rebase_source : 52efab5c60df935de35fb049926c639aa053e389
extra : intermediate-source : d760746364b9585128a74bf284246418eb024280
extra : source : 0537651366abb8524a3436f0208d28b3248a1c52
2016-12-22 17:28:14 +08:00
Wes Kocher 26a1ba5c14 Backed out 27 changesets (bug 1323100) for clipboard leaktest failures a=backout
Backed out changeset 84fb749698ab (bug 1323100)
Backed out changeset d6d25e8bd001 (bug 1323100)
Backed out changeset 1b0855bb0c38 (bug 1323100)
Backed out changeset b6953e3f5739 (bug 1323100)
Backed out changeset 5572f3b63215 (bug 1323100)
Backed out changeset 12fb4c533659 (bug 1323100)
Backed out changeset c36524e4e919 (bug 1323100)
Backed out changeset 1e3b3eddbe26 (bug 1323100)
Backed out changeset 061110f1ae12 (bug 1323100)
Backed out changeset 413dbd31725b (bug 1323100)
Backed out changeset 06550f7eca62 (bug 1323100)
Backed out changeset 940933b13b36 (bug 1323100)
Backed out changeset a6d75c1cd724 (bug 1323100)
Backed out changeset 681cacbbaa3b (bug 1323100)
Backed out changeset 3d53787293f6 (bug 1323100)
Backed out changeset c0340dfe4766 (bug 1323100)
Backed out changeset 9f554991549d (bug 1323100)
Backed out changeset 757539e7039a (bug 1323100)
Backed out changeset a3c9b45aa917 (bug 1323100)
Backed out changeset 23d69df98a66 (bug 1323100)
Backed out changeset 1297ded6a01d (bug 1323100)
Backed out changeset f4235b97257f (bug 1323100)
Backed out changeset 93419cb4f29f (bug 1323100)
Backed out changeset 865d1b81c804 (bug 1323100)
Backed out changeset 54acf4ef8e84 (bug 1323100)
Backed out changeset 88d17bcd8205 (bug 1323100)
Backed out changeset 0c466e5e8933 (bug 1323100)
2016-12-29 16:28:36 -08:00
Markus Stange 2319d2881d Bug 1324941 - Add a profiler label and a profiler marker for DOMEvent dispatch. r=smaug
MozReview-Commit-ID: 9nyftWPKRVe

--HG--
extra : rebase_source : 0ef900fa5c7749dd5bcec32da6b37aad91f0a518
2016-12-23 12:44:35 +01:00
JW Wang dae2fad218 Bug 1325317. Part 2 - rename the function and fix comments. r=kikuo
MozReview-Commit-ID: 3GUkH5OpSmJ

--HG--
extra : rebase_source : 421c16cf75bde625b158571439fb9b4d29e8046f
extra : intermediate-source : 22b22702bafca7da4f12e3abdb08cabcf9eff20c
extra : source : e7b0f09a40bf5f148496470bb019c11dc5431856
2016-12-22 16:56:59 +08:00
JW Wang 7b71dd0944 Bug 1325317. Part 1 - move StopMediaSink() out of MediaDecoderStateMachine::Reset(). r=kikuo
MozReview-Commit-ID: 6Bso8uxM7Ee

--HG--
extra : rebase_source : e255128028e33b2aad3566f5a3a3a09a07ac2d68
extra : intermediate-source : a3be598566377928746b5e37800d788cdcab6942
extra : source : f46b24e31cbb07243ca74206bd2e05e99b070286
2016-12-22 16:48:54 +08:00
Jan Beich 2941566445 Bug 1326524 - Unbreak build without SPS profiler after bug 1324941. r=mstange
MozReview-Commit-ID: 2E4MlCLQ9lf

--HG--
extra : rebase_source : 2e7644176d0c478a5876b5d2e6604f341c13ea5b
2016-12-31 08:27:27 +00:00
Markus Stange 48513de60f Bug 1323100 - Register most of the remaining threadfunc threads with the profiler. r=froydnj
As far as I can tell, this covers all the remaining threads which we start
using PR_CreateThread, except the ones that are created inside NSPR or NSS.

This adds a AutoProfilerRegister stack class for easy registering and
unregistering. There are a few places where we still call
profiler_register_thread() and profiler_unregister_thread() manually, either
because registration happens conditionally, or because there is a variable that
gets put on the stack before the AutoProfilerRegister (e.g. a dynamically
generated thread name). AutoProfilerRegister needs to be the first object on
the stack because it uses its own `this` pointer as the stack top address.

MozReview-Commit-ID: 3vwhS55Yzt

--HG--
extra : rebase_source : dffab11abf7d4b57fa54475fd22e71b84375cd7b
2016-12-29 22:32:52 +01:00
Markus Stange 11eb304af2 Bug 1323100 - Stop double-registering the Media_Encoder thread with the profiler. r=froydnj
MozReview-Commit-ID: 8TQMVhbw13s

--HG--
extra : rebase_source : 6ebeba2b28f643a4b555e889b2f4f99a55e68485
2016-12-21 23:06:56 +01:00
Markus Stange 4e6ca03c5d Bug 1323100 - Stop double-registering the MediaStreamGraph thread with the profiler. r=froydnj
MozReview-Commit-ID: 7WxNLZpBWL4

--HG--
extra : rebase_source : ce8fe0481c8e3c3d3efd3d1c15480490943ee202
2016-12-21 23:06:45 +01:00
Haik Aftandilian 7e7b9330e3 Bug 1322716 - Remove /private/var regex from GMP sandbox rules. r=jesup, r=cpearce, r=gcp
MozReview-Commit-ID: I1Y2MOum5T3
2016-12-19 18:16:31 -08:00
Luke Wagner d69a4426a7 Bug 1326280 - Baldr: use .wasm as bytecode file format (r=bbouvier)
MozReview-Commit-ID: 5nmuLDswfWU

--HG--
extra : rebase_source : eb0839326f65c58bd51521bc6bcdca9a4cec846a
2016-12-30 10:49:54 -06:00
Ehsan Akhgari 9fc596c6c1 Bug 1325651 - Assume failure in case of early returns in a couple of places; r=bzbarsky 2016-12-30 11:41:04 -05:00
Ryan VanderMeulen 8a763f40ff Merge m-c to inbound. a=merge 2016-12-30 10:05:28 -05:00
Jeff Gilbert 61b02e4fd7 Bug 1326159 - Update TF buffer restrictions. - r=daoshengmu
Update conformance2/buffers/bound-buffer-size-change-test.html to top-of-tree 2.0.0.

MozReview-Commit-ID: CgfP70Y0wul
2016-12-30 03:30:13 -08:00
Jessica Jong 4f5f57be29 Bug 1310078 - Implement valueAsNumber and valueAsDate for <input type=datetime-local>. r=smaug,Waldo 2017-01-03 22:33:00 +01:00
Christoph Kerschbaumer 38727dc83e Bug 1182569: Update tests when converting docshell loads to use AynscOpen2. r=smaug,billm 2017-01-03 21:00:12 +01:00
Christoph Kerschbaumer 63fe5cb0bb Bug 1182569 - Skip security check for plugins using newstream attribute. r=smaug 2017-01-03 20:59:54 +01:00
Christoph Kerschbaumer c88d12696d Bug 1182569: Update ContentSecurityManager to handle docshell loads. r=smaug 2017-01-03 20:59:30 +01:00
Christoph Kerschbaumer 0bfc26fd77 Bug 1182569: Use AsyncOpen2 for docshell loads. r=smaug 2017-01-03 20:57:45 +01:00
Jeff Gilbert 4e282917d8 Bug 1325995 - Misc fixes.
MozReview-Commit-ID: IcJvNv6rWSt
2017-01-04 00:41:06 -08:00
Jeff Gilbert c66c9fccda Bug 1325995 - Disallow backslash in WebGL 1. - r=daoshengmu
MozReview-Commit-ID: IrBZYnPVLU
2017-01-04 00:41:04 -08:00
Jeff Gilbert 2083c22652 Bug 1325995 - Update tests.
MozReview-Commit-ID: H0k6ypLCW4P
2017-01-04 00:41:02 -08:00
Jeff Gilbert 2d5f771315 Bug 1325995 - Do our own GLSL char validity checks based on ESSL3 rules. - r=daoshengmu
MozReview-Commit-ID: 60mJqYFTQBA
2017-01-04 00:41:00 -08:00
Jeff Gilbert 43c4b02d0c Bug 1325995 - Rewrite shader comment truncation. - r=daoshengmu
MozReview-Commit-ID: KvgQhxAnDQl
2017-01-04 00:40:58 -08:00
Jeff Gilbert 63a9df0c54 Bug 1326378 - Infer indexed frag output location from base location on OSX. - r=ethlin
MozReview-Commit-ID: Ar07ZnNhu5d
2017-01-03 21:07:48 -08:00
Phil Ringnalda c4d1ea9a14 Merge m-c to m-i
MozReview-Commit-ID: JYNBUrs2zC5
2017-01-03 18:46:43 -08:00
Edgar Chen 68253477ee Bug 1328206 - Do not use binding_detail things in AudioContext, use Sequence instead; r=dminor 2017-01-03 11:54:37 +08:00
Olli Pettay 0364dbc792 Bug 1326507, remove NS_IMPL_CYCLE_COLLECTION_TRAVERSE_SCRIPT_OBJECTS, r=mccr8
--HG--
extra : rebase_source : 3ae1207308de120b7299b13ecaa95dd1612b3459
2017-01-03 21:47:55 +02:00
Olli Pettay 8aa472a93c Bug 1326507, trace after traverse, r=mccr8
--HG--
extra : rebase_source : 496a186306372567fb917c2d21488fe5a87c5f75
2017-01-03 21:46:49 +02:00
Michael Layzell f24af1792b Bug 1324359 - Rename and simplify the DocShell ProcessLock concept, r=smaug
MozReview-Commit-ID: JTp8Q2mWqpN
2017-01-03 17:00:25 -05:00
Mike Conley e3312c9db7 Bug 1323319 - Make sure we can force paint remote tabs even during the first activation. r=billm
MozReview-Commit-ID: EV9u7M2i2sL

--HG--
extra : rebase_source : 8ad9225c7f282d37bccf2399b12613aaec40ae94
extra : amend_source : d4bfff7e5ee2199d98992f5d8d05cc63edaf2c2f
2016-12-21 16:09:09 -05:00
Sylvestre Ledru 2e2def32f7 Bug 1324547 - ensure we're not needlessly copying things in ranged for loop r=froydnj
MozReview-Commit-ID: 2NnjjmANem5

--HG--
extra : rebase_source : 4387ede40b6726b4a879b57e31f8428784f0bfc7
2016-12-21 18:05:50 +01:00
Carsten "Tomcat" Book 98048f1496 Merge mozilla-central to autoland 2017-01-04 16:20:18 +01:00
Markus Stange 1b72f37c98 Bug 1323100 - Assign names to all remaining threads that are created through NS_NewThread and create them using NS_NewNamedThread instead. r=froydnj
MozReview-Commit-ID: 7W1dt2BBKJZ

--HG--
extra : rebase_source : ad47978ef81d048a90b9803803201eee32974024
2016-12-21 11:43:50 +01:00
Carsten "Tomcat" Book e0737b85e4 Merge mozilla-central to autoland 2017-01-03 12:44:25 +01:00
Markus Stange 615f9ce1db Bug 1323100 - Use NS_NewNamedThread for the Android Audio thread. r=froydnj
MozReview-Commit-ID: IcKsOZCZVwB

--HG--
extra : rebase_source : 2b5381faf2370792e715dfb20a7b274644f775f2
2016-12-21 11:31:15 +01:00
Markus Stange 11948b78b5 Bug 1323100 - Use NS_NewNamedThread for IndexedDB threads. r=froydnj
MozReview-Commit-ID: Do4l5QL2qSG

--HG--
extra : rebase_source : 858b23dc85847849393e54709a68564d735bb638
2016-12-21 11:26:48 +01:00
Wes Kocher 0747771468 Merge inbound to central, a=merge
MozReview-Commit-ID: 1rhhMOnW569
2016-12-29 12:03:47 -08:00
Sebastian Hengst d31ab3acdd Backed out changeset bf998120b814 (bug 1326023) for hazard failure. r=backout 2016-12-29 15:04:11 +01:00
Kilik Kuo c0c0027fee Bug 1325543 - Avoid unnecessarily awaiting procedure for Widevine CDM installation. r=jwwang
Currently, gecko doesn't support download and installation for Widevine CDM on Android.
Returning Cdm_not_supported avoids the subsequent call to AwaitInstall() while requesting MediaKeySystemAccess.

MozReview-Commit-ID: 3mOEf9iWE1G

--HG--
extra : rebase_source : 59649e5048424c38033c3c6e6c48f89ea4997a8e
2016-12-29 20:30:31 +08:00
Jeff Gilbert a08f6f998c Bug 1325699 (flattened) - Fix uniform block handling. - r=daoshengmu
Flattened with:
* Handle -1 attrib locations. - r=daoshengmu
2016-12-29 02:47:08 -08:00
Jeff Gilbert 0b065a7b71 Bug 1325301 (flattened) - Validate attribute base types match data base types. - r=bz,daoshengmu
Flattened with:
* Clean up generic vertex attribs. - r=bz,daoshengmu
* Remove EnsureAttrib() and friends. - r=daoshengmu
* Simplify EnumName behavior and usage and add ErrorInvalidEnumArg(). - r=daoshengmu
2016-12-29 02:46:46 -08:00
Jeff Gilbert 6cff55278b Bug 1325733 (flattened) - Mark read/draw calls better. - r=daoshengmu
Includes:
* ANGLE needs to call clear twice even on larger targets. - r=daoshengmu
2016-12-29 02:45:13 -08:00
Jeff Gilbert 0cf1348d5e Bug 1324972 (flattened) - Disable unnecessary manual index validation for WebGL 2. - r=daoshengmu
Includes:
* Catch ANGLE's zealous index-out-of-bounds INVALID_OPs.
* ANGLE DrawElements validation is wrong.
2016-12-29 02:45:11 -08:00
Jeff Gilbert f74960ccbf Bug 1325333 - Check type of buffer to be cleared by Clear[Buffer]. - r=daoshengmu
MozReview-Commit-ID: 8A37aTeW25t
2016-12-29 02:45:08 -08:00
Cameron McCormack 7fca5ff6dd Bug 1323892 - Followup to disable one more crashtest under stylo.
MozReview-Commit-ID: L1ciA3WaN0a
2016-12-29 16:32:01 +08:00
JW Wang 51911743dc Bug 1325905. Part 7 - add assertions to ensure Ensure{Audio,Video}DecodeTaskQueued is never called by DecodingFirstFrameState. r=kaku
MozReview-Commit-ID: 9zSuH4p0aqg

--HG--
extra : rebase_source : 315b05e6acda578f7e4ba76478ea3096cb196b1c
extra : intermediate-source : 1849928297d4fd028bd53010f6f2dc1a2af85950
extra : source : ed06f086bb403ddfa0296b6be87601188ada81c6
2016-12-21 18:26:31 +08:00
JW Wang 2942cc95b4 Bug 1325905. Part 6 - let DecodingFirstFrameState::Enter() call Request{Audio,Video} instead. r=kaku
MozReview-Commit-ID: AH1F9hMJorM

--HG--
extra : rebase_source : ffd3b9711fa7be5db2445b75a7e875bd6b44c1b5
extra : intermediate-source : 1477500ceba6772fe5b93f318f1a13f03d3dff03
extra : source : 240f60c1c35b92facdec77f22022fed4babf4f84
2016-12-22 04:32:47 +08:00
JW Wang 354ad927a8 Bug 1325905. Part 5 - let DecodingFirstFrameState override Handle{Audio,Video}Waited. r=kaku
We want to call Request{Audio,Video}Data() instead of Ensure{Audio,Video}DecodeTaskQueued
which checks mState and breaks the encapsulation of the state objects.

MozReview-Commit-ID: 5oydItSvnMF

--HG--
extra : rebase_source : 5da4ad2f0fbf010a78c6b4e7cbab70378a002758
extra : intermediate-source : 0a882fb53fd51a71f9a3914074e9020d4eb87c4f
extra : source : 9927e37c9383e9204cbaf1b0dbc6fbfdff48df82
2016-12-21 18:23:00 +08:00
JW Wang 5f9c0a1f53 Bug 1325905. Part 4 - let DecodingFirstFrameState override Handle{Audio,Video}NotDecoded. r=kaku
We want to call Request{Audio,Video}Data() instead of Ensure{Audio,Video}DecodeTaskQueued
which checks mState and breaks the encapsulation of the state objects.

MozReview-Commit-ID: 87CwSdtTwi4

--HG--
extra : rebase_source : a16404e208ae5cd9b008728249cea444a7b229e7
extra : intermediate-source : 3fbfa4532f6a54ea9e1aa7b0e9880539ca57c811
extra : source : 22a75175dd957605e70096b029a677b4d2ac2d42
2016-12-21 18:16:25 +08:00
JW Wang 8901ee07af Bug 1325905. Part 3 - split HandleNotDecoded() into HandleAudioNotDecoded() and HandleVideoNotDecoded(). r=kaku
MozReview-Commit-ID: 3RcG43pxGSv

--HG--
extra : rebase_source : 75460198f494efd087f7b16816ece042c50873c8
extra : intermediate-source : c61d6b5eab101c7e978d9253e9ef524a1b8d92f8
extra : source : 8a8878c5fdcc7d40b48c66c4efda303f2e569ba5
2016-12-21 18:00:37 +08:00
JW Wang 6b395243f2 Bug 1325905. Part 2 - move IsWaitForDataSupported() assertions into MediaDecoderReaderWrapper. r=kaku
MozReview-Commit-ID: 6KwjHONHKo

--HG--
extra : rebase_source : f6da0198c63f27d002d5118ac8a12d436d9c2586
extra : intermediate-source : 1100a896ff400a101ac166cc82e75e28b37e2c5e
extra : source : 19cab6225fc2969fd5f1f445f48c90b2de2481e7
2016-12-21 17:37:56 +08:00
JW Wang 9d8e66b8c1 Bug 1325905. Part 1 - add assertions to MDSM::Request{Audio,Video}Data. r=kaku
MozReview-Commit-ID: JjRsv2wdLUq

--HG--
extra : rebase_source : 6393b2650bec9e157ebe20cccc7d8242df34cec1
extra : intermediate-source : 0bb565e52e2bf69d64cc37b88e0cc6342d98442d
extra : source : 893f204d72ffa399a85bde9de97649a531ed54ba
2016-12-21 17:21:21 +08:00
Cameron McCormack 7a4522824d Bug 1326023 - Make Element::GetBindingURL return a strong reference. r=smaug
MozReview-Commit-ID: 5QI6UuvwDrE

--HG--
extra : rebase_source : 42f7a481590020d4b7c30df7036cc922a5d9d275
2016-12-28 17:50:44 +08:00
Ho-Pang 298ce9f9e5 Bug 1299209 - Part 4: Test event.pointerId in PE Framework. f=sshih, r=smaug
--HG--
extra : rebase_source : 8f14324e17c0811d4788b40a670337de330bde10
2016-12-27 03:21:00 -05:00
Ho-Pang 7bc745d410 Bug 1299209 - Part 2: Support setting pointerId in nsDOMWindowwUtils and nsContentUtils. f=sshih, r=smaug
--HG--
extra : rebase_source : 46affaf510908e28ad47df2e088574d33aa52be3
2016-12-20 23:06:00 -05:00
Ho-Pang 41adef3ae2 Bug 1299209 - Part 1: Passing PointerId when a new WidgetMouseEvent is created. h=sshih, r=smaug
--HG--
extra : rebase_source : b123e74425e56c09ab38f5916589abb84c3d5996
2016-12-20 22:53:00 -05:00
Gijs Kruitbosch 1b0f2fbdbd Bug 1308526 - fix waiting for the test page to load before trying to use it, r=mikedeboer
MozReview-Commit-ID: GgafFr5ggGa

--HG--
extra : rebase_source : b083188a28cd691ae79d086e1a10b4208b84353c
2017-01-03 11:49:33 +00:00
Xidorn Quan 4ba2027497 Bug 1328530 - Remove useless nsHTMLDocument::CreateShell and nsDocument::doCreateShell. r=smaug
MozReview-Commit-ID: AOgjtCpNO7t

--HG--
extra : rebase_source : 933a6ca98827e6b46107dcd6f0ea521960736a47
2017-01-04 18:32:18 +11:00
Timothy Guan-tin Chien c325756c29 Bug 570893 - Only re-enable the form controls when reload, not re-disable it, r=bz
With this patch, the disabled state is still kept in the nsPresState,
but we will only honor that if the state saved asks as to re-enable the
control.

The behavior is changed so that controls disabled by JavaScript will be
kept enabled as the JavaScript world gets reloaded.

MozReview-Commit-ID: 6PchHfx6KYX

--HG--
extra : rebase_source : 19399db854cc7cb80f45940bfc378c3e09c2979c
2016-12-30 14:26:35 +08:00
Carsten "Tomcat" Book c9889851e8 Merge mozilla-central to autoland 2017-01-09 10:45:10 +01:00
Masatoshi Kimura ae77a86895 Bug 1329570 - Restore missing error check in mozilla::dom::Location::GetPathname. r=valentin.gosu
MozReview-Commit-ID: 1g5Skn2R38c

--HG--
extra : rebase_source : fa19a17caf247472dfce77181917bbe97f70e3cd
2017-01-09 15:53:01 +09:00
Kaku Kuo e3f3f93c62 Bug 1299096 - Remove the event-based play() method out from nsIDOMHTMLMediaElement.idl; r=bz
MozReview-Commit-ID: 3pHsSsADPLu

--HG--
extra : rebase_source : 9e3620c4565118f0c4f016b0bbe75ec046928718
2016-12-13 16:04:45 +08:00
JW Wang 61f01c2630 Bug 1329098. Part 5 - remove unnecessary checks and temps. r=kaku
For mSentFirstFrameLoadedEvent is true in DecodingState.

MozReview-Commit-ID: 8zpsMAME8p6

--HG--
extra : rebase_source : fea2a795481628b5bd7eaf841fcf6a8bc377fbbc
extra : source : d54b4f06b497408a0225d708bc749101d778ca4f
2017-01-06 15:49:02 +08:00
JW Wang 5c3ba7d181 Bug 1329098. Part 4 - move DispatchDecodeTasksIfNeeded into DecodingState. r=kaku
MozReview-Commit-ID: LT9xNdTAtOW

--HG--
extra : rebase_source : faf2d7dac84374d47a6d2e210881d0355cbd86f5
extra : source : f681710dc58aac1053d06adaeb1865fceeabde23
2017-01-06 15:43:31 +08:00
JW Wang 75547a6b1d Bug 1329098. Part 3 - remove some temp vairables. r=kaku
MozReview-Commit-ID: 3gz79Tzidtf

--HG--
extra : rebase_source : 76ebb3752e71883cbdc7df916453792bff6a0bb0
extra : source : a63557c857d9ca8cfd1280c986a5d2f99f4e7668
2017-01-06 15:36:38 +08:00
JW Wang d683161210 Bug 1329098. Part 2 - remove unnecessary checks. r=kaku
1. mSentFirstFrameLoadedEvent is true in BufferingState.
2. mMinimizePreroll is false in BufferingState for buffering happens after playback starts and we reset mMinimizePreroll once playback starts.

MozReview-Commit-ID: ABE7TvNEetD

--HG--
extra : rebase_source : 53c507ff9cd8ea028c5ff7f8b5b8c049cb8a7ebf
extra : source : e87a70953f6eb8d4a9e31ab06ac73afcc90da923
2017-01-06 15:22:52 +08:00
JW Wang 664dfb82d2 Bug 1329098. Part 1 - copy DispatchDecodeTasksIfNeeded() into BufferingState. r=kaku
MozReview-Commit-ID: 2q8FhTFTJ6g

--HG--
extra : rebase_source : 989fb40a86b0358c8843082abc9ef2dea20e3a2d
extra : source : 13d0e5e6e1ddf5fff6a0b8a0da7a85e5694c5be7
2017-01-06 15:00:36 +08:00
JW Wang 1f9deb245d Bug 1329554. Part 2 - remove |mMaster->mMinimizePreroll| checks from BufferingState::Step(). r=kikuo
mMinimizePreroll is false in BufferingState because we enter buffering only
after playback starts.

MozReview-Commit-ID: 9vRuogzvV7x

--HG--
extra : rebase_source : f43eb5af15d6ae969a6269c7adf68780d9b3b659
extra : intermediate-source : 0dd36842a3ae6ad9b5421bbd277e9ee05ec2e110
extra : source : eae56fe516563a2675f0492c56c6a01b6f38149f
2017-01-05 18:13:54 +08:00
JW Wang 84f38029d4 Bug 1329554. Part 1 - let DecodingState decide whether to dispatch decoding tasks when mMinimizePreroll changes. r=kikuo
MozReview-Commit-ID: 6QnH2vOHid1

--HG--
extra : rebase_source : 2b5485539a22a8157fc826761199092ab099d0b8
extra : intermediate-source : 329b13f1aa7025f35450417c658bcacd2b42996a
extra : source : 160616eaabf48efac98868c767f704b98415d3b9
2017-01-05 18:12:06 +08:00
JW Wang f4605f76d9 Bug 1328836 - Remove MDSM::DispatchMinimizePrerollUntilPlaybackStarts. r=kaku
MozReview-Commit-ID: 1EGHVhZqUTA

--HG--
extra : rebase_source : c90c245683c50364d869566540f47927e0f64d04
extra : intermediate-source : ceb0660e9f35a0dbbd361a4dc4eb6bcef8add385
extra : source : e1dfbdac70feedc99a950c00aeda683e38919247
2017-01-05 17:59:19 +08:00
Bill McCloskey d41fa7c941 Bug 1325919 - Allow EventTargetFor to be used after last window has been destroyed (r=smaug)
MozReview-Commit-ID: 7p9dnf8KzIx
2016-12-29 15:42:09 -08:00
Boris Zbarsky 2ff7994e5d Back out bits that should not have landed for bug 1326096 on CLOSED TREE. 2016-12-29 14:34:37 -08:00
Boris Zbarsky ed2c1ef6c3 Bug 1326096 another followup: fix build bustage on CLOSED TREE. 2016-12-29 14:24:47 -08:00
Boris Zbarsky 3f8b6befb3 Bug 1326105 part 5. Move the getting of the incumbent global to the finish-slow-js codepath too, since it's not needed if no one will ever call our callback. r=smaug 2016-12-29 13:19:26 -08:00
Boris Zbarsky 249298d20c Bug 1326105 part 4. Remove the now-unused JSContext argument of the protected CallbackObject constructor. r=smaug 2016-12-29 13:19:26 -08:00
Boris Zbarsky ba1f5c039f Bug 1326105 part 3. Move async stack capture out of the 'fast' CallbackObject constructor and into FinishSlowJSInitIfMoreThanOneOwner. r=smaug 2016-12-29 13:19:26 -08:00
Boris Zbarsky e5f32d3609 Bug 1326105 part 2. Rename CallbackObject::HoldJSObjectsIfMoreThanOneOwner to a more generic name and hand it a JSContext to use. r=smaug 2016-12-29 13:19:26 -08:00
Boris Zbarsky f3debaf2fb Bug 1326105 part 1. dom::RootedCallback should hold on to a JSContext that it can then use in its destructor. r=smaug 2016-12-29 13:19:25 -08:00
Wes Kocher 2045ef4aab Merge m-c to inbound, a=merge
MozReview-Commit-ID: ESXuJFW2Tgr
2016-12-29 12:08:05 -08:00
Gregory Moore c337ff9019 Bug 1301640 - Replaced per-platform variants of nsIDateTimeFormat with single, ICU-backed version that has static c++ callers. r=emk
Also removed unused format selectors and removed option to pass in a locale. Changed all callers to use new version.

MozReview-Commit-ID: Gq0b1c3C1eO

--HG--
rename : intl/locale/unix/nsDateTimeFormatUnix.cpp => intl/locale/DateTimeFormatUnix.cpp
extra : source : 7e747433d1c9fae8a0acb4090f61335fcc165e4c
2016-11-21 15:58:37 -08:00
Cameron McCormack babad063ff Bug 1328832 - Part 2: Rename mozFlushType to mozilla::FlushType and make it an enum class. r=bzbarsky
MozReview-Commit-ID: D3fIngSHSsl
2017-01-05 15:31:56 +08:00
Cameron McCormack ce51bd51e0 Bug 1328832 - Part 1: Rename mozFlushType.h to FlushType.h. r=bzbarsky
MozReview-Commit-ID: 1ubwNkBEdfz

--HG--
rename : dom/base/mozFlushType.h => dom/base/FlushType.h
2017-01-05 14:54:02 +08:00
John Dai 4335473f7c Bug 1309184 - Implement upgrade reaction for custom element reactions. r=wchen
--HG--
extra : rebase_source : 0333c91029b6e08961e2ad0e7c04c3364cb429b5
2017-01-05 18:38:00 -05:00
Jan-Ivar Bruaroey 0fb5c6dc68 Bug 1329193: Use es6 classes in PeerConnection.js. r=mt
MozReview-Commit-ID: FtVZXPA9ckJ

--HG--
extra : rebase_source : 0c5d1ba14a83b553cc9cb4473035811173f9c9c8
2017-01-05 22:47:25 -05:00
Hiroyuki Ikezoe d02fb2f63c Bug 1328255 - Run test_animation_performance_warning.html in a new window with enabling prefs. r=birtles
window.requestIdleCallback can not be used right after enabling its pref in the
same window object. We need to open a new window after enabling the pref.
Also, setting layout.css.devPixelsPerPx in the new windows seems to make
test_session_scroll_position.html failure on Android, so in this patch
setting layout.css.devPixelsPerPx is set before opening the new window.
"general.useragent.locale" too.

This patca moves waitForIdleCallback from testcommon.js for preventing from
being used in other tests unintentionally.

MozReview-Commit-ID: Erm2BPnikvB

--HG--
rename : dom/animation/test/chrome/test_animation_performance_warning.html => dom/animation/test/chrome/file_animation_performance_warning.html
extra : rebase_source : 69ccc65e1c16c3a3320d45608e9b14f1507b2e95
2017-01-07 19:18:53 +09:00
Andrew McCreight 462f9b0e95 Bug 1321052 - Convert ProcessHangMonitor to use endpoints. r=billm
MozReview-Commit-ID: Ixj2b3ONLcc

--HG--
extra : rebase_source : 26220e66bd9da1acc83ab8ee4f067a1d32735ded
2017-01-05 12:54:52 -08:00
Masatoshi Kimura 6d14303fe1 Bug 1149966 - Remove enablePrivilege calls from remaining mochitest. r=jmaher
MozReview-Commit-ID: D7KglhS4PCw

--HG--
extra : rebase_source : 405e747a2edac8714f4f90ccab8c0960e25fd0ea
extra : source : d5d6a19c81306edfaaf3e836c990bb40923623f4
2016-12-05 01:23:40 +09:00