Commit Graph

491432 Commits

Author SHA1 Message Date
Kartikaya Gupta
ff457cf4f7 Bug 1269067 - Add a gtest to ensure that mouse drag blocks and wheel blocks don't interrupt each other. r=botond
MozReview-Commit-ID: F7FlcaTl4jl
2016-09-14 07:54:37 -04:00
Kartikaya Gupta
51b88e5657 Bug 1289432 - Miscellaneous tweaks to address review comments. rs=botond
MozReview-Commit-ID: B57VOs7rdSH
2016-09-14 07:54:37 -04:00
Kartikaya Gupta
dd5b4ca612 Bug 1289432 - Miscellaneous function renaming and documentation touchups. r=botond
MozReview-Commit-ID: IEUSxcIb0fN
2016-09-14 07:54:37 -04:00
Kartikaya Gupta
fd5138db2a Bug 1289432 - Migrate remaining InputQueue code to use the new mQueuedInput structure instead of the block-based queue. r=botond
MozReview-Commit-ID: 41M1QGp8kcX
2016-09-14 07:54:37 -04:00
Kartikaya Gupta
9e574c3e0d Bug 1289432 - Update a couple more functions to stop fishing around inside mInputBlockQueue. r=botond
MozReview-Commit-ID: TsIGZK43wb
2016-09-14 07:54:37 -04:00
Kartikaya Gupta
5b33e5009a Bug 1289432 - Stop relying on the mEvents array inside the SetConfirmedTargetApzc implementations. r=botond
MozReview-Commit-ID: BG7BmQPa6g9
2016-09-14 07:54:37 -04:00
Kartikaya Gupta
e9b2ac2229 Bug 1289432 - Drop the DispatchImmediate codepath. r=botond
Instead of having this special shortcut case that goes through MaybeHandleCurrentBlock
and DispatchImmediate, we can just add the input to the queue normally and call
ProcessInputBlocks() which effectively does the same thing. Doing it this way
also guarantees that mQueuedInputs is non-empty and mQueuedInputs[0] is the
input currently being processed. This is useful for future patches because it
will allow us to maintain the guarantee that the input block for the input
currently being processed can be readily accessed via GetCurrentInputBlock().

MozReview-Commit-ID: JuVbpsFLURo
2016-09-14 07:54:36 -04:00
Kartikaya Gupta
f8d4e33b0b Bug 1289432 - Allow the CurrentBlock() and CurrentXXXBlock() functions to return null, and guard/assert at the callsites. r=botond
MozReview-Commit-ID: 77LWZBtAB9Y
2016-09-14 07:54:36 -04:00
Kartikaya Gupta
43f18cb292 Bug 1289432 - Update checks for unprocessed events to use mQueuedInputs instead of checking the block is at the head. r=botond
MozReview-Commit-ID: GEHDHhkLPKe
2016-09-14 07:54:36 -04:00
Kartikaya Gupta
e494dee6f9 Bug 1289432 - Switch over to using the mActiveXXXBlock in some places instead of fishing around in mInputBlockQueue. r=botond
Note that this patch has a subtle functional change because the mActiveXXXBlock
variables can remain non-null even if there are no blocks in mInputBlockQueue.
In fact, this patch contains the secret sauce that allows the input queue to
handle interleaved input events, because this ensures that the interleaved events
end up getting associated with the pre-existing active block rather than creating
a new one.

MozReview-Commit-ID: 7GkbSe9IaC4
2016-09-14 07:54:36 -04:00
Kartikaya Gupta
19ed146d8d Bug 1289432 - Start populating the mQueuedInput array with queued input objects. r=botond
Most of the changes to InputBlockState.* are temporary and will be removed in a
future patch, once the transition to using mQueuedInputs is complete. However,
the code is useful as an intermediate step to verify that mQueuedInputs is
maintaining events in the same order and with the same lifetime as the old block-
based queue.

MozReview-Commit-ID: I8lVhMiT4hg
2016-09-14 07:54:36 -04:00
Kartikaya Gupta
05d91128f8 Bug 1289432 - Introduce a skeleton QueuedInput class. r=botond
Note that this patch makes the InputData hierarchy polymorphic.

