Commit Graph

665964 Commits

Author SHA1 Message Date
Daniel Varga
95ce40b8d4 Backed out changeset a7ac9f64f6ea (bug 1561056) for build bustage at widget/gtk/nsDragService. On a CLOSED TREE 2019-08-16 09:30:39 +03:00
Ed Lee
5ff7943b7d Bug 1574334 - Add lazy cards, story engagements and bug fixes to New Tab Page r=pdahiya,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D42229

--HG--
extra : moz-landing-system : lando
2019-08-16 05:54:16 +00:00
Frédéric Wang
3aec893f88 Bug 1574087. Make MathML length, dir, display, displaystyle and mathvariant case insensitive. r=emilio
See https://github.com/mathml-refresh/mathml/issues/22

* mathml/relations/css-styling/attribute-mapping-001.html (length, dir)
* mathml/relations/html5-tree/display-1.html (display)
* mathml/relations/css-styling/displaystyle-1.html (displaystyle)
* mathml/relations/css-styling/displaystyle-2.html (displaystyle)
* mathml/relations/css-styling/mathvariant-case-sensitivity.html (mathvariant)

layout/reftests/bugs/355548-3.xml has been updated now that units are case
insensitive.

Note:
* mathml/relations/css-styling/attribute-mapping-002.html also checks
  case insensitiveness of mathvariant and displaystyle but for now we map
  these attributes to internal -moz-* CSS properties.
* mathcolor and mathbackground values are already case insensitive, this
  is verified by mathml/relations/css-styling/attribute-mapping-001.html

Differential Revision: https://phabricator.services.mozilla.com/D42081

--HG--
extra : moz-landing-system : lando
2019-08-15 18:44:36 +00:00
Itiel
47760e669d Bug 1573791 - Fix Accessibility tabs dropdown checkmark for RTL users r=yzen
Differential Revision: https://phabricator.services.mozilla.com/D42220

--HG--
extra : moz-landing-system : lando
2019-08-16 01:13:26 +00:00
Sebastian Streich
c051155f99 Bug 1561056 - Pass CSP on Link-drop r=ckerschb,Gijs,farre
Differential Revision: https://phabricator.services.mozilla.com/D37563

--HG--
extra : moz-landing-system : lando
2019-08-15 18:44:00 +00:00
Patrick Brosset
210832d4e2 Bug 1568825 - 3 - Remove the nodePicker's dependency on highlighter and walker r=gl
Differential Revision: https://phabricator.services.mozilla.com/D41598

--HG--
extra : moz-landing-system : lando
2019-08-16 04:48:27 +00:00
Patrick Brosset
b5f63e6ed7 Bug 1568825 - 2 - Moving the nodePicker singleton to the toolbox r=gl
Differential Revision: https://phabricator.services.mozilla.com/D41597

--HG--
extra : moz-landing-system : lando
2019-08-16 04:48:27 +00:00
Patrick Brosset
ad1f96f8cf Bug 1568825 - 1 - Moving node-picker.js to the client r=gl
Differential Revision: https://phabricator.services.mozilla.com/D41596

--HG--
rename : devtools/shared/fronts/inspector/node-picker.js => devtools/client/inspector/node-picker.js
extra : moz-landing-system : lando
2019-08-16 04:48:26 +00:00
Marcos Cáceres
26bc3a959f Bug 1559412 - Support web app manifest ImageResource.purpose r=baku
implementation of purpose member

Differential Revision: https://phabricator.services.mozilla.com/D38627

--HG--
extra : moz-landing-system : lando
2019-08-15 12:55:35 +00:00
Gerald Squelart
e99e0cc6db Bug 1574143 - Make BlocksRingBuffer::Reader RAII - r=gregtatum
In practice the Reader doesn't need to be copied/moved/reassign.
BlocksRingBuffer::Read() can just instantiate one on the stack, and pass it by
reference to callbacks.

Differential Revision: https://phabricator.services.mozilla.com/D42118

--HG--
extra : moz-landing-system : lando
2019-08-16 03:55:08 +00:00
Gerald Squelart
ac3d39c7f3 Bug 1574143 - Remove BlocksRingBuffer::EntryReserver - r=gregtatum
The point of the EntryReserver was mainly to have an object that represented a
writing lock on BlocksRingBuffer, so potentially perform multiple consecutive
writes.
After some experience implementing bug 1562604, there's actually no need for it.

