Commit Graph

667348 Commits

Author SHA1 Message Date
Markus Stange
337e804b70 Bug 1576391 - Override _titlebarHeight so that the window's NSTitlebarContainerView includes the full height of the window buttons even after we've shifted them down, and re-enable the floating titlebar. r=mattwoodrow
I've tried hard to find a solution for the clipped window button problem which
does not involve swizzling but could not find one.
The officially ratified ways of moving the window buttons are:
 1. Use an NSToolbar in your window, or
 2. Make a custom window with your own buttons.

I don't think having an NSToolbar is an option for us. And making our own window frame
implementation would be hard to get right and can easily behave differently from the
native implementation.
I've also tried asking the window to not render any window buttons on its own; then we
could make our own buttons and place them on top of our view. But if I change the
window's styleMask to be just NSTitledWindowMask, it doesn't only make the buttons
disappear, it also makes the window non-resizable. And if I include NSResizableWindowMask,
the buttons come back (only the zoom button is enabled, the other two are grayed out).

This change also stops overriding _wantsFloatingTitlebar when CoreAnimation is
enabled, which is necessary for the window buttons to render.

Depends on D43341

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

--HG--
extra : moz-landing-system : lando
2019-08-26 02:05:24 +00:00
Markus Stange
47f90a7414 Bug 1576391 - Use NSFullSizeContentViewWindowMask for ToolbarWindows. r=mattwoodrow
This gives us two behaviors for free which we were achieving through manual
overrides:
 - The content view is sized to cover the entire window frame.
 - The window controls are placed on top of the content view (instead of
   underneath it in z-order).

It also forces CoreAnimation layers for the window's entire NSView hierarchy, so
we only use it when the CoreAnimation pref is enabled.

NSFullSizeContentViewWindowMask is only available on 10.10 and up, but we still
support 10.9, so we cannot remove the code with the manual overrides just yet.

This change also requires a change to NonDraggableView in order to preserve
window dragging behavior in the titlebar: When NSFullSizeContentViewWindowMask
is used, the method which assembles the window's draggable region takes a
different path. It treats the titlebar specially, and traverses the NSView
hierarchy twice, once for the titlebar area and once for the rest of the window.
Outside the titlebar, it calls _opaqueRect on every visible NSView, but for the
titlebar area, it calls _opaqueRectForWindowMoveWhenInTitlebar instead.

Overriding _opaqueRectForWindowMoveWhenInTitlebar allows us to achieve the old
dragging behavior.

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

--HG--
extra : moz-landing-system : lando
2019-08-26 02:03:56 +00:00
Markus Stange
5aaf080881 Bug 1576391 - Move some method overrides to ToolbarWindow. r=mattwoodrow
This makes them only apply in windows with titlebars, which is the only place
where they're needed. The setContentView override can even cause harm for other
windows, such as sheet windows, because it'll move the content view below a
full-window covering solid grey view provided by the system, in builds that
link against the 10.14 SDK and don't override _wantsFloatingTitlebar.

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

--HG--
extra : moz-landing-system : lando
2019-08-26 02:04:09 +00:00
Nicholas Nethercote
66a26ccca9 Bug 1572332 - Move non-debugger devtools prefs into all.js and firefox.js. r=jdescottes
This makes prefs definition simpler, more consistent, and less error-prone.

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

--HG--
extra : moz-landing-system : lando
2019-08-26 01:44:59 +00:00
Brad Werth
e4dcb9887c Bug 1575097 Part 6: Change RDM test helper function to check innerWidth instead of screen.width. r=gl
Differential Revision: https://phabricator.services.mozilla.com/D43131

--HG--
extra : moz-landing-system : lando
2019-08-25 23:56:04 +00:00
Brad Werth
f40bd42907 Bug 1575097 Part 5: Update test to check outerWidth and screen.width and device-width media queries with meta viewport on. r=gl
Differential Revision: https://phabricator.services.mozilla.com/D42748

--HG--
extra : moz-landing-system : lando
2019-08-25 23:54:48 +00:00
Brad Werth
2ca2008ad6 Bug 1575097 Part 4: Make nsMediaFeatures::GetDeviceSize return unscaled browser sizes for RDM documents. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D42986

--HG--
extra : moz-landing-system : lando
2019-08-25 23:54:16 +00:00
Brad Werth
5ba85219c5 Bug 1575097 Part 3: Make nsScreen::GetRDMScreenSize get the size from the window. r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D42745

