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

744382 Коммитов

Автор SHA1 Сообщение Дата
Eitan Isaacson b8ab9d0b57 Bug 1691345 - Check that focused child doc is a descendant of caller's doc. r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D104546
2021-02-10 17:01:22 +00:00
Emma Malysz c6cae30cd2 Bug 1686523, remove home button if proton is enabled and the button hasn't been used r=mstriemer,mconley
Differential Revision: https://phabricator.services.mozilla.com/D103796
2021-02-10 16:58:53 +00:00
Kershaw Chang d9e8c3a9e6 Bug 1690438 - Add telemetry for zero byte loads in nsJARChannel::Open r=zbraniecki
Differential Revision: https://phabricator.services.mozilla.com/D104404
2021-02-10 16:47:13 +00:00
Iain Ireland 784d3f70ad Bug 1691184: Recompile if necessary before retrying interrupted regexp r=mgaudet
If an interrupt occurs during regexp execution, we return up the stack to RegExpShared::execute to handle it, then try again. Normally it's safe (if slow) to GC and discard jitcode at this point, because we can fall back to interpreted bytecode (which is not discarded). However, if the input string is long enough, then we [jump straight to compilation without producing bytecode](https://searchfox.org/mozilla-central/rev/7067bbd8194f4346ec59d77c33cd88f06763e090/js/src/vm/RegExpObject.cpp#590-596). In that case, when we resume, we will have neither bytecode nor jitcode, and end up dereferencing a null pointer.

The fix is to recompile after handling the interrupt. In addition to fixing the crash, forcing compilation here should improve our chance of eventual success (compared to resuming in the regexp interpreter).

Differential Revision: https://phabricator.services.mozilla.com/D104479
2021-02-10 16:45:51 +00:00
Iain Ireland b8e205340d Bug 1688136: Make range analysis more conservative after truncated node bails out r=nbp,jandem
If an addition of integer values overflows, we will transpile a CacheIR stub containing a `DoubleAddResult`. In this testcase, after some optimization, we have MIR that looks like:

```
17 phi toDouble15:Double add10:Double
22 add phi17:Double phi17:Double [double]
...
24 truncatetoint32 add22:Double
```

Range analysis sees that the only consumer of `add22` is a truncation, and truncates the add to Int32. When we overflow again and bail out, we don't make any changes to the CacheIR, because it already handles the overflow case. We end up in a bailout loop.

This patch fixes the problem by marking every truncated instruction with `TruncateKind::TruncateAfterBailout` as `BailoutKind::EagerTruncation`. If the instruction bails out, `FinishBailoutToBaseline` will invalidate the script and set the `hadEagerTruncationBailout` flag. When we recompile, that flag will prevent range analysis from truncating any instructions with `TruncateKind::TruncateAfterBailout`.

Differential Revision: https://phabricator.services.mozilla.com/D102949
2021-02-10 16:45:25 +00:00
Bogdan Tara 33fb6dff31 Backed out changeset b149d1f43e95 (bug 1691964) for wd failures on minimize.py CLOSED TREE 2021-02-10 20:11:58 +02:00
Mihai Alexandru Michis 74e3e203a8 Backed out changeset 1bf5a1f1db9a (bug 1686946) for causing bc failures in browser_policy_hardware_acceleration.js
CLOSED TREE
2021-02-10 19:46:27 +02:00
Narcis Beleuzu 117f561c8a Backed out 3 changesets (bug 1685061, bug 1668218) for dt failures on browser_aboutdebugging_devtoolstoolbox_reload.js . CLOSED TREE
Backed out changeset 734d6233d1cd (bug 1685061)
Backed out changeset 7dcb92850f22 (bug 1668218)
Backed out changeset 2443341cb252 (bug 1685061)
2021-02-10 19:40:43 +02:00
Alexander Meißner 0d9937175f Bug 1691712 - WebGPU bindings for RenderPassEncoder rasterization state r=kvark,webidl,smaug
Differential Revision: https://phabricator.services.mozilla.com/D104591
2021-02-10 16:25:39 +00:00
Jared Wein 9062f47ef0 Bug 1688294 - Account for the padding on the scrollbox when positioning pinned tabs. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D103953
2021-02-10 16:16:20 +00:00
Jared Wein 92700be843 Bug 1688072 - Tweak the dimensions of the tabs to get closer to the Proton design. r=fluent-reviewers,dao,flod
Differential Revision: https://phabricator.services.mozilla.com/D102802
2021-02-10 16:16:20 +00:00
Jared Wein 836d02b22d Bug 1689852 - Show autoplay blocked and picture-in-picture text label in tab. r=mconley,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D103826
2021-02-10 16:16:19 +00:00
Mihai Alexandru Michis 1d92d113a2 Backed out changeset 5b31293f0b8d (bug 1690783) for causing bc failures in browser_findbar_marks.js
CLOSED TREE
2021-02-10 18:14:46 +02:00
stransky c8518b1eae Bug 1667851 [Wayland] Use map_event to create wl_subsurface of MozContainer when it's size is already allocated, r=jhorak
- Recently we use size allocation event to create wl_subsurface of MozContainer. Unfortunately size allocation event
  is not called when a window is opened second time, as its size is already set. Use map_event to create
  wl_subsurface in this case.