So instead of having `Put()` create an `EntryReserver`, we now have
`ReserveAndPut()` that does the whole work in one function.

Differential Revision: https://phabricator.services.mozilla.com/D42116

--HG--
extra : moz-landing-system : lando
2019-08-16 03:54:49 +00:00
Gerald Squelart
11b3a5f66e Bug 1574143 - Make BlocksRingBuffer::EntryWriter RAII - r=gregtatum
EntryWriter doesn't even need to be moveable, as BlocksRingBuffer can just
create one on the stack, and pass it by reference to callbacks.
This removes risks, and potential data copies.

Differential Revision: https://phabricator.services.mozilla.com/D42115

--HG--
extra : moz-landing-system : lando
2019-08-16 04:02:18 +00:00
Csoregi Natalia
3acf519302 Merge mozilla-central to autoland. CLOSED TREE
--HG--
rename : devtools/client/debugger/src/actions/tests/helpers/threadFront.js => devtools/client/debugger/src/actions/tests/helpers/mockCommandClient.js
2019-08-16 07:03:46 +03:00
Csoregi Natalia
838811e23f Merge inbound to mozilla-central. a=merge 2019-08-16 06:59:41 +03:00
Csoregi Natalia
454835b69d Merge autoland to mozilla-central. a=merge 2019-08-16 06:57:14 +03:00
Matt Woodrow
1c8509c472 Bug 1570147 - Use a Set for HiddenFrame.jsm, so that GC can't clean up frames that we're sitll waiting on. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D42253

--HG--
extra : moz-landing-system : lando
2019-08-16 03:23:28 +00:00
Matt Woodrow
270a0d1434 Bug 1570147 - Add test for drawSnapshot. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D41828

--HG--
extra : moz-landing-system : lando
2019-08-16 03:13:21 +00:00
Matt Woodrow
7bf99e1fc3 Bug 1570147 - Modify existing drawWindow tests to take a callback for the inner draw function. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D41827

--HG--
extra : moz-landing-system : lando
2019-08-16 03:13:04 +00:00
Matt Woodrow
4257c14c6c Bug 1570147 - Add SpecialPowers API for calling drawSnapshot in the parent and returning the results. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D41826

--HG--
extra : moz-landing-system : lando
2019-08-16 03:12:52 +00:00
Csoregi Natalia
0989eb85a3 Backed out changeset 38b37dfa1f33 (bug 1469716) for causing Bug 1572116. a=backout 2019-08-16 04:36:30 +03:00
Kagami Sascha Rosylight
25862fe2eb Bug 1572349 - Add Document::ResolveWithBaseURI. r=bzbarsky
Summary: This adds a helper method that enables simpler code in D41047 and D36714.

Reviewers: bzbarsky, marcosc

Reviewed By: bzbarsky

Bug #: 1572349

Differential Revision: https://phabricator.services.mozilla.com/D41902

--HG--
extra : histedit_source : 9a8904a71bfeda594a5e3900c39e096e90dc83e1
2019-08-16 03:38:31 +03:00
Imanol Fernandez
efb7b0fed5 Bug 1574218 - Fix broken VRManagerChild::NotifyPresentationGenerationChanged event. r=kip
Fix broken VRManagerChild::NotifyPresentationGenerationChanged event.

Differential Revision: https://phabricator.services.mozilla.com/D42164

--HG--
extra : moz-landing-system : lando
2019-08-15 23:18:41 +00:00
Jeff Muizelaar
0d744a9591 Bug 1574299. Allow INTERNAL_THREADING_OPTIMIZATIONS when using WARP. r=aosmond
This seems to make a big difference when running tests with WARP.

e.g. Assertion failure: frameInfo.mDocFramesSeen == frameInfo.mDocFramesTotal,
at z:/build/build/src/gfx/webrender_bindings/RenderThread.cpp:303

and various other browser chrome test failures.

The original problem that added this flag only impacted AMD hardware as I
recall and we are unlikely to ever be running on WARP in production anyways.

When WARP is forced we also don't disable INTERNAL_THREADING_OPTIMIZATIONS.

Differential Revision: https://phabricator.services.mozilla.com/D42214

