Commit Graph

604770 Commits

Author SHA1 Message Date
Masayuki Nakano
2fa716ed4d Bug 1467799 - part 2: Stop using nsIEditor::GetDocumentIsEmpty() from C++ code r=m_kato
nsIEditor::GetDocumentIsEmpty() is a virtual code and there is non-virtual
method, TextEditor::IsEmpty().  So, any callers in C++ should use
TextEditor::IsEmpty() instead.

MozReview-Commit-ID: CQE8LP6XI96

--HG--
extra : rebase_source : e0027c3d71856adcd5fa7820bf936a6b405560c5
2018-07-18 17:51:49 +09:00
Masayuki Nakano
0d09e1a26a Bug 1467799 - part 1: Remove implementation of EditorBase::GetDocumentIsEmpty() and rename TextEditor::DocumentIsEmpty() to TextEditor::IsEmpty() r=m_kato
EditorBase::GetDocumentIsEmpty() is never called since it's overridden by
TextEditor::GetDocumentIsEmtpy() and never called directly.  So, we can remove
its implementation.

Additionally, DocumentIsEmpty() is redundant. We can make it just IsEmpty().

MozReview-Commit-ID: CGsNzCHyVf

--HG--
extra : rebase_source : 3a8eeaf108bb387ea559e0643acfa96e26768577
2018-07-18 17:44:14 +09:00
Bharat Raghunathan
ed18aadb0f Bug 1476135 - Remove unused FileUtils.jsm import from layout/tools/reftest/bootstrap.js r=marco
MozReview-Commit-ID: HbvvS4xY8TN

--HG--
extra : rebase_source : eeef72c3f8c15447d760b26a103ae1ca16c4610e
2018-07-18 22:22:33 +05:30
Paul Adenot
5dae77130d Bug 1152401 - Augment AudioDeviceInfo with a cubeb device id. r=padenot
MozReview-Commit-ID: 7QOcM5ITrxv

--HG--
extra : rebase_source : 41071cfbccfc22b0c8a3b2d6a5405d4fbf23c16d
2018-07-18 10:38:34 +02:00
Alex Chronopoulos
9e3e8b757e Bug 1152401 - Rename SourceSet to MediaDeviceSet to help readability. r=jib
MozReview-Commit-ID: KLXeicyEBFG

--HG--
extra : rebase_source : 02b70606e708d414cfeb3e38a2569c1d85c1d853
2018-07-16 11:30:46 +02:00
Alex Chronopoulos
fb5a69fe6f Bug 1152401 - Create pref to enable enumeration of output devices. r=jib
MozReview-Commit-ID: G1oB6hlBcsl

--HG--
extra : rebase_source : f966c58496394947094ca66de0079a79b33a745d
2018-07-16 11:30:46 +02:00
Alex Chronopoulos
0237439056 Bug 1152401 - Use mKind member of MediaDevice in MediaDeviceInfo to avoid string comparisons. r=jib
MozReview-Commit-ID: Kfqb7DZlwO2

--HG--
extra : rebase_source : 9e3ec1b4df4d90a20ff270f0e83a789631890cbe
2018-07-16 11:30:46 +02:00
Alex Chronopoulos
c893b1d98d Bug 1152401 - Implement enumeration of speaker devices. r=jib
MozReview-Commit-ID: CppImscUcz4

--HG--
extra : rebase_source : aed0355743d547bd7b405a6b834cf9ab50edc4ee
2018-07-16 11:30:46 +02:00
Alex Chronopoulos
0a08cf0372 Bug 1152401 - Update enumerate methods of MediaManager and MediaEngine to accept audio sink type. r=jib
MozReview-Commit-ID: 1RClh9UNQck

--HG--
extra : rebase_source : 23e3f1b9e4ad42f0cff86d3903e2b0c7e5bc6a01
2018-07-16 11:30:46 +02:00
Alex Chronopoulos
0e13e8f104 Bug 1152401 - Add MediaDeviceKind member in MediaDevice to differentiate sink devices. r=jib
MozReview-Commit-ID: E6SGabjpqIA

