Commit Graph

472144 Commits

Author SHA1 Message Date
Aryeh Gregor
e662b1b8ed Bug 1190172 part 8 - Clean up nsHTMLEditor::PromoteRangeIfStartsOrEndsInNamedAnchor; r=ehsan 2016-04-23 19:27:50 +09:00
Aryeh Gregor
d4bcaf41a0 Bug 1190172 part 7 - Clean up nsHTMLEditor::PromoteInlineRange; r=ehsan 2016-04-23 19:27:28 +09:00
Aryeh Gregor
4bcac88d54 Bug 1190172 part 6 - Clean up nsHTMLEditor::RelativeFontChangeOnTextNode; r=ehsan 2016-04-23 19:27:04 +09:00
Aryeh Gregor
babd34f7bb Bug 1190172 part 5 - Clean up nsHTMLEditor::NodeIsProperty; r=ehsan 2016-04-23 19:26:40 +09:00
Aryeh Gregor
3931489056 Bug 1190172 part 4 - Remove unused nsHTMLEditor::HasAttr; r=ehsan 2016-04-23 19:26:16 +09:00
Aryeh Gregor
516d35791d Bug 1190172 part 3 - Remove old method variants; r=ehsan 2016-04-23 19:25:54 +09:00
Aryeh Gregor
3b6aac3ba5 Bug 1190172 part 2 - Clean up nsHTMLEditor::ClearStyle; r=ehsan 2016-04-23 19:25:29 +09:00
Aryeh Gregor
b058686d23 Bug 1190172 part 1 - Clean up nsHTMLEditor::SplitStyleAbovePoint; r=ehsan 2016-04-23 19:25:04 +09:00
Aryeh Gregor
a144a23e3a Bug 1156062 part 12 - Clean up nsHTMLEditRules::GetAlignment; r=masayuki 2016-04-23 19:24:13 +09:00
Aryeh Gregor
7eaf2035c4 Bug 1156062 part 11 - Clean up nsHTMLEditRules::Before/AfterEdit; r=masayuki 2016-04-23 19:23:50 +09:00
Aryeh Gregor
c12f7e7f6f Bug 1156062 part 10 - Clean up MarginPropertyAtomForIndent; r=masayuki 2016-04-23 19:23:20 +09:00
Aryeh Gregor
914ca44a44 Bug 1156062 part 9 - Clean up nsHTMLEditRules::WillAlign 2016-04-23 19:22:48 +09:00
Aryeh Gregor
2dc492c957 Bug 1156062 part 8 - Clean up nsHTMLEditRules::JoinBlocks; r=ehsan
--HG--
extra : rebase_source : 6b76252e1e569fd792829a0dbe31e8412cd2fa9d
2016-04-23 19:20:20 +09:00
Masayuki Nakano
79ea112b87 Bug 1257759 part.10 PluginInstanceChild should consume WM_*CHAR messages which follow consumed WM_*KEYDOWN or WM_*KEYUP message r=jimm
nsWindow for Windows cannot decide if a preceding WM_*KEYDOWN or WM_*KEYUP which is a preceding message of WM_*CHAR is consumed because nsWindow cannot know if WM_*CHAR message came from same window which received the preceding WM_*KEYDOWN or WM_*KEYUP.  Therefore, PluginInstanceChild should do that.

MozReview-Commit-ID: 1uuZ0nTJ5Xb

--HG--
extra : rebase_source : b99f8057d5e93035a769af2506292ff7d2cb8f4a
2016-04-22 14:22:03 +09:00
Masayuki Nakano
0b9b9bf032 Bug 1257759 part.9 Implement nsWindow::OnKeyEventInPluginProcess() on Windows r=jimm
Implementing nsWindow::OnWindowedPluginKeyEvent() on Windows.  This patch makes NativeKey class dispatches eKeyDownOnPlugin and eKeyUpOnPlugin when the method is called.

MozReview-Commit-ID: L8yRZvDaQKR

--HG--
extra : rebase_source : 387ce72dcea23a92bd8c774fc54a8bff8da6c844
2016-04-15 17:02:36 +09:00
Masayuki Nakano
8f62c5aa3c Bug 1257759 part.8 nsXBLWindowKeyHandler should handle eKeyDownOnPlugin and eKeyUpOnPlugin events only with reserved shortcut key handlers r=smaug
eKeyDownOnPlugin (mozkeydownonplugin) and eKeyUpOnPlugin (mozkeyuponplugin) should execute if the key combination is reserved by the linked <command> element.

Note that there is no eKeyPressOnPlugin.  Therefore, eKeyDownOnPlugin may execute shortcut key handler which is registered as a keypress event handler.

MozReview-Commit-ID: CpjsFW02y26

--HG--
extra : rebase_source : 361be61bc6ff0213e3386427878d2f81321ca0df
2016-04-23 02:12:54 +09:00
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