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

748072 Коммитов

Автор SHA1 Сообщение Дата
Emilio Cobos Álvarez 48c495e72e Bug 1697240 - Refactor ScrollbarDrawingMac to not depend on a DrawTarget. r=mstange
Just return a simplified set of operations (basically rects to fill and the
thumb, which is a bit more complicated but not all that much).

Differential Revision: https://phabricator.services.mozilla.com/D107688
2021-03-10 01:04:51 +00:00
Markus Stange d95df5f0bf Bug 1697341 - Remove vibrancy code for sheet windows. r=spohl
With -moz-appearance: dialog now always being transparent, setting up our own
vibrant views for sheet windows is no longer necessary. We now let the regular
sheet window background show through, and that background is already vibrant.

Differential Revision: https://phabricator.services.mozilla.com/D51462
2021-03-10 00:54:21 +00:00
Brad Werth 9650554c2e Bug 1692029 Part 1: Make TextureHost report a native texture policy. r=lsalzman
Whether or not we use a native texture or something else is affected by our
backend and the size of the texture. This patch adds a new function to
centralize that logic in TextureHost, and applies it in callsites that were
checking the backend to determine an image type.

Differential Revision: https://phabricator.services.mozilla.com/D106568
2021-03-10 00:46:32 +00:00
Brad Werth f963cdd26f Bug 1674142: Add additional checks to find a crash in InProcessCompositorWidget::PreRender. r=jrmuizel
There are decreasingly-plausible explanations for how mWidget becomes  NULL in
the crash reports we are seeing. This patch closes one of the possible -- but
still unlikely -- reasons by checking for a NULL pointer after a static_cast.
The contract for static_cast should not allow it to return NULL with non-NULL
input, but it would trigger the crashes we are seeing.

Another possibility is that dangling pointers to InProcessCompositorWidget
objects are being held. The patch adds a canary pointer and a sanity-checking
function that's called in all member functions that dereference mWidget.

Differential Revision: https://phabricator.services.mozilla.com/D106672
2021-03-10 00:45:49 +00:00
Andrew Osmond efc50aee90 Bug 1697306 - Clamp frame buffer bounds to current widget size when locking draw target. r=lsalzman
Sometimes we end up racing on the widget size, and it can shrink between
BeginFrame and StartCompositing. We calculated our dirty region based on
the previous widget size, so we need to clamp the bounds here to ensure
we remain within the buffer.

Differential Revision: https://phabricator.services.mozilla.com/D107726
2021-03-10 00:21:17 +00:00
Jesse Schwartzentruber 32d19f30ad Bug 1695285 - Pass ASan/UBSan flags to cargo for native builds. r=firefox-build-system-reviewers,glandium
Differential Revision: https://phabricator.services.mozilla.com/D106652
2021-03-10 00:05:28 +00:00
Masayuki Nakano 468bffc558 Bug 1429523 - Make IMEContentObserver ignore character data change notifications of invisible data nodes r=smaug
E.g., comment node is an invisible data node, and it's not handled by
`HTMLEditor` nor `ContentEventHandler`.  Therefore, `IMEContentObserver`
should ignore invisible data nodes, which are not derived from `dom::Text`.

Differential Revision: https://phabricator.services.mozilla.com/D107590
2021-03-09 23:57:56 +00:00
Masayuki Nakano eec5dff65e Bug 1655539 - Add crash test (the bug itself is fixed by the patch for bug 1677566) r=m_kato
Differential Revision: https://phabricator.services.mozilla.com/D107589
2021-03-09 23:57:55 +00:00
Masayuki Nakano 7af10cee55 Bug 1677566 - part 3: Ignore non-deletable ranges in `HTMLEditor::HandleDeleteSelection()` r=m_kato
For making delete handlers simpler, and set better target ranges to the
corresponding `beforeinput` event, we should ignore non-editable ranges
before handling deletion.

This patch makes editor stop handling deleteion when a range crosses editing
host boundaries.  In this case, Gecko has done nothing, but fired
`beforeinput` event.  Note that Blink deletes editable contents in the range
**until** it meets first non-editable content, but I don't think this is
a good behavior because it makes things complicated.  Therefore, I filed
a spec issue: https://github.com/w3c/editing/issues/283

On the other hand, this behavior change causes different behavior in
https://searchfox.org/mozilla-central/source/editor/libeditor/crashtests/1345015.html

It tries to insert paragraph into `<html>` element, but our editor currently
does not support it.  Therefore, it hits `MOZ_ASSERT`.  Therefore, this patch
added a new check into `HTMLEditor::InsertParagraphSeparatorAsSubAction()`.

