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

750707 Коммитов

Автор SHA1 Сообщение Дата
smolnar b888d5ac5a Backed out changeset c10c8cecab42 (bug 1686529) browser-chrome failures in browser_preferences_usage. CLOSED TREE 2021-03-26 05:07:08 +02:00
Haik Aftandilian c45e8b4f76 Bug 1689682 - Include the desktop-to-device scaling factor in SizeConstraints r=mac-reviewers,mstange
Include the scaling factor in the SizeConstraints struct so that widgets can
correctly constrain their width and height when the widget's scaling factor
differs from the nsPresContext.

Differential Revision: https://phabricator.services.mozilla.com/D109265
2021-03-26 02:23:46 +00:00
Markus Stange 31b7df19ba Bug 1701121 - Support SVG context paint properties for native menu icons. r=emilio
The context paint properties are used by the "New Container Tab" container icons.

Differential Revision: https://phabricator.services.mozilla.com/D109823
2021-03-26 02:11:14 +00:00
Markus Stange a28f1eda7b Bug 1701121 - Make aFromComputedStyle parameter a const pointer. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D109829
2021-03-26 02:11:13 +00:00
Markus Stange a58afe49df Bug 1701108 - Create synthesized contextmenu event with button 2 ("eSecondary") to keep assertions happy. r=Gijs
We have a warning assertion that wants all contextmenu events to have button 2,
or be marked as a ctrl-click or triggered by the contextmenu keyboard key.
Fixing this avoids a warning in debug builds but is otherwise inconsequential.

Depends on D109825

Differential Revision: https://phabricator.services.mozilla.com/D109826
2021-03-26 02:06:53 +00:00
Markus Stange 53b0e331c3 Bug 1701108 - Split this assertion up into three assertions that are easier to understand. r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D109825
2021-03-26 02:06:53 +00:00
Jared Wein 403199a321 Bug 1686529 - Update the tab and toolbar colors for Proton Light and Proton Dark themes. r=desktop-theme-reviewers,harry
Differential Revision: https://phabricator.services.mozilla.com/D109418
2021-03-26 01:17:01 +00:00
Emilio Cobos Álvarez 88db4d1603 Bug 1699768 - Disable this for mochitest / wpt. r=smaug
See the comments as for this might be unexpected. The tests could be
fixed but seems like footgunny, so for now this seems better.

For future reference, the line causing the events getting dispatched to
the wrong document is the IsPrimaryFramePaintSuppressed call in
PuppetWidget::GetCurrentWidgetListener(), which causes
widget->DispatchEvent from nsContentUtils::SendMouseEvent to dispatch
the event to the wrong page.

Differential Revision: https://phabricator.services.mozilla.com/D109807
2021-03-26 01:10:53 +00:00
Emilio Cobos Álvarez 16c2ac4c88 Bug 1699768 - Don't unsuppress painting until we've known the website background, to prevent flashing. r=smaug
Actually the page in this case starts getting styled _after_ the load
event, sometimes, but when that happens that also causes a white flash
in other browsers.

Differential Revision: https://phabricator.services.mozilla.com/D109392
2021-03-26 01:10:53 +00:00
Ting-Yu Lin 93ced5a058 Bug 1696885 - Fix block-end padding missing for scrollable <textarea>. r=emilio
We've added block-end padding for block frame in bug 1527949. However,
<textarea> has `overflow-clip-box: content-box` in its inline-axis (See
forms.css), and the existing logic in
nsHTMLScrollFrame::ReflowScrolledFrame(), which inflates the scrolled
frame's overflow areas with its padding, doesn't use the overflow areas
returned in aMetrics. That effectively ignores the efforts in
bug 1527949. Hence this patch.

Differential Revision: https://phabricator.services.mozilla.com/D109464
2021-03-26 01:06:14 +00:00
Ting-Yu Lin c3ee9188d2 Bug 1527949 - Include the block container's block-end padding when computing its overflow area. r=emilio
Per spec, the scrollable overflow area is the union of the box's own
content and padding areas.
https://drafts.csswg.org/css-overflow-3/#scrollable

In this part, we add block container's block-end padding to its
children's block-end edge.

This patch reverts some of the test references modification in
https://hg.mozilla.org/mozilla-central/rev/905ef8691d96dce44120ba562d67754ceac8ff81

Differential Revision: https://phabricator.services.mozilla.com/D108890
2021-03-26 01:06:13 +00:00
Lee Salzman 0de3133d7b Bug 1675395 - Pass in flags for MSVC-like compilers in SWGL build script. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D109799
2021-03-26 01:04:29 +00:00
Lee Salzman a7324f6129 Bug 1698156 - Set up SWGLPP env target with null CFLAGS and CXXFLAGS. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D109525
2021-03-26 01:04:29 +00:00
Ryan Kelly c47d610ad7 Bug 1700791 - update bundled fxa-pairing-channel version to v1.0.2. r=markh,vbudhram
Differential Revision: https://phabricator.services.mozilla.com/D109677
2021-03-26 00:51:20 +00:00
sotaro 322bbdd0e0 Bug 1700949 - Set pref gfx.webrender.fallback.software to false on Android r=mattwoodrow
Support of fallback to sw-wr is not completed yet on Android.

