Commit Graph

472128 Commits

Author SHA1 Message Date
Masayuki Nakano
eb041d2df7 Bug 1257759 part.7 Add new internal events which represent key events on plugin r=smaug
If a plugin process posts native key events to the widget, it needs to check if the key combination is reserved by chrome because if it's reserved by chrome, the reserved shortcut key handler should be executed and the event shouldn't be handled by the focused plugin.

This patches add eKeyDownOnPlugin and eKeyUpOnPlugin.  nsXBLWindowKeyHandler will listen to them and handle them as normal keydown and keypress or keyup event.  Note that these events won't be fired on content in the default event group and won't be sent to the remote process.

MozReview-Commit-ID: H5OKPLtVdr6

--HG--
extra : rebase_source : c6852423e47c40e9953b72061262730f7cce35d7
2016-04-23 01:22:49 +09:00
Masayuki Nakano
ff3ddc1d56 Bug 1257759 part.6 Keep event order between keyboard events and IME events in a plugin process r=jimm
On Windows, applications cannot handle IME messages asynchronously.  Therefore, we cannot put off to send IME messages to plugin even if there are some pending keyboard events which were posted to the parent process.

This patch makes PluginInstanceChild consume all key events which are returned from the parent process during IME composition. And when an IME composition is committed, mark pending key events as outdated.

MozReview-Commit-ID: 7P3LEJ6pDir

--HG--
extra : rebase_source : 42e304c45cd980f339b29526ab65854d196198ad
2016-04-14 17:28:49 +09:00
Masayuki Nakano
b332dc9ff4 Bug 1257759 part.5 PluginInstanceChild should post received native key event to chrome process if the key combination may be a shortcut key r=jimm
When PluginInstanceChild receives native key events, it should post the events to the chrome process first for checking if the key combination is reserved.  However, posting all key events to the chrome process may make damage to the performance of text input.  Therefore, this patch starts to post a key event whose key combination may be a shortcut key.  However, for avoiding to shuffle the event order, it posts following key events until all posted key events are handled by the chrome process.

For receiving response from widget, this patch defines nsIKeyEventInPluginCallback.  It's specified by nsIWidget::OnWindowedPluginKeyEvent() for ensuring the caller will receive the reply.  Basically, the caller of nsIWidget::OnWindowedPluginKeyEvent() should reply to the child process.  However, if the widget is a PuppetWidget, it cannot return the result synchronously.  Therefore, PuppetWidget::OnWindowedPluginKeyEvent() returns NS_SUCCESS_EVENT_HANDLED_ASYNCHRONOUSLY and stores the callback to mKeyEventInPluginCallbacks.  Then, TabParent::HandledWindowedPluginKeyEvent() will call PuppetWidget::HandledWindowedPluginKeyEvent().

MozReview-Commit-ID: G6brOU26NwQ

--HG--
extra : rebase_source : 8140456de278956d2d594e85c7b397ae366b4962
2016-04-19 20:09:37 +09:00
Masayuki Nakano
d2c8ff21a8 Bug 1257759 part.4 Rename WidgetGUIEvent::PluginEvent to NativeEventData for using this class to send native event from plugin process to content and/or chrome process r=smaug
PluginInstanceChild needs to send native key event to the chrome process via a content process.  So, IPC needs a platform independent class/struct which can store native event.  This purpose is exactly same as the purpose of WidgetGUIEvent::PluginEvent.  Therefore, we can use it for this case too.

This patch renames WidgetGUIEvent::PluginEvent to NativeEventData but this patch does NOT remove WidgetGUIEvent::PluginEvent.  Instead of that, it's defined as an alias of NativeEventData since PluginEvent is clearer name for the original purpose and it's used by plugin module.

MozReview-Commit-ID: 3nrHfb8gk8m