--HG--
extra : rebase_source : ec79f2f8d949334209c0346e624fa4b16c8732a5
2018-07-16 11:29:12 +02:00
Alex Chronopoulos
43ba614cd9 Bug 1152401 - Use MediaDevice in MediaEngine to allow enumeration of both sinks and sources. r=jib
MozReview-Commit-ID: 6ntA5YUFSnN

--HG--
extra : rebase_source : d90bc121bc8e4152d76429e2a49f4d4cc1cf439e
2018-07-11 08:59:13 +02:00
Alex Chronopoulos
97c47e4336 Bug 1152401 - Create MediaSinkEnum for speakers. r=jib
MozReview-Commit-ID: 2FUrm3ZI05S

--HG--
extra : rebase_source : 02552f5ab399f075d5128037a0743b3a7dbb350d
2018-07-11 08:59:13 +02:00
Tim Nguyen
6813f7f034 Bug 1435191 - Enforce limit in additional_backgrounds field. r=jaws
MozReview-Commit-ID: E5QuWn48kdm

--HG--
extra : rebase_source : c3adb3b6133d32df94fd6160176fb45d4a720016
2018-07-18 23:05:36 +01:00
Julian Descottes
9ac50afe02 Bug 1476647 - Fix TableWidget scroll position calculation;r=miker
MozReview-Commit-ID: Kn9PQMXG8bC

--HG--
extra : rebase_source : faeb2d7e4a207f8380082e0070599a130b32098f
2018-07-18 18:01:29 +02:00
Margareta Eliza Balazs
b1e7992b82 Backed out 8 changesets (bug 1265824) for bustage in /builds/worker/workspace/build/src/gfx/layers/opengl/CompositorOGL.cpp on a CLOSED TREE
Backed out changeset 1099d6f15f9f (bug 1265824)
Backed out changeset b5ba15b1a70f (bug 1265824)
Backed out changeset 51795de4adaf (bug 1265824)
Backed out changeset be68741ff4ce (bug 1265824)
Backed out changeset 4731dc56702d (bug 1265824)
Backed out changeset 984133e9614b (bug 1265824)
Backed out changeset efce316a4425 (bug 1265824)
Backed out changeset 367abce30668 (bug 1265824)
2018-07-19 09:33:28 +03:00
Doug Thayer
aa98d8cbd6 Bug 1265824 - Guard client storage stuff behind a pref r=mattwoodrow
MozReview-Commit-ID: DjKhtMDJ91C

--HG--
extra : rebase_source : 3f281360a5731e95ba345c92af8c550af9acf498
2018-06-22 11:10:41 -07:00
Doug Thayer
eeeab69c1c Bug 1265824 - Wait on texture handles with IPC r=jld,mattwoodrow
There's a lot going on here, but it all fits under the idea of
being able to communicate about texture locking statuses
without spinning on IsReadLocked. This is a bit of a trade -
we could just always allocate/grab a texture from the pool,
which would put a smaller cap on the amount of time we can
possibly spend when a texture is locked. However, this eats
up more CPU and memory than waiting on the textures to unlock,
and could take longer, especially if there were a large number
of textures which we just need to wait for for a short amount
of time. In any case, we very rarely hit the case where we
actually need to wait on the sync IPC to the compositor - most
of the time the textures are already unlocked.

There is also an async IPC call in here, which we make before
flushing async paints. This just causes the compositor to
check whether the GPU is done with its textures or not and
unlock them if it is. This helps us avoid the case where we
take a long time painting asynchronously, turn IPC back on at
the end of that, and then have to wait for the compositor
to to get into TiledLayerBufferComposite::UseTiles before
getting a response. Specifically this eliminates several talos
regressions which use ASAP mode.

Lastly, there seem to be no other cases of static Monitors
being used. This seems like it falls under similar use cases
as StaticMutexes, so I added it in. I can move it into its own
file if we think it might be generally useful in the future.

MozReview-Commit-ID: IYQLwUqMxg2