Differential Revision: https://phabricator.services.mozilla.com/D109831
2021-03-26 00:50:08 +00:00
Molly Howell 9b1d47e8b8 Bug 1692080 - Fix background and submenu alignment for Proton bookmarks menu. r=desktop-theme-reviewers,Itiel
Differential Revision: https://phabricator.services.mozilla.com/D109567
2021-03-25 23:57:01 +00:00
Marco Bonardo d2fe950093 Bug 1695276 - Partially restyle the search bar panel to make it more consistent with the Address Bar in Proton. r=harry
Differential Revision: https://phabricator.services.mozilla.com/D109102
2021-03-25 23:37:46 +00:00
Hiroyuki Ikezoe dd8b043633 Bug 1694898 - Override AsyncPanZoomEnabled in nsCocoaWindow to delegate it to nsChildView in the case of popups. r=mstange,botond
The widget for popup window on Mac is nsCocoaWindow which doesn't have
any APZC instances so that nsIWidget::AsyncPanZoomEnabled() always returned
false, we need to delegate the call to the nsChildView.

To be honest, I am quite unsure whether other functions using APZC also need
to be delegated or not, but I haven't noticed any issues now, so we will
fix one by one if there are any other issues.

Unfortunately the mochitest for this issue doesn't work both on Linux and
Windows, but it's presumably an issue in our testing machinery relevant with
nsIDOMWindowUtils.sendNativeMouseScrollEvent, it will not be a problem in the
wild because scrolling by real mouse wheel works fine there.

Differential Revision: https://phabricator.services.mozilla.com/D109572
2021-03-25 23:14:12 +00:00
Hiroyuki Ikezoe 6973088672 Bug 1694898 - Factor out flushApzRepaintsInPopup. r=botond
We'd like to use the function in a new mochitest.

Differential Revision: https://phabricator.services.mozilla.com/D109682
2021-03-25 23:14:12 +00:00
James Teh 599e149915 Bug 1700845: Make accessible/tests/mochitest/events/test_focus_listcontrols.xhtml click the menulist at the centre, not the top left. r=morgan
Clicking at the top left previously worked, but doesn't work with browser.proton.enabled.

1. Support a { where: "center" } argument to synthClick in events.js.
2. Use that in the test.

Differential Revision: https://phabricator.services.mozilla.com/D109689
2021-03-25 23:08:35 +00:00
Marco Bonardo f96f5a0678 Bug 1699813 - Remove darker color from Change Search Settings button in searchbar. r=harry,desktop-theme-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D109710
2021-03-25 22:30:47 +00:00
Gavin Lazar Suntop d932b4ce76 Bug 1699510 - Adding watch task for STP handlebars r=thecount
Differential Revision: https://phabricator.services.mozilla.com/D109816
2021-03-25 22:04:52 +00:00
sotaro 2c9d2b375f Bug 1700848 - Destroy RenderCompositor by root WebRenderBridgeParent's ClearResources() r=nical
Root WebRenderBridgeParent's  ClearResources() call is expected to destroy RenderCompositor. It is necessary to avoid conflict between RenderCompositors and to avoid use after free.

Differential Revision: https://phabricator.services.mozilla.com/D109693
2021-03-25 21:53:40 +00:00
Miko Mynttinen f30a7d057b Bug 1679645 - Cache the selection state in nsTextFrame rather than in nsDisplayText r=emilio,jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D108646
2021-03-25 21:28:52 +00:00
Haik Aftandilian c210b10b1c Bug 1701070 - nsCocoaWindow::Create() does not interpret aRect correctly for parented widgets r=mac-reviewers,mstange
Change ::Create(...LayoutDeviceIntRect...) to scale to desktop coordinates using the parent window scaling factor.

Change ::Create(...DesktopIntRect...) to treat the |aRect| argument as offsets when a child widget is being created per nsIWidget documentation.

Remove unnecessary logic from ::BackingScaleFactorChanged().

Differential Revision: https://phabricator.services.mozilla.com/D106351
2021-03-25 20:40:26 +00:00
Bernard Igiri a895121d8b Bug 1695171 - Fix overlap of hamburger menu when the window is shrunk r=Gijs,desktop-theme-reviewers,dao
Reduced the width of the url nav bar when the window is shrunk to make space for the hamburger menu in proton.

