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

22940 Коммитов

Автор SHA1 Сообщение Дата
Kartikaya Gupta 00ef028ed3 Bug 1416267 - Update gfxContext matrix functions to avoid flip-flopping between float and double matrices. r=jrmuizel
The core of this change is in gfxContext.*:
- change gfxContext::CurrentMatrix() and gfxContext::SetMatrix() to
  return and take a Matrix respectively, instead of converting to
  and from a gfxMatrix (which uses doubles). These functions therefore
  will now match the native representation of the transform in gfxContext.
- add two new functions CurrentMatrixDouble() and SetMatrixDouble() that
  do what the old CurrentMatrix() and SetMatrix() used to do, i.e.
  convert between the float matrix and the double matrix.

The rest of the change is just updating the call sites to avoid round-
tripping between floats and doubles where possible. Call sites that are
hard to fix are migrated to the new XXXDouble functions which preserves
the existing behaviour.

MozReview-Commit-ID: 5sbBpLUus3U
2017-11-10 21:14:09 -05:00
Jed Davis c7f8a32bf4 Bug 1401786 - Move base::LaunchApp options into a LaunchOptions struct, like upstream Chromium. r=billm
MozReview-Commit-ID: 74IXV4oGeWR

--HG--
extra : rebase_source : ef4021a60506a8fc5fa5a35e3f3fefb9dbad75d6
2017-09-08 20:35:06 -06:00
Neil Deakin 4b1d934d48 Bug 1411705, check the pseudo char code in GetAccessKeyCandidates so that this check works in both keydown and keypress events, r=masayuki 2017-11-09 18:42:40 -05:00
Martin Stransky 47784aca73 Bug 1360560 - Add destructor to nsRemoteClient, r=jhorak"
Create nsRemoteClient pointer as a base class pointer to X11/DBus implementations.

MozReview-Commit-ID: 3CpkDey6rLU

--HG--
extra : rebase_source : f7f6fd7e179e23d4bfabe528092710bcbe9a1892
2017-11-02 16:23:06 +01:00
Martin Stransky 79f785f637 Bug 1360560 - Implement XRemote client by D-Bus service, r=jhorak
MozReview-Commit-ID: JDNEC8Jar5w

--HG--
extra : rebase_source : 8c1d1e128101dfb2e4e467fda74d82febdcd323a
2017-11-02 16:21:28 +01:00
Mats Palmgren 1c2b8c222e Bug 1414666 part 1 - Add nsIFrame::PresShell() for convenient access to the shell. r=emilio
MozReview-Commit-ID: 8FPTPKWyVtY
2017-11-09 03:00:48 +01:00
Makoto Kato 639e6d2041 bug 1414881 - Detect more resolution icons. r=karlt
I add some resolution icons for HiDPI by bug 1415014.  So we should detect
these resolution icons.  Also, Thunderbird has default256.png, so we should
support it, too.

MozReview-Commit-ID: 6BEgV0usnE2

--HG--
extra : rebase_source : ec1b954e1ee4664f365376202fe6f9158c6a9e3b
2017-11-16 14:08:10 +09:00
Sebastian Hengst a353221537 merge mozilla-inbound to mozilla-central. r=merge a=merge 2017-11-09 00:00:16 +02:00
Martin Stransky 13cafd9d37 Bug 1415080 - Rename all 's' prefixed members of nsLookAndFeel as they're not static ones, r=jhorak
MozReview-Commit-ID: 9LHIewRnbAY

--HG--
extra : rebase_source : f0a9b3c7b51bbc21ed8ab4cb5ca419a25fdc2b2e
2017-11-07 10:14:52 +01:00
Margareta Eliza Balazs 130574a8e2 Merge mozilla-central to mozilla-inbound. r=merge a=merge CLOSED TREE 2017-11-08 00:09:29 +02:00
Randall Barker 7fe4594a76 Bug 1413362 - part 1: Add GeckoVRManager to support GVR WebVR implementation on Android r=jchen,snorp
MozReview-Commit-ID: C7XTF8N1W9a
2017-11-07 10:50:14 -08:00
Johann Hofmann fc671c4d92 Bug 1299286 - Enable touchdown to start dragging on elements with touchdownstartsdrag attributes. r=kats
MozReview-Commit-ID: 8TL9VfY88ip

--HG--
extra : rebase_source : a560e2e9ac4a7ff633f597c0ff20f39373fd30a8
2017-11-03 13:09:21 +01:00
Jonathan Watt 2322aebae3 Bug 1413217 - Fix some includes etc. in widget code. r=jimm
MozReview-Commit-ID: 8bW6WIPMun4
2017-10-12 17:03:35 +01:00
Martin Stransky 646ed8e303 Bug 1414272 - Implement SetNonClientMargins() for Gtk+, r=jhorak
Original patch author is Andrew Comminos [:acomminos] <andrew@comminos.com>

MozReview-Commit-ID: Jnqz35iNsQb

--HG--
extra : rebase_source : b3be56afc3330a98a981af0d8b85a28164953e1c
2017-11-03 15:38:29 +01:00
Jim Chen 832cd8d996 Bug 1415074 - Fix unresponsiveness after restoring GeckoView states; r=jchen
Fix a bug where GeckoView becomes unresponsive to dispatched events
after restoring states, due to the native queue not being restored.
r=me for small, tested patch.

MozReview-Commit-ID: K1cVjjNaZK1

--HG--
extra : rebase_source : b1329c84d82f5bdc06767bf310ca87e52ff6ec9b
2017-11-07 01:53:11 -05:00
Jim Chen edb0428314 Bug 1413698 - 2. Move GeckoView to GeckoSession; r=snorp
Rename GeckoView to GeckoSession. Strip out parts of it that depended on
being a subclass of View. Also strip out parts of it that dealt with
switching EventDispatcher and NativeQueue, because now there's only one
copy of each for each GeckoSession.

MozReview-Commit-ID: J699twtpmTS

--HG--
rename : mobile/android/geckoview/src/main/java/org/mozilla/gecko/GeckoView.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/GeckoSession.java
extra : rebase_source : 60e045f6f1e6a70dcabc03f5a32cae5576c2edd8
2017-11-06 14:54:09 -05:00
Jim Chen 6fdb886eb4 Bug 1413698 - 1. Separate out attach() from open() in GeckoView.Window; r=snorp
Right now, `GeckoView.Window.open()` consists of opening a new Gecko
nsWindow and attaching it to the opening GeckoView. This patch separates
the attaching step into an `Window.attach()` function that was renamed
from `Window.reattach()`. Going forward, `Window.open()` and
`Window.close()` will correspond to opening and closing a session, which
`Window.attach()` will correspond to attaching a display to a session.

MozReview-Commit-ID: 94Un74pwizY

--HG--
extra : rebase_source : a7d9c6c3227de4b05e800d77a184f1deae9af5f8
2017-11-06 14:54:08 -05:00
Martin Stransky 8d2317143c Bug 1414774 - Initialize sCSDCloseButton/sCSDMaximizeButton/sCSDMinimizeButton, r=jhorak
MozReview-Commit-ID: 10Yk1gFu0Vk

--HG--
extra : rebase_source : 2fbe514f920e85cb5a857a0f5293edd4f023db06
2017-11-06 11:41:38 +01:00
Lee Bousfield 8b33a0a29e Bug 1398539: Inhibit screensaver with XScreenSaverSuspend r=karlt
MozReview-Commit-ID: LhhpaDaPdaO

--HG--
extra : rebase_source : 6d53031ea8669b15cdf6fad4c55c58624bd54c38
2017-09-13 18:28:51 -06:00
Sebastian Hengst d61954557d merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: Ai6Y5GGfkfT
2017-11-04 10:58:24 +01:00
Alex Gaynor 016a127546 Bug 1412643 - revert part 3 of the changes from 1319423 to fix print selection; r=bobowen
This will be re-landed with a real fix for print-selection after we branch for 58.

MozReview-Commit-ID: JjhBEiEviVB

--HG--
extra : rebase_source : 15b9a2eccdc5ce001bacb776e15f98f4d368c436
2017-11-03 14:03:02 -04:00
sotaro bce40231ea Bug 1390741 - Use BasicCompositor if widget type does not support acceleration r=aosmond,kats 2017-11-03 16:38:34 +09:00
Masayuki Nakano 2fcb0a64f2 Bug 1406446 - part 2: Android widget should use API of InputContextAction rather than accessing EventStateManager r=jchen
Basically, widget code shouldn't access API in dom/events as far as possible
since it's difficult to care widget code when other developers to change under
dom/.

This patch backouts the patch for bug 1402461 which made GeckoEditableSupport
depend on EventStateManager in dom/events.  Now, necessary information is in
InputContextAction and same condition should be shared with Windows.

MozReview-Commit-ID: LMlrizswxUj

--HG--
extra : rebase_source : c13604eac143ec5994c65571bff09887d5c0c221
2017-10-24 02:53:19 +09:00
Masayuki Nakano 93977460e2 Bug 1406446 - part 1: InputContextAction should treat focus change during handling a user input as caused by user input even if it's caused by JS r=smaug
Currently, widget doesn't show VKB when input context change is caused by JS.
However, if it's caused by an event handler of a user input, user may expect
to open VKB.  For example, if a touch event in fake editor causes moving
focus to actual editable node, user expect to show VKB.

Therefore, InputContextAction should declare two causes.  One is unknown but
occurred during handling non-keyboard event.  The other is unknown but occurred
during handling keyboard event.

However, EventStateManager doesn't have an API to check if it's being handling
a keyboard event.  Therefore, this patch adds it first.
AutoHandlingUserInputStatePusher sends event type to StartHandlingUserInput()
and StopHandlingUserInput() of EventStateManager and sUserKeyboardEventDepth
manages the number of nested keyboard event handling.  Therefore,
EventStateManager::IsHandlingKeyboardInput() can return if it's handling a
keyboard event.

