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

23480 Коммитов

Автор SHA1 Сообщение Дата
Martin Stransky 6d77331196 Bug 1417892 - Implement primary clipboard selection under Wayland, r=jhorak
MozReview-Commit-ID: 7TTBSbx8qPX

--HG--
extra : rebase_source : 42e117a0fdf12e811429c4470a3945e8ccd8b6fe
2018-04-04 14:49:21 +02:00
Martin Stransky 3b001f7b5d Bug 1417892 - Added gtk-primary-selection-client-protocol header/source files from Gtk+ project, r=jhorak
MozReview-Commit-ID: G0dZBqM0vBk

--HG--
extra : rebase_source : b6b5b05c7718f372d6cd3b74ebecd1b13503e19f
2018-03-06 14:02:21 +01:00
Nicholas Nethercote a560608963 Bug 1451169 - Use `nsStaticAtom*` instead of `nsStaticAtom**` in Element.h. r=baku
And then fix up everything else that needs to change as well.

MozReview-Commit-ID: GDMfERqdQAc

--HG--
extra : rebase_source : 01fe06c3182245a409099a53383d92bf4fa0155c
2018-04-03 13:21:06 +10:00
Xidorn Quan 0b8abfb678 Bug 1447056 part 2 - Invoke Resize in SetSizeConstraints with the current size to apply the new constraints. r=bz
MozReview-Commit-ID: 9kRcDHTPCqt

--HG--
extra : rebase_source : 767c063284685f5e2b5a9af873c5ed2b3e99e3d1
extra : source : 5dbfc09ffece8bf2fcaeaa5a248e5fd3fe65d911
2018-04-05 08:08:30 +10:00
Xidorn Quan 66569d7e37 Bug 1447056 part 1 - Move eWindowType_sheet to be before eWindowType_popup. r=mstange
nsBaseWidget::BoundsUseDesktopPixels() states that window types before
eWindowType_sheet take desktop pixels rather than device pixels for
parameters of Move and Resize.

Cocoa widget seems to treat all of them as desktop pixels, and sheet is
one of the window types that it can actually open, so it should be put
before popup so that BoundsUseDesktopPixels() is correct on that.

MozReview-Commit-ID: FPqOoUQlQCy

--HG--
extra : rebase_source : cf625c6bf75888abfdf2393b3c3937a073c3b613
extra : source : e2080039ee9e7270b87a5512927bb151a1154b3f
2018-04-05 08:08:30 +10:00
Haik Aftandilian c6b21edd12 Bug 1437281 - OSX dragging image to desktop changes OSX File associations r=mystor
On Mac, when dragging an image, add the image request's MIME type to
the transfer so that the MIME-extension check can be done in the
parent process to avoid content sandboxing issues.

MozReview-Commit-ID: 3cb4fCr6GnL

--HG--
extra : rebase_source : 43720237b467765401b5504c57bbc1b43d4dfdc0
2018-03-27 14:55:33 -07:00
Martin Stransky 3a5fb9d155 Bug 1447925 - Use GetClipboardText() to get text data at nsClipboard::GetData(), r=jhorak
MozReview-Commit-ID: 3JnLLyk0BOF

--HG--
extra : rebase_source : 7bd5faff15d805d19628bdbd9fcd194c89c283a4
2018-04-03 10:30:37 +02:00
Martin Stransky d648a9a261 Bug 1447925 - Add GetClipboardText() to get text data from clipboard, r=jhorak
GetClipboardText() calls gtk_clipboard_request_text() to request text clipboard data from Gtk+
and leave Gtk+ to do clipboard text format conversions. Also unify data getting code for text/data/targets.

MozReview-Commit-ID: 9DGSdOACho1

--HG--
extra : rebase_source : f1d95609f8a7587a4abc11739db9d17ec5446a7b
2018-03-27 15:51:07 +02:00
Emilio Cobos Álvarez f946c7af85 Bug 1450654: Remove ResolveTag usage in cocoa code. r=mstange
We don't have any binding in the tree that extends="xul:menupopup", which is the
only thing that would change the result. Also, I constrained it to the XUL
namespace instead of just checking the node name.

But again, we don't have non-XUL menupopups.

MozReview-Commit-ID: 7M0beoJI86Y

--HG--
extra : rebase_source : f50a186d5e78ca808d6c8873ec982663f4bbbde5
2018-04-02 13:29:58 +02:00
Johann Hofmann 3e22c51351 Bug 1434584 - Make icon in MacOS nsStandaloneNativeMenu a template image. r=mstange
MozReview-Commit-ID: G0s0rUyiKMx

--HG--
extra : rebase_source : 80b1dc28641b30a75e6419d335ba089c0e747119
2018-03-30 20:33:42 +02:00
Jeff Muizelaar 7bd5060424 Bug 1450134. Replace ToRelativeLayoutRect() with ToRoundedLayoutRect(). r=kats
This function doesn't use any StackingContextHelper state anymore.
We should make what it does clearer and move it to a better place.