--HG--
extra : moz-landing-system : lando
2019-08-15 22:37:43 +00:00
Jeff Muizelaar
ade5ad48a8 Bug 1574327. Add a pref that we can use to disable d3d11 blacklist. r=aosmond
We'll use this to enable WARP on CI.

Differential Revision: https://phabricator.services.mozilla.com/D42221

--HG--
extra : moz-landing-system : lando
2019-08-15 22:39:18 +00:00
David Walsh
709d01d4c1 Bug 1574263 - Switch to Tiny mode for DOM Mutationn Breakpoint reps r=Harald
Differential Revision: https://phabricator.services.mozilla.com/D42177

--HG--
extra : moz-landing-system : lando
2019-08-16 00:56:14 +00:00
Markus Stange
d5d70b0f4a Bug 1491442 - Fix field order. r=fix CLOSED TREE
--HG--
extra : histedit_source : f55bd44f83746c0d1876b70ec978bc9dc8629616
2019-08-15 21:52:55 -04:00
Markus Stange
32f588365d Bug 1491442 - Remove call to ReadBuffer. r=jgilbert
There's no other caller that sets ReadBuffer to anything else, and GL_BACK is
the default for default framebuffers. Furthermore, this call triggers
GL_INVALID_OPERATION errors when called on a non-default framebuffer.

Differential Revision: https://phabricator.services.mozilla.com/D40551

--HG--
extra : moz-landing-system : lando
2019-08-16 01:16:23 +00:00
Markus Stange
339de4b925 Bug 1491442 - Don't handle null render targets in this method. r=mattwoodrow
There's only one caller and it always passes a non-null render target.

Differential Revision: https://phabricator.services.mozilla.com/D40550

--HG--
extra : moz-landing-system : lando
2019-08-16 01:15:59 +00:00
Markus Stange
5af2fd32c9 Bug 1491442 - Call SuspendAsyncCATransactions on window focus changes. r=mattwoodrow
Without this, in windows with title bars, such as the bookmark library window,
the title bar and the content would update at different times.

The title bar paint is done as part of a main thread CoreAnimation transaction.
However, by default, we don't get notified of all main thread CA transactions;
our only notification mechanism is the updateLayer handler on the PixelHostingView,
and that handler is only invoked (the layer is only displayed) if the layer has
been marked as needing display. And by default, window focus changes do not mark
random views' backing layers as needing display. Usually, what this means is that
the window will be painted twice: Once in the main thread transaction, and then
another time on the compositor thread once Gecko has noticed a state change and
triggered its own composite in response. (Often, Gecko's compositor-side paint
will actually happen *before* the main thread paint, because the main thread is
often busy with repainting the system menu bar during window focus changes.)
Such non-atomic window repaints look glitchy.
Calling SuspendAsyncCATransactions will result in a call to updateLayer in the
upcoming CoreAnimation transaction and lets us update the entire window in one
atomic paint, and it will avoid updating the window early if the compositor
thread gets ahead of the main thread.

Differential Revision: https://phabricator.services.mozilla.com/D38759

--HG--
extra : moz-landing-system : lando
2019-08-16 01:15:34 +00:00
Markus Stange
01138923a6 Bug 1491442 - Disable window overlay drawing in the CoreAnimation path. r=mattwoodrow
Window overlay drawing was added as a workaround for the following:
When our NSOpenGLContext covered the entire window, it would cover the titlebar
contents and hide the window buttons and the title string. It would also not
get anti-aliased rounded corner clipping.

In windows that use CoreAnimation layers for the window frame, this is no longer
a problem, because the CoreAnimation layer tree takes care of these effects:
It applies rounded corner clipping to the window content layers, it puts the
window buttons on top, and it also puts the title string on top if it is shown.

So when we're using CoreAnimation, the existing code needs to be deactivated,
otherwise we'd draw those things twice.

Differential Revision: https://phabricator.services.mozilla.com/D38760

--HG--
extra : moz-landing-system : lando
2019-08-16 01:15:10 +00:00
Markus Stange
20f0865033 Bug 1491442 - Make sure to never trigger async CA transactions when the main thread might be resizing a window. r=mattwoodrow
This avoids most window resizing glitches.

Differential Revision: https://phabricator.services.mozilla.com/D40518

