Commit Graph

456367 Commits

Author SHA1 Message Date
Jim Chen
51bc74f902 Bug 1236643 - Let GeckoInputConnection keep its view; r=esawin
Right now GeckoInputConnection uses GeckoAppShell to get its view, but
it should be keeping its own View reference to support multiple
GeckoViews.
2016-01-06 21:33:18 -05:00
Jim Chen
ae79cbc8c0 Bug 1236640 - Make selection change part of the IME change transaction; r=esawin
We notify IME text changes in transactions. We should make selection
change notification part of that transaction.
2016-01-06 21:33:18 -05:00
Jim Chen
a586ed51b8 Bug 1236705 - Correctly handle all text change scenarios; r=esawin
Handle all text change scenarios efficiently but correctly. In
particular, when we have a pending "replace text" action, make sure we
preserve old and new spans as much as we can, and make sure we merge the
text from the pending action with the actual changed text.
2016-01-06 21:33:18 -05:00
Jim Chen
5f0e9448d5 Bug 1236049 - Be smarter about which Context to use for opening Intent; r=sebastian
Use an Activity as the Context when we have one. This avoids the crash
and also avoids an ugly black flash when you cancel the intent chooser.
When we don't have an activity, use an application context and add the
new task flag.
2016-01-06 21:33:18 -05:00
Jim Chen
4eb690b916 Bug 1235246 - Configure GeckoLayerClient after GLController is initialized; r=snorp
LayerView used to call GeckoLayerClient.onGeckoReady directly if Gecko
is sufficiently loaded. However, onGeckoReady indirectly calls
GLController.createCompositor, and it's possible for the
createCompositor event to be prioritized so that it happens before we
initialize GLController, causing a crash. This patch moves the
onGeckoReady call to the Gecko thread, after GLController is
initialized, to avoid this race condition.
2016-01-06 21:33:18 -05:00
Jim Chen
da40f09d48 Bug 1235246 - Only prioritize compositor events in GLController; r=snorp
Only three GLController events -- CreateCompositor, PauseCompositor, and
OnResumedCompositor should be prioritized through GLControllerEvent. The
other GLController events should follow the normal event queue ordering
to prevent race conditions.
2016-01-06 21:33:17 -05:00
Jim Chen
7954d8b002 Bug 1235246 - Always execute a queued call if it's overdue; r=me
GeckoThread.queueNativeCallLocked tries to execute a queued native call
if it's already overdue, but it incorrectly checked that the queue is
not empty. That check is not necessary, and an overdue native call
should always be executed. One-line patch, r=me.
2016-01-06 21:33:17 -05:00
Kartikaya Gupta
57630a6b66 Bug 1219352 - Pack the FrameMetrics booleans. r=botond
--HG--
extra : commitid : AWU27s9DKzG
2016-01-06 20:50:01 -05:00
Kartikaya Gupta
0d7d89c6a4 Bug 1219352 - Rearrange fields in FrameMetrics. r=botond
This patch:
- Maintains a consistent ordering between the lists of fields in the
  FrameMetrics constructor, operator==, IPC read/write functions, and the
  actual order of fields in FrameMetrics. As part of this, missing default
  initializers are added to the FrameMetrics constructor, and fields omitted
  from the operator== are explicitly noted.
- Moves all the boolean values to the end of the set of field (for better
  packing).
- Moves the scroll id and parent scroll id to the front of the list, so that
  the operator== can fail faster in the common case.