MozReview-Commit-ID: HrZ2KhHeDoy
2016-09-14 07:54:36 -04:00
Kartikaya Gupta
4b8e63b75c Bug 1289432 - Have the InputQueue keep RefPtrs to the active block of each input type. r=botond
MozReview-Commit-ID: 36MatfdCVS8
2016-09-14 07:54:36 -04:00
Kartikaya Gupta
eebba5eff4 Bug 1289432 - Use RefPtr instead of UniquePtr to hold the block state objects, since there will be multiple references to them soon. r=botond
MozReview-Commit-ID: BhWf1omgfoC
2016-09-14 07:54:36 -04:00
Gabriele Svelto
6a9ddd1201 Bug 1301667 - Increase the low memory threshold under Windows and clean up the available memory tracker r=njn 2016-09-14 13:52:45 +02:00
Eugen Sawin
1b8ab7ef74 Bug 1302516 - [1.2] Add mutex locking to ZipCollection zip vector access. r=glandium 2016-09-14 12:47:06 +02:00
James Graham
e2e577306d Bug 1302673 - Encrypted media tests also seem to be unstable on OSX, a=testonly
MozReview-Commit-ID: BUee8ZFWL2D
2016-09-14 11:22:36 +01:00
Carsten "Tomcat" Book
9a2448ee1c Merge mozilla-central to mozilla-inbound 2016-09-14 12:11:09 +02:00
Carsten "Tomcat" Book
d2c3fe7fd3 merge autoland to mozilla-central a=merge 2016-09-14 12:07:02 +02:00
Carsten "Tomcat" Book
1019d4f3c1 merge mozilla-inbound to mozilla-central a=merge 2016-09-14 12:04:01 +02:00
Edwin Flores
794b92fe7b Bug 1296996 - Use ProducerRead{Acquire/Release} in ReadBuffer::Create - r=jgilbert 2016-09-14 11:02:37 +01:00
Nicolas B. Pierron
405f3fd73c Bug 1302142 - Accept any value as valid input for MIteratorStart. r=jandem 2016-09-14 09:48:19 +00:00
Jason Laster
71f4af770c Bug 1302202 - Fix splitconsole keypress handler. r=jlongster 2016-09-13 22:55:05 -04:00
Benoit Girard
fab198cffc Bug 1288746 - Handle missing EGL failure IDs. r=jmuizel
MozReview-Commit-ID: Kk5vFNMdhjV