--HG--
extra : rebase_source : b0b5a863360bf0893b161d70124d3a83aa2c3386
2016-04-05 14:23:13 +09:00
Masayuki Nakano
8a8e89ac9b Bug 1257759 part.3 ModifierKeyState should be available in plugin module r=jimm
Before posting native key message from PluginInstanceChild, we need to check if the key combination could be a shortcut key, i.e., we need to check if Ctrl or Alt key is pressed.  ModifierKeyState is a good class for checking it but it should be defined in an independent header file.

This patch separates the definition of ModifierKeyState to mozilla/widget/WinModifierKeyState.h and implement MaybeMatchShortcutKey() for PluginInstanceChild.

MozReview-Commit-ID: ZjLnJx02Ou

--HG--
rename : widget/windows/KeyboardLayout.h => widget/windows/WinModifierKeyState.h
extra : rebase_source : 66e9351a36dfa88f080ea78972ac0cb347bb174d
2016-04-09 15:45:06 +09:00
Masayuki Nakano
f19611cb89 Bug 1257759 part.2 Separate Windows' message and related definitions from nsWindowDefs.h to mozilla/widget/WinMessages.h r=jimm
This patch separates Windows' message definition and related definitions from nsWindowDefs.h to mozilla/widget/WinMessages.h because the definitions are useful in plugin module but nsWindowDefs.h cannot be included from plugin module since it depends on some headers in under widget.

MozReview-Commit-ID: KNUAffLMKT1

--HG--
rename : widget/windows/nsWindowDefs.h => widget/windows/WinMessages.h
extra : rebase_source : ae9390e700ca97a0a4eea3b2977d4d5568ce9408
2016-04-09 15:15:31 +09:00
Masayuki Nakano
3a41e70ea1 Bug 1257759 part.1 Use switch-case at the first message handling in PluginInstanceChild::PluginWindowProcInternal() r=m_kato
PluginInstanceChild::PluginWindowProcInternal() should use switch-case statement at checking each message because adding new message handler may make damage to the performance and switch-case statement is easier to read for Windows message handler.

MozReview-Commit-ID: KfL0LtHL6GV

--HG--
extra : rebase_source : 3d729cf0c34990019dcf52fad72c748f31ea4d71
2016-03-18 16:39:42 +09:00
Aryeh Gregor
59b80ff2d8 Bug 1156062 part 7 - Clean up nsHTMLEditRules::StandardBreakImpl; r=ehsan 2016-04-23 18:32:13 +09:00
Aryeh Gregor
a5325910ce Bug 1156062 part 6 - Clean up nsHTMLEditRules::WillInsertBreak; r=ehsan 2016-04-23 18:32:04 +09:00
Aryeh Gregor
ff29bf2138 Bug 1156062 part 5 - Make CreateBR return regular pointer; r=ehsan 2016-04-23 18:31:55 +09:00
Aryeh Gregor
258c4350c5 Bug 1156062 part 4 - Clean up ns*EditRules::WillInsert; r=ehsan 2016-04-23 18:30:17 +09:00
Masayuki Nakano
d3b2d91e89 Bug 1252058 IMEContentObserver::IMENotificationSender shouldn't post notifications when IMEContentObserver which is the owner of it stopped observing contents r=smaug
When IMEContentObserver stopped observing contents, posting pending notifications to current thread may cause infinite loop because it's impossible to send notifications to widget until the IMEContentObserver is reinitialized.

When IMEContentObserver is reinitialized, pending notifications are automatically flushed.  So, in such case, IMEContentObserver::IMEnotificationSender shouldn't clear the pending notifications but don't post the notifications to current thread immediately.

MozReview-Commit-ID: 5xXT3VB4Jjb