--HG--
extra : rebase_source : 1727be9657169547d842ec9b6887837abedbefdf
2018-03-29 17:57:43 -04:00
sotaro cb19fd85f8 Bug 1449934 - Remove unnecessary assert in WinCompositorWidget::UpdateCompositorWndSizeIfNecessary() r=jrmuizel 2018-03-29 18:42:09 -07:00
Ciure Andrei 5d841a3421 Merge inbound to mozilla-central. a=merge 2018-03-30 01:06:18 +03:00
sotaro 537c379106 Bug 1191971 part 1 - Create child window in gpu process r=bas 2018-03-29 11:21:47 +09:00
Markus Stange a52e472ae7 Bug 1449271 - Add a pref called gfx.compositor.glcontext.opaque that defaults to false and can be set to true in order to force the use of an opaque OpenGL context for the window on Mac. r=jrmuizel
MozReview-Commit-ID: InOKiLXGL7o

--HG--
extra : rebase_source : f21566cfb6c084ceb726e9a0331f430b6a72e4c6
2018-03-27 14:43:38 -04:00
Martin Stransky 705230d4aa Bug 1441873 - [CSD] Remove nsWindow::mIsCSDAvailable and replace with CSDSupportLevel state, r=jhorak
MozReview-Commit-ID: KOiSzNvZfjg

--HG--
extra : rebase_source : 146d55491e600409b73353bc71580eb1237e72f0
2018-03-22 13:22:38 +01:00
Martin Stransky 9c687dca1b Bug 1447270 - Use GLContextGLX::FindVisual() on GLX enabled builds only, r=jhorak
MozReview-Commit-ID: HB86kRurkDG

--HG--
extra : rebase_source : 6ee7900aba520a5ef182371edf074f32801b62e2
2018-03-27 11:39:52 +02:00
Masayuki Nakano ec04470e25 Bug 1448876 - Get rid of nsIClipboardDragDropHooks and nsIClipboardDragDropHookList interfaces r=bz
nsIClipboardDragDropHooks and nsIClipboardDragDropHookList allow XUL apps
to customize drag and drop operation and paste operation.  However, this
feature was used only by ChatZilla and it doesn't work on Gecko anymore.
So, we can get rid of them from our tree.

MozReview-Commit-ID: Ibs3V1gI8Ry

--HG--
extra : rebase_source : 83428293d59aaca432d76c71b214aa7799f7f9de
2018-03-26 23:56:53 +09:00
Margareta Eliza Balazs adebb06ac1 Merge inbound to mozilla-central. a=merge 2018-03-28 00:48:11 +03:00
Bob Owen 41ce6696f9 Bug 1447019 Part 2: Move running from a network drive check into WinUtils. r=jimm 2018-03-27 14:09:32 +01:00
Nathan Froyd 6a1d9cac49 Bug 1448016 - make some Android widget constructors explicit; r=snorp
Attempting to stand up the static analysis for Android builds revealed
that we weren't being explicit enough.
2018-03-27 10:51:32 -04:00
Nathan Froyd 4d8cb59be3 Bug 1448914 - remove nsISound::playSystemSound; r=masayuki
This API is deprecated (callers are supposed to be using
nsISound::playEventSound instead) and there are no callers remaining in
mozilla-central, or references to the strings for the API.  Let's remove
dead code.
2018-03-27 10:41:40 -04:00
Markus Stange 992987e846 Bug 1335191 - Override -[NSThemeFrame _unifiedToolbarFrame] in order to get a correctly-sized unified toolbar gradient drawn in the titlebar. r=spohl
This implements the only useful piece of functionality that the
TitlebarAndBackgroundColor class was providing.

MozReview-Commit-ID: FXC6ICgDaoZ

--HG--
extra : rebase_source : fcd5b02ef057199df34459a4361ef7b4184d3a57
2018-03-24 01:53:30 -04:00
Markus Stange a2a883ac84 Bug 1335191 - Stop using a textured window. r=spohl
We no longer need the ability to specify a background color which gets drawn in
the titlebar. This was the only reason why we were using a textured window.

MozReview-Commit-ID: E8zizuvjjnA

--HG--
extra : rebase_source : ecd4d23e9bb068efbcd192b90e039809bdb451b0
2018-03-23 18:09:18 -04:00
Markus Stange 016eb6c26a Bug 1335191 - Position sheets using the NSWindowDelegate method window:willPositionSheet:usingRect:. r=spohl
MozReview-Commit-ID: 1Dwwdvl6Fok