Differential Revision: https://phabricator.services.mozilla.com/D107588
2021-03-09 23:57:54 +00:00
Masayuki Nakano 1229430221 Bug 1677566 - part 2: Make `HTMLEditUtils` treat a found non-editable element as a leaf node even if it has children r=m_kato
Blink treats each non-editable node as an atomic object.  E.g., deleting or
forward-deleting from next to a non-editable element, it deletes only one
non-editable element.

Unfortunately, our layout treat adjacent non-editable nodes as a node.
Therefore, the adding WPTs do not work, but they are not new regression of
this patch.

Differential Revision: https://phabricator.services.mozilla.com/D107587
2021-03-09 23:57:54 +00:00
Masayuki Nakano e659ab60ed Bug 1677566 - part 1: `WSRunScanner::TextFragmentData` stop handling non-editable content r=m_kato
It does not make sense `WSRunScanner` handles invisible white-spaces in
non-editable elements.  Therefore, this patch makes it stop handling in the
cases.

Note that this change causes new fail of some WPTs.  That will be fixed by
the following patch.

Differential Revision: https://phabricator.services.mozilla.com/D107586
2021-03-09 23:57:54 +00:00
Micah Tigley cc66196bf3 Bug 1694512 - Add automated tests for Share item in tab context menu r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D106999
2021-03-09 23:53:32 +00:00
Andrew Osmond 4156f6297c Bug 1696025 - Avoid allocating a draw target when not presenting frames. r=lsalzman
Internally WebRender may try to redraw a frame to update its picture
cache textures, but the frame will not be presented. This patch prevents
us from allocating a draw target in that case, avoiding an assert when
said draw target is freed without releasing our buffer lock (done when
we present.)

Differential Revision: https://phabricator.services.mozilla.com/D107722
2021-03-09 23:46:54 +00:00
Makoto Kato 85c00f819f Bug 1695531 - Don't wait for focus when all tests are finished. r=botond
Previous fix of bug 1681211 waited for focus even if all tests were finished.
It caused that sendAsyncMessage may post the cleanup message after the window
is destroyed.

So I shouldn't wait for focus when all tests are finished.

Differential Revision: https://phabricator.services.mozilla.com/D107435
2021-03-09 23:37:51 +00:00
Barret Rennie 416e462689 Bug 1672431 - Provide a shutdown client for IOUtils r=xpcom-reviewers,nika
IOUtils now provides a shutdown client for clients to register IO jobs with
that need to run before shutdown finishes. This allows IO jobs to run during
the profileBeforeChange phase.

IOUtils' event queuing has been refactored into a singleton EventQueue class,
which is responsible for running tasks and setting up shutdown blockers. It is
now guarded behind a StaticDataMutex so that is more explicitly clear what is
and is not re-entrant. (The atomic sShutdownFinished cannot be placed behind
the mutex because we need to keep track of that state even when we do not have
an EventQueue.)

Differential Revision: https://phabricator.services.mozilla.com/D103973
2021-03-09 23:11:13 +00:00
Barret Rennie 05b1271a4d Bug 1672431 - Remove unsued InvokeToIOPromise r=nika
Differential Revision: https://phabricator.services.mozilla.com/D103972
2021-03-09 23:11:13 +00:00
Scott d21d1260f9 Bug 1696287 - Fixing Pocket cookie host check. r=gvn
Differential Revision: https://phabricator.services.mozilla.com/D107713
2021-03-09 23:04:41 +00:00
Narcis Beleuzu ca91076256 Backed out changeset 147d0fb218c3 (bug 1696546) for mda crashes on libc.so . CLOSED TREE 2021-03-10 06:12:49 +02:00
Narcis Beleuzu e783ef6d6e Backed out 5 changesets (bug 1694906) for dt failures on browser_target_list_frames.js . CLOSED TREE
Backed out changeset bd5cb6f8b41f (bug 1694906)
Backed out changeset c23343373584 (bug 1694906)
Backed out changeset 02428006de51 (bug 1694906)
Backed out changeset 284e000deded (bug 1694906)
Backed out changeset 3b5269fe0113 (bug 1694906)
2021-03-10 04:52:56 +02:00
Narcis Beleuzu 198358fc15 Backed out changeset a4f4f640eaa7 (bug 1696845) for bustages on pangofc-fontmap.h 2021-03-10 04:49:51 +02:00
stransky 9498e1b52e Bug 1696869 [Linux] Don't use GBM_BO_USE_TEXTURING and GBM_BO_USE_SCANOUT dmabuf flags, r=jhorak
- Don't use GBM_BO_USE_TEXTURING|GBM_BO_USE_SCANOUT when dmabuf object is created without modificators.
- Sync dmabuf objects on map/unmap.