--HG--
extra : commitid : 6ink6xmxH38
2016-01-06 20:50:01 -05:00
Kartikaya Gupta
5e3b5adcf2 Bug 1219352 - Update a couple of bool-setters to take a bool argument. r=botond
--HG--
extra : commitid : BSeR1YwEqNy
2016-01-06 20:50:01 -05:00
JW Wang
4abd28457e Bug 1237174 - Remove the unnecessary code since mState won't change in the case of DECODER_STATE_COMPLETED. r=bechen. 2016-01-06 18:18:13 +08:00
JW Wang
93bb6f7b7d Bug 1234424. Part 2 - remove unused code. r=roc. 2016-01-05 21:15:43 +08:00
JW Wang
c892dcaefa Bug 1234424. Part 1 - share the underlying value of MDSM::mSameOriginMedia with DecodedStream. r=roc. 2016-01-05 21:15:37 +08:00
Daniel Holbert
59fce78a44 Bug 1236506: Add support for "-webkit-filter" as an alias for CSS property "filter". r=heycam 2016-01-06 16:35:33 -08:00
Blake Kaplan
1da07553fc Bug 1237146 - Enable this now-passing test. r=billm 2016-01-06 16:19:07 -08:00
Shu-yu Guo
1768759efb Bug 1220564 - Update chrome code uses of genexprs and legacy comprehensions. (r=billm) 2016-01-06 16:02:16 -08:00
Shu-yu Guo
f7ec8ae7a3 Bug 1220564 - Update and remove obsolete JS reftests. (r=Waldo) 2016-01-06 16:02:15 -08:00
Shu-yu Guo
fee40646f2 Bug 1220564 - Update and remove obsolete jit-tests. (r=Waldo) 2016-01-06 16:02:15 -08:00
Shu-yu Guo
007e1c1e69 Bug 1220564 - Remove legacy array comprehensions. (r=Waldo) 2016-01-06 16:02:15 -08:00
Shu-yu Guo
9ee5164282 Bug 1220564 - Remove legacy generator comprehensions. (r=Waldo) 2016-01-06 16:02:15 -08:00
kearwood
5053ceed98 Bug 1230352 - Update to Oculus SDK 0.8.0,r=vlad 2015-09-22 09:38:28 -04:00
Wes Kocher
45302a539b Backed out changeset 1687f6972fe2 (bug 1233716) for apparently breaking mn-e10s
--HG--
extra : commitid : 2lMr2ovoCLc
2016-01-06 15:35:29 -08:00
Nicholas Nethercote
5a752050c8 Bug 1237169 (follow-up) - Fix static analysis bustage. r=me. 2016-01-06 15:31:46 -08:00
Nicholas Nethercote
3074545c18 Bug 1237169 - Remove some unused parameters in and around xpcom/base/. r=mccr8.
--HG--
extra : rebase_source : a3fd151aaecc1a21d14d51ce85c25413a6c3df5f
2016-01-05 19:32:28 -08:00
Henrik Skupin
3961383f37 Bug 1237322 - Mirror latest changes of firefox-ui-tests packages. r=maja_zf 2016-01-07 00:09:05 +01:00
Nicholas Nethercote
4b651d870f Bug 1231881 - Remove NativeSurfaceType::CAIRO_SURFACE. r=bas.
We have both NativeSurfaceType::CAIRO_CONTEXT and
NativeSurfaceType::CAIRO_SURFACE. They both refer to DrawTargets with Cairo
backends. The only reason for having both is so you can call GetNativeSurface()
and get either the |cairo_t*| or the underlying |cairo_surface_t*|.

I argue that this convenience confuses things more than it helps. This patch
removes CAIRO_SURFACE, and adds explicit cairo_get_target() calls where
necessary.

--HG--
extra : rebase_source : 6f1701a8131d854c7f623272182029847876754e
2016-01-05 14:24:08 -08:00
Jean-Yves Avenard
8d672d003f Bug 1236167: P1. Do not attempt to destroy a non allocated surface. r=nical 2016-01-07 09:30:32 +11:00
Eric Faust
c8c9146f1a Bug 1234702 - Part 4: Self-host default base class constructor. (r=till) 2016-01-06 14:26:14 -08:00
Eric Faust
b108999aa3 Bug 1234702 - Part 3: Self-host default derived class constructor. (r=till) 2016-01-06 14:26:14 -08:00
Eric Faust
d92fe405f6 Bug 1234702 - Part 2: Fix up class constructor scripts to allow cloning. (r=Waldo) 2016-01-06 14:26:14 -08:00
Eric Faust
611cab5648 Bug 1234702 - Part 1: Allow opt-in calls to content invoking spread opts in self-hosted code. (r=till) 2016-01-06 14:26:14 -08:00
Eric Faust
880dd94844 Bug 1235656 - Followup: Allow extended functions with guessed atoms in self-hosted code. (rs=arai) 2016-01-06 14:26:14 -08:00
Nicholas Nethercote
a0a0ffb041 Bug 1230415 - Use DrawTarget instead of gfxContext in PaintBorderWithStyleBorder(). r=roc.
--HG--
extra : rebase_source : 06da7ab06a3c0ea7c0141251857552abc26747b3
2015-12-03 19:16:25 -08:00
Armen Zambrano Gasparnian
c2834c6c5b Bug 1233716 - Set self.minidump_stackwalk_path if specified in the configs. r=jlund
--HG--
extra : commitid : 2lBxQtB3hNz
extra : rebase_source : 12fcff7328d06fa2c4d79ca11e2d4ef5f4ad717c
2015-12-18 09:57:20 -05:00
Francois Marier
549ce311a8 Bug 1237103 - Fix Application Reputation remote lookups. r=gcp 2016-01-06 13:37:06 -08:00
Kyle Huey
4e63031bf8 Bug 1237371: Asynchronously shutdown the predictor IO thread. r=hurley 2016-01-06 13:18:29 -08:00
Kyle Huey
e4e99090ac Bug 1237369: When annotating LSPs, asynchronously shutdown the annotation thread. r=jimm 2016-01-06 13:18:29 -08:00
Kyle Huey
1ab13f2322 Bug 1059469: Part 2 - When rescheduling the interval timer, cancel it first, and refactor things so that actually does something. r=bent
RunExpiredTimeouts has "fudging" code to always ensure that we execute at least one timeout.  This is intended to cover cases where an nsITimer fires slightly early, but it means we must be careful not to fire a timer more times than we intend to or we'll execute a timeout prematurely.