--HG--
extra : moz-landing-system : lando
2019-08-25 23:53:54 +00:00
Brad Werth
ea3e370cf2 Bug 1575097 Part 2: Make nsScreen::GetRDMScreenSize accept a CSSIntSize instead of an nsRect. r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D42743

--HG--
extra : moz-landing-system : lando
2019-08-25 23:53:31 +00:00
Brad Werth
5dccfe286b Bug 1575097 Part 1: Add a method nsGlobalWindowOuter::GetRDMDeviceSize and use it in GetOuterSize. r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D43130

--HG--
extra : moz-landing-system : lando
2019-08-25 23:53:04 +00:00
Cameron McCormack
79a431d339 Bug 1569077 - Part 3: Add --capture-profile argument to the layout debugger. r=dbaron
Differential Revision: https://phabricator.services.mozilla.com/D39469

--HG--
extra : moz-landing-system : lando
2019-08-25 23:38:30 +00:00
Cameron McCormack
712f284101 Bug 1569077 - Part 2: Add --autoclose argument to the layout debugger. r=dbaron
Differential Revision: https://phabricator.services.mozilla.com/D39468

--HG--
extra : moz-landing-system : lando
2019-08-25 23:38:28 +00:00
Cameron McCormack
7ce6716163 Bug 1569077 - Part 1: Refactor layout debugger command line handling. r=dbaron
Differential Revision: https://phabricator.services.mozilla.com/D39467

--HG--
extra : moz-landing-system : lando
2019-08-25 23:38:26 +00:00
Nicholas Nethercote
adb9edf389 Bug 1574388 - Implement PHC on Mac. r=gsvelto,glandium
But it is not yet enabled; bug 1576515 will do that.

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

--HG--
extra : moz-landing-system : lando
2019-08-25 23:16:05 +00:00
Edgar Chen
20182dbcb2 Bug 1576154 - Check mSVGDocumentWrapper when trying to report use counters; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D43256

--HG--
extra : moz-landing-system : lando
2019-08-25 22:45:33 +00:00
Bastien Orivel
a5f69db222 Bug 1576450 - Update cookie to 0.12 in webdriver. r=ato
Differential Revision: https://phabricator.services.mozilla.com/D43354

--HG--
extra : moz-landing-system : lando
2019-08-25 23:22:11 +00:00
Markus Stange
d62299cf77 Bug 1491451 - Limit CompositorOGL drawing to the invalid rect. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D42421

--HG--
extra : moz-landing-system : lando
2019-08-25 21:43:07 +00:00
Markus Stange
5349415d12 Bug 1574592 - When rendering into a copy target with CompositorOGL, and the window uses native layers for rendering, render into an offscreen RenderTarget instead of using a native layer. r=mattwoodrow
On platforms that don't use native layers for rendering, we usually want reftests
to see exactly what's going to end up in the window. It's conceivable that
rendering into offscreen framebuffers might miss bugs on those platforms (though
I'm not sure if we've seen any evidence of this).
But when we're rendering to native layers, we have non-default framebuffers either
way, so we might as well create our own framebuffer rather than asking a native
layer for one. We're not interested in getting this rendering to the screen, so
it's better to leave the native layer out of this.

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

--HG--
extra : moz-landing-system : lando
2019-08-25 17:11:39 +00:00
Markus Stange
1593f9f2ef Bug 1574592 - Create a render target per IOSurface, laying the groundwork for multiple native layers. r=mattwoodrow
This makes CompositorOGL always render into offscreen render targets.
CompositorOGL no longer expects the GLContext to have a default framebuffer.
This duplicates a bunch of code from GLContextCGL, but that code can be removed
from GLContextCGL once WebRender no longer needs it.
This also makes it so that we don't recreate render targets on every frame;
instead, we create one render target for every IOSurface in the native layer's
"swap chain" and cycle through those render targets. We only throw away the
render targets when the window is resized or closed.

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

--HG--
extra : moz-landing-system : lando
2019-08-25 17:11:25 +00:00
Markus Stange
3503a868b7 Bug 1574592 - Remove unused CompositorWidget::DrawWindowUnderlay. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D42404

--HG--
extra : moz-landing-system : lando
2019-08-25 17:11:11 +00:00
Markus Stange
28d283ab15 Bug 1574592 - Remove now-unused CompositorWidget::DoCompositorCleanup again. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D42403