--HG--
extra : rebase_source : 916b639fe3a18af819cb3f680501abbbe0d9bf87
2018-03-23 17:50:02 -04:00
Markus Stange 51da09f53f Bug 1335191 - Remove nsIWidget::SetWindowTitlebarColor and the nsCocoaWindow implementation. r=spohl
It's unused and no longer has any effect.

MozReview-Commit-ID: DroUFYOovMx

--HG--
extra : rebase_source : fe85188b00dab9fde50409153f464297aff774fa
2018-03-24 01:16:20 -04:00
Markus Stange 3989197ef0 Bug 1335191 - Remove TitlebarAndBackgroundColor. r=spohl
It's no longer needed and is causing trouble.

MozReview-Commit-ID: GsnjMjC5cki

--HG--
extra : rebase_source : 57bdc96d26a07c12a6232dd9f1366c11a5846ca3
2018-03-23 17:47:52 -04:00
Markus Stange b3301b82ed Bug 1335191 - Remove AutoBackgroundSetter. r=spohl
Another patch in this patch series is going to remove our custom window
background color entirely, so we no longer need this override.

MozReview-Commit-ID: 5Hk8jiudzir

--HG--
extra : rebase_source : 24f067726b6c9ce9991dd11df19b726c327eaf05
2018-03-23 16:15:23 -04:00
Markus Stange b16957ac94 Bug 1335191 - Remove unused mTitlebarView field. r=spohl
This field has been unused since https://hg.mozilla.org/mozilla-central/rev/18fc103cb90e .

MozReview-Commit-ID: F5KJ0GE7h8H

--HG--
extra : rebase_source : 05ce147a9e40f79f73a4a6987b35e036d5a6a1e1
2018-03-23 17:35:56 -04:00
Bogdan Tara 39d9b048b9 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-03-27 12:16:26 +03:00
Bogdan Tara 302a55b534 Merge inbound to mozilla-central. a=merge 2018-03-27 12:12:57 +03:00
Boris Zbarsky a8a190f4e1 Bug 1447889 part 14. Remove mention of nsIDOMRange from layout/. r=mystor
MozReview-Commit-ID: JWJWGzY45ac
2018-03-27 00:35:22 -04:00
Coroiu Cristina f7507f7dd5 Merge mozilla-central to inbound a=merge on a CLOSED TREE 2018-03-27 01:33:50 +03:00
Coroiu Cristina d6a8625ca7 Merge autoland to mozilla-central a=merge 2018-03-27 00:37:50 +03:00
Coroiu Cristina ed9d3656c8 Merge mozilla-central to inbound a=merge on a CLOSED TREE 2018-03-26 23:58:59 +03:00
Coroiu Cristina 8915d0accf Backed out changeset 608119812c07 (bug 1437281) on request from haik a=backout 2018-03-26 23:53:06 +03:00
Boris Zbarsky 060ebf9b50 Bug 1448398 followup to fix Windows-only test. r=kmag pending
This is a chrome test, so it doesn't need to play SpecialPowers games.

MozReview-Commit-ID: 8DG4lZ5OfbE
2018-03-26 16:42:01 -04:00
Masayuki Nakano e9d257856b Bug 1448282 - TSFTextStore should append a pending action for dispatching keyboard event into the queue if OnUpdateComposition() is called without new range r=m_kato
OnUpdateComposition() may be called without new range instance by some TIPs
when they starts to modify composition string.  At this timing, TSFTextStore
should append a pending action for dispatching keyboard event into the queue.
Without this patch, OnUpdateComposition() creates incomplete pending action
for composition update and then, MaybeDispatchKeyboardEventAsProcessedByIME()
appends pending action for dispatching keyboard event from another point
immediately (e.g., from SetText()), then, finally, the caller of
MaybeDispatchKeyboardEventAsProcessedByIME() appends another pending action
for composition update with proper composition string.  Therefore, the
first pending action for composition update clears composition string before
actually updating it with new composition string.  In other words, new
pending action for dispatching keyboard event splits a pending composition
update.  So, this patch prevents the splitting.

MozReview-Commit-ID: 9pYO9pm3Vh9

--HG--
extra : rebase_source : a8fb903174c0f1af61a71175dbbf01b7b1c5cb53
2018-03-26 15:07:59 +09:00
Masayuki Nakano b87a7f9729 Bug 1447866 - GeckoEditableSupport::SendIMEDummyKeyEvent() should set native key bindings to none before dispatching keyboard events which are marked as "processed by IME" r=esawin
When EditorEventListener receives keyboard events, it tries to execute
native key bindings which are stored by each keyboard event.  For performance
reason in e10s, TabParent initializes native key binding information of every
keyboard event before sending it to the remote process.  Therefore,
PuppetWidget checks if every keyboard event has native key binding information.
However, the native key binding information of dummy keyboard events marked as
"processed by IME" on Android are never initialized before sending PuppetWidget.
Therefore, we hit MOZ_ASSERT in PuppetWidget.