--HG--
extra : rebase_source : 5529f1921cffe14b32779199e6919f1252051dcb
2016-04-19 18:57:13 +09:00
Jacek Caban
a9c53bd3c0 Bug 1263622 - Fixed nsNSSComponent.cpp compilation on mingw. r=dkeeler,ted 2016-04-23 10:55:50 +02:00
Carsten "Tomcat" Book
e41e2a34ce Merge mozilla-central to mozilla-inbound 2016-04-23 10:51:51 +02:00
Grigory Kruglov
22abdf585b Bug 1266232 - be extra careful and mindful of performance when migrating visits r=mcomella
1) Use prepared SQL insert statement for insertions
1.2) Use ON CONFLICT IGNORE for our inserts, to avoid failing on possible data clashes
2) Don't synthesize "visits since last sync" - it's bound to cause problems, for not much benefit
3) Fix up some minor issues, cleanup code and add sanity checks
4) If there's evidence Sync was enabled at some point, mark synthsized visits as remote. Otherwise, as local.

MozReview-Commit-ID: Gd94A6r4rW

--HG--
extra : rebase_source : e4f74e3d1d286e1107e5a1764ae8ea3fd5ff3ff2
2016-04-22 23:18:04 -07:00
Michael Comella
029b25ac6a Bug 1266820 - Disable Screenshot in Bookmarks feature. r=grisha r=grisha
See code comment (and related bug) for details.

MozReview-Commit-ID: EDzIBftjJRU

--HG--
extra : rebase_source : 94721323a4372010941dcce034093d3f0d1ac95c
2016-04-22 11:23:36 -07:00
Mark Capella
d720d7d792 Bug 1257843 - Probe to measure when user enters text selection UI, r=sebastian 2016-04-22 16:44:47 -04:00
Nihanth Subramanya
072741d04f Bug 1220481 - New responsive designs for error pages. r=Gijs
MozReview-Commit-ID: 8AJWdyLxezg

--HG--
extra : rebase_source : 02797e3fd135136e3dd142da72f2b2ea23ff2603
2016-04-21 09:50:16 -07:00
Grigory Kruglov
24a83ce171 Bug 1265979 - missing call to provider.shutdown() causing test failures r=sebastian
MozReview-Commit-ID: 3jJTDKGtXok
2016-04-22 13:34:31 -07:00
Panos Astithas
6809a297cd Bug 1139472 - Extend the attention state of the Downloads Indicator to indicate success or failure. r=paolo
With this change two new attention states are introduced, "severe" and "warning",
along with the previous "success" and "no attention" states. "No attention" is
still a falsy value in order to mitigate any add-on compatibility issues.
"severe" and "warning states" now display an icon badge to the downloads button
(or the hamburger button if the downloads button is tucked away).

MozReview-Commit-ID: 3gc9Ji7zCXY
2016-04-22 23:09:07 +03:00
Felipe Gomes
ecb4d04f74 Bug 1266213 - Temporarily block users of GTK+ 3.20+ from e10s on Beta. r=jimm
MozReview-Commit-ID: 56UiL3MiiUy
2016-04-22 13:42:57 -03:00
Nils Ohlmeier [:drno]
9e5040ab92 Bug 1264351: removed hand break which disables ICE TCP on e10s r=jesup
MozReview-Commit-ID: 8Llssz59QwM

--HG--
extra : rebase_source : 0b624b9fc0e758eb7d09084493b4dcfe4ae0a0ec
2016-04-13 10:16:35 -07:00
Phil Ringnalda
5141ec25d6 Back out 2 changesets (bug 1263887) for OS X failures in test_menulist.xul
CLOSED TREE

Backed out changeset 4a2161196658 (bug 1263887)
Backed out changeset df899bb47807 (bug 1263887)
2016-04-22 21:29:47 -07:00
Phil Ringnalda
03a2029cd4 Back out 3 changesets (bug 1265194) for Linux failures in test_bug625187.html and test_dom_prompts.html and Android failures in test_bug619644.html
CLOSED TREE

Backed out changeset 5a90b42789cd (bug 1265194)
Backed out changeset b9346277145b (bug 1265194)
Backed out changeset 755257b3f436 (bug 1265194)