Differential Revision: https://phabricator.services.mozilla.com/D107531
2021-03-09 22:56:40 +00:00
Jan Alexander Steffens (heftig) 1261a74d17 Bug 1696845 - Use dlsym for gdk_*_display_get_type. r=stransky
Using `dlsym` for `gdk_wayland_display_get_type` is a cleaner solution
to bug 1696319, allowing running with a GTK that lacks the Wayland
backend.

Also adds a symmetric implementation for `gdk_x11_display_get_type`,
which should help running without X11.

Differential Revision: https://phabricator.services.mozilla.com/D107406
2021-03-09 22:55:47 +00:00
Daisuke Akatsuka a82889dc4f Bug 1697068: Update MDN compat data. r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D107581
2021-03-09 22:37:49 +00:00
Morgan Reschenberg e0b192a05f Bug 1694717: Add probes to log foreground and background colors when HCM is on r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D107563
2021-03-09 22:31:32 +00:00
sotaro e6275d7e5d Bug 1697155 - Add AllowSoftwareWebRenderOGL() to CompositorOptions to allow Software WebRender with CompositorOGL on a per widget basis r=aosmond
This is preparation of bug 1697096.

Differential Revision: https://phabricator.services.mozilla.com/D107638
2021-03-09 22:24:15 +00:00
Alexandre Poirot ded54f2a65 Bug 1697184 - Pass data entries to top level target even when the client doesn't watch for frames. r=jdescottes
This fixes all features currently depending on data entries, like breakpoints and target configurations.

Differential Revision: https://phabricator.services.mozilla.com/D107653
2021-03-09 22:18:57 +00:00
Dave Hunt bbe73659d6 Bug 1697199 - Remove raptor-webext recorded pageload tests r=perftest-reviewers,sparky
Differential Revision: https://phabricator.services.mozilla.com/D107660
2021-03-09 21:49:41 +00:00
Emilio Cobos Álvarez c3fa8e2b78 Bug 1696931 - Use even padding in menuitems on OSX. r=mstange
Otherwise with some fonts the menus look off. This doesn't change visual
appearance with the default font, afaict (but I don't have such a good eye so
please double-check).

Maybe we should do this only for the content select dropdown, but then again my
untrained eye doesn't see an issue for other menuitems either so...

Differential Revision: https://phabricator.services.mozilla.com/D107630
2021-03-09 21:41:25 +00:00
Emilio Cobos Álvarez a9fb30bddc Bug 1696931 - Prevent osx menu checkmark from growing the line. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D107629
2021-03-09 21:41:25 +00:00
Jon Bauman f8f210ce59 Bug 1696780 - Update mp4parse-rust to 94c3b1f. r=bryce,kinetik
Differential Revision: https://phabricator.services.mozilla.com/D107702
2021-03-09 21:36:31 +00:00
Jon Bauman 2b5cab2497 Bug 1694113 - image.avif.enabled should depend on MOZ_AV1. r=agashlin
Differential Revision: https://phabricator.services.mozilla.com/D107706
2021-03-09 21:35:30 +00:00
Mike Hommey b1f45b497d Bug 1697098 - Default to --enable-bootstrap for arm64 mac builds. r=firefox-build-system-reviewers,andi,sheehan,mhentges
Differential Revision: https://phabricator.services.mozilla.com/D107601
2021-03-09 21:27:52 +00:00
prathikshaprasadsuman 8101c15778 Bug 1694959 - Update copy for notifications permission panel. r=mconley,flod
Differential Revision: https://phabricator.services.mozilla.com/D107628
2021-03-09 21:26:17 +00:00
Tim Nguyen f8f4fb14e3 Bug 1697293 - Improve Proton compact density. r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D107720
2021-03-09 21:23:52 +00:00
Morgan Reschenberg 78d79399ab Bug 1695716: Use ink overflow rect to calculated relative bounds when frame area is zero r=Jamie,emilio
Depends on D107001

Differential Revision: https://phabricator.services.mozilla.com/D106384
2021-03-09 21:01:37 +00:00
Morgan Reschenberg 9888565597 Bug 1696023: Report accessible's position even when bounds rect is empty r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D107001
2021-03-09 21:01:37 +00:00
Julian Descottes 6fed1559e0 Bug 1694906 - [devtools] Fix race conditions in various devtools webextensions tests r=rpl
Depends on D107099

