Commit Graph

259013 Commits

Author SHA1 Message Date
JW Wang
b97c645e7d Bug 1196112. Part 1 - ensure all members except |mShuttingDown| and |mOutputStreamManager| are accessed on the worker thread only. r=roc. 2015-08-24 21:05:22 +08:00
CJKu
b1996cd418 Bug 1196682 - DebugDataSender is not thread safe. r=kamidphish 2015-08-24 02:00:00 -04:00
Tim Chien
5cd398bf20 Bug 1197672 - s/_sendPromise/createPromiseWithId/ in mozInputMethod.addInput(). r=kchen 2015-08-23 21:28:00 -04:00
Tim Chien
c6708a3e1b Bug 1137557 - Part 3: Allow content to pass a dict representing the property of the keyboard event to send. r=masayuki, sr=smaug
- Overloading MozInputContext#sendKey() so it could take a dict.
- An optional trailing argument for setComposition() and endComposition() methods for these methods to take the dict.
- New keydown() and keyup() methods that takes dict as the only argument.
2015-08-23 21:19:00 -04:00
Tim Chien
212967564f Bug 1137557 - Part 2: Remove sendKeyEvent from forms.js. r=masayuki, r=smaug (to make the webidl hook happy) 2015-07-17 04:41:00 -04:00
Tim Chien
e2d5baf64c Bug 1137557 - Part 1: Allow callee of TIP.keydown() to figure out preventDefault() of keydown and keypress event. r=masayuki, r+sr=smaug 2015-08-05 01:58:00 -04:00
Masayuki Nakano
92ec899b18 Bug 1137557 - Part 0: TextEventDispatcher shouldn't forward keyboard events coming from TextInputProcessor to the parent process. r=smaug 2015-08-04 05:52:00 -04:00
Hannes Verschore
6caf76feb7 Bug 1195588: IonMonkey - Actually convert number to double during recovering ToDouble, r=nbp
@@ -1093,20 +1097,28 @@ MToDouble::writeRecoverData(CompactBuffe
 }

 RToDouble::RToDouble(CompactBufferReader& reader)
 { }

 bool
 RToDouble::recover(JSContext* cx, SnapshotIterator& iter) const
 {
-    Value v = iter.read();
+    RootedValue v(cx, iter.read());
+    RootedValue result(cx);

     MOZ_ASSERT(!v.isObject());
-    iter.storeInstructionResult(v);
+    MOZ_ASSERT(!v.isSymbol());
+
+    double dbl;
+    if (!ToNumber(cx, v, &dbl))
+        return false;
+
+    result.setDouble(dbl);
+    iter.storeInstructionResult(result);
     return true;
 }

 bool
 MToFloat32::writeRecoverData(CompactBufferWriter& writer) const
 {
     MOZ_ASSERT(canRecoverOnBailout());
     writer.writeUnsigned(uint32_t(RInstruction::Recover_ToFloat32));
2015-08-21 17:40:04 +02:00
JW Wang
c3779d12d4 Bug 1194112. Part 6 - add a test case to test the exclusive mode. r=kinetik. 2015-08-24 10:38:42 +08:00
JW Wang
d1c97f787d Bug 1194112. Part 5 - remove dead code. r=kinetik. 2015-08-24 10:38:37 +08:00
JW Wang
060b233cbe Bug 1194112. Part 4 - reimplement Listener/ListenerImpl to support Move. r=kinetik. 2015-08-24 10:38:33 +08:00
JW Wang
08411d1da9 Bug 1194112. Part 3 - use perfect forwarding in MediaEventProducer::Notify() so MediaEventSource can decide whether to copy or move according to its ListenerMode. r=kinetik. 2015-08-24 10:38:28 +08:00
JW Wang
9b91ec3bcf Bug 1194112. Part 2 - small code refactoring to reduce typing. r=kinetik. 2015-08-24 10:38:24 +08:00
JW Wang
74abae5d0a Bug 1194112. Part 1 - extract event dispatch code from ListenerImpl to its own class. r=kinetik. 2015-08-24 10:38:16 +08:00
Mike Shal
f47eab2342 Bug 1197293 - allow for TC builds that don't use 'make upload'; r=ted 2015-08-21 14:23:19 -04:00
JW Wang
8c50add939 Bug 1195632. Part 2 - Have DecodedStream listen to push events of the media queues and call SendData() on its own without the help of MDSM. r=roc. 2015-08-24 10:04:21 +08:00
JW Wang
b42dce46e8 Bug 1195632. Part 1 - Let DecodedStream have a worker thread and asset some funtions on the worker thread. r=roc. 2015-08-24 09:55:30 +08:00
Yoshi Huang
456daddebf Bug 1165272 - Part 3: Replace getCodebasePrincipal. r=bholley 2015-08-24 03:34:00 -04:00
Yoshi Huang
053573a7c0 Bug 1165272 - Part 2: Replace getNoAppCodebasePrincipal. r=bholley 2015-08-24 01:18:00 -04:00
Yoshi Huang
25acbe867f Bug 1165272 - Part 1: Remove getAppCodebasePrincipal. r=bholley 2015-08-24 01:31:00 -04:00
Heiher
978b6555d6 Bug 1197665- IonMonkey: MIPS32: Fix build failure caused by Bug 1169214. r=h4writer 2015-08-23 20:15:00 -04:00
Heiher
f4f8fc1a8d Bug 1197665 - IonMonkey: MIPS32: Fix build failure caused by Bug 1171945. r=h4writer 2015-08-24 00:58:00 -04:00
dimi
73a6d400df Bug 1187766 - Test loading plugins scenarios with fetch interception. r=bkelly 2015-08-21 15:09:46 +08:00
Ted Clancy
8d9ef64547 Bug 1172609 - Part 9: Add threadsafe recreateDefault() method to ICU::Timezone. r=waldo 2015-08-05 19:07:34 -07:00
Ted Clancy
373479a52e Bug 1172609 - Part 8: Fix the tz detection code. r=waldo 2015-08-05 19:05:04 -07:00
Ted Clancy
d6d3d81a61 Bug 1172609 - Part 7: Hal calls nsJSUtils::ResetTimeZone() when timezone changes. r=dhylands 2015-06-15 01:25:57 -07:00
Ted Clancy
433cf3b718 Bug 1172609 - Part 6: Add nsJSUtils::ResetTimeZone() function. r=ehsan 2015-06-15 00:44:09 -07:00
Ted Clancy
fc9dbc6bcf Bug 1172609 - Part 5: Add js::ResetTimeZone() function. r=waldo, r=ted 2015-06-15 00:33:02 -07:00
Ted Clancy
a9a82b5233 Bug 1172609 - Part 1: Build B2G using the version of ICU that exists in the tree. r=ted 2015-06-15 00:20:04 -07:00
Alfredo Yang
aa1341c858 Bug 1197151 - Correct TaskQueue asertion. r=jya 2015-08-23 19:36:00 -04:00
Brian Birtles
41ee26a184 Bug 1026803 part 9 - Return DOMHighResTimeStamp objects from Event.timeStamp on Linux for Nightly/Aurora builds; r=karlt 2015-08-12 11:28:48 +09:00
Brian Birtles
14f0094c87 Bug 1026803 part 8b - Factor out an IsTimeNewerThanTimeStamp method; r=karlt 2015-08-12 13:19:14 +09:00
Brian Birtles
d516ed9ec8 Bug 1026803 part 8 - Add ability for CurrentX11TimeGetter to perform an asynchronous request of the current time; r=karlt 2015-08-12 10:35:38 +09:00
Brian Birtles
90c1e69ad6 Bug 1026803 part 7 - Store the CurrentX11TimeGetter as a member object on nsWindow; r=karlt
In preparation for making CurrentX11TimeGetter capable of performing an
asynchronous request of the current time, this patch revises the lifetime of
such objects so that they are stored on nsWindow.
2015-08-11 17:13:44 +09:00
Brian Birtles
ea9bac21ec Bug 1026803 part 6 - Make SystemTimeConverter detect clock skew; r=karlt
This patch revises the logic in SystemTimeConverter to detect backwards and
forwards skew between the two time sources: the native time source (represented
by the Time type) and the time source used to generate TimeStamp objects.
2015-08-11 17:11:41 +09:00
Brian Birtles
88c8512632 Bug 1026803 part 5 - Convert CurrentXXXTimeGetter classes from functors to helper classes; r=karlt
Previously the CurrentX11TimeGetter and CurrentWindowsTimeGetter classes acted
as functors with a single operator() method. In preparation for handling clock
skew, this patch refactors these two helper classes into regular classes with
two named methods:

  GetCurrentTime which matches the existing operator() method, and

  GetTimeAsyncForPossibleBackwardsSkew which will be used when possible
  backwards skew is detected to fetch the current time asynchronously.

Some renaming is also included to match the expanded role of these classes.
2015-02-19 14:10:00 +09:00
Brian Birtles
b59684e8fb Bug 1026803 part 4 - Convert GTK native event times to timestamps; r=karlt
This patch adds a helper class to widgets/gtk/nsWindow.cpp similar to the one in
widgets/windows/nsWindow.cpp and uses it to convert native event times to
mozilla::TimeStamp objects on events returned by this class.

This is similar to the operations performed for Windows native event times that
were added in bug 77992.
2015-08-11 16:40:34 +09:00
Brian Birtles
d0c832649d Bug 1026803 part 3 - Make some simplifications to SystemTimeConverter; r=karlt
This patch exploits the fact that the underlying Time type is an unsigned
integer to simplify some of the overflow checks in SystemTimeConvert by relying
on unsigned integer overflow behavior, which, unlike signed integer overflow, is
well-defined.
2015-02-19 14:06:01 +09:00
Brian Birtles
d66eb936c0 Bug 1026803 part 2 - Add an assertion that SystemTimeConverter's template parameter is unsigned; r=karlt
Various operations in the time conversion assume that the native event time is
an unsigned integer so this patch adds and assertion to check this precondition
is met.
2015-02-19 14:05:42 +09:00
Brian Birtles
721bc41ea4 Bug 1026803 part 1 - Factor out a common utility class for converting wrapping native times to TimeStamps; r=karlt
This just moves the code from widget/windows/nsWindow.cpp to a template class in
widget/xpwidgets/WrappingTimeConverter.h so that we can reuse this code for
other platforms (GTK at least).
2015-08-11 13:38:18 +09:00
Andreas Tolfsen
d84aec3d7b Bug 1197143: Use dispatcher for listener goBack
r=dburns
2015-08-21 11:19:53 +01:00
Andreas Tolfsen
d374943789 Bug 1197141: Use dispatcher for listener getPageSource
r=dburns
2015-08-21 11:11:36 +01:00
Andreas Tolfsen
88f951bf45 Bug 1197133: Use dispatcher for listener getTitle
r=dburns
2015-08-21 11:04:06 +01:00
Andreas Tolfsen
26d2000327 Bug 1197131: Use dispatcher for listener getCurrentUrl
r=dburns
2015-08-21 10:57:06 +01:00
Jon Coppeard
45081fadd1 Bug 1195452 - Make UnboxedLayout::makeNativeGroup() handle OOM when propagating property types r=bhackett 2015-08-24 13:21:13 +01:00
Nigel Babu
8b2a4baa84 Merge mozilla-central to mozilla-inbound, CLOSED TREE 2015-08-24 17:41:48 +05:30
Matthew Gregan
4cc0d5c816 Bug 1136360 - Report actual number of frames written to ReleaseBuffer. r=jesup 2015-08-21 18:09:34 +12:00
Matthew Gregan
875c5146ca Bug 1136360 - Account for stream and device latency in stream position calculation. r=jesup 2015-08-21 13:53:21 +12:00
Matthew Gregan
a24e2c354a Backed out 2 changesets (bug 1136360)
Backed out changeset 004f6db9c2dd (bug 1136360)
Backed out changeset 9b568fb8d447 (bug 1136360)
2015-08-24 13:25:57 +12:00
Matthew Gregan
bde4f17812 Bug 1136360 - Report actual number of frames written to ReleaseBuffer. r=jesup 2015-08-21 18:09:34 +12:00