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

2424 Коммитов

Автор SHA1 Сообщение Дата
Kartikaya Gupta 627918d27b Bug 1345355 - Don't register a window as touch-enabled if there's no touch device supported. r=jimm
MozReview-Commit-ID: IycX3e0I5TQ

--HG--
extra : rebase_source : 78a80e5de83fcdc88b1075f19552fa265cafca74
2017-03-09 18:59:32 -05:00
Jim Chen 53a1107cd1 Bug 1343075 - Use GeckoEditableSupport from PuppetWidget; r=masayuki r=rbarker r=snorp r=esawin
Bug 1343075 - 1a. Add TextEventDispatcherListener::GetIMEUpdatePreference; r=masayuki

Add a GetIMEUpdatePreference method to TextEventDispatcherListener to
optionally control which IME notifications are received by NotifyIME.
This patch also makes nsBaseWidget forward its GetIMEUpdatePreference
call to the widget's native TextEventDispatcherListener.

Bug 1343075 - 1b. Implement GetIMEUpdatePreference for all TextEventDispatcherListener; r=masayuki

This patch implements GetIMEUpdatePreference for all
TextEventDispatcherListener implementations, by moving previous
implementations of nsIWidget::GetIMEUpdatePreference.

Bug 1343075 - 2. Allow setting a PuppetWidget's native TextEventDispatcherListener; r=masayuki

In PuppetWidget, add getter and setter for the widget's native
TextEventDispatcherListener. This allows overriding of PuppetWidget's
default IME handling. For example, on Android, the PuppetWidget's native
TextEventDispatcherListener will communicate directly with Java IME code
in the main process.

Bug 1343075 - 3. Add AIDL interface for main process; r=rbarker

Add AIDL definition and implementation for an interface for the main
process that child processes can access.

Bug 1343075 - 4. Set Gecko thread JNIEnv for child process; r=snorp

Add a JNIEnv* parameter to XRE_SetAndroidChildFds, which is used to set
the Gecko thread JNIEnv for child processes. XRE_SetAndroidChildFds is
the only Android-specific entry point for child processes, so I think
it's the most logical place to initialize JNI.

Bug 1343075 - 5. Support multiple remote GeckoEditableChild; r=esawin

Support remote GeckoEditableChild instances that are created in the
content processes and connect to the parent process GeckoEditableParent
through binders.

Support having multiple GeckoEditableChild instances in GeckoEditable by
keeping track of which child is currently focused, and only allow
calls to/from the focused child by using access tokens.

Bug 1343075 - 6. Add method to get GeckoEditableParent instance; r=esawin

Add IProcessManager.getEditableParent, which a content process can call
to get the GeckoEditableParent instance that corresponds to a given
content process tab, from the main process.

Bug 1343075 - 7. Support GeckoEditableSupport in content processes; r=esawin

Support creating and running GeckoEditableSupport attached to a
PuppetWidget in content processes.

Because we don't know PuppetWidget's lifetime as well as nsWindow's,
when attached to PuppetWidget, we need to attach/detach our native
object on focus/blur, respectively.

Bug 1343075 - 8. Connect GeckoEditableSupport on PuppetWidget creation; r=esawin

Listen to the "tab-child-created" notification and attach our content
process GeckoEditableSupport to the new PuppetWidget.

Bug 1343075 - 9. Update auto-generated bindings; r=me
2017-03-07 22:34:39 -05:00
Carsten "Tomcat" Book 087da3f0d9 merge mozilla-inbound to mozilla-central a=merge 2017-03-07 15:13:31 +01:00
Michael Layzell add4f2919d Bug 1317322 - Part 2: Fix shutdown leak when win32 holds nsDataObj with temp file until shutdown, r=jimm
MozReview-Commit-ID: 90obWnqRSWk
2017-03-06 14:37:44 -05:00
David Major ed0b8f8653 Bug 1344615: Remove nsXPCOMStrings.{h,cpp} r=bsmedberg
These are now dead code.

MozReview-Commit-ID: AClU0Qx3kmN

--HG--
extra : rebase_source : df83cf89292da1519bb26027c11e14923d5c54a0
2017-03-06 17:52:54 +13:00
David Major 058a3a25a4 Bug 1344615: Rewrite a few straggling users of NS_String* APIs. r=bsmedberg
I've moved the body of the APIs into the few remaining callers.