With the previous patch, we are waiting for toolbox open before creating contexts.
This makes some tests a bit racy if they are only waiting for toolbox open. They should also wait for the context to be ready.
Firing an event from the devtools_page seems to work fine for this but don't hesitate to suggest a better approach.

Differential Revision: https://phabricator.services.mozilla.com/D107100
2021-03-09 20:50:43 +00:00
Julian Descottes 64bebf7d61 Bug 1694906 - [devtools] Wait for toolbox-ready instead of toolbox-created in ext-devtools.js r=rpl
Depends on D107052

toolbox-ready guarantees that the toolbox will have a valid target attached.

Differential Revision: https://phabricator.services.mozilla.com/D107099
2021-03-09 20:50:43 +00:00
Julian Descottes 7d14461043 Bug 1694906 - [devtools] Add new option to createDescriptorForTab to support devtools webextensions r=rpl,ochameau
Depends on D106426

Without this patch queue, `createDescriptorForTab` was not caching its descriptors, so each call to it would yield a new descriptor.
Since the webextension codebase really needs to use a different target from the one used by the DevTools toolbox, suddenly sharing the Toolbox's descriptor was an issue.

Addressing it with an explicit parameter to make this expectation from the webextension codebase a bit clearer for us.

Differential Revision: https://phabricator.services.mozilla.com/D107052
2021-03-09 20:50:42 +00:00
Julian Descottes 0f66091841 Bug 1694906 - [devtools] Use descriptors instead of targets in all toolbox APIs r=ochameau,nchevobbe,rpl
Depends on D107051

Differential Revision: https://phabricator.services.mozilla.com/D106426
2021-03-09 20:50:42 +00:00
Julian Descottes 4b70107605 Bug 1694906 - [devtools] Remove remaining call sites for showToolbox in extension tests r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D107051
2021-03-09 20:50:41 +00:00
Greg Tatum eec448bd47 Bug 1695671 - Update strings in the global menubar r=Gijs,flod
Differential Revision: https://phabricator.services.mozilla.com/D107533
2021-03-09 20:17:32 +00:00
Alexandru Michis 340a2daf9d Backed out 3 changesets (bug 1686741) for causing awsy failures in TestMemoryUsage.test_open_tabs
CLOSED TREE

Backed out changeset 68ceed0186b8 (bug 1686741)
Backed out changeset edb492e25698 (bug 1686741)
Backed out changeset 213c96fc82bd (bug 1686741)
2021-03-10 00:47:12 +02:00
Alexandru Michis 06f97bce8a Backed out 4 changesets (bug 1695906, bug 1686031) for causing bustages in ActorsParent.cpp
CLOSED TREE

Backed out changeset 43a39c491548 (bug 1686031)
Backed out changeset 9be2fd0b5b6a (bug 1686031)
Backed out changeset f483f50d292a (bug 1695906)
Backed out changeset 470d617d7673 (bug 1686031)
2021-03-09 23:06:01 +02:00
Nisarg 3e0b107e69 Bug 1369784 - Improve the default behaviour of mozlint if no file paths or linters are specified r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D107394
2021-03-09 20:07:00 +00:00
nisarg 79603524c1 Bug 1646161 - Add command to run linters for the exclude list r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D105115
2021-03-09 20:07:00 +00:00
Glenn Watson b6d27eceff Bug 1696842 - Establish raster roots for more picture composite modes. r=gfx-reviewers,lsalzman
Add MixBlend and ComponentTransfer to the picture composite modes that
unconditionally establish a raster root.

All the known bugs with the raster root code have been fixed, so let's
start incrementally enabling raster roots for more picture modes, and
fix any regressions that come from these before making raster roots
the default for all surfaces.

Differential Revision: https://phabricator.services.mozilla.com/D107405
2021-03-09 20:05:47 +00:00
Andrew Halberstadt 155dabdde2 Bug 1697272 - [mozboot] Consider 'MACHRC' environment variable when enabling telemetry, r=firefox-build-system-reviewers,mhentges DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D107705
2021-03-09 20:04:57 +00:00
Tim Nguyen ec24bc56ff Bug 1697277 - Fix inactive window titlebar background for non-proton themes. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D107707
2021-03-09 20:00:56 +00:00
Narcis Beleuzu aaad782884 Backed out 1 changesets (bug 1697195) for dt failures on nsDisplayList.cpp. CLOSED TREE
Backed out changeset d5ebf7eedb59 (bug 1697195)
2021-03-09 21:59:57 +02:00