IMEStateManager uses this new API to adjust the cause of changes of input
context.

Finally, InputContextAction::IsUserInput() is renamed to IsHandlingUserInput()
for consistency with EventStateManager and starts to return true when the
input context change is caused by script while it's handling a user input.

MozReview-Commit-ID: 5JsLqdqeGah

--HG--
extra : rebase_source : 9fcf7687d1bf90eeebbf6eac62d4488ff64b083c
2017-10-24 02:46:15 +09:00
James Cheng 590d6b160c Bug 1396698 - Part1 - Remove the dispatchTo gecko main thread attribute. r=kikuo
MozReview-Commit-ID: 9Opa894ZQMQ

--HG--
extra : rebase_source : 78807da52b2b070a0488ef2c1f673b728172e59d
2017-11-03 13:40:46 +08:00
Makoto Kato 18c5223126 Bug 1151753 - Set program class name when not using --class command line option. r=karlt
GTK bug: https://bugzilla.gnome.org/show_bug.cgi?id=747634

Before 3.16.3, GDK cannot override classname by --class command line option
when program uses gdk_set_program_class().  So if 3.16.3+, we should call
gdk_set_program_class() to set program class name of default.

MozReview-Commit-ID: KvNc3U6xHr7

--HG--
extra : rebase_source : aae14973022bb29eb89787b67323a845763c0650
2017-10-25 15:58:49 +09:00
Ryan VanderMeulen f44bfd0fc0 Merge m-c to autoland. a=merge 2017-11-01 21:55:56 -04:00
Ryan VanderMeulen cf94e55fa8 Backed out changesets 9adb0bc561c3 and 9e50716eaebe (bug 1406032) in favor of a different fix.
--HG--
extra : rebase_source : d68493d891fc9d5560e58a41e581ad7f55ea9f09
2017-11-01 21:52:57 -04:00
Ryan VanderMeulen 76b05e595e Backed out changeset f4df790d1477 (bug 1412130) in favor of a better fix.
--HG--
extra : rebase_source : 79103611ce2a4548b27ebcacda23f95a6bdb46af
2017-11-01 21:51:29 -04:00
Sebastian Hengst 4ff29d14f8 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: GSDYk9wLOAM

--HG--
rename : browser/base/content/test/general/browser_bug561636.js => browser/modules/test/browser/formValidation/browser_form_validation.js
rename : browser/base/content/test/general/browser_bug595507.js => browser/modules/test/browser/formValidation/browser_validation_iframe.js
rename : browser/modules/test/browser/browser_bug1319078.js => browser/modules/test/browser/formValidation/browser_validation_invisible.js
2017-11-01 22:55:12 +01:00
Sebastian Hengst ca88e3c4c5 Merge mozilla-central to autoland. r=merge a=merge 2017-11-01 22:58:44 +01:00
Tom Ritter f9519e7a49 Bug 1412611 Reorder member initialization to fix -Wreorder warning in widget/windows/nsLookAndFeel.cpp r=njn
MozReview-Commit-ID: EJp1FqllORN

--HG--
extra : rebase_source : f7c8983f3ae7e1aae1a14fd7321ab1aae8b7ba04
2017-10-28 23:36:04 -05:00
Jim Chen db34ad5809 Bug 1412872 - 8. Remove GeckoAppShell dependency in gecko-view; r=snorp
In the future, GeckoAppShell will only be part of the service process
library, and will not be part of the app process library. Therefore, we
should minimize GeckoAppShell usage in any GeckoView code that will
likely end up in the app process library.

In particular, AndroidGamepadManager and Clipboard are made to accept
Context as arguments, instead of using
GeckoAppShell.getApplicationContext() for getting the Context.

MozReview-Commit-ID: G9SC815H5Ku
2017-11-01 14:54:04 -04:00
Jim Chen 7496680254 Bug 1412872 - 4. Handle negate scroll pref in native code; r=rbarker
Handle the negate_wheel_scroll pref in native code so we don't depend on
PrefsHelper in NativePanZoomController.

MozReview-Commit-ID: 14YCcrDlObz
2017-11-01 14:54:03 -04:00
Jim Chen 453375471c Bug 1412872 - 3. Remove native GeckoView loadUri call; r=snorp
Remove the native GeckoView loadUri call because it's Fennec-only.
Replace the call with a Fennec-only "Tab:OpenUri" event.

MozReview-Commit-ID: 7xZW9aceoPL
2017-11-01 14:54:03 -04:00
Jim Chen adad54189b Bug 1406168 - 5. Fix build; r=snorp
Removing the previous cpp files moved AndroidBridge.cpp to a different
compilation unit, and that caused some problems with other code that
depended on AndroidBridge being in or not in their compilation unit.
This patch fixes those (unwanted) dependencies.

MozReview-Commit-ID: DJsk3iENsx2
2017-11-01 14:48:49 -04:00
Jim Chen 984efaf88e Bug 1406168 - 4. Remove unused code; r=snorp
Remove AndroidJNI.cpp, which is empty. Also remove some JNI string
functions that are unused from AndroidBridge.

MozReview-Commit-ID: CsP4L0TyN48
2017-11-01 14:48:48 -04:00
Jim Chen 5f70c0bf46 Bug 1406168 - 3. Remove AndroidJavaWrappers; r=snorp
Remove AndroidJavaWrappers. Convert nsJNIString usages to use
jni::String and AndroidMotionEvent usages to use java::sdk::MotionEvent.
Move key code constants to GeckoEditableSupport.cpp.

MozReview-Commit-ID: CwcGGADWCNv
2017-11-01 14:48:48 -04:00
Jim Chen ec08814aaa Bug 1406168 - 2. Remove AndroidJNIWrapper; r=snorp
Remove AndroidJNIWrapper. It was primarily used by JNI.jsm and WebRTC.
Usages in WebRTC are replaced with equivalent uses of JNI templates.

MozReview-Commit-ID: DPSeMOtH2wF
2017-11-01 14:48:48 -04:00
Martin Stransky 79aef7f85b Bug 1348310 - Use CLOCK_MONOTONIC as a base for nsWindow::GetEventTimeStamp() on Wayland, r=karlt
We assume CLOCK_MONOTONIC as timebase for events on Wayland and use that to translates GDK event times to gecko timestamps.

MozReview-Commit-ID: LWd2KWTQeha

--HG--
extra : rebase_source : 1839d35989b9c29c60dd33d445db79afc75af9ab
2017-10-19 15:28:47 +02:00
Martin Stransky 8137c88d04 Bug 1413206 - Export ConstructCommandLine() to RemoteUtils module, r=jhorak
Create ConstructCommandLine() to be shared between X11 and DBus implementation.

MozReview-Commit-ID: CJIe7B7DWwo

--HG--
extra : rebase_source : b42df1cca45e03b7e826b83f532829f6d8bd6e89
2017-10-31 16:24:24 +01:00
Sebastian Hengst 7a0f790c30 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 4CDH6A5NT2U
2017-11-01 00:36:12 +01:00
Tristan Bourvon 357ebb9638 Bug 1412645 - Initialize some uninitialized fields in widget/cocoa/. r=mstange 2017-10-31 11:25:04 +01:00
Martin Stransky fcfeac2a70 Bug 1411018 - Rename shellHasCSD to drawToContainer and mark our rendering widget by gtk_widget_set_app_paintable(), r=jhorak
Rename shellHasCSD to drawToContainer for better understanding and always mark our rendering widget by gtk_widget_set_app_paintable() to make sure Gtk+ does not draw default background for it.

MozReview-Commit-ID: 4mhxrG7C34i

--HG--
extra : rebase_source : 312e956e317c85196d27213dd86bd30b73a25b02
2017-10-23 21:44:02 +02:00
Martin Stransky 78d7ec139e Bug 1409716 - Remove DetectDisplay() and use DISPLAY env variable or Gdk display manager to detect/open it, r=glandium
For X11 only builds get display from DISPLAY env variable or from command line argument. For Wayland enabled buils use standard gdk_display_manager_open_display() path which respects GDK_BACKEND.

When command line argument --display is given pass it to child process by MOZ_GDK_DISPLAY env variable.

MozReview-Commit-ID: F9jEaJ9SU1p

--HG--
extra : rebase_source : 31cf96bcdfe5c525625aa3742aa74ec674265fe1
2017-10-25 14:53:08 +02:00
Martin Stransky 18f750e4ed Bug 1337369 - [Wayland] Expose moz_container_get_wl_surface() to get MozContainer overlayfrom compositor widget, r=jhorak
MozReview-Commit-ID: 9Q4yJ1W0miE

--HG--
extra : rebase_source : 04371d5b2c71d0a443522a4961f67f41ffb8f6dc
2017-10-24 15:26:48 +02:00
Martin Stransky bb161ccf56 Bug 1337369 - [Wayland] map/unmap overlay MozContainer wl_surface when running on Wayland, r=jhorak
MozReview-Commit-ID: LewrZIXoPI4

--HG--
extra : rebase_source : 4da6712708a55b2ec32ccb9ee0c14afd56c19661
2017-10-24 14:54:17 +02:00
Martin Stransky 8f9da912c2 Bug 1337369 - [Wayland] add routines to map/unmap wl_surface as overlay for MozContainer, r=jhorak
MozReview-Commit-ID: Jn1fJSMlHnP

--HG--
extra : rebase_source : f89fa1dac6cce3c7bddc339bfd56563e811c30bc
2017-10-24 14:34:45 +02:00
Martin Stransky fc13010408 Bug 1337369 - [Wayland] query wayland registry to get wl_subcompositor for mozcontainer, r=jhorak
MozReview-Commit-ID: E04hqpFKFhk