--HG--
extra : moz-landing-system : lando
2019-08-25 17:11:02 +00:00
Markus Stange
e0e54098e9 Bug 1574592 - Move NativeLayer management out of nsChildView and into LayerManagerComposite and RendererOGL. r=mattwoodrow
It looks like a big patch but it's mostly just moved code, with some duplication:
 - Layer creation and destruction moves to LayerManagerComposite and RendererOGL.
 - BasicCompositor IOSurface setup code moves to BasicCompositor.cpp.
 - OpenGL IOSurface setup code moves to CompositorOGL and RenderCompositorOGL.

The duplication is a bit unfortunate but the LayerManagerComposite code will
diverge from the WebRender code soon.

BeginFrame gets a new argument aNativeLayer. This argument will go away again
over the course of this patch queue. But for now, BeginFrame is the best place
to do the layer setup because it's a very close place to PreRender which is
where that code was previously.

I wasn't able to think of a nice way to give CompositorOGL and BasicCompositor
platform-specific behavior without #ifdefs. So now LayerManagerComposite uses
the "cross-platform" NativeLayer interface, but CompositorOGL and
BasicCompositor use NativeLayerCA because they actually need the IOSurface, and
they do that in #ifdef'd code.
Luckily, NativeLayerCA.h can be included in both .cpp files and in .mm files.

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

--HG--
extra : moz-landing-system : lando
2019-08-25 17:43:42 +00:00
Markus Stange
c3d94ae29a Bug 1574592 - Add CompositorWidget::GetOpaqueWidgetRegion. r=mattwoodrow
This lets LayerManagerComposite and RendererOGL set the correct opaque region
on the native layer.

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

--HG--
extra : moz-landing-system : lando
2019-08-25 21:41:58 +00:00
Markus Stange
222be5a822 Bug 1574592 - Add CompositorWidget::GetNativeLayerRoot. r=mattwoodrow
This will give the layer manager direct access to the native layers.

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

--HG--
extra : moz-landing-system : lando
2019-08-25 17:10:52 +00:00
Brindusan Cristian
88d33edc42 Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-08-26 00:39:21 +03:00
Brindusan Cristian
807bd8d142 Merge inbound to mozilla-central. a=merge 2019-08-26 00:36:06 +03:00
Jan Varga
359aa0d597 Bug 1576453 - Fix a problem with unused variable in non-nightly builds; r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D43357

--HG--
extra : moz-landing-system : lando
2019-08-25 17:39:17 +00:00
Csoregi Natalia
f5bd429ac1 Bug 1553971 - Skip crashtest 1545177.html on Android. r=jmaher
Reviewers: jmaher

Reviewed By: jmaher

Subscribers: emilio

Bug #: 1553971

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

--HG--
extra : rebase_source : 711da13e71cad8ae8aee19ff9605d18520b88930
extra : histedit_source : 02532a7b72fc43e947ab9eab593c23a0a34d6057
2019-08-25 20:29:51 +03:00
Bogdan Tara
34cb8d0a2a Merge inbound to mozilla-central. a=merge 2019-08-25 12:42:11 +03:00
Cosmin Sabou
a876ab139c Bug 1575739 - Disable test on Android cause of frequent failures. r=m_kato
Differential Revision: https://phabricator.services.mozilla.com/D43347

--HG--
extra : moz-landing-system : lando
2019-08-25 03:44:10 +00:00
Jan Varga
f4529437df Bug 1563023 - Part 9: Ignore quota cache if LSNG is disabled; r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D39881

--HG--
extra : moz-landing-system : lando
2019-08-25 00:45:41 +00:00
Jan Varga
f4d108788b Bug 1563023 - Part 8: Ignore quota cache if the user loads the same profile in different builds; r=asuth
This patch adds support for quota cache invalidation if the profile is loaded in different builds.

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

--HG--
extra : moz-landing-system : lando
2019-08-25 00:45:19 +00:00
Jan Varga
3e97ea2f34 Bug 1563023 - Part 7: Implement caching functionality; r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D38817

--HG--
extra : moz-landing-system : lando
2019-08-25 01:34:37 +00:00
Cosmin Sabou
6ce2570271 Bug 1574067 - Update test expectations on windows !debug cause of frequent failures. r=jgraham 2019-08-25 02:49:50 +03:00
Sebastian Hengst
092742832e Bug 1576409 - Replace bugzilla component 'Activity Streams: Newtab' with 'New Tab Page' in moz.build file. r=Mardak DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D43346

--HG--
extra : moz-landing-system : lando
2019-08-24 22:02:14 +00:00
Tom Ritter
339f505631 Bug 1576474 - Remove a configure option for mingw-gcc which we no longer support r=dmajor
Differential Revision: https://phabricator.services.mozilla.com/D43356