--HG--
extra : rebase_source : 8a8851b91fa045c8cb13e1aee2c8c7c62d2b0a4e
2016-09-13 14:17:29 -04:00
Phil Ringnalda
7fc271e5f5 Backed out changeset 663cde4dd044 (bug 1287004) for crashes [@ XGetWindowAttributes]
CLOSED TREE
2016-09-13 21:06:19 -07:00
Zibi Braniecki
8ef8bb9efc Bug 1289340 - Expose Intl.DateTimeFormat.prototype.formatToParts. r=waldo
MozReview-Commit-ID: Ii7TqMDRzu4
2016-09-13 20:49:21 -07:00
Ben Kelly
2d718bf199 Bug 1300658 P7 Make test_ext_downloads_search.js wait for full window file removal. r=aswan 2016-09-13 20:14:02 -07:00
Ben Kelly
3ef8365a49 Bug 1300658 P6 Fix one place XHR used NS_DispatchToMainThread() directly from a worker. r=baku 2016-09-13 20:14:02 -07:00
Ben Kelly
f1f3b13517 Bug 1300658 P5 Make service worker APIs use the MainThreadTaskQueue. r=baku 2016-09-13 20:14:02 -07:00
Ben Kelly
c26c5533f0 Bug 1300658 P4 Make dom/fetch use the worker MainThreadTaskQueue. r=baku 2016-09-13 20:14:02 -07:00
Ben Kelly
adf0d2b529 Bug 1300658 P3 Don't fail test_consoleAndBlobs.html if other console messages are received. r=baku 2016-09-13 20:14:02 -07:00
Ben Kelly
e5c5dd65ac Bug 1300658 P2 Make WorkerRunnable's destined for main thread use the MainThreadTaskQueue. r=baku 2016-09-13 20:14:02 -07:00
Ben Kelly
f7c726cbfd Bug 1300658 P1 Expose a main thread TaskQueue WorkerPrivate. r=baku 2016-09-13 20:14:02 -07:00
Ben Kelly
ae456e0d5c Bug 1300118 P5 Expose the TaskQueue backlog ImpreciseLengthForHeuristics(). r=bholley 2016-09-13 20:12:15 -07:00
Ben Kelly
48310e4429 Bug 1300118 P4 Make nsThread expect NS_DISPATCH_AT_END similar to nsThreadPool. r=bholley 2016-09-13 20:12:15 -07:00
Ben Kelly
11d56a06f0 Bug 1300118 P3 Fix TaskQueue sCurrentThread TLS handling for nsIEventTarget targets. r=jwwang 2016-09-13 20:12:15 -07:00
Ben Kelly
e03450312b Bug 1300118 P2 Make TaskQueue implement nsIEventTarget. r=bholley 2016-09-13 20:12:15 -07:00
Ben Kelly
f0d440f9d1 Bug 1300118 P1 Make TaskQueue deliver runnables to nsIEventTarget. r=bholley 2016-09-13 20:12:15 -07:00
Ben Kelly
46960c09a1 Bug 1300118 P0 Rename NS_DISPATCH_TAIL to NS_DISPATCH_AT_END to avoid confusion with AbstractThread::TailDispatch. r=bholley 2016-09-13 20:12:15 -07:00
Tooru Fujisawa
c0fc17d9f4 Bug 1298779 - Port jskwgen to Python. r=jwalden 2016-09-14 12:16:41 +09:00
Bill McCloskey
a430c0ac5b Bug 1287004 - Give PuppetWidgets in parent process a compositor bridge (r=mattwoodrow) 2016-09-13 20:06:44 -07:00
George Wright
3480df735c Bug 1241865 - Disable canvas-2d-pixels memory reporter as it currently reports inaccurate values. r=nical 2016-09-13 23:03:09 -04:00
George Wright
2e75d2e6ac Bug 1297565 - Handle failure from calling CompositorBridgeChild::SendNotifyChildCreated() in RenderFrameParent::Init() r=mattwoodrow 2016-09-13 22:58:54 -04:00
George Wright
2f9a23cf41 Bug 1297565 - Fine tune and update our assertions based on old assumptions which may no longer be valid with a GPU process r=dvander 2016-09-13 22:58:54 -04:00
Phil Ringnalda
76834b90c1 Bug 1300036 - Disable browser_dbg_pretty-print-11.js until it's fixed to work correctly and not constantly fail 2016-09-13 19:30:55 -07:00
Matteo Ferretti
b0da97f01c Bug 1254388 - Apply touch simulation from selected device. r=ntim
MozReview-Commit-ID: De8lVrct0iZ

--HG--
extra : transplant_source : %81Xo%B0%A31%E3%EB%E5%15N%0A%8Ct%D6%95%F1%DB%C5%3C
2016-09-13 16:28:15 +02:00
Steven Englehardt
9d9bb6765e Bug 1294866 - Part 3: Tests to verify contentPrincipal persists during session restore. r=mikedeboer
--HG--
extra : rebase_source : d2697330086c6a56191c4db990642d421e755ca9
2016-09-13 21:18:38 +08:00
Steven Englehardt
84249d0d06 Bug 1294866 - Part 2: Storing the loadingPrincipal used to load favicons in SessionStore. r=mikedeboer
--HG--
extra : rebase_source : 4465315e3fea27598a4e0fd30c3acabc39a0fe14
2016-09-13 21:18:37 +08:00
Steven Englehardt
36e8d1bf37 Bug 1294866 - Part 1: Move principal serialization to a utils file. r=mikedeboer
--HG--
extra : rebase_source : da212f0a03fff8cfaf5d76256e1558a9f6d095c7
2016-09-13 21:18:36 +08:00
Henry Chang
8cc38b3dfc Bug 1302044 - Init tableArray with only enabled tables. r=francois.
MozReview-Commit-ID: KMp8oLkBXwb

--HG--
extra : rebase_source : eb29994750e8707c18867a6f9fa6ac9e00dd49ff
2016-09-12 17:30:06 +08:00