--HG--
extra : rebase_source : 2a1a68b6ce3600377d89a8cde0651415ae77124a
2017-10-24 14:06:29 +02:00
Stephen A Pohl 89df96b890 Bug 1412130: Fix window levels on macOS to ensure that popups hide when the application is deactivated. r=mstange 2017-10-30 21:33:59 -04:00
Sebastian Hengst f07fc93141 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 4PW6ESqLL73
2017-10-30 23:52:23 +01:00
James Willcox 91a9c48755 Bug 1395497 - Regenerate JNI binding r=me
MozReview-Commit-ID: D1zqIMsH1fH
2017-10-30 10:58:56 -05:00
Martin Stransky b64b69ebdb Bug 1412010 - Add missing includes to gtk(3)drawing files, r=jhorak
MozReview-Commit-ID: B1RiTldOenE

--HG--
extra : rebase_source : 195bd1ea9f5c5ee9b744bfadcbe2589d801abb18
2017-10-26 20:14:53 +02:00
Mantaroh Yoshinaga 0945ff4e62 Bug 1411879 - Use kPMDataFormatXMLCompressed parameter into PMPageFormatCreateDataRepresentation(). r=mstange
We can use kPMDataFormatXMLCompressed parameter when storing the page format
data. As result, this preference data will be 20 times smaller.

MozReview-Commit-ID: HMQzhodQyA

--HG--
extra : rebase_source : 941a30cb346b6c15f5a02f527063a437ae0c6121
2017-10-26 17:36:16 +09:00
Sebastian Hengst 841ee307e6 merge mozilla-central to autoland. r=merge a=merge 2017-10-27 23:32:15 +02:00
Sebastian Hengst 28b1c813ea merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: DasxLYlgq0N
2017-10-27 23:30:52 +02:00
Andrea Marchesini 1e90a67e4d Bug 1412258 - Get rid of ipc/dbus, r=smaug
--HG--
rename : ipc/dbus/DBusConnectionRefPtr.h => netwerk/wifi/DBusHelpers.h
2017-10-27 18:41:40 +02:00
Tom Ritter cc4335e0ce Bug 1411743 Resolve warnings in tests for MinGW: Cast -1 to DWORD, and ignore a result explicitly r=jimm
MozReview-Commit-ID: 82r05lMszXd

--HG--
extra : rebase_source : 628cdfe9b3743f4b107bef2977cb0a833032915c
2017-10-25 15:40:35 -05:00
Kartikaya Gupta a8f3618eb0 Bug 1410777 - Remove unnecessary code. r=nical
As per the TODO, a size change on an image is supported now, so there should be
no need to delete and re-create the image key when the window overlay image
changes size. And since the cleanup function is not invoked from anywhere else
it can also be removed.

MozReview-Commit-ID: JSmK5YmXjlX

--HG--
extra : rebase_source : 0078ccfed9a381c82bcb906a87bdf58d8e9c78e1
2017-10-26 14:17:19 -04:00
Kartikaya Gupta b7e231bc45 Bug 1410777 - Force a full transaction for WR when the window overlay changes. r=mstange
The window buttons are drawn as part of the AddWindowOverlayWebRenderCommands
function which is invoked in the full-transaction codepath. It should be possible
to have the empty transaction codepath simply update the image (without building
a full WR display list) and do a recomposite. That would be more performant but
it requires some plumbing to build and ship across a IpcResourceUpdateQueue on
empty transactions.

MozReview-Commit-ID: 2Mrb0wELD6E

--HG--
extra : rebase_source : 9a94c32f94403050835bf3445176f4fe2c1579fa
2017-10-26 14:17:19 -04:00
Brad Werth 0a013b1963 Bug 1403690 Part 6: UIKit change nsLookAndFeel::NativeGetColor to use cached colors. r=ted
MozReview-Commit-ID: Jai4OLrNe6Y

--HG--
extra : rebase_source : b50937000424c6ffe30027d84106d43cf862af7c
2017-10-10 13:50:58 -07:00
Brad Werth 78c75cba79 Bug 1403690 Part 5: Android change pref and color caching to match approach used in gtk, macOS, and Windows. r=snorp
MozReview-Commit-ID: DoffjB9QMmH

--HG--
extra : rebase_source : affb42e8d97da20d6625463af1ca44ca2cd4b45e
2017-10-10 13:12:28 -07:00
Brad Werth a2d5d923ea Bug 1403690 Part 4: gtk rearrange header and implementation to keep init and refresh functions together. r=karlt
MozReview-Commit-ID: ERsI916e7zf

--HG--
extra : rebase_source : 970c4b7b482dd4bac9fed51e81f34c370671be3d
2017-10-10 14:12:47 -07:00
Brad Werth 925e999d40 Bug 1403690 Part 3: macOS change nsLookAndFeel::NativeGetColor to use cached colors. r=mstange
MozReview-Commit-ID: FHm6d2Vz2sJ

--HG--
extra : rebase_source : 321086e64d84903710a9155fee1817f3d874e8dd
2017-10-02 17:13:48 -07:00
Brad Werth 02cebae10b Bug 1403690 Part 2: Windows change nsLookAndFeel::NativeGetColor to use cached colors. r=jimm
MozReview-Commit-ID: 7CKUrtCYC0j

--HG--
extra : rebase_source : 195a02ee96587980963b3e8c6f6b14d68321b757
2017-10-02 16:17:05 -07:00
Martin Stransky c2b677a91d Bug 1410894 - Load CSD config from nsLookAndFeel, r=jhorak
Make CSD setup and titlebar drawing available when users enable it by preference and also it's available on running system.

MozReview-Commit-ID: 4BLgzVWwX1R

--HG--
extra : rebase_source : 15293821b9962bd9d0ee22331e7fad9027a47a7a
2017-10-23 21:28:47 +02:00
Martin Stransky 6a4c5abeaf Bug 1410894 - Add decoration drawing setup to nsWindow, r=jhorak
MozReview-Commit-ID: BHtqoOdfRpS

--HG--
extra : rebase_source : 4baaebff7e86d79de833e14c9284adc22a787180
2017-10-27 11:19:08 +02:00
Attila Craciun 252daa8e0a Merge mozilla-central to mozilla-autoland. r=merge a=merge CLOSED TREE 2017-10-26 12:32:58 +03:00
Attila Craciun 0cab95ab0f Merge inbound to mozilla-central r=merge a=merge 2017-10-26 12:20:45 +03:00
Phil Ringnalda a173b09db6 Backed out changeset ccc0e72f2152 (bug 1403260) for hanging Mac browser-chrome in printing tests
MozReview-Commit-ID: IZNT5Jh8nzB
2017-10-25 23:00:17 -07:00
Haik Aftandilian 362316451f Bug 1403260 - [Mac] Remove access to print server from content process sandbox r=mconley
MozReview-Commit-ID: Ia21je8TTIg

--HG--
extra : rebase_source : 656e9e3ac8d1fb741d46881458bb0b7fb402d688
2017-10-22 23:02:58 -07:00
Nathan Froyd be14985761 Bug 1411692 - move forward declaration to Refs.h; r=darchons
clang complains if we don't have a declaration for Context::sClassRef;
Accessors.h had one, but it's not in the right place to prevent clang
from complaining.  Moving it closer to where Context itself is declared
seems like a reasonable thing to do.
2017-10-25 17:37:15 -04:00
Masayuki Nakano e78b3f56ea Bug 1409155 - IMEHandler should not associate IMC with any window if active IME is ATOK 2010 or earlier with x64 build on Win8 or later r=m_kato
ATOK started to be TIP of TSF since 2011.  Older than it, i.e., ATOK 2010 and
earlier have a lot of problems even for daily use.  Perhaps, the reason is
Win 8 has a lot of changes around IMM-IME support and TSF, and ATOK 2010 is
released earlier than Win 8.

ATOK 2006 crashes while converting a word with candidate window.
ATOK 2007 doesn't paint and resize suggest window and candidate window
correctly (showing white window or too big window).
ATOK 2008 and ATOK 2009 crash when user just opens their open state.
ATOK 2010 isn't installable newly on Win 7 or later, but we have a lot of
crash reports.

Note that ATOK 2006 is the first version supporting Win XP x64.  So, ATOK 2005
must not support x64 apps.

Unfortunately, we cannot block loading DLLs of them.  Therefore, IMEHandler
should disassociate IMC from active window when user changes active keyboard
layout to the legacy ATOK and not associate IME with any window when
SetInputContext() is called even with "enabled".  Additionally, when user
changes active keyboard layout from the legacy ATOK to one of the other
keyboard layouts, IMEHandler should associate IMC with current window for
new active IME.

MozReview-Commit-ID: RVYwmYxzO7

--HG--
extra : rebase_source : c237a3aca6ceb6a1f7251bd9421e4b905be5bc6c
2017-10-25 23:51:27 +09:00
Martin Stransky 617b41cac0 Bug 1410885 - Implement border/padding helpers, r=jhorak
MozReview-Commit-ID: 24WU58W43n6

--HG--
extra : rebase_source : efcb94b91790cd3fb4924ffcee2f33baa2c00826
2017-10-23 15:16:02 +02:00
Masayuki Nakano ad20ed277d Bug 1410988 - Add a debug mode pref to emulate odd touchpad utils which give focus to window under mouse cursor when user tries to scroll the content r=jimm
Some odd touchpad utils give focus to window under mouse cursor when user tries
to scroll the content with swiping or something.

This is really odd behavior because some windows like popup windows doesn't
want focus. However, such ones do actually. For making easier to check such
device's behavior, we should have a pref to emulate such behavior.

MozReview-Commit-ID: 6euwpHn7blf

--HG--
extra : rebase_source : cc23f08f422f25f2851404696e06e069c7936186
2017-10-19 02:28:37 +09:00
Sebastian Hengst 31bf3a1a42 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 4Lk5P5UYmTe
2017-10-24 11:52:35 +02:00
Yoshi Huang 26c9043304 Bug 1407498 - Don't query loadingprincipal in common case. r=baku
We queried 'loadingprincipal' attribute on the common call path, however
this should be queried if it's loaded by System Principal.