--HG--
extra : moz-landing-system : lando
2019-08-25 19:57:34 +00:00
Dorel Luca
27b852f164 Merge mozilla-central to mozilla-inbound 2019-08-25 00:57:57 +03:00
Dorel Luca
14d2add97a Merge mozilla-inbound to mozilla-central. a=merge 2019-08-25 00:51:13 +03:00
Markus Stange
2acd3fcf86 Bug 1576113 - Add a comment.
MANUAL PUSH: Backout and comment change that don't require a review and are somewhat time-critical: the backout fixes breakage in some local build scenarios.

--HG--
extra : rebase_source : 5230000ce88395794c272f0133e09979c70d526d
extra : amend_source : df014e518d27480c5b149acb8acaa0433565d483
2019-08-24 13:45:07 -04:00
Markus Stange
cb2f3a3c58 Bug 1576113 - Back out revision 2a82b5ce10e2 because it causes trouble when building with the 10.14 SDK.
The source of the trouble is our setContents override, which makes sure the window's
content view is the bottommost view in the window, and its interaction with a change
in behavior on 10.14, where windows that return YES from _wantsFloatingTitlebar will
contain an additional NSView for the window background. Our setContents override
moves the content view behind that window background view, which covers it with a
solid gray color.

--HG--
extra : amend_source : cd11d5c805de7054c3dfa3a1d5ae0f504f07116d
2019-08-24 13:50:57 -04:00
Nihanth Subramanya
fefa4770d3 Bug 1575813 - isAllowing state of Fingerprinting and Cryptomining categories shouldn't consider enabled state. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D43046

--HG--
extra : moz-landing-system : lando
2019-08-24 16:37:38 +00:00
Razvan Maries
74868f6da5 Backed out 2 changesets (bug 1569728) for Android 4.0 API16+ GeckoView multi-arch fat AAR opt build bustages.
Backed out changeset a420714ee262 (bug 1569728)
Backed out changeset d24ed38c76cd (bug 1569728)
2019-08-24 19:09:21 +03:00
Nathan Froyd
e8faea9e90 Bug 1569728 - build clang toolchains with GCC 7; r=mshal
We need this change so that the newly-built clang will have
C++17-compatible libstdc++ headers installed.  I believe this change
also means that the newly-built clang (and associated tools) links
against GCC 7's libstdc++, but we set RPATH or similar appropriately, so
there shouldn't be issues stemming from that.

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

--HG--
extra : moz-landing-system : lando
2019-08-24 13:51:57 +00:00
Nathan Froyd
faaa483c34 Bug 1569728 - manually instantiate some basic_string members for libstdc++ compat; r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D41370

--HG--
extra : moz-landing-system : lando
2019-08-24 13:51:32 +00:00
Honza Bambas
eb406bc935 Bug 1562276 - Proper transaction restart on HTTP_1_1_REQUIRED and h2 proxy, r=dragana.
1. Unsticky connection from a transaction we disable SPDY on to restart
2. Call OnReadSegment from TLSFilterTransaction;FilterOutput to push written data out (renegotiation)
3. Break indefinite loop that may occur during renegotiation by propagating WOULD_BLOCK via mFilterReadCode

Differential Revision; https;\\phabricator.services.mozilla.com\D40409

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

--HG--
extra : moz-landing-system : lando
2019-08-24 13:21:37 +00:00
Bastien Orivel
88e5c4b00e Bug 1576361 - Update ipc-channel to 0.12 in webrender. r=emilio
While not used in firefox, this is required to update ipc-channel in
servo

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

--HG--
extra : moz-landing-system : lando
2019-08-24 12:22:26 +00:00
Ciure Andrei
0a6d4a24f8 Merge inbound to mozilla-central. a=merge 2019-08-24 12:51:09 +03:00
Ed Lee
3cf7e1697b Bug 1576284 - Add Firefox wordmark, protection template and bug fixes to New Tab Page r=pdahiya
Differential Revision: https://phabricator.services.mozilla.com/D43310

--HG--
extra : moz-landing-system : lando
2019-08-24 06:35:25 +00:00
Sam Foster
294674d0c5 Bug 1575091 - Update _generatedPasswordsByPrincipalOrigin for auto-saved, generated-password login changes. r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D43122

--HG--
extra : moz-landing-system : lando
2019-08-24 05:52:24 +00:00
Kershaw Chang
2f86a5c093 Bug 1572842 - Collect TRR data on release channel r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D43104

--HG--
extra : moz-landing-system : lando
2019-08-24 05:35:10 +00:00