--HG--
extra : moz-landing-system : lando
2019-08-16 01:14:47 +00:00
Markus Stange
8b77e79501 Bug 1491442 - Support BasicCompositor OMTC rendering in the CoreAnimation path. r=mattwoodrow
Now CoreAnimation supports all rendering paths.
The BasicCompositor OMTC path is used when hardware acceleration is disabled,
for example in safe mode or when the user manually disabled it.

Differential Revision: https://phabricator.services.mozilla.com/D38758

--HG--
extra : moz-landing-system : lando
2019-08-16 01:14:22 +00:00
Markus Stange
4172e5ea96 Bug 1491442 - Render accelerated windows into mContentLayer, using OMTC. r=mattwoodrow
This makes windows that render using CompositorOGL or WebRender show content.

Differential Revision: https://phabricator.services.mozilla.com/D40517

--HG--
extra : moz-landing-system : lando
2019-08-16 01:13:52 +00:00
Markus Stange
2921208661 Bug 1491442 - Make nsChildView create a NativeLayerRootCA and fill it with content when painting using BasicLayers (which used to go through drawRect). r=mattwoodrow
This makes context menus work. Regular windows are still blank at this point.

This introduces a visual regression on 10.9: context menus and panels now no
longer have a shadow. Only 10.10 and above support shadows on transparent windows
that use CoreAnimation; 10.9 is not able to obtain the shadow shape on those
types of windows.
I think this is an acceptable regression to take. We want to use CoreAnimation
for all window types because it simplifies the code (no need to handle two
paths) and because it avoids expensive mode switches if we realize too late
that a window we just opened is supposed to use CoreAnimation.

Differential Revision: https://phabricator.services.mozilla.com/D40516

--HG--
extra : moz-landing-system : lando
2019-08-16 01:13:35 +00:00
Markus Stange
3cfb0f5ea9 Bug 1491442 - Add interfaces mozilla::layers::NativeLayerRoot and NativeLayer, and add CoreAnimation implementations NativeLayerRootCA and NativeLayerCA. r=jrmuizel
NativeLayerRoot and NativeLayer allow building up a flat layer "tree" of sibling
layers. They're created and manipulated with a synchronous-looking API, but any
changes will only be applied to the underlying native layers when ApplyChanges()
is called. This ensures that the modifications can be limited to run within a
CoreAnimation transaction, and on a thread of the caller's choosing.
In the near future I'm planning to have LayerManagerComposite create these
layers. That's the reason for the pseudo-abstracted cross-platform C++ API:
LayerManagerComposite can create and place the layers, and any painting into the
layer surfaces will happen in the compositor implementations with platform-specific
code.
For now, the CoreAnimation implementation is the only implementation. I think
the current API will let us use the same infrastructure for DirectComposite
layers on Windows, but we'll likely need to make some API modifications once we
attempt that.
The classes are threadsafe; their methods can be called on any thread and the
caller is responsible for sufficient synchronization. In reality, there are only
two threads that would have a reason to use these layers: The compositor thread
and the main thread. The main thread creates and destroys the NativeLayerRootCA,
and sometimes it calls ApplyChanges, e.g. during window resizes. It also calls
SetBackingScale. All other methods are usually only called on the compositor
thread.

Differential Revision: https://phabricator.services.mozilla.com/D26407

--HG--
extra : moz-landing-system : lando
2019-08-16 01:30:02 +00:00
Markus Stange
85cbfc2652 Bug 1491442 - When gfx.core-animation.enabled is true, use CoreAnimation for all windows and create an empty layer. r=mattwoodrow
This makes mPixelHostingView layer-backed, and that layer will be empty.
This patch also causes all windows (including context menus, tooltips, arrow
panels etc.) to use CoreAnimation layers for the window frame. This is achieved
by calling setWantsLayer:YES on every window's content view.

After this changeset, all windows will still be empty.

Differential Revision: https://phabricator.services.mozilla.com/D38755

--HG--
extra : moz-landing-system : lando
2019-08-16 01:13:19 +00:00
Markus Stange
ca605e7b30 Bug 1491442 - Disable all non-CoreAnimation rendering paths when gfx.core-animation.enabled is set. r=mattwoodrow
This patch leaves you with empty windows everywhere. We will build the new
rendering paths from the ground up in the upcoming patches.