--HG--
extra : rebase_source : 3624ad04aa01dac1cd38efb47764dc3a8fbd5fbd
2018-05-05 15:46:26 -07:00
Doug Thayer
8911034486 Bug 1265824 - Add StaticMonitor r=froydnj
For the IPC work monitoring when textures become unlocked, we
need a Monitor equivalent of StaticMutex - this implements that.

MozReview-Commit-ID: IceQNeqVQ8f

--HG--
extra : rebase_source : 40b3f6f4934b83d28005722cf13b717ff81ef697
2018-06-29 15:27:22 -07:00
Doug Thayer
dc533418d3 Bug 1265824 - handle the texture uploading and readLock related things for direct mapping texture source r=mattwoodrow
MozReview-Commit-ID: BC065h1Ac6k

--HG--
extra : rebase_source : 7b462797934f8d34fa3a006855c975606c2f0dbc
2018-05-02 18:31:31 -07:00
Doug Thayer
bac541366a Bug 1265824 - implement CreateDataTextureSourceAroundYCbCr() and CreateDataTextureSourceAround() for CompositorOGL r=mattwoodrow
This patch will use DirectMapTextureSource to wrap the DataSourceSurface data for gpu access.
That could improve the texture uploading performance.

MozReview-Commit-ID: CGPFcCsR1RY

--HG--
extra : rebase_source : 750cc82f0de01289ee261e8d338cd7ea39a2e4c5
2018-05-02 18:31:08 -07:00
Doug Thayer
ddddc2b945 Bug 1265824 - Pass the texture direct mapping info to all texture creating functions r=mattwoodrow
The client side can't get the GL context in CompositorOGL. So, it can't know
the texture direct mapping capability directly. This patch adds the texture
direct mapping info in TextureFactoryIdentifier. Then, the client side could
get the info form the TextureFactoryIdentifier.

MozReview-Commit-ID: KEazDVg0p9Y

--HG--
extra : rebase_source : 1d7c0700d1f24236102de467efd84af093687ab5
2018-05-02 18:20:25 -07:00
Doug Thayer
a1e4ac3550 Bug 1265824 - Add a new texture source type "DirectMapTextureSource" r=mattwoodrow
The DirectMapTextureSource could let the compositor to read the buffer directly.
That could get rid of some memory copy operations during texture uploading.

MozReview-Commit-ID: CHhoR96P7VG

--HG--
extra : rebase_source : fbca3bd3b8af29939626e697909cc67e9a5b34cc
2018-05-02 18:20:10 -07:00
Doug Thayer
8915d0bb01 Bug 1265824 - Remove the unsed member in GLTextureSource r=mattwoodrow
The "mExternallyOwned" is used for gralloc buffer. We don't use the gralloc buffer now.

MozReview-Commit-ID: 7Gurpa3kdp0

--HG--
extra : rebase_source : 00d74c0bc8e8e164571e05942768cf18d9cbce4d
2018-05-02 18:19:54 -07:00
Margareta Eliza Balazs
92460b7c21 Backed out changeset 627f2adec73b (bug 1476647) for causing failures in devtools/client/storage/test/browser_storage_overflow.js 2018-07-19 09:05:35 +03:00
Julian Descottes
01f86f2558 Bug 1449972 - part3: Add shadowdom support to getCssPath, getXPath;r=bgrins
MozReview-Commit-ID: 1NqIOSqY4Gg

--HG--
extra : rebase_source : fb937b4fa64b6db26df6742ac0e3229394da340d
2018-07-17 14:20:54 +02:00
Julian Descottes
799e9aa4fd Bug 1449972 - part2: Move getCssPath and getXPath to toolkit css-selector;r=bgrins
getCssPath and getXPath will need to reuse the same logic as findCssSelector
to handle shadowDOM support.

This patch moves the methods next to findCssSelector, in toolkit's css-selector.js
to avoid duplicating logic between devtools/ and toolkit/

The content of the methods is stricltly the same, except for the Node global
not available in css-selector.js. Instead we use `ele.ownerGlobal.Node` here.

MozReview-Commit-ID: J0KuORWLUoO