Also rename loadingprincipal to triggeringprincipal
2017-10-24 10:13:31 +08:00
Martin Stransky 798f390d6b Bug 1409493 - Load actual CSD config from Gtk+, r=jhorak
MozReview-Commit-ID: GVHGXEk4IN

--HG--
extra : rebase_source : 349fd047f87db10aa3a83404e49552336022d009
2017-10-17 21:19:48 +02:00
Martin Stransky b8ceb20909 Bug 1409493 - Implement CSD entries for Gtk+ LookAndFeel module, r=jhorak
MozReview-Commit-ID: CXsy9dhgMB9

--HG--
extra : rebase_source : 09265a59b17c612652ac048328681a8098c86846
2017-10-17 21:17:32 +02:00
Martin Stransky 8ac700b770 Bug 1409493 - Add CSD entries to LookAndFeel, r=jhorak
MozReview-Commit-ID: Fc9sGpRrT1w

--HG--
extra : rebase_source : 4f926780cd680f9a03adc691083fc109d9fa6c81
2017-10-17 21:12:21 +02:00
Botond Ballo 02ae35c9e1 Bug 1400238 - Notify TabParent when the GTK client offset changes. r=karlt
MozReview-Commit-ID: 1TacAhl6c2M

--HG--
extra : rebase_source : 5641d417a6245cc2f8027fd91032119f1b36d461
2017-10-18 13:29:47 -04:00
Masatoshi Kimura dbd92543c6 Bug 1313150 - Remove |weak| parameter from nsIMutableArray methods. r=froydnj
MozReview-Commit-ID: 7JoD4VYzZp3

--HG--
extra : rebase_source : 5db437f1c34608aa223916874d62b48c59baeae8
2017-10-21 23:53:02 +09:00
Gerald Squelart d2ed3d6312 Bug 1410252 - Convert 'WrapNotNull(new T(...' to 'MakeNotNull<T*>(...' - r=njn
Most cases where the pointer is stored into an already-declared variable can
trivially be changed to MakeNotNull<T*>, as the NotNull raw pointer will end
up in a smart pointer.

In RAII cases, the target type can be specified (e.g.:
`MakeNotNull<RefPtr<imgFrame>>)`), in which case the variable type may just be
`auto`, similar to the common use of MakeUnique.
Except when the target type is a base pointer, in which case it must be
specified in the declaration.

MozReview-Commit-ID: BYaSsvMhiDi

--HG--
extra : rebase_source : 8fe6f2aeaff5f515b7af2276c439004fa3a1f3ab
2017-10-20 18:25:33 +11:00
Botond Ballo 2c1a3530e6 Bug 1340415 - Ensure main-thread and async autoscrolling do not happen at the same time. r=kats
The two happening at the same time can lead to the APZ autoscroll being
cancelled due to APZ receiving a main-thread scroll offset update.

To achieve this:

  - The content process assumes APZ is handling the autoscroll until
    told otherwise.

  - If the parent process knows APZ won't handle an autoscroll, it
    tells the content process via its response to the Autoscroll:Start
    message. This covers all cases where APZ doesn't handle the
    autoscroll, except the case where APZCTreeManager itself rejects
    the autoscroll and it lives in the compositor process rather than
    the parent process.

  - If APZCTreeManager rejects an autoscroll and it lives in the
    compositor process, it sends an 'autoscroll-rejected-by-apz' message
    to the content process.

MozReview-Commit-ID: L62v4COai6W

--HG--
extra : rebase_source : bc4c6417e77461634263defb88e67ed5036c454e
2017-10-18 18:18:13 -04:00
Martin Stransky 64bb4e051b Bug 1186967 - ignore double-click on WM without _NET_WM_MOVERESIZE support, r=jhorak
MozReview-Commit-ID: 2Vs6i5leero

--HG--
extra : rebase_source : d8f2bbaf9ef9b2025478f029a68ee7e87e07de79
2017-10-17 09:50:18 +02:00
Sebastian Hengst 2592ce224a merge mozilla-central to autoland. r=merge a=merge 2017-10-20 11:45:03 +02:00
Sebastian Hengst bc6dddb88b merge autoland to mozilla-central. r=merge a=merge
MozReview-Commit-ID: BY4c5BIOF81
2017-10-20 11:37:54 +02:00
Stephen A Pohl bb7596b0b2 Bug 1406032: Ensure that popup windows (such as the hamburger menu window) are shown on top of the browser window on macOS. r=mstange 2017-10-19 23:42:23 -04:00
Mantaroh Yoshinaga a2c7cc72d9 Bug 1405210 - Part 3: Apply clang-format to added print dialog widget code. r=jimm
./mach clang-format --path widget/windows/nsPrintDialog*

MozReview-Commit-ID: T1WuQ41GAN

--HG--
extra : rebase_source : b95643e4f50ecd47ea00cf4ea6d18e09c0b69598
2017-10-19 11:04:50 +09:00
Mantaroh Yoshinaga acf3afca30 Bug 1405210 - Part 2: Move native printing dialog code to windows widget. r=jimm
This patch will
 * Move native print dialog code to the PrintDialogService of widget.
 * Toolkit call PrintDialogService instead of calling the native print dialog.
 * Change SetWindowText/CreateWindow to SetWindowTextW/CreateWindowW
   in order to treat localized string correctly.

MozReview-Commit-ID: DOgp3STaJ4t

--HG--
rename : toolkit/components/printingui/win/nsPrintDialogUtil.cpp => widget/windows/nsPrintDialogUtil.cpp
rename : toolkit/components/printingui/win/nsPrintDialogUtil.h => widget/windows/nsPrintDialogUtil.h
extra : rebase_source : 9b428f528156a70f5a127b1eeec60f6f593387a0
2017-10-19 11:04:30 +09:00
Mantaroh Yoshinaga bcd8f8c970 Bug 1405210 - Part 1: Add PrintDialogService to windows widget. r=jimm,mshal
In order to move print native dialog code to windows widget, this patch will
create skeleton of PrintDialogService to windows widget.
Toolkit code(i.e. nsIPrintingPrompotService) will call this PrintDialogService.

Note that this PrintingDialogService suppose running on main process, so we
should call this interface from main process(i.e. nsPrintingPromptService, not
nsPrintingProxy).

MozReview-Commit-ID: 3P6kac9I9W4

--HG--
extra : rebase_source : 5b5ecd104cf4cecd1b68a3d6d4b33aca9fea9548
2017-10-19 11:04:13 +09:00
Martin Stransky bfa8fde631 Bug 1364843 - Implement MOZ_GTK_HEADER_BAR* theme entries, r=jhorak,karlt
Based on patch by Andrew Comminos [:acomminos] <andrew@comminos.com>

MozReview-Commit-ID: DTVePe1R563

--HG--
extra : rebase_source : 23bea31b34ed95301f840726a1f70378764fdea4
2017-09-19 21:22:45 +02:00
Martin Stransky 984f2babc2 Bug 1364843 - Implement drawing and size query of MOZ_GTK_HEADER_BAR*, r=jhorak
Based on patch by Andrew Comminos [:acomminos] <andrew@comminos.com>

MozReview-Commit-ID: 2d8BgLyOS5u

--HG--
extra : rebase_source : ff4aa230b22a3ae478211330b09f239f36705e12
2017-09-19 21:15:12 +02:00
Martin Stransky 2c1a8317ac Bug 1364843 - Allow MOZ_GTK_HEADER_BAR* widget creation, r=jhorak
Based on patch by Andrew Comminos [:acomminos] <andrew@comminos.com>

MozReview-Commit-ID: 18U3GBrTyVW

--HG--
extra : rebase_source : 7a203d5c4d1856d24f08c2ea42ad4519d283ab73
2017-09-19 20:34:31 +02:00
Martin Stransky 089986546e Bug 1364843 - Implement GtkHeaderBar widgets at WidgetCache, r=jhorak
Based on patch by Andrew Comminos [:acomminos] <andrew@comminos.com>

MozReview-Commit-ID: HzzXDqE0s5n

--HG--
extra : rebase_source : d929e03d7ab84229101b9c11cdb35396547860e4
2017-09-19 18:20:48 +02:00
Martin Stransky 3af9407ecc Bug 1364843 - Added WidgetNodeType entries for GtkHeaderBar implementation, r=jhorak,jimm,karlt
Based on patch by Andrew Comminos [:acomminos] <andrew@comminos.com>

MozReview-Commit-ID: GA3CDhCeqfD

--HG--
extra : rebase_source : 0bdccafcfbd84475442503abb6b2e11b6670c37d
2017-09-19 18:24:13 +02:00
Sebastian Hengst ac57f6f7df merge mozilla-central to autoland. r=merge a=merge 2017-10-19 11:52:58 +02:00
Sebastian Hengst bf793df477 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: HasKw28SN45
2017-10-19 11:26:22 +02:00
Stephen A Pohl 359def9977 Bug 1373581: Make transition into and out of native fullscreen smoother on macOS. r=mstange 2017-10-18 21:50:47 -04:00
Makoto Kato 94c41d978f Bug 1408847 - nsLookAndFeel::GetFontImpl should return Roboto. r=snorp
Our minimum requirement is api-16+ and ICS or later's default font is Roboto.  But nsLookAndFeel::GetFontImpl still returns Droid Sans.  We should return Roboto.

MozReview-Commit-ID: 5VNzQXXp4fa

--HG--
extra : rebase_source : b045c1580faa3204f26d3aa0be89700f2b1abb57
2017-10-16 17:38:19 +09:00
Jan Horak 165fab2f85 Bug 1381815 - fixing dimensions of radio and checkbox for GTK 3.20+; r=karlt
In the GTK < 3.20 the size of radio and checkbox toggle is determined by indicator
spacing and indicator size. By  GTK 3.20+ it is replaced by standard box model
(padding, margin, border). The patch fixes that while keeping the functionality
for older GTK. The values are also cached by similar way as scrollbar metrics
are cached now.