MozReview-Commit-ID: 9ALoSmQHkGM

--HG--
extra : rebase_source : e0e747dec23424446b18d53ab65e4fa262e16554
2017-03-06 17:52:09 +13:00
Masayuki Nakano 856b0584da Bug 1343446 NativeKey::GetFollowingCharMessage() should ignore found message if PeekMessage(PM_REMOVE) retrieves different char message but the found odd char message was odd r=m_kato
According to crash reports, we may find WM_CHAR whose wParam is 0 and scancode is 0xFF with a call of PeekMessage(PM_NOREMOVE) but we'll remove usual char message with a call of PeekMessage(PM_REMOVE).

In such case, we should ignore the found odd message and take the usual char message which was removed from the queue actually.

MozReview-Commit-ID: Gw8LvCXxul

--HG--
extra : rebase_source : 51d4879c4ee0d89152de7986b81af08d03b9c244
2017-03-01 14:48:05 +09:00
Kartikaya Gupta a58ac77741 Bug 1341691 - Improve handling of touch events when dismissing popups. r=jimm
When user input is used to dismiss popups, the user input may sometimes
be consumed (for example, clicking on a combobox element will dismiss
the combobox popup, but consume the event to avoid reopening the popup
right away). This handling was present for some types of input events but
missing for touch events. This patch adds it for touch events as well.

MozReview-Commit-ID: 5wsuTdMbkX2

--HG--
extra : rebase_source : 88518f699586224a6f4755553053503f54249c9b
2017-02-24 08:32:00 -05:00
Carsten "Tomcat" Book 9faa1e9741 Merge mozilla-central to mozilla-inbound 2017-02-24 11:53:01 +01:00
David Parks 09112025cd Bug 1330460 - Unblock parts of TIPMessageHandler in order to block a11y on Win 8+ 64-bit touchscreens. a=aklotz 2017-02-23 10:43:18 -08:00
sotaro 0a8bfc0f1b Bug 1341192 - Update LayerManager handling in nsWindow::SetSizeConstraints() r=nical 2017-02-22 10:35:39 +09:00
Wes Kocher 163d6c2a49 Merge m-c to autoland, a=merge
MozReview-Commit-ID: 2xWBiKMAozs
2017-02-23 16:59:01 -08:00
Tom Tromey f8ab4ddf02 Bug 1060419 - remove unneeded includes of prprf.h, r=froydnj
MozReview-Commit-ID: JifhpA3oOeH

--HG--
extra : rebase_source : 08460997dc3fd91f3065c718e17b41bb4acf8bae
2016-12-09 10:00:01 -10:00
Aaron Klotz 859bcee734 Bug 1341915: Make win32 nsAppShell's event window message-only; r=jimm
MozReview-Commit-ID: C9gL90RUIcm

--HG--
extra : rebase_source : 513b7f620533b06324a2558c934c7d5604708092
2017-02-22 16:24:29 -07:00
Milan Sreckovic 9ab9f29f7a Bug 1242659 - Only check for version if DLLs are in the recognized list. r=jrmuizel
--HG--
extra : rebase_source : 776272e16e0468eaeb3486d77c4db708ccd88237
2017-02-10 12:08:00 -05:00
Carsten "Tomcat" Book ed3d8d8286 merge mozilla-inbound to mozilla-central a=merge 2017-02-15 12:21:44 +01:00
Chris Peterson 34befa93b6 Bug 1336778 - Part 3b: Remove always-false #if WINVER < 0x0601 (Windows 7) checks in nsWinGesture.h. r=jimm
MozReview-Commit-ID: J6TBDHhNu87

--HG--
extra : rebase_source : fc8394120edb0269e0fb96643374947923541ed9
2017-02-06 13:25:40 -08:00
Chris Peterson a9237986ab Bug 1336778 - Part 3a: Remove always-false #if WINVER < 0x0601 (Windows 7) checks in nsLookAndFeel.h. r=jimm
MozReview-Commit-ID: 4ffv8S2LShO

--HG--
extra : rebase_source : fa54ca7eb202a55cac1fc4113d9cd5ac00affc35
2017-02-06 13:25:17 -08:00
Nicholas Nethercote 334f89c567 Bug 1339327 (part 5) - Rename some profiler functions related to sleeping. r=mstange.
The new names make it clearer that these actions apply to just one thread.

