Commit Graph

729901 Commits

Author SHA1 Message Date
Yulia Startsev
0ed52f4823 Bug 1742437 - move mElement from ScriptFetchOptions to DOMScriptLoadContext; r=jonco,smaug
Differential Revision: https://phabricator.services.mozilla.com/D136742
2022-02-21 15:39:05 +00:00
Yulia Startsev
55cd96e998 Bug 1742437 - Split ScriptLoadRequest into ScriptLoadRequest and DOMScriptLoadContext; r=jonco,smaug
Differential Revision: https://phabricator.services.mozilla.com/D134041
2022-02-21 15:39:04 +00:00
Randell Jesup
cc51a986aa Bug 1756017: Clean up ChannelEventQueue r=kershaw,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D139052
2022-02-21 14:53:59 +00:00
Hannah Peuckmann
6a40f90146 Bug 1755018 - Remove warning NS_ERROR_INSUFFICIENT_DOMAIN_LEVELS in debug mode. r=pbz
Differential Revision: https://phabricator.services.mozilla.com/D139111
2022-02-21 14:50:35 +00:00
Alexandre Poirot
18e25c0325 Bug 1755736 - [devtools] Update line offsets in browser_dbg-breakable-positions.js according to sourcemaps-reload test page changes. CLOSED TREE
Differential Revision: https://phabricator.services.mozilla.com/D139294
2022-02-21 14:32:10 +00:00
sotaro
9c4865582d Bug 1732739 - Enable session change handling of window occlusion on Windows for nightly and early beta r=gfx-reviewers,nical
Differential Revision: https://phabricator.services.mozilla.com/D138981
2022-02-21 14:20:17 +00:00
Tooru Fujisawa
c3e5f99580 Bug 1756080 - Part 2: Cleanup include in StaticStrings. r=nbp
Depends on D139263

Differential Revision: https://phabricator.services.mozilla.com/D139264
2022-02-21 14:05:17 +00:00
Tooru Fujisawa
50a7e72b8a Bug 1756080 - Part 1: Remove StaticStrings::trace. r=nbp
Depends on D139262

Differential Revision: https://phabricator.services.mozilla.com/D139263
2022-02-21 14:05:17 +00:00
Tooru Fujisawa
81577eeddd Bug 1756115 - Fix include guard comment. r=nbp
Differential Revision: https://phabricator.services.mozilla.com/D139262
2022-02-21 14:05:17 +00:00
Kagami Sascha Rosylight
7815723a1d Bug 1756070 - Part 1: Add missing override keywords r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D139166
2022-02-21 13:50:12 +00:00
Nicolas Silva
9f0c7fdd71 Bug 1754829 - Detect when an SVG path is a Rectangle. r=gfx-reviewers,mstange
This patch doesn't attempt to cache the result. I don't know if it will cause regressions in practice.

Differential Revision: https://phabricator.services.mozilla.com/D138465
2022-02-21 13:35:44 +00:00
Alexandre Poirot
f877b36808 Bug 1755736 - [devtools] Test both original and generated sources being removed altogether. r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D138936
2022-02-21 13:16:36 +00:00
Alexandre Poirot
2e6e6f338a Bug 1755736 - [devtools] Test original source being removed and replaced in the bundle by a new original source. r=bomsy
I'm using a new dedicated bundle here so that we ensure that the bundle lines don't change and stay "breakable".
Otherwise the breakpoint wouldn't be hit on reload if the breakpoint become an empty line.
My goal here is to see what happens if the new bundle still hit the breakpoint even if the original source
was removed.

We might later revisit this behavior to remove this breakpoint.
It might be challenging to avoid hitting the breakpoint once on the first load.
It would require the server to know about sourcemap in order to ignore the breakpoint on early page load sequence.

Differential Revision: https://phabricator.services.mozilla.com/D138920
2022-02-21 13:16:36 +00:00
Alexandre Poirot
b486c734d5 Bug 1755736 - [devtools] Make findSource debugger helper expect a filename instead of URL. r=bomsy
This helps stop doing a loose search and avoid bugs where
findSource("original.js") would match both original.js and replace-original.js.

