Commit Graph

10382 Commits

Author SHA1 Message Date
Jonathan Kew
25f52e700a Bug 1194055 - GetSysFontInfo should return MS Shell Dlg 2 for eFont_Field and eFont_List on Windows. r=masayuki 2015-08-18 17:21:38 +01:00
Nathan Froyd
fe8542ddd3 Bug 1194806 - part 5 - mark function pointer-to-members with JNICALL appropriately; r=snorp,jchen 2015-08-14 23:03:45 -04:00
Nathan Froyd
b5ed5dfe85 Bug 1194806 - part 4 - use |typename| to refer to trait class typedefs, not |class|; r=jchen 2015-08-14 22:34:16 -04:00
Nathan Froyd
3667ac69a8 Bug 1194806 - part 3 - consistently declare dom::mobilemessage::SmsFilterData as a class; r=snorp 2015-08-14 22:22:50 -04:00
Nathan Froyd
e1cd12ff2d Bug 1194806 - part 2 - mark overrides as such in widget/android/; r=snorp 2015-08-14 22:06:20 -04:00
Nathan Froyd
a8df96257b Bug 1194806 - part 1 - consistently declare mozilla::jni::detail::TypeAdaptor as a struct; r=jchen
clang doesn't like it when we declare things as a struct in one place
and a class in another.  This change makes all the current usages
consistent and clang happy.
2015-08-14 21:59:27 -04:00
Mike Hommey
71dfb17528 Bug 1194497 - Convert a few remaining PRUnichar to char16_t. r=roc 2015-08-18 08:09:14 +09:00
Masayuki Nakano
46749ea6da Bug 555642 part.2 IME handlers on Windows shouldn't append caret range if the caret is in the target clause which doesn't have specific style r=m_kato 2015-08-17 20:58:38 +09:00
Ryan VanderMeulen
eb4673b9d6 Merge m-c to inbound. a=merge 2015-08-14 15:18:21 -04:00
Ryan VanderMeulen
5c04567b90 Merge inbound to m-c. a=merge 2015-08-14 15:16:22 -04:00
Randall Barker
d845c870d4 Bug 1188225 - Implement ChromeProcessController::HandleDoubleTap. r=botond 2015-08-13 18:26:00 -04:00
JerryShih
4696c14a0f Bug 1194034 - Remove unused GonkDisplayJB::StopBootAnim() in GonkDisplayJB. r=mwu 2015-08-12 18:35:00 -04:00
Christoph Kerschbaumer
0cab6e94cf Bug 1192945 - Use channel->ascynOpen2 in widget/windows/nsDataObj.cpp (r=sicking,jimm) 2015-08-13 18:35:34 -07:00
Aryeh Gregor
f382bc9200 Bug 1179451 - Part 5: Delete nsRefPtr<T>::operator T*()&&. r=froydnj 2015-08-13 15:22:48 +03:00
Wes Kocher
ef72e23c1f Merge m-c to inbound, a=merge CLOSED TREE 2015-08-13 16:43:54 -07:00
Wes Kocher
e0088ecd50 Merge fx-team to m-c a=merge 2015-08-13 16:30:54 -07:00
Jim Chen
e2e61fed8e Bug 1194360 - Remove use of inherited constructors; r=snorp
GeneratedJNIWrappers.h was updated in bug 1192079 to use inherited
constructors, which is a gcc 4.8 feature. Many people are still using an
older version of NDK which only comes with gcc 4.7.
2015-08-13 16:57:34 -04:00
Jim Chen
fa63464469 Bug 1192082 - Followup to iniialize/deinitialize JNI in nsAppShell; r=me 2015-08-13 16:57:34 -04:00
Matt Woodrow
52b2629d27 Bug 1193977 - Bind the texture unit we want to use when compositing the OSX titlebar. r=jrmuizel 2015-08-13 15:59:57 -04:00
Jared Wein
eb47923345 Bug 1192573 - Require tablet-mode (Win10+) to show the on-screen keyboard. r=masayuki 2015-08-13 14:23:54 -04:00
Jim Chen
762de3b81a Bug 1192082 - Iniialize/deinitialize JNI in nsAppShell; r=snorp
First we need to set the Gecko thread JNIEnv* in nsAndroidStartup, but
after that we can initialize and deinitialize the rest of JNI, including
AndroidBridge, in GeckoAppShell. This makes nsAppShell control the
AndroidBridge lifetime. Over time, parts of the AndroidBridge
functionality will be migrated to nsAppShell.
2015-08-13 00:53:40 -04:00
Jim Chen
694b610321 Bug 1192082 - De-clutter AndroidBridge init/deinit; r=snorp
Merge all the init code into AndroidBridge constructor and
AndroidBridge::ConstructBridge; merge all the deinit code into
AndroidBridge destructor and AndroidBridge::DeconstructBridge.