--HG--
extra : rebase_source : 26a1801670e5554577f0f77b62667527f7b497bb
2018-07-18 07:33:21 +02:00
Julian Descottes
89e786c486 Bug 1449972 - part1: Move shadowdom logic outside of getRootBindingParent;r=bgrins
This is a follow-up to the changes made in Bug 1449968.
It makes more sense to preserve getRootBindingParent from shadowdom
logic because:
- getBindingParent for a node in a shadow root returns the host
  component, so it was weird that getRootBindingParent would
  return a node lower in the hierarchy
- getRootBindingParent is currently duplicated between toolkit
  and devtools, and this made the implementations inconsistent

MozReview-Commit-ID: LNVEY8TzUKI

--HG--
extra : rebase_source : 4ae908bc9dfb2bbc951e9fda39049eb150a1df86
2018-07-17 11:45:34 +02:00
Julian Descottes
21e5470305 Bug 1476647 - Fix TableWidget scroll position calculation;r=miker
MozReview-Commit-ID: Kn9PQMXG8bC

--HG--
extra : rebase_source : 54909fafa6df368cb48951aec59f006630504951
2018-07-18 18:01:29 +02:00
Margareta Eliza Balazs
41141f916a Backed out 3 changesets (bug 1449972) for ES lint failure in /builds/worker/checkouts/gecko/devtools/shared/inspector/css-logic.js on a CLOSED TREE
Backed out changeset 952a605a3b21 (bug 1449972)
Backed out changeset c3379a87de69 (bug 1449972)
Backed out changeset 5f678f861c4d (bug 1449972)
2018-07-19 08:31:56 +03:00
Julian Descottes
ed0b0ef223 Bug 1449972 - part3: Add shadowdom support to getCssPath, getXPath;r=bgrins
MozReview-Commit-ID: 1NqIOSqY4Gg

--HG--
extra : rebase_source : 66425564ef9efec7ff7a599d80da3de6d1c64269
2018-07-17 14:20:54 +02:00
Julian Descottes
6ec50112df Bug 1449972 - part2: Move getCssPath and getXPath to toolkit css-selector;r=bgrins
getCssPath and getXPath will need to reuse the same logic as findCssSelector
to handle shadowDOM support.

This patch moves the methods next to findCssSelector, in toolkit's css-selector.js
to avoid duplicating logic between devtools/ and toolkit/

The content of the methods is stricltly the same, except for the Node global
not available in css-selector.js. Instead we use `ele.ownerGlobal.Node` here.

MozReview-Commit-ID: J0KuORWLUoO

--HG--
extra : rebase_source : d6fab834be4fb6ad9ba1cd73acf960cf0fe0d4d5
2018-07-18 07:33:21 +02:00
Julian Descottes
3b9be4c517 Bug 1449972 - part1: Move shadowdom logic outside of getRootBindingParent;r=bgrins
This is a follow-up to the changes made in Bug 1449968.
It makes more sense to preserve getRootBindingParent from shadowdom
logic because:
- getBindingParent for a node in a shadow root returns the host
  component, so it was weird that getRootBindingParent would
  return a node lower in the hierarchy
- getRootBindingParent is currently duplicated between toolkit
  and devtools, and this made the implementations inconsistent

MozReview-Commit-ID: LNVEY8TzUKI

--HG--
extra : rebase_source : 4ae908bc9dfb2bbc951e9fda39049eb150a1df86
2018-07-17 11:45:34 +02:00
Masayuki Nakano
0ed11cb188 Bug 1453629 - nsIWidget::GetNativeIMEContext() should return pseudo IME context if TextInputProcessor has a composition on the widget r=m_kato
Key of TextCompositionArrary to search composition on widget is native IME
context.  However, if TextInputProcessor dispatches composition events via
TextEventDispatcher, TextEventDispatcher::InitEvent() sets native IME context
of dispatching composition events to pseudo IME context (that's raw pointer
of TextEventDispatcher and process ID).