- profiler_sleep_start() --> profiler_thread_sleep()
- profiler_sleep_end()   --> profiler_thread_wake()
- profiler_is_sleeping() --> profiler_thread_is_sleeping()
- GeckoProfilerSleepRAII --> GeckoProfilerThreadSleepRAII
- GeckoProfilerWakeRAII  --> GeckoProfilerThreadWakeRAII
2017-02-15 14:26:23 +11:00
David Major fbb59a7460 Bug 1338946: Add const to kVirtualKeyName. r=jimm
MozReview-Commit-ID: EusACiEjfru
2017-02-15 10:23:08 +13:00
Daniel Holbert 452a3b8454 Bug 1339609: Add #include for gfxPrefs.h to all source code that calls gfxPrefs APIs. r=jgilbert
MozReview-Commit-ID: GxWehmDYB3t

--HG--
extra : rebase_source : cd994e5c6abf777f77c5a708cbfb2f6afc49a44c
2017-02-14 14:01:59 -08:00
Emanuel Hoogeveen a608265856 Bug 1338553 - Fix missing include in WinUtils. r=m_kato
MozReview-Commit-ID: FeOIHBLMcRe

--HG--
extra : rebase_source : 5df44463594d0ceea745f2b9b44d91035061fdfc
2017-02-11 18:36:52 +08:00
Wes Kocher 4062cb56a0 Merge inbound to central, a=merge
MozReview-Commit-ID: FNYBhhHr4dg

--HG--
rename : netwerk/base/security-prefs.js => security/manager/ssl/security-prefs.js
2017-02-10 15:23:33 -08:00
Wes Kocher 71842da0e8 Merge autoland to central, a=merge
MozReview-Commit-ID: 8GR9XTMPAjp

--HG--
rename : netwerk/base/security-prefs.js => security/manager/ssl/security-prefs.js
2017-02-10 14:32:26 -08:00
Kartikaya Gupta 96c394d70c Merge m-c to graphics
MozReview-Commit-ID: AXRXwXgkOTv
2017-02-10 13:57:53 -05:00
Carsten "Tomcat" Book 3ed98bee2a merge mozilla-inbound to mozilla-central a=merge 2017-02-10 13:49:56 +01:00
Kartikaya Gupta 61bc491994 Merge m-c to graphics
MozReview-Commit-ID: Ejcj1CD87t3
2017-02-09 10:12:03 -05:00
Ryan Hunt 963025a5dd Merge m-c to graphics 2017-02-08 10:57:06 -06:00
Ryan Hunt 5e2990dc18 Merge m-c to graphics 2017-02-07 09:05:18 +00:00
Kartikaya Gupta cfd6b031e0 Merge m-c to graphics
MozReview-Commit-ID: AGZ8pI8vmAs
2017-02-06 11:53:47 -05:00
Kartikaya Gupta bf7599ac75 Merge m-c to graphics
MozReview-Commit-ID: 8BjfShvh5gp
2017-02-03 10:39:57 -05:00
Kartikaya Gupta 6580d884b2 Merge m-c to graphics
MozReview-Commit-ID: uU8MPphFqj
2017-02-02 13:38:51 -05:00
Masayuki Nakano 5442d350f3 Bug 1337739 Create an enum eKeyLocation* for avoiding to use nsIDOMKeyEvent::DOM_KEY_LOCATION_* r=smaug
Currently, we use alias NS_VK_* for WidgetKeyboardEvent::mKeyCode.  Similarly, we should create alias enum for nsIDOMKeyEvent::DOM_KEY_LOCATION_*.  Then, we can reduce the length and avoid to include nsIDOMKeyEvent in some cpp files.

MozReview-Commit-ID: 5cs4zQ061Lc

--HG--
extra : rebase_source : e6a6edd27718b9e3d4a40b07902d029791876999
2017-02-08 21:04:22 +09:00
Kartikaya Gupta 21e9123c56 Merge m-c to graphics
MozReview-Commit-ID: 3tWI3srj2uj
2017-02-01 08:48:31 -05:00
Kartikaya Gupta 445dea068b Merge m-c to graphics
MozReview-Commit-ID: Kv6GW5ElioD
2017-01-29 08:03:30 -05:00
Masatoshi Kimura a35278e9a7 Bug 1325368 - Assume Win7 or later when testing Windows version. r=jimm
MozReview-Commit-ID: 718G0htR17H