Differential Revision: https://phabricator.services.mozilla.com/D104551
2021-02-10 16:01:14 +00:00
stransky 0b889703e9 Bug 1667851 [Wayland] Guess subsurface offset from window decorations size, r=jhorak
- Try to set subsurface offset even if we mozcontainer size allocation is not finished. Use window decoration size for it.
- Add more logging to mozcontainer code.

Depends on D104549

Differential Revision: https://phabricator.services.mozilla.com/D104550
2021-02-10 16:01:13 +00:00
stransky f3fadd9803 Bug 1667851 [Wayland] Rework mozcontainer wl_subsurface creation, r=jhorak
Rework wl_subsurface creation in these steps:

1) moz_container_wayland_size_allocate() handler is called when
   mContainer size/position is known.
   It calls moz_container_wayland_surface_create_locked(), registers
   a frame callback handler
   (moz_container_wayland_frame_callback_handler()).

2) moz_container_wayland_frame_callback_handler() is called
   when wl_surface owned by mozContainer is ready.
   We call initial_draw_cbs() handler and we can create our wl_subsurface
   on top of wl_surface owned by mozContainer.

Also size wl_buffer at WindowSurfaceWayland according to mozcontainer size,
don't use nsWindow bounds for it.

Differential Revision: https://phabricator.services.mozilla.com/D104549
2021-02-10 16:01:13 +00:00
Jamie Nicol 9e0bc84dcd Bug 1691925 - Block webrender on android devices which don't support GL_OES_EGL_image_external_essl3 r=aosmond
Currently webrender requires the extension
GL_OES_EGL_image_external_essl3 to render video. There exist some
older GLES 3 devices which do not support this extension, and
attempting to render video on these devices results in a shader
compilation error and falling back to OpenGL layers.

In bug 1507074 we will implement a long term solution for such
devices, but in the meantime block webrender on devices which do not
support this extension.

Differential Revision: https://phabricator.services.mozilla.com/D104669
2021-02-10 16:00:16 +00:00
Yura Zenevich 6e7241f9b4 Bug 1689761 - update tab keyboard focus to Proton styles. r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D103823
2021-02-10 16:00:06 +00:00
Yura Zenevich eb60c40868 Bug 1689761 - update toolbar focus outline color from currentColor to proton colors (theme dependent). r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D103822
2021-02-10 16:00:06 +00:00
Yura Zenevich 5002833d63 Bug 1689761 - define common focus outline style for toolbars. r=desktop-theme-reviewers,ntim
Differential Revision: https://phabricator.services.mozilla.com/D103821
2021-02-10 16:00:05 +00:00
Yura Zenevich 6ca2caa708 Bug 1689761 - provide focus-outline color experimental theme variable for Alpenglow. r=desktop-theme-reviewers,ntim
Differential Revision: https://phabricator.services.mozilla.com/D103820
2021-02-10 16:00:05 +00:00
Mihai Alexandru Michis 6723b8ab01 Bug 1685061 - Remove trailing whitespace in en-US/perftools.ftl for causing lint failures. a=lint-fix
CLOSED TREE
2021-02-10 17:51:17 +02:00
Nicolas Chevobbe 604f0d5736 Bug 1668218 - [devtools] Enable new perf panel on Nightly. r=julienw,jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D104206
2021-02-10 15:36:20 +00:00
Nicolas Chevobbe b82aeb6a21 Bug 1685061 - [devtools] Localize new perf panel onboarding UI. r=julienw,flod.
We add a few localized string in perftools.ftl to replace to hardcoded labels
in the component.
This allows us to simplify the structure of the component.
We take this opportunity to re-use the localized string we have to link to the
advanced section of the settings panel.