IMEStateManager::DispatchCompositionEvent() looks for existing TextComposition
with native IME context stored in WidgetCompositionEvent before dispatching
an event.  However, after dispatching it, it looks for remaining TextComposition
instance with widget stored in WidgetCompositionEvent.  Then,
TextCompositionArrary::IndexOf(nsIWidget*) will look for an instance with
the result of nsIWidget::GetNativeIMEContext() and this never returns actual
native IME context.  Therefore, IMEStateManager::DispatchCompositionEvent()
always fails to remove TextComposition instance from the array even after
a test composition is finished.

This patch moves nsIWidget::GetNativeIMEContext() to nsBaseWidget to refer
nsBaseWidget::mTextEventDispatcher makes it return pseudo IME context if
TextInputProcessor has input transaction.  Therefore, IMEStateManager becomes
always removes TextComposition from the array when every composition ends.

MozReview-Commit-ID: H1PCtPjBYJR

--HG--
extra : rebase_source : cbb3f3aae9954d65135d3840be8974fa30c4f7ff
2018-07-17 22:31:51 +09:00
Jared Wein
382ec3f85e Bug 1371142 - Confirm that the page loaded is about:blank before continuing with the test. r=Gijs
This matches the behavior that is implemented in subdialogs.js where the load event handler is not removed until the new location is about:blank.

MozReview-Commit-ID: FZHW6Z63M2M

--HG--
extra : rebase_source : 010d884fb3bfc6dca63035c0125f3c2223847fcc
2018-07-18 15:40:37 -04:00
Brian Birtles
f4f434b790 Bug 1476158 - Enable dom.animations-api.core.enabled on beta/release; r=bz
Intent to ship: https://groups.google.com/forum/#!topic/mozilla.dev.platform/fcFctnUjs7A

MozReview-Commit-ID: CMMUWvxSm1T

--HG--
extra : rebase_source : 60d68203288516cf0e6bc729d9e89f2f578ae64b
2018-07-18 10:46:38 +09:00
Brian Birtles
ca240cc2bf Bug 1476158 - Guard CSSAnimation and CSSTransition interfaces behind getAnimations() pref; r=bz
The CSSAnimation and CSSTransition interfaces are only needed to represent CSS
animations and CSS transitions returned by the
{Document,Element}.getAnimations() API.

Bug 1471814 introduced the dom.animations-api.getAnimations.enabled pref but
neglected to guard the CSSAnimation and CSSTransition interfaces behind this
pref, leaving them guarded by the dom.animations-api.core.enabled pref instead.

This patch updates the pref used to guard these interfaces so that when we turn
on the dom.animations-api.core.enabled pref by default we don't also end up
shipping these interfaces.

MozReview-Commit-ID: GjfvOltxlJy

--HG--
extra : rebase_source : 254cde7e9975d83b4ac94567725e6475f344e61d
2018-07-18 10:32:33 +09:00
Mike Hommey
40d73395b9 Bug 1476174 - Fix-up the change from bug 1474024 to avoid creating lto object files in installed locations. r=ted
--HG--
extra : rebase_source : 3ec10cc8801b2b6890496d77fdbcc429e31afca5
2018-07-17 11:29:49 +09:00
Jed Davis
3ffadbe5c7 Bug 1456919 - Shuffle fds correctly in process_util_mac. r=erahm
MozReview-Commit-ID: K17Bn44NU48

--HG--
extra : rebase_source : cc330d387c43f941d54c508f90639567c48e86c5
2018-07-13 15:16:48 -06:00
Jed Davis
a6cb3c4d18 Bug 1475382 - Turn off async content process launching, pending better error handling. r=spohl
At the moment this isn't actually async because we immediately require
the pid and block on launch anyway.  It also crashes the entire browser
on otherwise recoverable launch errors, because code that wants the pid
isn't set up to handle that operation failing.

MozReview-Commit-ID: 5favGu34QCv

--HG--
extra : rebase_source : 3c81c53e1eb8ead353ef3477ed3ceea0f5edcbbe
2018-07-13 15:20:25 -06:00
Jed Davis
bd5903e8fc Bug 1475382 - Remove debugging crashes added in bug 1461459. r=spohl
These are no longer providing useful information.  There are still a
noticeable number of failures on Windows, but we've narrowed them down to
within SandboxBroker::LaunchApp.