--HG--
rename : toolkit/components/prompts/test/test_dom_prompts.html => toolkit/components/prompts/test/test_bug861605.html
2016-04-22 21:28:48 -07:00
Phil Ringnalda
296f3a95c3 Back out 4 changesets (bug 1265771, bug 1266857) for leaks in browser_DownloadPDFSaver.js on Windows
CLOSED TREE

Backed out changeset a0c85ccffafd (bug 1266857)
Backed out changeset 1cf8785bdc0c (bug 1265771)
Backed out changeset e411c3ccd7b6 (bug 1265771)
Backed out changeset a298cd2c9417 (bug 1265771)
2016-04-22 21:27:11 -07:00
Ting-Yu Lin
58b43c50d0 Bug 1266715 - Fix space between blinking cursor/selection highlight and the caret. r=snorp
MozReview-Commit-ID: 42ceKrat7WI

--HG--
extra : rebase_source : 83b456e67dd6e71392e869425df996a582b78a40
2016-04-22 20:36:05 +08:00
Ben Kelly
b4090694b7 Bug 1266857 Make Clients.claim() use observer document list instead of secondary hashtable. r=bz 2016-04-22 00:50:13 -07:00
Ben Kelly
da6964ef2b Bug 1265771 P3 Expand browser_force_refresh.js to verify Clients.matchAll() behavior on refresh. r=bz 2016-04-22 00:50:13 -07:00
Ben Kelly
9216655d15 Bug 1265771 P2 Expand navigate-window.https.html wpt test to cover uncontrolled windows. r=bz 2016-04-22 00:50:13 -07:00
Ben Kelly
ad90cd164e Bug 1265771 P1 Only store active documents in the global observer list. r=bz 2016-04-22 00:50:13 -07:00
Justin Dolske
ab6f95c610 Bug 1265194 - Refactor prompt tests to use state/action objects and new common helpers. r=adw
MozReview-Commit-ID: FviWeWkJjTA

--HG--
extra : rebase_source : 23f8a9b1913d255f9eed11244b96a78d4e3ad39d
2016-04-16 16:06:41 -07:00
Justin Dolske
6cf0c18e09 Bug 1265194 - use the hidden attribute in commonDialog.xul for consistency with tabPrompts.xml. r=adw
MozReview-Commit-ID: 3qUukGkb9i8

--HG--
extra : rebase_source : 7665bb9eafd0e3c6bc22ed1bb0986af2a4b648bf
2016-04-16 16:06:41 -07:00
Justin Dolske
0c00b2ece9 Bug 1265194 - Move handlePrompt() and checkPromptState() to prompt_common.js, and rename a test. r=adw
MozReview-Commit-ID: InDUkxPQoYd

--HG--
rename : toolkit/components/prompts/test/test_bug861605.html => toolkit/components/prompts/test/test_dom_prompts.html
extra : rebase_source : a7937c2c15191b3ab19bedaa63bf9dc297a2181e
2016-04-16 16:06:40 -07:00
Mike Hommey
e720762c60 Bug 1266620 - Move MACOSX_DEPLOYMENT_TARGET to moz.configure. r=chmanchester 2016-04-23 08:13:26 +09:00
Gregory Szorc
79133e3755 Bug 1259782 - Fix version number of "Tools" in Visual Studio install docs
Thanks to gkw for pointing this out.

DONTBUILD (NPOTB)

MozReview-Commit-ID: 4Hd3Nse2VCP

--HG--
extra : rebase_source : f50253b8eb28306ecd62635f292fb3f2b65574c8
2016-04-22 15:50:36 -07:00
Mike Conley
39949a73a7 Bug 1263887 - Update <select>'s on mutation for e10s. r=Felipe
MozReview-Commit-ID: Ev9w4C4AzOE

--HG--
extra : rebase_source : f4f4ea6a590660bf5c94b6332247112776828619
extra : source : 48ba2783004140f0331ffd4764363b5b0040f127
2016-04-15 22:00:36 -04:00
Mike Conley
0c78c785d3 Bug 1263887 - Update the active child on a menulist when setting selection. r=enndeakin+6102
MozReview-Commit-ID: KsXLd6ICr0B