Differential Revision: https://phabricator.services.mozilla.com/D104155
2021-02-10 15:36:20 +00:00
Emilio Cobos Álvarez 6e7f50e7c0 Bug 1690476 - Deal with backwards compat for simulation features. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D104376
2021-02-10 15:35:18 +00:00
Mihai Alexandru Michis f1bbc50fbf Backed out 5 changesets (bug 1689761, bug 1691793) for causing bustages in nsLookAndFeel.mm
CLOSED TREE

Backed out changeset 8c53818717a1 (bug 1689761)
Backed out changeset 232a4e735cdc (bug 1689761)
Backed out changeset e63c5a6932e3 (bug 1689761)
Backed out changeset 14b61d763ae5 (bug 1691793)
Backed out changeset 2c88585f0fe4 (bug 1689761)
2021-02-10 17:38:26 +02:00
Emilio Cobos Álvarez 1691b8a61c Bug 1682607 - Normalize NaN in some other font-related lengths etc. r=jfkthame,layout-reviewers
Depends on D104563

Differential Revision: https://phabricator.services.mozilla.com/D104565
2021-02-10 15:30:40 +00:00
Emilio Cobos Álvarez fd47e3b3f3 Bug 1691652 - Normalize NaN to zero as a result of calc(). r=layout-reviewers,jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D104563
2021-02-10 15:30:40 +00:00
Micah Tigley 6fcd8ab391 Bug 1690351 - Create a Proton-specific More Tools panel. r=jdescottes,mconley,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D104249
2021-02-10 15:21:58 +00:00
Yura Zenevich f37257205c Bug 1689761 - update tab keyboard focus to Proton styles. r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D103823
2021-02-10 15:21:05 +00:00
Yura Zenevich c696566e7a Bug 1689761 - update toolbar focus outline color from currentColor to proton colors (theme dependent). r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D103822
2021-02-10 15:21:05 +00:00
Yura Zenevich 0bbae48fc8 Bug 1689761 - define common focus outline style for toolbars. r=desktop-theme-reviewers,ntim
Differential Revision: https://phabricator.services.mozilla.com/D103821
2021-02-10 15:21:04 +00:00
Yura Zenevich 8eb52b667b Bug 1691793 - set prefers-contrast to more when accessibilityDisplayShouldIncreaseContrast setting is set to true. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D104562
2021-02-10 15:21:04 +00:00
Yura Zenevich 9a0eedc087 Bug 1689761 - provide focus-outline color experimental theme variable for Alpenglow. r=desktop-theme-reviewers,ntim
Differential Revision: https://phabricator.services.mozilla.com/D103820
2021-02-10 15:21:04 +00:00
Andrew Osmond 3ceb6196c4 Bug 1691964 - Avoid accelerated compositing for headless tests with software WebRender. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D104694
2021-02-10 15:11:58 +00:00
Narcis Beleuzu 6971c531ac Backed out changeset d67638ea2d4a (bug 1690597) for bustages on TelemetryScalarData . CLOSED TREE 2021-02-10 17:11:14 +02:00
Jeff Muizelaar 4ae00e65f0 Bug 1690597 - Unexpire HDR telemetry. r=chutten
This is just general system information, I can't think
of a reason why we'd want it to expire.

Differential Revision: https://phabricator.services.mozilla.com/D103917
2021-02-10 14:57:13 +00:00
Nicolas Chevobbe 160c9264b0 Bug 1691934 - [devtools] Remove clearLogpointMessages and associated code. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D104679
2021-02-10 14:49:47 +00:00
Mihai Alexandru Michis d5b753448d Backed out changeset 4ffa919d35f9 (bug 1687364) as requested by kershaw.
CLOSED TREE
2021-02-10 16:47:51 +02:00
Julian Descottes 8446a8611c Bug 1691836 - [devtools] Wait for the initialization of markupview in inspector open() r=nchevobbe
We used to only wait until the markup view document was loaded, via the markuploaded event.
This lead tests to wait for additional events to make sure the inspector markup view could
be interacted with.