MozReview-Commit-ID: 9srWLNZq1Wo

--HG--
extra : rebase_source : db44114a7623e75f9efd629046d2118748352ed1
2018-07-13 15:18:03 -06:00
Nico Grunbaum
49195f43be Bug 1474658 - P3 - Expect RTCRtpStreamStats.ssrc to be an unsigned long in mochitests r=mjf
The PeerConnection mochitest wrapper had checks to make sure that the ssrc was reported as a string.
It is now an unsigned long and those tests needed to reflect that.

MozReview-Commit-ID: b7TzzG0I4J

--HG--
extra : rebase_source : 8c1665b1c8d8e2f0418a0be70d37c8ee10507c35
2018-07-12 13:52:20 -07:00
Nico Grunbaum
c8937fbffe Bug 1474658 - P2 - RTCRtpStreamStats.ssrc is now a unsigned long r=mjf
RTCRtpStreamStats.ssrc used to be a DOMString but is now an unsigned long.
When gathering this stat it needs to be constructed accordingly.

MozReview-Commit-ID: IOq9IQQxFVh

--HG--
extra : rebase_source : 3c5fc6144f6fa0435fc1ccce1a3fa371b9ffc162
2018-07-12 13:50:26 -07:00
Nico Grunbaum
46cfffdfb9 Bug 1474658 - P1 - fix type of RTCRtpStreamStats to match WebIDL spec r=smaug
At some point the type of the ssrc field changed to an unsigned long.

MozReview-Commit-ID: BmGXAaKQfim

--HG--
extra : rebase_source : b749797b5001b2ef867a239f61d22c69d5d22408
2018-07-12 13:48:05 -07:00
Chris Manchester
9491263075 Bug 1475278 - Link a HostRustLibrary to a HostProgram where necessary in the Tup backend. r=mshal
MozReview-Commit-ID: qghHI02Bfs

--HG--
extra : rebase_source : e04cf40916032d312785e99f2b4e6c64657ad919
2018-07-12 16:31:54 -07:00
Mantaroh Yoshinaga
973be84445 Bug 1476502 - Remove dotted style focusring from TabBar. r=bgrins
This patch will remove the dotted style focusring from TabBar. We have same tab
bar in the toolbox, but this tab has removed this style already.
(For detail, see bug 1444793)

MozReview-Commit-ID: CyazZkvKR6H

--HG--
extra : rebase_source : 821e606f54bfceba124af9d9c2585296f2ebc40e
2018-07-18 14:02:04 +09:00
Ed Lee
a7d155b8af Bug 1476700 - Add router targeting, bootstrap porting and bug fixes to Activity Stream. r=k88hudson
MozReview-Commit-ID: KqMBVQSPJcS

--HG--
extra : rebase_source : 461019f8d62ce23b69f2078812d16283444733f9
2018-07-18 10:38:24 -07:00
shindli
cd1abb81b8 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-07-19 00:49:25 +03:00
shindli
6cdfd81b2e Merge inbound to mozilla-central. a=merge 2018-07-19 00:45:25 +03:00
Hiroyuki Ikezoe
6dfa209dde Bug 1476773 - Drop AnimationInfo::HasOpacityAnimation and Layer::HasOpacityAnimation. r=kats
They are not used at all.

MozReview-Commit-ID: Jz3wG6FqwRI

--HG--
extra : rebase_source : d2ea65fa3230ad427d4877a97d9c8e2ea23a46fc
2018-07-19 05:48:07 +09:00
Vlad Baicu
83c53e2927 Bug 1476596 - Prevent Stumbler notification being shown after reboot. r=jchen
Because of the START_STICKY flag, upon boot completed, the service
would be started by the system which would trigger onStartCommand
and the notification being shown on Android Oreo+ devices without
a following call to onHandleIntent.

MozReview-Commit-ID: EldSSzRb7Zd

--HG--
extra : rebase_source : 2f39e499b744188e48adbdf03e426d9d50c45262
2018-07-18 18:55:20 +03:00