--HG--
extra : rebase_source : e1dda38ee4494124a7c663ff0bd977f3f3a634c6
extra : source : c45842dc546821416db290899802ca22cb9a703d
2016-04-19 11:32:49 -04:00
Boris Zbarsky
b66f459c87 Bug 1266077. Fix <base> href getter to follow the spec; it should be using the fallback base URI to resolve against, not the document URI. r=bkelly 2016-04-22 17:59:16 -04:00
Andrew McCreight
f417b18c2b Bug 1263001 - Don't Notify() an unlinked nsGeolocationRequest. r=jdm
If an unlinked nsGeolocationRequest somehow stays alive, then calling
Notify() on it will likely cause a null-deref crash.
2016-04-22 14:15:36 -07:00
Wes Kocher
c40c75a905 Backed out 2 changesets (bug 1263887) for m(oth) and m-e10s(bc7) failures
Backed out changeset c0730eb0c5fc (bug 1263887)
Backed out changeset 3c2a87839422 (bug 1263887)

MozReview-Commit-ID: GDPDmfE5J7d
2016-04-22 13:13:10 -07:00
Kartikaya Gupta
71e578529e Bug 1264161 - Ensure we null out APZ pointers to the widget when it gets destroyed. r=botond
MozReview-Commit-ID: HccKXqU3Z6H
2016-04-22 16:01:30 -04:00
Boris Zbarsky
666ff33931 Bug 1260511 part 4. Fix some of the places where registerProtocolHandler should be throwing a SECURITY_ERR to actually do so. r=gijs 2016-04-22 16:03:06 -04:00
Boris Zbarsky
d17aec7b6a Bug 1260511 part 3. In dom::Throw, ignore the pending xpconnect exception if we were given a non-default message string (because we don't want to lose that string). Also, make sure to always clear the pending xpconnect exception there. r=khuey 2016-04-22 16:03:05 -04:00
Boris Zbarsky
40c7808bf8 Bug 1260511 part 2. Change XPConnect's handling of exceptions thrown from JS components so that if an nsresult integer is thrown we convert it into an actual exception object before handing it out to content instead of propagating out the numeric value. r=khuey 2016-04-22 16:03:05 -04:00
Boris Zbarsky
e65c44d2be Bug 1260511 part 1. Fix WebContentConverter to behave consistently in both e10s and non-e10s mode in terms of the argument sanity checking registerContentHandler does. r=gijs 2016-04-22 16:03:05 -04:00
Chris Manchester
c2a2f2b51f Bug 1257958 - Move MOZ_ANDROID_APZ to Python configure. r=nalexander
MozReview-Commit-ID: EPhThmQjKXF
2016-04-22 13:01:22 -07:00
Chris Manchester
783f8c96b4 Bug 1257958 - Move MOZ_SWITCHBOARD to Python configure. r=nalexander
MozReview-Commit-ID: CRWP2JugKeA
2016-04-22 13:01:22 -07:00
Chris Manchester
04dce3d8f2 Bug 1257958 - Move MOZ_ANDROID_DOWNLOAD_CONTENT_SERVICE to Python configure. r=nalexander
MozReview-Commit-ID: 3ijJ6b7hxPf
2016-04-22 13:01:22 -07:00
Chris Manchester
d3e163bb6c Bug 1257958 - Move MOZ_ANDROID_MLS_STUMBLER to Python configure. r=nalexander
MozReview-Commit-ID: IFyL9mirNyt
2016-04-22 13:01:22 -07:00
Chris Manchester
e45d29aa24 Bug 1257958 - Move MOZ_ANDROID_SEARCH_ACTIVITY to Python configure. r=nalexander
MozReview-Commit-ID: blxsCpUK1m
2016-04-22 13:01:22 -07:00