The focus is no longer rendered by GTK but by Mozilla code, so the extra
size for toggles has been removed from GetExtraSizeForWidget and toggles
no longer render focus indicator.

MozReview-Commit-ID: 1Wg5AgHy1Vz

--HG--
extra : rebase_source : 81437f45b7d32555942d21fccc9de4a561d85111
2017-10-10 13:35:56 +02:00
Tom Ritter 37b20d345d Bug 1409619 Resolve signed/unsigned comparison warning by fixing function definitions to be signed in widget/windows/TSFTextStore r=jimm
The functions changed are given signed arguments (that are converted to unsigned).
Changing them to signed resolves the warnings and preserves the original values.

MozReview-Commit-ID: BxIAECFiuQR

--HG--
extra : rebase_source : c48cef46f3ad5a060ad1f33d1c97744bfa8a82d7
2017-10-17 23:37:31 -05:00
Tom Ritter 6d7c28697b Bug 1409620 Move definition of inline function from .cpp to .h in widget/windows/KeyboardLayout r=jimm
inline functions are supposed to be declared in the header file, so the compiler can inline them.
gcc complains about this, but clang/msvc apparently do not.

We also needed to move the DeadKey struct and class into the header, as the function calls a
method on the DeadKey class, and you can't do that on a forward declared class.

MozReview-Commit-ID: 8NxP59AXuZi

--HG--
extra : rebase_source : 9fd74d2c571bdeb4244cb63baf508946a2f19aa6
2017-10-17 23:58:37 -05:00
Brendan Dahl d50e954d56 Bug 1408220 - Fix the headless windows scroll multiplier. r=jrmuizel
Fixes test_group_wheelevents.html

--HG--
extra : rebase_source : 1f0577d4a2d14de231a8fc6587902bc76ddb8e6f
2017-10-11 13:28:50 -07:00
Masayuki Nakano 8830e5ebb9 Bug 1409656 - Append log of ContentCacheInParent::RequestIMEToCommitComposition() in the latest 2 sets of composition events to app notes of crash report when ContentCacheInParent::OnEventNeedingAckHandled() meets unexpected state and crash itself r=m_kato
This is a follow up patch of bug 1408086.  The previous patch starts to append
log of 2 sets of composition events to app notes of crash report when
ContentCacheInParent::OnEventNeedingAckHandled() meets unexpected state and
crash itself.  However, now, we know the unexpected state occurs when TabParent
receives eCompositionCommitRequestHandled message from its remote process.
The event comes when ContentCacheInParent::RequestIMEToCommitComposition()
returns true.  So, we need to know what occurs in the method before the crash.

This patch defines each case of RequestIMEToCommitComposition() with an enum
class, RequestIMEToCommitCompositionResult and make
RequestIMEToCommitComposition() append one of its value to the array.
Then, ContentCacheInParent discards unnecessary log of this when it discards
log of old composition events.  Finally, appends the log to the app notes of
crash report.

MozReview-Commit-ID: 9sJyl4SvUXu

--HG--
extra : rebase_source : f7e90a157d3819523d3d8932d9f8af5d94e2db1f
2017-10-19 00:13:42 +09:00
Sebastian Hengst ffcd2ce160 merge mozilla-central to autoland. r=merge a=merge on a CLOSED TREE
--HG--
extra : amend_source : ef359be373a97cad5a91f0150a46add4c3d8ab7c
2017-10-18 15:54:23 +02:00
Sebastian Hengst f9b5b9b40c merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 790IXj5MZ4f
2017-10-18 11:48:34 +02:00
Tom Ritter 14365dc63c Bug 1404035 Address an unused-result warning in widget/windows/KeyboardLayout.cpp r=jimm
The intention of these macros here is merely to log a warning and enable
a developer to notice the inconsistency. Pass the result to Unused.

MozReview-Commit-ID: 9IOuwQ3InVm

--HG--
extra : rebase_source : 83f265a5e042dee0c2ad66d45b67906f1b0422aa
2017-10-02 11:24:53 -05:00
Masayuki Nakano 16fd3a84a4 Bug 143038 Make users can scroll contents horizontally with vertical wheel operation with a modifier r=smaug
This patch declares a new default action, "horizontal scroll", this scrolls
content horizontally with deltaY of wheel events and ignores deltaX and deltaZ.
This is used for default action with Shift key in default setting except on
macOS. On macOS, legacy mouse's vertical wheel operation with Shift key causes
native horizontal wheel event.  Therefore, we don't need to use this new
default action on macOS.  Additionally, old default action with Shift key,
navigating history, is moved to with Alt key.  This makes same settings between
macOS and the others.  So, this is better for users who use macOS and another
OS and web app developers who check wheel events only on macOS or other
platform(s).

For simpler implementation, default action handlers moves deltaY values to
deltaX values temporarily *only* while they handle wheel events.  This is
performed by AutoWheelDeltaAdjuster and restored after handling it
automatically.

So, in other words, even if default action is "horizontal scroll", web apps
receives wheel events whose deltaY is not zero but its content will be
scrolled horizontally.  This is same as Chromium, so, this behavior shouldn't
cause any incompatible behavior with it.

MozReview-Commit-ID: E4X3yZzLEAl

--HG--
extra : rebase_source : e20d854c6b0a181ad4c9e7304bd9ad14256481ff
2017-10-05 01:12:35 +09:00
Stephen A Pohl 3814ff1247 Bug 1408701: Ensure that we continue to show dark scrollbar thumbs on macOS 10.13 when scrollbars are always displayed. r=mstange 2017-10-17 14:35:31 -04:00
Sebastian Hengst 32f7c8fec3 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 1h3kZyrtqSt
2017-10-17 11:45:16 +02:00
Phil Ringnalda 838e056c79 Backed out 4 changesets (bug 1395497) for Linux failures in test_conformance__textures__misc__texture-npot-video.html
Backed out changeset c99dadd2df7d (bug 1395497)
Backed out changeset 4e3dd1e01908 (bug 1395497)
Backed out changeset c9fbcd8bd4cb (bug 1395497)
Backed out changeset a8503893cc85 (bug 1395497)

MozReview-Commit-ID: C324dGFTpLb
2017-10-16 19:13:56 -07:00
James Willcox ec1aa0da64 Bug 1395497 - Regenerate JNI binding r=me
MozReview-Commit-ID: D1zqIMsH1fH
2017-10-16 19:33:38 -05:00
Brendan Dahl affa6b60d0 Bug 1399956 - Support synthesized touch events. r=jrmuizel
Fixes test_group_pointerevents.html

MozReview-Commit-ID: 7RPkiHtx0rj
2017-10-16 16:15:45 -07:00
Brendan Dahl 357f877106 Bug 1399956 - Support synthesized scroll events. r=jrmuizel
Fixes test_bug1151667.html

MozReview-Commit-ID: 8lCHNTA8zIL
2017-10-16 16:15:45 -07:00
Brendan Dahl 45352c7de8 Bug 1399956 - Default to san-serif for headless font. r=jrmuizel
Fixes problem with the initial computed value of font-family
being empty and not matching the later value in
test_value_storage.html.

MozReview-Commit-ID: HOHvMZPP1GD
2017-10-16 16:15:45 -07:00
Brendan Dahl 18db282eaa Bug 1399956 - Add logging to headless widget. r=jrmuizel
Use similar logging to the various nsWindows to make
debugging easier.

MozReview-Commit-ID: 5AsaehQsOtA
2017-10-16 16:15:45 -07:00
Brendan Dahl 72ed58e8b8 Bug 1399956 - Add basic hard coded GTK theme in headless. r=jrmuizel
Many tests rely on the minimum size of widgets to
be set. Also, the precise size seems to matter for some
tests that have hard coded offsets.

MozReview-Commit-ID: BglZD1cKdY9
2017-10-16 16:15:45 -07:00
Brendan Dahl d9e05f42d9 Bug 1399956 - Support synthesized mouse events. r=jrmuizel
Fixes:
 - test_pointerlock-api.html
 - test_group_mouseevents.html

MozReview-Commit-ID: 82RKzjJv9X1
2017-10-16 16:15:45 -07:00
Brendan Dahl f2ed681b19 Bug 1399956 - Track top level windows in headless mode for window ordering. r=jrmuizel
This better emulates a window manager and triggers the
required activated/deactivated events on the proper windows as
they are closed or hidden.

MozReview-Commit-ID: 1A2JTp8i4VE
2017-10-16 16:15:45 -07:00
Kris Maglione c2da8a30a3 Bug 1404198: Part 2d - Switch to NS_NewTimer* in widget. r=njn
MozReview-Commit-ID: G4S8q9DYPS0

--HG--
extra : rebase_source : 9c6da05bf2ef3cfee551879879330a85688b1f5d
2017-10-15 23:12:54 -07:00
Alex Gaynor e6c660f838 Bug 1319423 - Part 3 - Change the print IPC to not require the content process to create a temporary file; r=bobowen
MozReview-Commit-ID: GLhTbfREk0n

--HG--
extra : rebase_source : f8f94b222fffa16ab973d07c940bfd64b5407440
2017-10-03 16:34:18 -04:00
Alex Gaynor 41d8032290 Bug 1319423 - Part 1 - Introduce DrawEventRecorderPRFileDesc to allow switching away from std::ofstream in printing; r=jrmuizel
MozReview-Commit-ID: 1gn8J2fhejS

--HG--
extra : rebase_source : 02b6224c2788964c375092e58174efbacfdbdba5
2017-10-03 12:29:15 -04:00
Sebastian Hengst 373bdd8602 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 9adaYBJ4tlo
2017-10-13 23:37:41 +02:00
sotaro e037507a09 Bug 1391262 - Do not use remote LayerManager when its initialization fails r=dvander 2017-10-13 23:32:36 +09:00
Stone Shih f6e7906317 Bug 1407839 - Various test permafails due to IsPointerEventEnabled(). f=RyanVM. r=smaug.
Push pointer event pref before testing test_assign_event_data.html and remove redundant assertions since the pushed pref will be restore after testing.