Consider a sequences of setTimeout calls alternating in delay between 0ms and 1000ms.  When the 1000ms timeout fires, it schedules a 0ms timeout.  The setTimeout call itself calls RescheduleTimeoutTimer, which schedules the timer for a 0 ms delay.  And once we unwind the 1000ms timeout RunExpiredTimeouts will also schedule the timer for a 0 ms delay.  If the timer has fired (remember, it's processed on a completely different thread) in the meantime, we ultimately will get two callbacks from nsITimer for our 0 ms timeout.  The first will run the 0 ms timeout and schedule a 1000 ms timeout, and the second will run the 1000 ms timeout (remember, RunExpiredTimeouts always runs at least one timeout!) ~999 ms ahead of schedule.

The solution is to cancel the timer in RescheduleTimeoutTimer, so that when we call it the second time it will cause any pending events from the first scheduling to be canceled.  But this actually doesn't work at all, because of how we use nsITimer.  Before worker threads were capable of accepting arbitrary runnables we created TimerThreadEventTarget, which translates the timer firing to the special worker event queue when the timer thread attempts to *dispatch* a runnable to the worker.  We still need this for some of the other types of timers (which use control runnables that interrupt JS, and not the regular event queue).  But setTimeout can simply run like a normal nsITimer callback now.  We need that here, or calling nsITimer::Cancel won't actually do anything, because the timer's event was ignored and TimerThreadEventTarget created its own event.
2016-01-06 13:18:29 -08:00
Kyle Huey
d878b5bb2d Bug 1059469: Part 1 - Add a log module for dump() calls. r=bent 2016-01-06 13:18:29 -08:00
Kyle Huey
449fd40516 Bug 1153636: Don't assert with addEventListener("") on workers. r=smaug 2016-01-06 13:18:29 -08:00
Kyle Huey
ae75c80116 Bug 1155328. r=smaug 2016-01-06 13:18:29 -08:00
Gerald Squelart
74d744c943 Bug 1236380 - GMPStorage::mShutdown=true until Init() succeeds - r=cpearce
Initialize GMPStorage::mShutdown to true, so that if Init() has not completed
yet or if it failed, other methods will not try and access a null mStorage.
2016-01-07 08:06:47 +11:00
Dave Townsend
99e46fd0e0 Bug 1237340: Fix browser and toolkit eslint failures. r=Felipe
--HG--
extra : rebase_source : 3e1098fe6d387bed1edcad365e318c484e8989ea
2016-01-06 10:10:35 -08:00
Chris Pearce
5d3656a01c Bug 1234099 - Backout 34460cc654ca due to playback failures caused by Adobe GMP. r=backout 2016-01-07 09:57:36 +13:00
Chris Manchester
586c6f4bb9 Bug 1237156 - Only build the fileid utility when MOZ_CRASHREPORTER is set. r=ted.mielczarek
--HG--
extra : rebase_source : 445ddac5b47cd106dab224da8b2af3ed90cf973b
2016-01-06 10:52:21 -08:00
Jan de Mooij
f549ff32f6 Bug 1231224 part 13 - Add OOM checks to Statistics::initialize. r=jonco
--HG--
extra : rebase_source : 23bd6ee9ae62707b01d13b928be9d09e7d2e7815
2016-01-06 21:08:58 +01:00
Jan de Mooij
ab5c363f7d Bug 1231224 part 12 - Use InfallibleVector in irregexp code to avoid MOZ_WARN_UNUSED_RESULT warnings. r=luke
--HG--
extra : rebase_source : 5b7eafd1d8105c4bba18efad6dcf0c5805caff95
2016-01-06 21:08:23 +01:00
Jan de Mooij
e3c4b94f10 Bug 1231224 part 11 - Add missing OOM checks in Module::setProfilingEnabled. r=luke
--HG--
extra : rebase_source : 6a39c44f80a51b46504ea8cbfaa9e01285a7b49f
2016-01-06 21:07:05 +01:00
Jan de Mooij
36e21ef4d9 Bug 1231224 part 10 - Make various Vector calls check for OOM. r=terrence
--HG--
extra : rebase_source : fae86eb928fc510c3d5c7a895675cf218fc15b3a
2016-01-06 21:06:25 +01:00
Jan de Mooij
5b0fc89a9e Bug 1233925 - Treat functions with rest more like functions with lazy arguments. r=nbp
--HG--
extra : rebase_source : e293afa27bafaf3985684a01c31118c2ec518e56
2016-01-06 21:05:21 +01:00