I had to keep full URL support in order to match a source without any filename.
It might only be browser_markup_shadowdom_open_debugger.js and lots of sourcemap tests
using webpack:// URL and many source files with the same filename.
We could also have a distinct helper for these tests.

I tried to remove all cases where we were doing findSource(dbg, source.url)
and instead fo findSource(dbg, source).

Differential Revision: https://phabricator.services.mozilla.com/D138934
2022-02-21 13:16:35 +00:00
Paul Adenot
795bd89b9e Bug 1754651 - Remove probe expiring in Firefox 100: VIDEO_UNBLACKINGLISTING_DXVA_DRIVER_RUNTIME_STATUS. r=bryce DONTBUILD
This has been removed in https://phabricator.services.mozilla.com/D37313,
reviewed by quite a few people at the time. The entry needs to be removed now,
it's not been collecting anything for years.

Differential Revision: https://phabricator.services.mozilla.com/D138440
2022-02-21 12:31:51 +00:00
Kershaw Chang
cc6becdea6 Bug 1755877 - Fix the race on mConfirmation.TaskAddr(), r=necko-reviewers,valentin
Since TRRService::MaybeSetPrivateURI() is the only case that can triggers a new confirmation when TRRService::ReadPrefs() is called, making ConfirmationContext::Handle() returns a boolean value should be enough for this case.

Differential Revision: https://phabricator.services.mozilla.com/D139107
2022-02-21 12:23:19 +00:00
Mark Banner
29399b0a1b Bug 1754747 - Add fog to the list of Services.* items for ESLint. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D138434
2022-02-21 11:58:41 +00:00
Emilio Cobos Álvarez
67fb4139a5 Bug 1755419 - Don't use default system timeout for settings proxy. r=stransky
Differential Revision: https://phabricator.services.mozilla.com/D139094
2022-02-21 11:54:08 +00:00
Emilio Cobos Álvarez
78487edeea Bug 1756323 - Cleanup mouse event coord code. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D139234
2022-02-21 11:53:02 +00:00
Nicolas B. Pierron
ab20b9b25c Bug 1755999 - Fix compilation guards when jit-spew is enabled in optimized builds. r=jandem
This change follows what got introduced in Bug 1470522.

Differential Revision: https://phabricator.services.mozilla.com/D139047
2022-02-21 11:52:16 +00:00
Julian Descottes
a678ecc4d1 Bug 1752780 - [devtools] Do not force units when incrementing unitless CSS properties r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D139144
2022-02-21 11:14:02 +00:00
osBins
29d3050677 Bug 1755656 - [devtools] Updated fixing-bugs doc for CSS changes. r=Honza
added `mach build faster` command to doc to show local changes.

Differential Revision: https://phabricator.services.mozilla.com/D139228
2022-02-21 10:32:24 +00:00
Emilio Cobos Álvarez
6ec1bb836e Bug 1756082 - Properly support ui.systemUsesDarkMode switching on Linux. r=karlt
So the issue here is that GTK's nsLookAndFeel doesn't know about the
effective value of the pref, and thus ends up potentially choosing the
wrong GTK theme (and thus choosing light system colors, but thinking
that we can paint the textfield background natively with GTK, which
would have a dark background, for example).

The right fix here is treating the pref as a stronger hint than the
ColorSchemePreference that we compute from DBUS for the same purpose.
This makes us follow the same code-path as if the system had specified
dark mode itself, fixing the contrast issue.

While at it, fix dynamic changes to this pref, which need to update
system colors.