Differential Revision: https://phabricator.services.mozilla.com/D38754

--HG--
extra : moz-landing-system : lando
2019-08-16 01:12:18 +00:00
Markus Stange
31bde5f08e Bug 1491442 - If CoreAnimation is enabled, don't clip the TitlebarGradientView to rounded corners, and don't draw the title string on top of it. r=mattwoodrow
Unlike what the old comment in its drawRect method says, this isn't actually
dependent on the NSFullSizeContentViewWindowMask. Any window that uses
CoreAnimation layers for its window frame will apply these effects automatically.

Differential Revision: https://phabricator.services.mozilla.com/D38753

--HG--
extra : moz-landing-system : lando
2019-08-16 01:11:51 +00:00
Markus Stange
5b5486dc0c Bug 1491442 - Remove -[ChildView isUsingOpenGL] and use mUsingOMTCompositor instead. r=mattwoodrow
We always use OMTC when using OpenGL. We also currently always use OpenGL when using OMTC, but that's about to change.

Differential Revision: https://phabricator.services.mozilla.com/D38752

--HG--
extra : moz-landing-system : lando
2019-08-16 01:11:27 +00:00
Markus Stange
2e790720bb Bug 1491442 - Add some documentation to mPixelHostingView. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D38750

--HG--
extra : moz-landing-system : lando
2019-08-16 01:11:03 +00:00
Markus Stange
1800bceb3c Bug 1491442 - Fix comments that talk about BasicLayers but intend to say BasicCompositor. r=mattwoodrow
BasicLayers is main thread drawing. BasicCompositor is compositor-thread drawing.

Differential Revision: https://phabricator.services.mozilla.com/D38749

--HG--
extra : moz-landing-system : lando
2019-08-16 01:10:40 +00:00
Markus Stange
2935e2eca6 Bug 1491442 - Fix up and document mNeedsGLUpdate locking semantics, and remove a stray semicolon. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D38748

--HG--
extra : moz-landing-system : lando
2019-08-16 01:10:11 +00:00
Markus Stange
dac6adef26 Bug 1491442 - Fold DoWidgetCleanup and DetachWidget into Compositor::Destroy. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D40867

--HG--
extra : moz-landing-system : lando
2019-08-16 01:09:48 +00:00
Markus Stange
62430de27f Bug 1491442 - Add CompositorWidget::DoCompositorCleanup() to give the widget a chance to clean up any state from PreRender/PostRender on the correct thread. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D40514

--HG--
extra : moz-landing-system : lando
2019-08-16 01:09:26 +00:00
Markus Stange
327b689a51 Bug 1491442 - Make reftest readback read from the current render target. r=mattwoodrow
This removes the assumption that there is a default framebuffer to read from,
in order to prepare for a world in which all rendering goes into non-default
framebuffers.
The current render target's framebuffer is already bound when this function is
called.

Differential Revision: https://phabricator.services.mozilla.com/D40513

--HG--
extra : moz-landing-system : lando
2019-08-16 01:09:03 +00:00
Csoregi Natalia
07cae55cd2 Merge inbound to mozilla-central. a=merge 2019-08-15 22:34:31 +03:00
Csoregi Natalia
41813d2fc0 Merge autoland to mozilla-central. a=merge 2019-08-15 22:32:31 +03:00
Csoregi Natalia
058a6017fc Backed out changeset ee3e55708782 (bug 1570840) for breaking Netflix and Flash on Mac Nightly. a=backout 2019-08-15 22:00:21 +03:00
Makoto Kato
3bf7ba667c Bug 1574077 - Add credui.dll to delayload DLL. r=dmajor
Bug 1498518 adds credui.dll to use OS's authenticate dialog for WebAuth support, but this isn't required at start up etc. So we should move this to delay load DLL list.

Differential Revision: https://phabricator.services.mozilla.com/D42079

--HG--
extra : moz-landing-system : lando
2019-08-15 18:47:45 +00:00
Maliha Islam
29a67174de Bug 1568053 - Redesign contrast info in color picker (front-end), r=yzen,gl
Differential Revision: https://phabricator.services.mozilla.com/D40925

--HG--
extra : moz-landing-system : lando
2019-08-16 00:55:27 +00:00