This patch makes GeckoEditableSuppor::SendIMEDummyKeyEvent() set native key
binding information to "none" before dispatching every keyboard event since
keyboard events during composition shouldn't cause any edit actions.

MozReview-Commit-ID: Bk532ahCQP6

--HG--
extra : rebase_source : 939c1befd4b587681192b6827e7c7fa52619d498
2018-03-23 11:54:01 +09:00
Coroiu Cristina c42eefb39e Merge mozilla-central to autoland a=merge on a CLOSED TREE 2018-03-26 23:57:54 +03:00
Kartikaya Gupta 395eaf8c66 Bug 1448490 - Make the layers id a struct instead of a uint64_t. r=mattwoodrow
The new struct is in LayersTypes.h, all the rest of the changes are just
replacing existing uint64_t instances with the new LayersId struct.

Note that there is one functional change, in
CompositorBridgeParent::DeallocPWebRenderBridgeParent, where we now
correctly convert the PipelineId to a LayersId before using it to index
into sIndirectLayerTrees, whereas before we were incorrectly just using
the mHandle part of the PipelineId.

MozReview-Commit-ID: GFHZSZiwMrP

--HG--
extra : rebase_source : d2b274f63aaee2ee9bba030297e0a37a19af0d6c
2018-03-24 19:06:01 -04:00
Tim Nguyen e002c63fa4 Bug 1444760 - Combine loadURIWithFlags and loadURI methods. r=dao
MozReview-Commit-ID: 5dsyKwvjYht

--HG--
extra : rebase_source : 881e10f2987606e84e55c267260661c0f7b3b746
2018-03-16 23:21:46 +00:00
Margareta Eliza Balazs 27703664b0 Backed out 2 changesets (bug 1444760) for ES lint failure in /builds/worker/checkouts/gecko/browser/base/content/browser.js on a CLOSED TREE
Backed out changeset 71f61091a716 (bug 1444760)
Backed out changeset 4956db1e9bdd (bug 1444760)
2018-03-25 15:29:54 +03:00
Tim Nguyen e2ed0b5dfb Bug 1444760 - Combine loadURIWithFlags and loadURI methods. r=dao
MozReview-Commit-ID: 5dsyKwvjYht

--HG--
extra : rebase_source : 8e9f24d20829021db2239435c7d8d0db08e28bf9
2018-03-16 23:21:46 +00:00
shindli a010f9b994 Merge inbound to mozilla-central. a=merge 2018-03-25 12:34:23 +03:00
David Parks 8044e86b13 Bug 1436972 - Hold ref counted AudioSession for proper lifetime when re-initializing. r=jimm
The scope of the kungFuDeathGrip is supposed to include the call to Start() (as suggested by the comment).
2018-03-21 19:37:44 -07:00
Haik Aftandilian ce6d9e36aa Bug 1437281 - OSX dragging image to desktop changes OSX File associations r=mystor
When dragging an image, add the image request's MIME type to the transfer
so that the MIME-extension check can be done in the parent process.

Move the MIME-extension check to the parent process to avoid
issues caused by content process sandboxing.

MozReview-Commit-ID: 3cb4fCr6GnL

--HG--
extra : rebase_source : ec49b8c83613be844fe4cd88a5024ac41a845199
2018-03-22 14:04:23 -07:00
Csoregi Natalia 0fc607c372 Backed out 2 changesets (bug 1447056) for devtools failures on browser_toolbox_hosts_size.js. CLOSED TREE
Backed out changeset fc2c96c7b470 (bug 1447056)
Backed out changeset 52b1ebf43592 (bug 1447056)
2018-03-24 06:58:41 +02:00
Xidorn Quan 475e40f1d4 Bug 1447056 part 2 - Invoke Resize in SetSizeConstraints with the current size to apply the new constraints. r=bz
MozReview-Commit-ID: 9kRcDHTPCqt

--HG--
extra : source : 1c6a0b0aae636f658555d4e2261eb3731df71f65
2018-03-23 12:51:15 +11:00
Xidorn Quan ea9d992ea3 Bug 1447056 part 1 - Move eWindowType_sheet to be before eWindowType_popup. r=mstange
nsBaseWidget::BoundsUseDesktopPixels() states that window types before
eWindowType_popup take desktop pixels rather than device pixels for
parameters of Move and Resize.

Cocoa widget seems to treat all of them as desktop pixels, and sheet is
one of the window types that it can actually open, so it should be put
before popup so that BoundsUseDesktopPixels() is correct on that.

MozReview-Commit-ID: FPqOoUQlQCy

--HG--
extra : source : 1d1f62a81d9fc059af9038eebc64256aeba397d3
2018-03-23 21:07:06 +11:00