MozReview-Commit-ID: 22nTMLGoMFj
2017-10-12 09:25:10 +08:00
Mantaroh Yoshinaga b356b2dd1c Bug 1185236 - Shorten print job name on Cocoa. r=mstange
Gecko set job using by PMPrintSettingsSetJobName regardless of job name length.
But IPP allow job-name length up to 255 bytes. (RFC 2911, Section 4.3.1)

This patch will shorten print job name. It is workaround until fixed the
Core Printing[1].

[1] https://openradar.appspot.com/34428043

MozReview-Commit-ID: 6nCwZuD43O9

--HG--
extra : rebase_source : c9c3830890f1f4d84e148fbe281589c23e7803d2
2017-10-13 15:48:40 +09:00
Mantaroh Yoshinaga bea6d05b62 Bug 1185236 - Shorten print job name when GTK version is older than 3.18.2. r=karlt
Since GTK 3.18.2, GTK allows setting job name with more than 255 bytes.
As result, CUPS received the IPP error. (RFC 2911, Section 4.3.1)

This patch will shorten print job name, if runtime GTK version is older than 3.18.2.

MozReview-Commit-ID: EfB87Bvo6hX

--HG--
extra : rebase_source : a070e99c783c471a7bf7d00efb3cc997ff617a5e
2017-10-13 15:48:39 +09:00
Sebastian Hengst f7efb5fc2c Merge mozilla-central to mozilla-inbound. r=merge a=merge on a CLOSED TREE 2017-10-12 12:03:15 +02:00
Nicholas Nethercote c0a1cf9b49 Bug 1407103 - Convert wstring attributes to AString in widget/nsIPrint*.idl. r=bobowen.
This avoids a lot of mismatches between nsAString and char16_t*, thus removing
many getter_Copies() and ToNewUnicode() and get() calls, and generally making
things simpler.

Note: the patch removes GetDefaultPrinterNameFromGlobalPrinters() by simply
inlining it at its two callsites, which is easy with the changed types.

--HG--
extra : rebase_source : 9ab9b3694f093fc9b22c7f8e2394a98674d76c11
2017-10-09 10:08:09 +11:00
Emilio Cobos Álvarez e808575ca4 Bug 1406631: Remove the color-picker-available system metric. r=xidorn
All our widgets support it with a constant true.

MozReview-Commit-ID: JMEItUsxYWq

--HG--
extra : rebase_source : e7e0a3f83001813239338bc5b3895252e1fb3ea6
2017-10-07 14:06:44 +02:00
Emilio Cobos Álvarez 63db5c2845 Bug 1408838: Remove -moz-physical-home-button system metric. r=xidorn
MozReview-Commit-ID: A7nZdj6GQtM

--HG--
extra : rebase_source : b721a9e21e935fdb08bb0b0342d447d89509986b
2017-10-16 08:57:59 +02:00
Masayuki Nakano 929e66153e Bug 1408086 - Append log of the latest 2 sets of composition events when ContentCacheInParent::OnEventNeedingAckHandled() meets unexpected state and crash itself r=m_kato
We have a lot of crash reports in OnEventNeedingAckHandled() due to unexpected
state (hit MOZ_RELEASE_ASSERT). However, it's unclear what occurs and we're not
sure there are how many cases to crash because the stack trace is too short
because the method is called when TabParent receives event handled message from
the remote process. I.e., it doesn't show what happens immediately before the
crash.

This patch puts 2 sets of composition events to app notes of crash report when
it needs to crash.  This *might* make damage to the performance.  If so, after
fixing the crashes, we should back this out.  Fortunately, we have a lot of
reports from either Nightly or Beta.

MozReview-Commit-ID: 9tDrEIf72MG

--HG--
extra : rebase_source : 523c183466740e08d6c8cc3836b6b52310c1e53a
2017-10-13 02:50:47 +09:00
Sebastian Hengst aa7c8d6587 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-10-09 23:58:00 +02:00
Ryan Hunt 979b5671a6 Bug 1407001 - Don't reset compositors for composited changed callback when GPUProcessManager is null. r=lsalzman
MozReview-Commit-ID: 4E31bt3Rzkz