Differential Revision: https://phabricator.services.mozilla.com/D139093
2022-02-21 10:04:57 +00:00
Emilio Cobos Álvarez
591f0ebb21 Bug 1756350 - Simplify wayland logging. r=stransky
Differential Revision: https://phabricator.services.mozilla.com/D139238
2022-02-21 10:04:36 +00:00
Emilio Cobos Álvarez
9448fcb699 Bug 1756316 - Fix DevTools' menu code to deal with zoom. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D139236
2022-02-21 09:50:15 +00:00
Norisz Fay
3049b1be88 Merge mozilla-central to autoland. CLOSED TREE 2022-02-21 11:45:54 +02:00
Norisz Fay
6b569834e9 Merge autoland to mozilla-central. a=merge 2022-02-21 11:39:24 +02:00
Norisz Fay
3c3d4b4228 Backed out 3 changesets (bug 1749380) for causing webrender crashes a=backout DONTBUILD
Backed out changeset 1762adb371d4 (bug 1749380)
Backed out changeset 2b42abbdb0df (bug 1749380)
Backed out changeset 9fa6f71111d0 (bug 1749380)
2022-02-21 11:35:49 +02:00
Emilio Cobos Álvarez
bda0eff5dc Bug 1756323 - Move ChromeTooltipListener out of a header file. r=smaug
No reason this can't live in the cpp file.

Differential Revision: https://phabricator.services.mozilla.com/D139233
2022-02-21 09:17:17 +00:00
Emilio Cobos Álvarez
8c209a547b Bug 1756323 - Deindent and simplify a bit ChromeTooltipListener::sTooltipCallback. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D139232
2022-02-21 09:17:17 +00:00
mcheang
436ef21342 Bug 1755740 - Check if newCurrentEngine is undefined to prevent infobar showing up. r=Standard8
This is necessary to avoid erroneously displaying the infobar in situations such as bug 1691706 - all search engines should have a name, so if there is no name for the current engine, this is likely to be an error situation.

Differential Revision: https://phabricator.services.mozilla.com/D139200
2022-02-21 09:03:38 +00:00
Alex Ionescu
2eb74da86e Bug 1749967 - Automated recording for android r=perftest-reviewers,sparky
Differential Revision: https://phabricator.services.mozilla.com/D135891
2022-02-21 07:32:13 +00:00
Mozilla Releng Treescript
c0a2006427 no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD
es-ES -> 3e6d47a732b3c12395641615708ddafe5a2f2096
gn -> c1fd482c0decac30f42993db2d9f2606b598ca40
tg -> 2a9431c4bac3d445ef2069fc8cb9bcb5eaf9b574
2022-02-21 06:57:39 +00:00
Marcos Cáceres
13da8bfbbd Bug 1718598 - Handle not fully active documents when querying Permissions API r=johannh
Spec change https://github.com/w3c/permissions/pull/249

Differential Revision: https://phabricator.services.mozilla.com/D118932
2022-02-21 05:11:57 +00:00
Cosmin Sabou
e383b9d5a2 Backed out changeset f5bd4427bd30 (bug 1718598) for causing mochitest failures on test_permissions_api.html. CLOSED TREE 2022-02-21 06:58:11 +02:00
Marcos Cáceres
102254965b Bug 1718598 - Handle not fully active documents when querying Permissions API r=johannh
Spec change https://github.com/w3c/permissions/pull/249

Differential Revision: https://phabricator.services.mozilla.com/D118932
2022-02-21 04:18:31 +00:00
Drew Willcoxon
891a70032d Bug 1756163 - Allow tabbing through the urlbar view when it already has a selection. r=daisuke
The problem is that when the block button is keyboard selected, the input
becomes empty, and when the input is empty the controller does not allow tabbing
through results.

To fix this, I added another check so we allow tabbing when an element in the
view is already selected. This fix is more broad than it needs to be to fix this
bug, but I can't think of a case where we wouldn't want to allow tabbing when
the view already has a selection.

I added a test for the tab key and also the arrow keys while I was here.