--HG--
extra : rebase_source : e6f7a3584f03c802218a1de526345e1df1e67cf8
2017-01-29 16:42:46 +09:00
Masayuki Nakano 6868da62c8 Bug 1334947 Treat a keydown event as inputting empty text if following char message has gone and gets WM_NULL message at calling PeekMessage() for removing a found char message r=m_kato
There are still a lot of crash due to failing to get following WM_CHAR message.  Almost half of them are, we found a WM_CHAR message but it's gone at removing the message from the queue.

Although, we're still not sure what happen actually.  It could be possible if somebody hooks PeekMessage() or something.  Then, we can assume that the found message isn't necessary for the user because it must be removed by somebody when it became unnecessary or is handled.

This patch mark a new bool flag, mCharMessageHasGone, as true in such case.  Then, NativeKey will dispatch keypress events without following char messages and mark the event as consumed.

MozReview-Commit-ID: mporX1sihC

--HG--
extra : rebase_source : a1badc205a99efd803de624d24b69e911f81d308
2017-01-30 15:43:09 +09:00
Aaron Klotz e49ac45079 Bug 1334257: Assure that TIPMessageHandler hooks may not be instantiated more than once; r=jimm
MozReview-Commit-ID: LiDQ9yUzGTK

--HG--
extra : rebase_source : f1191c3951af39b34207e0d08f8a3536f04cec27
2017-01-26 15:30:44 -07:00
Masayuki Nakano fb6e71084a Bug 1336028 NativeKey::GetFollowingCharMessage() should take newer char message when found char message and removed message from the queue is different but their scancode indicates same physical key r=m_kato
NativeKey::GetFollowingCharMessage() may remove a char message which is different from previously found message in the queue because hacky keyboard layout or utility can overwrite the wParam when it's removed from the queue.

Now, we should assume that newer message, i.e., actually removed from the queue, is the expected message by the user.  See bug 1336028 comment 0 for the actual scenarios which are collected by crash reports.
https://bugzilla.mozilla.org/show_bug.cgi?id=1336028#c0

MozReview-Commit-ID: 9ZgukHH1vfi

--HG--
extra : rebase_source : 15559e62882f97d5062703e2308fa1c22016f340
2017-02-02 23:28:48 +09:00
Masayuki Nakano 64ec99ecef Bug 1335670 NativeKey should dispatch consumed keydown event when it receives WM_NULL at removing WM_*CHAR from the queue and the original message has gone r=m_kato
Currently, NativeKey::GetFollowingCharMessage() tries 5 times to remove found char message from the queue.  It was enough when we found this issue at developing Metrofox.

However, this hack is not enough for some odd keyboard layouts because we see some crash reports which gives up to remove a char message from the queue because 5 WM_NULL messages are returned.