Here we wait for a new dedicated internal promise instead of an event.
This promise is only resolved once the inspector has initialized the markup view.

Test helpers are updated to stop listening for additional events.

Differential Revision: https://phabricator.services.mozilla.com/D104649
2021-02-10 14:45:17 +00:00
Chris H-C 55202baada Bug 1691811 - Mark Fennec Telemetry docs as obsolete r=janerik DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D104572
2021-02-10 14:35:56 +00:00
Andrew Osmond d5e27e6220 Bug 1686946 - Ship Software WebRender to OSX early beta/nightly users without (full) WebRender. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D101933
2021-02-10 14:12:09 +00:00
Neil Deakin eb7ca8878c Bug 1690783, move call to updateScrollMarks to occur after the highlight and match count is determined to better ensure that the found ranges have been determined, r=mikedeboer
Differential Revision: https://phabricator.services.mozilla.com/D104318
2021-02-10 14:08:44 +00:00
smolnar 3ff133d19f Backed out changeset 09b2d1c8bba2 (bug 1689951) for causing dt failures in browser_screenshot_button_warning. CLOSED TREE 2021-02-10 16:17:07 +02:00
Jan de Mooij f404da239f Bug 944846 part 4 - Use DoubleToStringConverter::ToFixed for toFixed. r=anba
Differential Revision: https://phabricator.services.mozilla.com/D104522
2021-02-10 13:42:18 +00:00
Jan de Mooij f6d06e1e8c Bug 944846 part 3 - Increase DoubleToStringConverter::kMaxFixedDigitsAfterPoint from 60 to 100. r=glandium
We need to support values up to 100 for `Number.prototype.toFixed`.

See https://262.ecma-international.org/11.0/#sec-number.prototype.tofixed

Differential Revision: https://phabricator.services.mozilla.com/D104521
2021-02-10 13:42:17 +00:00
Jan de Mooij 76bb8049ee Bug 944846 part 2 - Use DoubleToStringConverter::ToPrecision for toPrecision. r=anba
Differential Revision: https://phabricator.services.mozilla.com/D104520
2021-02-10 13:42:17 +00:00
Jan de Mooij 085f7df2a3 Bug 944846 part 1 - Use DoubleToStringConverter::ToExponential for toExponential. r=anba
This avoids a rounding issue in the old dtoa code.

Differential Revision: https://phabricator.services.mozilla.com/D104519
2021-02-10 13:42:17 +00:00
Nicolas Chevobbe 93ac160333 Bug 1689951 - [devtools] Display notification for screenshot warnings and error messages. r=jdescottes.
This patch make the warning and error messages visible when such messages were
emitted, for the RDM screenshot button, the toolbar screenshot button and the
inspector screenshot node context menu entry.
In the case of the toolbar screenshot button in the browser toolbox, we also
display the saved messages so users have a way to know where the file was saved.
We don't do anything more for `:screenshot` command in the console, as the messages
are already displayed directly in the console output.
Tests are added for the different use case. The RDM one is a bit different as
we can't have a viewport taller than 9999px, so we bump the dpr to make capture-screenshot
downsize it (as such image would be too big).

We take this opportunity to fix the `takeNodeScreenshot` helper, which was adding
a "load" event listener after setting the src on an image, which can lead to races.

Differential Revision: https://phabricator.services.mozilla.com/D104058
2021-02-10 13:13:30 +00:00
Jamie Nicol d636995f23 Bug 1680087 - Disable webrender partial present on Mali-T6xx and T7xx. r=aosmond
Due to rendering issues reported on a Mali-T628 and Mali-T760, disable
partial present on all Mali-T6xx and T7xx devices. We know that not
all T6xx and T7xx devices are affected, so this is being cautious. The
driver version is probably more important than the GPU model. We
should make the block more precise once more is known about the bug.

Differential Revision: https://phabricator.services.mozilla.com/D104678
2021-02-10 13:10:38 +00:00