Differential Revision: https://phabricator.services.mozilla.com/D108463
2021-03-25 20:38:37 +00:00
Drew Willcoxon bc2e6501df Bug 1699227 - Support negative suggestedIndex values to allow indexes to be specified from the end of the list of urlbar results. r=mak
Given the result span problem described in bug 1699211 and bug 1699607,
currently there's no way for quick suggest to accurately specify the last index
as its suggested index.

Differential Revision: https://phabricator.services.mozilla.com/D109571
2021-03-25 20:32:52 +00:00
Punam Dahiya 9624bcba17 Bug 1696547 - Refactor MultiStageAboutWelcome to support Proton onboarding r=Mardak,emcminn
Differential Revision: https://phabricator.services.mozilla.com/D107954
2021-03-25 20:28:39 +00:00
Henrik Skupin 8ed6d71b3b Bug 1700755 - [marionette] Use TimedPromise when waiting for initial application windows. r=marionette-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D109673
2021-03-25 20:18:14 +00:00
smolnar 15e0d75933 Backed out changeset 7781dd4fce4a (bug 1698156) for causing linux build bustages. CLOSED TREE 2021-03-25 22:25:43 +02:00
Jared Wein bb408b4167 Bug 1670972 - Fix default value preference type mismatches with calls to defineLazyPreferenceGetter. r=vbudhram,markh,tjr
Differential Revision: https://phabricator.services.mozilla.com/D93400
2021-03-25 20:15:39 +00:00
Jared Wein 8ea95d671b Bug 1670972 - Throw an exception if the default value provided to defineLazyPreferenceGetter doesn't match the prefType. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D93399
2021-03-25 20:15:38 +00:00
Iain Ireland d169ee41ba Bug 1698609: Use shape from template object when cloning RegExp r=tcampbell
If we parse offthread, then the shape of the template object will be allocated in a separate zone with a different initialShapes set. `CodeGenerator::visitRegExp` will [create a new regexp using the shape of the template object](https://searchfox.org/mozilla-central/rev/4e87b5392eafe1f1d49017e76f7317b06ec0b1d8/js/src/jit/CodeGenerator.cpp#1794-1795). To remain consistent and avoid failed shape guards / bailout loops, we should do the same in `CloneRegExpObject`.

I played around with `offThreadCompileScript` and friends for a while trying to replicate the problem in the shell, but I couldn't get a testcase to work. This fixes the browser issue, though.

Differential Revision: https://phabricator.services.mozilla.com/D109414
2021-03-25 20:13:42 +00:00
Timothy Nikkel 30bd86faf7 Bug 1700812. Make some ASR asserts fatal to get a better idea of when/how often they fail. r=miko
Differential Revision: https://phabricator.services.mozilla.com/D109683
2021-03-25 19:55:28 +00:00
Kris Maglione fb5318adbf Bug 1581859: Part 5 - Add js/Value.h include to PromiseNativeHandler.h. r=nika
The IPDL source added in this stack changes the unified protocol chunking and
triggers problems caused by the missing include.

Differential Revision: https://phabricator.services.mozilla.com/D109024
2021-03-25 19:47:04 +00:00
Kris Maglione 28f9b0d638 Bug 1581859: Part 4f - Migrate to the native WebNavigation implementation. r=zombie
This migrates WebNavigation.jsm to use messages from PExtensionsParent
generated by the native WebNavigationContent class, and removes the now-unused
WebNavigationContent.js frame script.

Differential Revision: https://phabricator.services.mozilla.com/D103217
2021-03-25 19:47:04 +00:00
Kris Maglione dad37640d8 Bug 1581859: Part 4e - Add DOMContentLoaded listener to WebNavigationContent. r=zombie,nika
This ports the last remaining piece of WebNavigationContent.js, the
DOMContentLoaded event listener, to C++ and adds IPC messages to notify the
parent process of the events. Linkage between the parent IPDL endpoints and
the parent WebNavigation.jsm listeners is added in a subsequent patch.

Differential Revision: https://phabricator.services.mozilla.com/D103216
2021-03-25 19:47:03 +00:00
Kris Maglione 077170e1c3 Bug 1581859: Part 4d - Add web progress listeners to WebNavigationContent. r=nika
This ports the WebProgressListener logic from WebNavigationContent.js to the
C++ implementation, and adds IPC messages to send them to the parent process.
Linkage between the parent IPDL endpoints and the listeners in
WebNavigation.jsm is added in a subsequent patch.

Differential Revision: https://phabricator.services.mozilla.com/D103215
2021-03-25 19:47:03 +00:00
Kris Maglione 047869e9be Bug 1581859: Part 4b - Add skeleton WebNavigationContent class. r=zombie,nika
This is a skeleton class which will be instantiated at startup in each
process, and eventually track the same events that the deprecated
WebNavigationContent.js frame script currently tracks.

Actual implementation is added in follow-up patches.

Differential Revision: https://phabricator.services.mozilla.com/D103213
2021-03-25 19:47:03 +00:00
Kris Maglione fd79887e5f Bug 1581859: Part 4a - Add skeleton PExtensions actor. r=zombie,nika
This is the start of an actor which will be automatically instantiated in the
parent and each content process which can be used to route most process-level
IPC traffic needed by the extensions framework. It should allow the extensions
framework to keep its IPC glue close to the code that uses it, and simplify
matters for child-side code which needs to run in both parent and content
processes.

Differential Revision: https://phabricator.services.mozilla.com/D103212
2021-03-25 19:47:02 +00:00
Kris Maglione 5db2bf4bdb Bug 1581859: Part 3b - Update existing GetPropertyAsInterface callers to use typesafe do_GetProperty instead. r=mccr8,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D103211
2021-03-25 19:47:02 +00:00
Kris Maglione 35305e871d Bug 1581859: Part 3a - Add do_GetProperty helper for nsIPropertyBag2. r=mccr8
There currently isn't a typesafe way to get a property with a given interface
from a property bag from C++. This patch adds one, following the pattern of
similar helpers, like `do_GetInterface`.

Differential Revision: https://phabricator.services.mozilla.com/D103210
2021-03-25 19:47:01 +00:00
Kris Maglione 301532bc94 Bug 1581859: Part 2b - Add LOAD_FLAGS_IS_REFRESH to all navigations triggered by meta refreshes. r=nika
The extension framework needs to set specific flags on navigations triggered
by meta refresh headers. Adding this to the load type of all navigations
triggered by meta refreshes allows it to do this without tracking docshells on
which refreshes are attempted so that it can make inferences.

Differential Revision: https://phabricator.services.mozilla.com/D108726
2021-03-25 19:47:01 +00:00
Kris Maglione 8eff81f606 Bug 1581859: Part 2a - Add LOCATION_CHANGE_HASHCHANGE onLocationChange flag. r=nika
The naming scheme references the hashchange event. This is required by the
extensions framework to call the appropriate navigation listeners when only
the reference fragment is updated by a navigation.

Differential Revision: https://phabricator.services.mozilla.com/D108725
2021-03-25 19:47:00 +00:00
Mitchell Hentges 73182917b6 Bug 1698511: Publish revisions as mach releases in Sentry r=aki
To identify regressions and existing exceptions in Sentry, we tag them
with their mach release (the current base revision).
To ensure that Sentry knows the correct order of revisions, we need to
tell it about each one that lands in mozilla-central.

Differential Revision: https://phabricator.services.mozilla.com/D109681
2021-03-25 19:26:22 +00:00
Petr Sumbera 9d8e9bb46b Bug 1700595 - Unbreak dom/gamepad/fallback/FallbackGamepad.cpp after Bug 1610570 r=tjr
Differential Revision: https://phabricator.services.mozilla.com/D109658
2021-03-25 19:17:49 +00:00
Gijs Kruitbosch 9e20a27ad0 Bug 1694511 - update references inside the prefs/about:addons to Preferences/Options to use 'Settings' instead, r=preferences-reviewers,fluent-reviewers,jaws,robwu
Differential Revision: https://phabricator.services.mozilla.com/D106199
2021-03-25 19:11:47 +00:00
Lee Salzman 14f440bb4e Bug 1698156 - Set up SWGLPP env target with null CFLAGS and CXXFLAGS. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D109525
2021-03-25 19:08:10 +00:00
Yury Delendik 2fb73f392b Bug 1700458 - Fix fcvtn/fcvtxn when dst == src. r=nbp
Patch sync from 202f1c03f4

Differential Revision: https://phabricator.services.mozilla.com/D109542
2021-03-25 18:57:36 +00:00
Robert Mader 1dcdf4e04c Bug 1699864 - Request 32bit color depth on Linux/EGL by default, r=stransky,jgilbert
Since D108508 the X11/EGL backend creates a shared GL context via
`CreateGLContextEGL()` which chains up to `CreateForCompositorWidget()`
with a `nullptr` widget. With the OGL compositor we relied on the
widget giving us a valid color depth, while now we'd fall back to
`gfxVars::ScreenDepth()`.

On X11 color depth is defined as:
> depth means the number of bits in a pixel that are actually used
> to determine the pixel color

i.e. we on a usual system we would get 24bit.

As we require an alpha channel when using WR, the result would be
disappointing. Thus hardcode 32bit color depth for X11/EGL when
creating contexts without widget for now.

In order to keep X11 and Wayland code close together, do the same
on Wayland, even if `gfxVars::ScreenDepth()` returns valid values
there.

Differential Revision: https://phabricator.services.mozilla.com/D109737
2021-03-25 18:44:13 +00:00