For preventing this crash, we should check if there is the message which is trying to remove from the queue when NativeKey receives WM_NULL.  Then, when there is no key message in the queue or next key message becomes non-char message,, NativeKey should dispatch consumed keydown event because we can assume that the key operation may have already been handled or canceled.  Otherwise, NativeKey should retry to remove the message again (until 50 times!, it's just enough big magic number, there is no concrete reason).

MozReview-Commit-ID: 1c6Y4OoQdrP

--HG--
extra : rebase_source : 2ad588d0513741ff6a58be6f523cf59d8deea151
2017-02-02 22:43:20 +09:00
Masayuki Nakano b769737eb7 Bug 1336331 NativeKey::GetFollowingCharMessage() should try to use GetMessage() when PeekMessage() failed to remove a char message from the queue and there is still existing a char message r=m_kato
I think that when PeekMessage(PM_REMOVE) failed to remove a char message but next key message is still a char message, it may be possible that the odd keyboard layout or utility hook only PeekMessage(PM_NOREMOVE) and GetMessage().  If so, we can explain what occurs in this case.

I'm still not sure this fixes the case of bug 1336322 comment 0, but we should try to do this because I don't have better idea.

MozReview-Commit-ID: CxoO24n167t

--HG--
extra : rebase_source : c00b86166a345eec18fa2de74698f6e8859364b8
2017-02-03 18:01:33 +09:00
Masayuki Nakano c522e5b4d2 Bug 1336322 NativeKey::GetFollowingCharMessage() should treat the char message has gone if PeekMessage() failed to remove found char message and next key message becomes non-char message or different key's char message r=m_kato
This patch depends on bug 1336080.

When PeekMessage() fails to remove found char message, NativeKey::GetFollowingCharMessage() tries to check next key message in the queue again.  Then, when next key message becomes non-char message, such as WM_KEYDOWN or WM_KEYUP, the char message must be removed by odd keyboard layout or something.  Similarly, when next key message is a char message but it's caused by different key, the found char message must be removed by one of them too.

So, in these cases, NativeKey::GetFollowingCharMessage() should treat the key operation is already handled or canceled by the odd keyboard layout or somebody else.  Additionally, in the latter case, following char message should be handled as orphan char message(s) as usual.

MozReview-Commit-ID: 8ahs8I0HUQ2

--HG--
extra : rebase_source : 563efc0e65c1d400a32cb0ceec94eb56ad0aa1c5
2017-02-03 14:30:22 +09:00
Masayuki Nakano da8e4c10f2 Bug 1336080 When NativeKey::GetFollowingCharMessage() founds different message when it fails to remove a found char message, it should retry to remove the newly found message if it's caused by same physical key r=m_kato
When NativeKey::GetFollowingCharMessage() tries to remove a char message from the queue, the message might be changed by odd keyboard layout or something.  In such case, if the new char message is also caused by same physical key, the char  message must be overwritten.  Then, we should take the new char message instead.

Note that this patch saves original found char message into kFoundCharMsg and it's logged by each points for indicating if this case has occurred.

MozReview-Commit-ID: HAduq8sfwFt

--HG--
extra : rebase_source : c8980c7fa019fc3e0f249b4506fa572e81f4a1e8
2017-02-02 23:26:45 +09:00
Kartikaya Gupta ca041b7c5a Merge m-c to graphics
MozReview-Commit-ID: FOyS87VawTT
2017-01-25 08:52:04 -05:00
Milan Sreckovic c1a5fde718 Bug 1337154: More information in the crash reports when mismatching DLL versions are present. r=gw280
MozReview-Commit-ID: 7ygQzFVmBsq

--HG--
extra : rebase_source : 52b1ab72a7d9bca59b7551ffcbf05ab609b41fcc
2017-02-06 17:29:25 -05:00
Mike Conley 1460123e35 Bug 1336230 - Add suppressanimation support to Windows backend. r=jimm
MozReview-Commit-ID: C8aKimUBKJx

--HG--
extra : rebase_source : 784ea699e916812e536c440d4a22a7659634838d
2017-02-03 17:37:37 -05:00
Kartikaya Gupta b66c471aef Merge m-c to graphics
MozReview-Commit-ID: LyU2woFOt7O
2017-01-18 13:48:56 -05:00
Kartikaya Gupta cf091ea0eb Bug 1328066 - Don't broadcast the live-resize events to all browser windows unnecessarily. r=mstange
The machinery for suppressing the displayport during live resizes
was using the Observer service. However, in the case of multiple
browser windows, this meant that all the open browser windows would
have their displayport suppressed if *any* of the browser windows
was being resized. This was mostly ok, as the displayport suppression
would be turned off once the resize ended. However, the code to
kick off a repaint with the unsuppressed displayport would only get
triggered on one of the windows (whichever happened to process the
unsuppress message last).

This patch stops using the Observer service for the implementation
machinery, and instead locates the active TabParent of the relevant
nsWindow, and invokes the displayport suppression directly on that.
This fixes the repainting bug and also avoids unnecessarily
broadcasting the suppression/unsuppression notification to windows
that don't neccessarily need it.

MozReview-Commit-ID: LBHOgOW9KUp
2017-02-01 10:38:16 -05:00
Makoto Kato 1b1e8ccc2f Bug 1337299 - Remove old version compatibility into WinUtils. r=jimm
MozReview-Commit-ID: IBnnslpinzq
2017-02-10 12:06:23 +09:00
Tracy Walker 8fe6049207 Bug 1326292 - Add null check of drawTarget in WinCompositorWidget.cpp, to avoid crash. r=jimm
--HG--
extra : rebase_source : 4f5043404a12efc975c0985fa67e669bca3951f8
2017-02-08 09:06:49 -06:00