In particular, the SetMainThread call is obsolete and removed.
2015-08-13 00:53:39 -04:00
Jim Chen
171ddb4e4a Bug 1192082 - Expose AndroidBridge arguments through GeckoThread; r=snorp
AndroidBridge needed some arguments during its initialization. We'll
provide those arguments in GeckoThread, which AndroidBridge will access.
2015-08-13 00:53:39 -04:00
Jim Chen
9f3701ed76 Bug 1192082 - Get rid of GeckoAppShell.nativeInit; r=snorp
Instead of letting AndroidBridge be constructed separately, we'll let
Gecko construct AndroidBridge.
2015-08-13 00:53:39 -04:00
Jim Chen
f9b719335b Bug 1192082 - Expose GeckoThread states to C++; r=me 2015-08-13 00:53:39 -04:00
Jim Chen
38ecea75c0 Bug 1192079 - Update generated code; r=me 2015-08-13 00:53:39 -04:00
Jim Chen
ef8b0d7d2a Bug 1192077 - Convert AndroidBridge JNIEnv calls; r=esawin 2015-08-13 00:53:39 -04:00
Jim Chen
dae9644328 Bug 1192077 - Move AndroidBridge JNIEnv calls to jni/Utils; r=esawin
Calls like GetJNIForThread should now belong in jni/Utils. Moving the
calls also reduce clutter in AndroidBridge.
2015-08-13 00:53:39 -04:00
Jim Chen
651217b048 Bug 1189995 - Move GeckoAppShell.pumpMessageLoop to GeckoThread; r=esawin
This method is used by Gecko to pump the Android message loop, and it's
also more suited to GeckoThread than GeckoAppShell.
2015-08-13 00:53:39 -04:00
Xidorn Quan
9141eb539e Bug 1190316 - Apply fullscreen transition on only the target monitor. r=roc 2015-08-13 08:53:53 +10:00
Gabor Krizsanits
40f4b4b71c Bug 1175940 - UIResolutionChanged should not trigger sync messages from content to chrome. r=mconley 2015-08-13 16:42:19 +02:00
Jacek Caban
49e4ae2d79 Bug 1192248 - Fixed WinIMEHandler.cpp cross compilation. r=masayuki 2015-08-13 17:37:57 +02:00
Mason Chang
c8c6e68b76 Bug 1193842 - Delete touch resampling preference and non resampling paths. r=kats 2015-08-13 08:23:14 -07:00
Mike Conley
6ca832b8e4 Bug 1106321 - Serialize DEVMODE down to the content process when printing on Windows. r=jimm 2015-08-06 17:36:54 -04:00
Bob Owen
36f187da0f Bug 1182411 Part 2: Change winless popup surrogate to have its parent set in the chrome process. r=jimm
The creation of the surrogate native window in the child NPAPI process was
failing when then sandbox was at low integrity, because the parent is from the
chrome process, so at medium integrity.
Instead of making an IPC call to get the parent, we now create the window upfront
and send it in an IPC message to be parented in the chrome process.
This is done with asynchronous messaging.
2015-08-12 16:00:26 +01:00
Terrence Cole
2ac7da03fc Bug 1191529 - Remove JSIdArray and AutoIdArray and replace with Rooted<IdVector>; r=mccr8, r=jonco
* * *
imported patch 2_remove_AutoIdArray_gk
2015-08-05 11:02:00 -07:00
Nick Robson
07b38ad250 Bug 1075089 - Move popup menu frame offset to LookAndFeel and fix default offset for OS X. r=Enn 2015-08-04 16:41:00 -04:00
Kyle Huey
1ffb03e8dc Bug 1179909: Refactor stable state handling. r=smaug
This is motivated by three separate but related problems:

1. Our concept of recursion depth is broken for things that run from AfterProcessNextEvent observers (e.g. Promises). We decrement the recursionDepth counter before firing observers, so a Promise callback running at the lowest event loop depth has a recursion depth of 0 (whereas a regular nsIRunnable would be 1). This is a problem because it's impossible to distinguish a Promise running after a sync XHR's onreadystatechange handler from a top-level event (since the former runs with depth 2 - 1 = 1, and the latter runs with just 1).

2. The nsIThreadObserver mechanism that is used by a lot of code to run "after" the current event is a poor fit for anything that runs script. First, the order the observers fire in is the order they were added, not anything fixed by spec. Additionally, running script can cause the event loop to spin, which is a big source of pain here (bholley has some nasty bug caused by this).

3. We run Promises from different points in the code for workers and main thread. The latter runs from XPConnect's nsIThreadObserver callbacks, while the former runs from a hardcoded call to run Promises in the worker event loop. What workers do is particularly problematic because it means we can't get the right recursion depth no matter what we do to nsThread.

The solve this, this patch does the following:

1. Consolidate some handling of microtasks and all handling of stable state from appshell and WorkerPrivate into CycleCollectedJSRuntime.
2. Make the recursionDepth counter only available to CycleCollectedJSRuntime (and its consumers) and remove it from the nsIThreadInternal and nsIThreadObserver APIs.
3. Adjust the recursionDepth counter so that microtasks run with the recursionDepth of the task they are associated with.
4. Introduce the concept of metastable state to replace appshell's RunBeforeNextEvent. Metastable state is reached after every microtask or task is completed. This provides the semantics that bent and I want for IndexedDB, where transactions autocommit at the end of a microtask and do not "spill" from one microtask into a subsequent microtask. This differs from appshell's RunBeforeNextEvent in two ways:
a) It fires between microtasks, which was the motivation for starting this.
b) It no longer ensures that we're at the same event loop depth in the native event queue. bent decided we don't care about this.
5. Reorder stable state to happen after microtasks such as Promises, per HTML. Right now we call the regular thread observers, including appshell, before the main thread observer (XPConnect), so stable state tasks happen before microtasks.
2015-08-11 06:10:46 -07:00
Gabor Krizsanits
2ad126c20b Bug 863512 - Fixing xul dnd panels for linux. r=enndeakin 2015-08-05 13:19:44 +02:00
Makoto Kato
40de6d393c Bug 1187178 - Use MOZ_WINSDK_MAXVER instead of #ifndef. r=jimm 2015-08-11 14:12:29 +09:00
Sotaro Ikeda
bec8e2d216 Bug 1192949 - Fix nsScreenGonk::SetMirroringScreen() r=mwu 2015-08-10 16:28:36 -07:00
Andrew Comminos
7b05d7ecde Bug 1189028 - Draw a toplevel popup behind popup menus on GTK3. r=karlt 2015-08-06 14:20:00 -04:00
Lee Salzman
c12a6d0614 Bug 1184009 - Limit gtk file picker preview source sizes. r=acomminos 2015-08-07 12:24:22 -04:00
Masayuki Nakano
1c0c5d9147 Bug 1187724 Don't dispatch KeyboardEvents when the target of WM_APPCOMMAND is a windowed plug-in for preventing deadlock r=jimm 2015-08-10 23:54:18 +09:00
Xidorn Quan
f3e3f9d7f0 Bug 1184201 - Disable fullscreen transition on Windows if composition is disabled. r=jimm 2015-08-10 23:20:03 +10:00
Jacek Caban
617577e4bb Bug 1192248 - Fix wchar_t/char16_t mismatch WinIMEHandler.cpp. r=masayuki 2015-08-10 09:24:57 +10:00
Sotaro Ikeda
f523d754da Bug 1186000 - Support screen mirroring to HDMI display on gonk r=mwu,mattwoodrow 2015-08-08 13:50:47 -07:00
Masayuki Nakano
c20e0ea95d Bug 1192156 Separate IME specific structs, classes and enums from nsIWidget.h to IMEData.h r=roc 2015-08-09 00:47:19 +09:00
Ryan VanderMeulen
5ebf665b03 Merge inbound to m-c. a=merge 2015-08-07 16:02:43 -04:00
Petr Jasicek
67bf5e95b4 Bug 1160154 - Decrease padding between icons in the personal toolbar with Gtk3 by using "image-button" css style class. r=karlt
CLOSED TREE
2015-08-07 01:09:00 -04:00