Differential Revision: https://phabricator.services.mozilla.com/D139201
2022-02-21 03:31:18 +00:00
Masayuki Nakano
0e36a415cf Bug 1755104 - Make EditorEventListener::Focus check whether the event target still has focus even after flushing the pending things r=m_kato
When the `focus` event listener of editors which is in the system group runs,
a preceding `focus` event listener may have already blurred the focused element,
but it may have not been applied to the DOM tree yet.  In this case, checking
whether the editor still has focus or has already blurred without flushing the
pending things does not make sense.  Therefore, this patch makes the `Focus`
do it first.

Note that this patch adds 3 crash tests, but only the `<textarea>` case crashes
without this patch.  The others are only for detecting new regressions.

Differential Revision: https://phabricator.services.mozilla.com/D139089
2022-02-21 01:04:43 +00:00
Hiroyuki Ikezoe
a88549ee05 Bug 1720240 - Clamp overscroll animation positions to zero to not get across over zero. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D138091
2022-02-20 23:27:33 +00:00
smolnar
3f1b2634cb Merge mozilla-central to autoland. a=merge 2022-02-21 00:00:05 +02:00
smolnar
0e49512a26 Merge autoland to mozilla-central. a=merge 2022-02-20 23:51:29 +02:00
Valentin Gosu
e2176b242d Bug 1675054 - Enable brotli encoding for trustworthy URLs, not just for https r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D95855
2022-02-20 21:20:50 +00:00
Glenn Watson
3ed2a6b1b5 Bug 1749380 - Adjust fuzziness expectation on android. r=reftest-fix
Differential Revision: https://phabricator.services.mozilla.com/D139242
2022-02-20 20:23:30 +00:00
Mozilla Releng Treescript
0423291baf no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD
de -> 51fa7772be1a25576ed8385063e5e96b1371c127
kk -> 36397805718512c6195fd8c31e021c6d5481e43d
pl -> f992dad0dacd48b7731cc8f12e8997b50a362a91
tg -> cb366e394549b6e46cde1994dc715e91d2462c85
vi -> c323741527d8e7727991d79ed2d3dbb6aa3db5d3
2022-02-20 19:07:09 +00:00
Glenn Watson
eb1c5bf544 Bug 1749380 - Part 2 - Performance and quality fixes for part 1. r=gfx-reviewers,nical
* Add support for local scale factors to a surface, allowing it to
  be rasterized in root coordinate space. This allows snapping to
  work across surfaces where the surface transform is a fractional
  offset.

* Calculate scaling factors per rasterized surface and propagate
  them. Ensures correct scale factor calculations when dealing with
  nested preserve-3d contexts with 90-degree axis rotations.

* Support determining exact surface device rect for 2d surfaces
  with fractional surface transforms.

* Fix line decoration cache key size calculations based on world
  scaling factor.

* Remove `get_clipped_device_rect` usage for calculating clip-mask
  surface allocations, use `surface.get_surface_rect` instead. The
  prior method doesn't correctly account for expanded local regions
  from the current dirty rect, resulting in invalidation issues in
  some animated edge cases. Also unifies the way clip-mask surface
  allocations work with the way general render target surface
  allocations work.

Differential Revision: https://phabricator.services.mozilla.com/D138982
2022-02-20 18:56:55 +00:00
Glenn Watson
74c15bdc0b Bug 1749380 - Part 1 - Improve how WR handles bounding rects for off-screen surfaces r=gfx-reviewers
This patch introduces a number of subtle but important changes
to how we deal with off-screen surfaces. The overall goals are:

 - Improve rendering correctness in a number of edge cases.
 - Begin reducing complexity related to surfaces, scaling
   factors, surface size adjustments and clipping.
 - Improve CPU performance by removing some per-primitive work.
 - Simplify implementation of future SVG and CSS filters by
   having explicit support for picture rects + inflation regions.
 - Lay the groundwork for caching child picture surfaces,
   reduction of per-primitive work during visibility pass,
   simplifying picture code.

Unfortunately, the nature of the changes make it impossible to
split up in to small isolated patches. Details below:

* Introduce `LocalRectKind` concept. This allows us to separate
  out the bounding rect of the surface (a group of primitives
  backed by a texture) from the bounding rect of the picture
  compositing that surface (e.g. a drop-shadow which draws the
  surface once at the local origin and once at a specific offset
  + blur-radius). This fixes a number of correctness bugs we have
  related to culling, clipping, invalidation regions of complex
  primitives such as drop-shadows and blur filters. Importantly,
  it makes it simpler to implement (or fix) SVG filter chains,
  backdrop-filter implementations.

* Establish raster roots for all off-screen surfaces. Every off-screen
  surface uses the spatial node of the enclosing stacking context as
  a coordinate system root, ensuring that each off-screen surface is
  drawn in a 2D coordinate system, with appropriate scaling factors
  applied to ensure high quality rendering. The primary goal is to make
  it possible to correctly inflate and clip off-screen surfaces, removing
  some correctness issues we currently have with complex filters interacting
  with transforms. The initial work here doesn't reduce complexity a huge
  amount, but will allow us to simplify large parts of the picture/surface
  handling code in future, as well as simplify a number of shaders that
  currently must handle arbitrarily complex transform matrices. This will
  also allow us to simplify the implementation of features such as
  mix-blend-mode and backdrop-filter, which rely on readback and UV mapping
  from the parent surface.

* Remove concepts of `estimated` and `precise` local rects for pictures. This
  is both a performance optimization and a code simplification. Instead, we
  only determine the estimated local rect during bounding rect propagation,
  and rely on the clipping regions from the tile dirty regions to reduce which
  parts of the picture we allocate if drawing to an off-screen surface. This
  removes some per-primitive work during the visibility pass, and also means
  we can rely on the final picture bounding rect from the start of the visibility
  pass. This also removes much of the complexity in `take_context` where we
  previously determined surface scale factors and device pixel ratio - instead
  these can be determined earlier during `propagate_bounding_rects`.

* Remove some complexity in `update_prim_visibility`. This is still recursive,
  but follow up patches will aim to remove this recursion and integrate this
  pass with the picture graph (similar to how `propagate_bounding_rects` works).

* Remove `PictureOptions` struct. Instead, store `inflate_if_required` with
  the Blur filter enum, which is the only place that uses it.

* Remove `root_scaling_factor` from text runs - this is handled implicitly
  by the surface device-pixel scale.

* Skip calling `update_clip_task` for pass-through pictures (since they have
  no defined local rect).

* Improve scaling factors used for determining the render task cache size for
  complex line decorations.

Differential Revision: https://phabricator.services.mozilla.com/D137569
2022-02-20 18:56:54 +00:00
Mozilla Releng Treescript
9d26a43fc3 no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD
cak -> b8f64a446e4d54b94da24e18df9d7c6f067474e3
es-MX -> 442397c3cbc460d74f0632ab533890736c531bf6
ko -> 4161267190307de05bd24f4378263cc947cb7654
sl -> 8f0ec420daa525c2ca33b4518b38fd99f7f4ade8
tg -> db78b2393b94b3764eabc83fa395262f70f4fbe5
th -> 7ee8d9f595474c988f7e73467cc50e2f92616124
2022-02-20 07:00:00 +00:00
Shane Caraveo
4d330e8910 Bug 1682681 fix intermittent context menu failure on non-visible elements r=robwu
If elements added to the doc were not visible, context-click on
the element would fail because composedTarget.ownerDocument is null.

Differential Revision: https://phabricator.services.mozilla.com/D138190
2022-02-19 23:27:02 +00:00
Cristian Tuns
ac9b10f49e Merge autoland to mozilla-central. a=merge 2022-02-19 16:39:38 -05:00
Mozilla Releng Treescript
9bfa3568f5 no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD
oc -> d17c1c0e7d712a584f1437b494b59b1cc8a7705a
pl -> 0ea407da33b15099293850eb1bd9b344fb90741c
2022-02-19 19:05:11 +00:00