--HG--
extra : rebase_source : 84a18ffcc77f37220284679c1dbb916a25524d31
2017-10-09 12:49:53 -05:00
Sebastian Hengst aa78440a09 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: EE6DcCgHufi
2017-10-09 11:19:20 +02:00
Nicholas Nethercote 8a68e6fb83 Bug 1403868 (part 4) - Reduce tools/profiler/public/*.h to almost nothing in non-MOZ_GECKO_PROFILER builds. r=mstange.
Currently the Gecko Profiler defines a moderate amount of stuff when
MOZ_GECKO_PROFILER is undefined. It also #includes various headers, including
JS ones. This is making it difficult to separate Gecko's media stack for
inclusion in Servo.

This patch greatly simplifies how things are exposed. The starting point is:

- GeckoProfiler.h can be #included unconditionally;

- everything else from the profiler must be guarded by MOZ_GECKO_PROFILER.

In practice this introduces way too many #ifdefs, so the patch loosens it by
adding no-op macros for a number of the most common operations.

The net result is that #ifdefs and macros are used a bit more, but almost
nothing is exposed in non-MOZ_GECKO_PROFILER builds (including
ProfilerMarkerPayload.h and GeckoProfiler.h), and understanding what is exposed
is much simpler than before.

Note also that in BHR, ThreadStackHelper is now entirely absent in
non-MOZ_GECKO_PROFILER builds.
2017-10-04 09:11:18 +11:00
Stephen A Pohl eee52e5492 Bug 1403432: Show window titles when the inspector is launched in windowed mode. r=mstange 2017-10-08 20:34:53 -04:00
Nicholas Nethercote d225f7151b Bug 1400460 - Rename nsIAtom as nsAtom. r=hiro.
(Path is actually r=froydnj.)

Bug 1400459 devirtualized nsIAtom so that it is no longer a subclass of
nsISupports. This means that nsAtom is now a better name for it than nsIAtom.

MozReview-Commit-ID: 91U22X2NydP

--HG--
rename : xpcom/ds/nsIAtom.h => xpcom/ds/nsAtom.h
extra : rebase_source : ac3e904a21b8b48e74534fff964f1623ee937c67
2017-10-03 09:05:19 +11:00
Sebastian Hengst 5d61e2eec8 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: JDCYKq7yKwb
2017-10-07 10:45:11 +02:00
Sebastian Hengst b834f0d177 merge autoland to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 7Ez95T2ivfR
2017-10-07 10:37:39 +02:00
Kyle Machulis 6a4d37f8bb Bug 1403819 - Remove nsIDOMHTMLCanvasElement; r=bz
Removes the XPCOM interface for nsIDOMHTMLCanvasElement, replacing it
with binding class usage.

MozReview-Commit-ID: DQJhqGlY8U6
2017-10-06 10:49:26 -07:00
Tom Ritter 349f097743 Bug 1403698 Address delete-non-virtual-dtor warnings r=froydnj
MozReview-Commit-ID: 44XiqegImiT

--HG--
extra : rebase_source : 52ddc3caa3243aaef9e2397b4a28e318da101a8c
2017-10-06 11:27:35 -05:00
Louis Chang 5f569b5d2c Bug 1404770 Part 1 - Return device pixels instead of css pixels in GetMinimumWidgetSize. r=mats
MozReview-Commit-ID: 4DenoFuKb12

--HG--
extra : rebase_source : a351438f3002eaa255bf6c1c11ef749f7804060f
2017-10-05 16:49:08 +08:00
John Lin 69fb7ed20e Bug 1403849 - p2: add JNI method for native code to query tunneled playback support. r=esawin
MozReview-Commit-ID: 29HgjCanjGP

--HG--
extra : rebase_source : a9e388883a1e561fbbb4a58f97957662b657028e
2017-09-29 18:04:20 +08:00
Wes Kocher 8c2d84a198 Backed out changeset 959244bbe99d (bug 1403819) for windows build failures in TaskbarPreview.cpp a=backout CLOSED TREE
MozReview-Commit-ID: 6nOitwKk7JX

--HG--
extra : amend_source : 3eb1aecc07ab474fe3e1b5d9157bcb751a2d89d4
2017-10-05 17:43:43 -07:00
Kyle Machulis 3ea37c285d Bug 1403819 - Remove nsIDOMHTMLCanvasElement; r=bz
Removes the XPCOM interface for nsIDOMHTMLCanvasElement, replacing it
with binding class usage.

MozReview-Commit-ID: DQJhqGlY8U6

--HG--
extra : rebase_source : a33146a22ee356a0840bb9fef82d51b2b315f6d7
2017-09-28 12:17:07 -07:00
Stone Shih 6ac2c9bb8f Bug 1405669 - [Pointer Event] Avoid creating temporarily variable when serializing WidgetPointerHelper. r=masayuki
MozReview-Commit-ID: 6PdO2RjUXWN

--HG--
extra : rebase_source : 2b0f3ac3cf187fb3e960ff92fd2fd8ce95d8cade
2017-09-21 16:17:30 +08:00
Sebastian Hengst cade0f0bf3 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: CsjtXJM2vcs
2017-10-05 10:55:31 +02:00
Wes Kocher 9408094d14 Merge m-c to inbound, a=merge
MozReview-Commit-ID: FnOGO7LJHCB
2017-10-04 16:45:36 -07:00
Wes Kocher d8985b6e57 Merge inbound to central, a=merge
MozReview-Commit-ID: IUFdbLdYFhX
2017-10-04 16:37:59 -07:00
James Willcox 59bfaa0f09 Bug 1402461 - Improve user input detection for focus changes in Fennec r=jchen
Differential Revision: https://phabricator.services.mozilla.com/D94

MozReview-Commit-ID: 9VyoskwRrO1
2017-10-04 17:42:24 -05:00
Masayuki Nakano 5726ada8a0 Bug 1404206 - Part 2: Make TSFTextStore and IMEHandler handle "mozAwesomebar" inputmode value. r=m_kato, r=gijs
When "mozAwesomebar" is set to inputmode value, that means that the Smart
Location Bar gets focus.  In that case, we should notify IME of input scopes
as "URL" because on-screen keyboard for URL has some useful additional keys
but they are not hindrances even when users want to type non-URL text.

On the other hand, MS-IME for Japanese and Google Japanese Input changes their
open state to "closed" if we notify them of URL input scope.  A lot of users
complain about this behavior.  Therefore, we should notify only them of
"Default" input scope even when "mozAwesomebar" has focus.

MozReview-Commit-ID: DIgqpR7TXQx
2017-09-29 15:15:14 +09:00
Tom Ritter c6c164aef4 Bug 1404147 Make string index and lengths unsigned to resolve signed/unsigned comparison warning r=jimm
MozReview-Commit-ID: Cpo5Gd1puzd

--HG--
extra : rebase_source : 0f47604366d2cfd8356c4d76c6dccdb03a42b0fe
2017-09-28 18:01:58 -05:00
Sebastian Hengst b29f365446 Backed out changeset f70d6fcdb760 (bug 1406631) for failing color related reftests like layout/reftests/writing-mode/ua-style-sheet-input-color-1.html on Android. r=backout 2017-10-07 20:08:12 +02:00
Emilio Cobos Álvarez b7befbe6b5 Bug 1406631: Remove the color-picker-available system metric. r=xidorn
All our widgets support it with a constant true.

MozReview-Commit-ID: JMEItUsxYWq

--HG--
extra : rebase_source : a2661dce1ac191fdf098e631cd7878f0215643d5
2017-10-07 14:06:44 +02:00
Sebastian Hengst ffb949f627 merge mozilla-central to autoland. r=merge a=merge 2017-10-09 11:23:26 +02:00
Tom Ritter f49999833d Bug 1406380 Fix -Wreorder warnings r=njn
MozReview-Commit-ID: 7Zh2pvAMpXR

--HG--
extra : rebase_source : 5052112ad66a66cd2974c4140c3fd430dcaa3adc
2017-10-09 01:36:36 -05:00
Catalin Badea f8162c4bfd Bug 651120 - Remove index argument from content removed/appended/inserted notifications. r=peterv 2017-10-03 11:09:08 +01:00
Wes Kocher 382a7d90d6 Merge inbound to central, a=merge
MozReview-Commit-ID: CvJ9hmTQBcR
2017-10-02 16:22:37 -07:00
Eugen Sawin f2591d27c0 Bug 1316934 - [3.1] Add JNI for AudioManager properties. r=snorp 2017-10-02 17:56:17 +02:00
Tom Ritter 411be7e1c2 Bug 1403825 Resolve sequence-point warning in widget/windows/TSFTextStore.cpp r=jimm
This warning is saying the operation may be undefined because the value of
->left is not guarenteed to be the same because of undefined order of operations.

Fortunately, this seems like a typo and we actually meant to assign ->bottom

MozReview-Commit-ID: H5G8fnDwIJP

--HG--
extra : rebase_source : cd6a2463a90b6675b12bb8255fe605937771bee8
2017-09-28 00:33:11 -05:00
Louis Chang 2c23f067ff Bug 1400050 Part 1 - Clamp the width/height of checkbox/radio to the smaller one and then center it on Android. r=mats
MozReview-Commit-ID: HoXxXgDQoHJ

--HG--
extra : rebase_source : 5aecc45a8647c994956af2a401416a5dbaadb24f
2017-10-02 16:04:24 +08:00
David Parks 0601f5b64f Bug 1339259 - Hold Windows AudioSession object while recycling registration. r=jimm
When we UnregisterAudioSessionNotification in response to an OnSessionDisconnected
message, we unintentionally decrement the refcount before restoring it. This KungFu
grips us for the duration of that operation.

--HG--
extra : rebase_source : 7c7e786064811d040d23741c143d9eef04edb5e0
2017-09-28 14:28:39 -07:00
Sebastian Hengst 2980334050 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 6My6YCrpLe9
2017-10-01 11:37:14 +02:00
Stephen A Pohl ca431cdea8 Bug 1404664: Restore pinch zoom gesture support on macOS. r=mstange 2017-09-30 23:30:01 -04:00
Lee Salzman 83b1549723 Bug 1404323 - limit WindowSurfaceX11Image::Commit to clip bounds. r=gankro
MozReview-Commit-ID: 55GbZ2EHdbQ
2017-09-29 23:59:40 -04:00
Markus Stange 63baf3259d Bug 1400057 - Override _wantsFloatingTitlebar to return NO in order to avoid titlebar glitches on 10.13. r=spohl
MozReview-Commit-ID: 4HffFOSqWxl

--HG--
extra : rebase_source : 12fcd4a78b16b2bc7cd8ad371054406ffa597b4e
2017-09-29 16:49:30 -04:00
Masayuki Nakano 7f281b641d Bug 1403026 - Make IMEStateManager release all string buffer of its static members at XPCOM shutdown r=smaug
IMEStateManager has a static instance of InputContext which has some nsString
instances.  Then, their members will be released after XPCOM shutdown and
that is detected as unexpected destruction.

Therefore, IMEStateManager should release them by itself at XPCOM shutdown.
Using nsTSubstring::SetCapacity(0) is the simplest way to release only the
string buffers.

MozReview-Commit-ID: LMrQxQF9xPn

--HG--
extra : rebase_source : 7cbaf19b76be8db083c10270d0ee436a1c061ea2
2017-09-28 17:31:29 +09:00
Wes Kocher 1674eb3e4f Merge inbound to m-c a=merge
MozReview-Commit-ID: 7zOjePOWzOM
2017-09-28 16:56:44 -07:00
Milan Sreckovic 848f9f69d4 Bug 1403945: Add utility functions to recognize OS X 10.13. r=mstange
MozReview-Commit-ID: Bw0jkyWrIzD

--HG--
extra : rebase_source : bf8bff4e9bf7892efa3f88565af0489257949958
2017-09-28 10:21:10 -04:00
Jim Chen f281c874c0 Bug 1404144 - 2. Move start child process JNI call to GeckoProcessManager; r=rbarker
Avoid going through GeckoAppShell and move the start child process JNI
call directly to GeckoProcessManager.

MozReview-Commit-ID: KU62TiHVQJX

--HG--
extra : rebase_source : 0e8546da502257e1c59bc00b79f50c79a314f3e6
2017-10-04 22:28:43 -04:00
Wes Kocher 61c098eae7 Merge inbound to m-c a=merge CLOSED TREE
MozReview-Commit-ID: 3pMHYV9oXLm

--HG--
rename : dom/base/nsReferencedElement.cpp => dom/base/IDTracker.cpp
rename : dom/base/nsReferencedElement.h => dom/base/IDTracker.h
2017-09-27 16:51:49 -07:00
Stephen A Pohl 902da233bf Bug 1399086 - Refactor comments and remove gesture support code for macOS 10.7. r=mstange 2017-09-27 15:21:42 -04:00
Stephen A Pohl 9579b1395a Bug 1399086: Ensure that swipes on magic mice and back/forward buttons on other mice work as expected on macOS after the SDK switch to 10.11. r=mstange 2017-09-27 15:21:35 -04:00
Ryan Hunt c6587123d7 Disable the GPU process in xpc-shell after we kill it to prevent extra restarts. (bug 1402500, r=dvander)
MozReview-Commit-ID: 3SNNGIfvTOr

--HG--
extra : rebase_source : f07c122e9ff8fd55f4646073ca0d35b1dd58e8fc
2017-09-26 10:26:44 -04:00
Mats Palmgren d9d785d520 Bug 1398520 part 4 - Rename nsFormControlFrame to nsCheckboxRadioFrame. r=dholbert
MozReview-Commit-ID: 9nwikVD1cd9

--HG--
rename : layout/forms/nsFormControlFrame.cpp => layout/forms/nsCheckboxRadioFrame.cpp
rename : layout/forms/nsFormControlFrame.h => layout/forms/nsCheckboxRadioFrame.h
2017-09-27 14:12:00 +02:00
Jonathan Watt f3601e8230 Bug 1374110 - Remove magnifyWithEvent and related code. r=mstange
MozReview-Commit-ID: 2FjZ5vo6KyB
2017-09-07 16:00:33 +01:00
Nicholas Nethercote dfd3b7e7aa Bug 1400459 (part 2) - Devirtualize nsIAtom. r=heycam.
This patch merges nsAtom into nsIAtom. For the moment, both names can be used
interchangeably due to a typedef. The patch also devirtualizes nsIAtom, by
making it not inherit from nsISupports, removing NS_DECL_NSIATOM, and dropping
the use of NS_IMETHOD_. It also removes nsIAtom's IIDs.

These changes trigger knock-on changes throughout the codebase, changing the
types of lots of things as follows.

- nsCOMPtr<nsIAtom> --> RefPtr<nsIAtom>

- nsCOMArray<nsIAtom> --> nsTArray<RefPtr<nsIAtom>>
  - Count() --> Length()
  - ObjectAt() --> ElementAt()
  - AppendObject() --> AppendElement()
  - RemoveObjectAt() --> RemoveElementAt()

- ns*Hashtable<nsISupportsHashKey, ...> -->
  ns*Hashtable<nsRefPtrHashKey<nsIAtom>, ...>

- nsInterfaceHashtable<T, nsIAtom> --> nsRefPtrHashtable<T, nsIAtom>
  - This requires adding a Get() method to nsRefPtrHashtable that it lacks but
    nsInterfaceHashtable has.

- nsCOMPtr<nsIMutableArray> --> nsTArray<RefPtr<nsIAtom>>
  - nsArrayBase::Create() --> nsTArray()
  - GetLength() --> Length()
  - do_QueryElementAt() --> operator[]

The patch also has some changes to Rust code that manipulates nsIAtom.

MozReview-Commit-ID: DykOl8aEnUJ

--HG--
extra : rebase_source : 254404e318e94b4c93ec8d4081ff0f0fda8aa7d1
2017-09-26 08:33:21 +10:00
Wes Kocher b3c0b118ec Backed out 3 changesets (bug 335545) for asan failures in test_bug1123480.xul a=backout
Backed out changeset 25a686779a94 (bug 335545)
Backed out changeset b83ddb70c8b5 (bug 335545)
Backed out changeset ea69ee15ed90 (bug 335545)

MozReview-Commit-ID: LkJgt3eSs2J
2017-09-26 15:26:07 -07:00
Rob Wu d8350dcc59 Bug 335545 - Count FD instead of looking for clipboardcache in test_bug1123480.xul r=mstange
- Count open file descriptors instead of testing the existence of a file
  (because the clipboard is now only reachable through file descriptors,
  and not through a file path).

- Use a fixed string instead of a random string. The previous way of
  generating a string was non-deterministic, and there was a very small
  chance that the generated string was not large enough to trigger the
  cache-to-disk-mode.

MozReview-Commit-ID: KOkYOm280Oh

--HG--
extra : rebase_source : 32f1eb0c5beb4f8ebb1728bda481ded21247e0ec
2017-09-21 14:17:27 +02:00
Rob Wu 81c80f8357 Bug 335545 - Store clipboard data in memory XOR file r=mstange
Ensure that only DataStruct::mData + mDataLen, XOR
DataStruct::mCacheFD is used.
(Previously it was possible that all of these members were populated,
 which is a waste of memory.)

The effect of this change is visible when SetTransferData is called
multiple times with the same flavor, but with one below the threshold
for storing in-memory, and the other above (=store in a file).

MozReview-Commit-ID: 4UlkKAYsjf

--HG--
extra : rebase_source : fff484301dc87f12685575084993b6bf877f9a9b
2017-09-03 03:21:45 +02:00
Rob Wu 764aecbcc4 Bug 335545 - Use nsAnonymousTemporaryFile for clipboard cache r=mstange
The cache file is never directly exposed to consumers of DataStruct,
so it does not make sense to keep the clipboardcache file around
forever.

The only change in this commit is to switch from using a filename to
using a file descriptor. In the destructor, the FD is explicitly closed
(which releases the file data).  nsAnonymousTemporaryFile takes care
of removing the file when the destructor is not called (e.g. crashes).

Previously, the clipboard cache was stored in a file called:
TmpD/clipboardcache-N

As of this commit, the clipboard cache is stored at:
TmpD/mozilla-temp-randomN (macOS and Linux)
TmpD/mozilla-temp-files/mozilla-temp-randomN (Windows)
(see xpcom/io/nsAnonymousTemporaryFile.{h,cpp} for more details)

To verify that these files are really gone:
1. Create a document with 500k+ characters, open it in Firefox.
2. Copy its content - this will trigger the clipboard cache.
3. Look for the open file descriptor of the deleted file:
   ( macOS and Linux: )
   lsof +L1 | grep mozilla-temp
4. Copy anything (under the 500k threshold), or quit/kill Firefox.
5. Repeat step 3 and observe that the number of file descriptors
   has decreased.

MozReview-Commit-ID: 85GlKQrNUl5

--HG--
extra : rebase_source : b0c6e9540e53ad5e713a9db55f3001d7f53c308a
2017-09-03 02:29:10 +02:00
Wes Kocher 47b3660c80 Merge m-c to inbound, a=merge
MozReview-Commit-ID: 8wTTCUkrY2i
2017-09-25 16:43:51 -07:00
Nicholas Nethercote bff3932f55 Bug 1402743 - Remove nsIDOMWindowUtils::getCursorType(). r=bkelly.
It has no users in mozilla-central or comm-central. This also lets us remove
nsBaseWidget::GetCursor().

--HG--
extra : rebase_source : 3875ce37c78f82285c4e5dbd8133e9ae3dafa0de
2017-09-25 11:46:07 +10:00
Nicholas Nethercote 3aa25724fe Bug 1402255 - Change nsIBaseWindow::title from wstring to AString. r=janv.
Because nsAString is nicer to work with than char16_t*. The patch relatedly
changes nsIEmbeddingSiteWindow::title and nsIWindowMediator::updateWindowTitle
as well.

--HG--
extra : rebase_source : 0bf332dec3e09af6c39c676f8795b368768a6046
2017-09-25 13:10:51 +10:00
Stephen A Pohl 83a1ac4bee Bug 1402577: Display titles in titlebar on macOS when the native titlebar is in use. r=mstange 2017-09-24 21:02:32 -04:00
Chris Peterson 210c7f9690 Bug 870698 - Part 9: Replace Assign(NS_LITERAL_STRING("")) with AssignLiteral(u""). r=erahm
The NS_LITERAL_STRING macro creates a temporary nsLiteralString to encapsulate the char16_t string literal and its length, but AssignLiteral() can determine the char16_t string literal's length at compile-time without nsLiteralString.

MozReview-Commit-ID: 6vgQiU8zN3o

--HG--
extra : rebase_source : 1b536b92ef43f610db057ace6f108620e8d8b4d5
extra : source : 336e21386d5eeb16f1c9893c29377f23b67cc4b0
2017-09-06 01:43:13 -07:00
Chris Peterson 45aa2a8e8e Bug 870698 - Part 2: Replace Append("") with AppendLiteral(""). r=erahm
MozReview-Commit-ID: CrkIP4iHP1U

--HG--
extra : rebase_source : 5dc4e91a3f1860773c199f1abf3f66479218834a
extra : intermediate-source : ba51cc79847f2b43ba616f4a5d2bbc6958ca9f6d
extra : source : 1fda2fa990cc918c748ffa14fcc5dbe13fe3bdc3
2017-09-03 22:14:11 -07:00
Chris Peterson 9f4c1f5278 Bug 870698 - Part 1: Replace Assign("") with AssignLiteral(""). r=erahm
MozReview-Commit-ID: A0u9PP49OW3

--HG--
extra : rebase_source : 7d5286959f510eb4b7df1b7e32d5b9b58719c48b
extra : intermediate-source : f552b4a78236c42bc09030b3eb008725a3edb9c8
extra : source : 26ac4a1014f6661a70e3bf9f552407e12c2c3981
2017-09-03 22:12:56 -07:00
sotaro abf683608c Bug 1294788 - Disable AssumeThemePartAndStateAreTransparent() on high contrast mode since Win8.1 r=jrmuizel
The problem happened only on themed widget. The problem was triggered by Bug 888870. It just added Windows 8.1 support. When high contrast mode was enabled on Win 10, background color problem happend on themed widgets. There were 2 patterns.
- After hover the menu item, its background color remained highlighted
- After hover the menu item, its background color became black

From it, the problem seemed to be caused by background color drawing of themed widgets. nsNativeThemeWin::DrawWidgetBackground() does the background color drawing. AssumeThemePartAndStateAreTransparent() controls skipping background color drawing of themed widgets. If AssumeThemePartAndStateAreTransparent() was removed, the problem was addressed. From it, how DrawThemeBackground() works seems to be changed on high contrast mode since since Win8.1. To address the problem, the patch remove the skipping on high contrast mode since since Win8.1
2017-09-22 19:07:15 +09:00
Jim Chen 1e2e862aea Bug 1401737 - 2. Add GeckoAppShell.appendAppNotesToCrashReport; r=snorp
Add a way to append app notes to the crash report from Java, so we can
associate additional crash data with the crash.

MozReview-Commit-ID: 6I6pGOWb1sZ
2017-10-05 14:59:32 -04:00
Chris Coulson 4bb5b5c2f6 Bug 1405267 - Don't stub gdk_window_get_window_type in mozgtk2. r=karlt
--HG--
extra : amend_source : 3be7b98361af506cbf1fc0febd0c7c431a520cd0
2017-10-03 04:58:00 -04:00
Lee Salzman bff46d728b Bug 1397918 - don't use versions of libxcb before 1.11.1. r=karlt
MozReview-Commit-ID: Ec8ZhCBlPj2
2017-09-22 00:10:35 -04:00
Stephen A Pohl 5839c2d53d Bug 1401641: Avoid invalidations on macOS when setting window titles when titles aren't being displayed. r=mstange 2017-09-21 15:13:32 -04:00
Kershaw Chang 53cf0a2a8e Bug 1247843 - Part 3: Set request context ID to the http channel created in imgLoader::LoadImage. r=baku
In order to let necko postpone the load of favicon, we have to set request context ID to the http channel that is created to load favicon.
This patch starts with passing a request context ID to nsContentUtils::LoadImage and makes other necessary changes to set the request context ID to the channel.
2017-09-20 20:09:00 -04:00
Sebastian Hengst 7eec7a0a11 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: mr7OYuaLKE
2017-09-21 15:23:43 +02:00
Morris Tseng ce9b629335 Bug 1392200 - Add backface-visibility support for layers-free mode. r=kats
For layers-full mode, we set the backface-visibility to visible because
visibility would be handled by FLB and layers.

MozReview-Commit-ID: CUbeUabfC7K
2017-09-21 14:41:38 +08:00
Wes Kocher a6b8d9e91b Merge inbound to central, a=merge
MozReview-Commit-ID: JpqY5uEi1nf
2017-09-20 17:18:21 -07:00
Brad Werth fb488ded4b Bug 1401063: Cache remaining gtk window and button colors to eliminate on-demand gtk calls in ::NativeGetColor. r=karlt
MozReview-Commit-ID: HbZqBUG0w7y

--HG--
extra : rebase_source : 0b26c22113c2cda49129006fe933f20719b7a679
2017-09-19 13:00:28 -07:00