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

729547 Коммитов

Автор SHA1 Сообщение Дата
Jon Bauman b38af6ac13 Bug 1669033 - dav1d all_layers setting should be set to 0. r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D92813
2020-10-08 00:56:38 +00:00
Nika Layzell 843556c7b5 Bug 1669749 - Fix edge-cases with fission experiment pref integration, r=kmag
This should fix some of the issues discovered by QA during their review of the
fission experiment's preference behaviour.

Differential Revision: https://phabricator.services.mozilla.com/D92780
2020-10-08 00:54:46 +00:00
Emma Malysz b7b328470e Bug 1668476, execute any pending settings updates before printing r=mstriemer
Differential Revision: https://phabricator.services.mozilla.com/D92163
2020-10-08 00:31:38 +00:00
alwu a3dd72e3a6 Bug 1663128 - part4 : enable SMTC after finishing other initializations. r=chunmin
In order to only call `EnableControl()` twice, once in in `Open()` and another one in `Close()`, so reduce other necessary call of `EnableControl()`.

Differential Revision: https://phabricator.services.mozilla.com/D92118
2020-10-07 09:23:05 +00:00
alwu 17ff21b7c5 Bug 1663128 - part3 : the event source should do the cleanup when it closes. r=chunmin
When close the event source, it should be responsible to clear up and reset the virtual control interface, rather than doing so by `Media Control Server` via setting some empty results.

Differential Revision: https://phabricator.services.mozilla.com/D92116
2020-10-07 09:23:08 +00:00
alwu bce9062dc0 Bug 1663128 - part2 : let MediaControlService determine when we should open/close the event source. r=chunmin
The old way to open/close the event source, which is triggered by controller amount change event, is less intuitive, and we do the extra clean up when close the event source by assigning some parameters [1] that causes an issue on Windows where the control interface can't be clear up completely.

Each platform has its own way to clean the interface. For example, on Windows, we can simply call `ISystemMediaTransportControlsDisplayUpdater::ClearAll()`. So calling those functions actually helps nothing. The best way to do that is to ask the event source to do the clean up, rathering than setting those unnecessary parameters.

Therefore, we make it happen closer to when we determine or clear main controller and ask the event source to take a responsible to clean up when it closes.

[1] https://searchfox.org/mozilla-central/rev/35245411b9e8a911fe3f5adb0632c3394f8b4ccb/dom/media/mediacontrol/MediaControlService.cpp#410-413

Differential Revision: https://phabricator.services.mozilla.com/D92115
2020-10-08 00:06:21 +00:00
alwu 1a34753bd6 Bug 1663128 - part1 : remove unused function 'SetControlledTabBrowsingContextId()'. r=chunmin
As we've chosen another way for GeckoView implementation, so `SetControlledTabBrowsingContextId` is no longer needed.

Differential Revision: https://phabricator.services.mozilla.com/D92114
2020-10-07 09:23:18 +00:00
Chun-Min Chang a50bf7dcd8 Bug 1669852 - P2: mach vendor rust r=cubeb-reviewers,kinetik
Depends on D92836

Differential Revision: https://phabricator.services.mozilla.com/D92837
2020-10-07 23:01:48 +00:00
Chun-Min Chang 1a8fcc8d0d Bug 1669852 - P1: Update cubeb-coreaudio to 08a2b75 r=cubeb-reviewers,kinetik
Pick commits:
- 08a2b75: Destroy newly created aggregate device if its initialization fails (#110)
- d3eb08c: Call audio_object_{add, remove}_property_listener outside of assert*! (#112)
- bb0880d: Replace sort by sort_unstable (#111)

Differential Revision: https://phabricator.services.mozilla.com/D92836
2020-10-07 23:01:40 +00:00
Gijs Kruitbosch 41e01e0273 Bug 1667245 - collect telemetry when we would have shown the slow script modal dialog for parent process hangs, r=mccr8,esmyth
Differential Revision: https://phabricator.services.mozilla.com/D91745
2020-10-07 22:49:43 +00:00
Glenn Watson 5eb6500eff Bug 1669567 - Use fixed size texture arrays for picture cache slices. r=jnicol
Previously we used a single texture array for a given tile size,
and resized the texture array as more tiles were needed.

However, this results in expensive driver stalls and GPU copy times
when resizing the array.

Instead, use a fixed slice count for each texture array, and support
multiple textures with the same tile size.

This may result in slightly more draw calls during compositing of
picture cache tiles due to batch breaks, but will remain a small
number due to the limited number of picture cache tiles that are
allocated at any one time.

Differential Revision: https://phabricator.services.mozilla.com/D92715
2020-10-07 21:58:06 +00:00
Ted Campbell 919607a361 Bug 1669847 - Make CompilationStencil instantiation const. r=arai
Depends on D92831

Differential Revision: https://phabricator.services.mozilla.com/D92832
2020-10-07 22:20:30 +00:00
Ted Campbell d59c14138b Bug 1669847 - Make RegExpStencil instantiation const. r=arai
Depends on D92830

Differential Revision: https://phabricator.services.mozilla.com/D92831
2020-10-07 22:20:28 +00:00
Ted Campbell 74dd725fd9 Bug 1669847 - Make StencilModuleMetadata instantiation const. r=arai
Depends on D92829

Differential Revision: https://phabricator.services.mozilla.com/D92830
2020-10-07 22:20:20 +00:00
Ted Campbell 19c58cf667 Bug 1669847 - Make ScriptStencil instantiation const. r=arai
Depends on D92828

Differential Revision: https://phabricator.services.mozilla.com/D92829
2020-10-07 22:20:18 +00:00
Ted Campbell 17de77bbc1 Bug 1669847 - Make ScopeStencil instantiation const. r=arai
Depends on D92827

Differential Revision: https://phabricator.services.mozilla.com/D92828
2020-10-07 22:20:15 +00:00
Ted Campbell e879599871 Bug 1669847 - Deduplicate bytecode while building Stencil. r=arai
Instead of waiting until instantiation, deduplicate the bytecode as soon as
we create the stencil. This lets the stencil become immutable sooner.

Differential Revision: https://phabricator.services.mozilla.com/D92827
2020-10-07 23:01:56 +00:00
Botond Ballo 3e82ab456a Bug 1664101 - When querying the displayport for the purpose of applying it to fixed content, apply an async scroll adjustment suitable for fixed content. r=kats
Differential Revision: https://phabricator.services.mozilla.com/D92508
2020-10-07 22:36:57 +00:00
Botond Ballo 784c840349 Bug 1664101 - Propagate DisplayPortOptions up to GetHighResolutionDisplayPort and down to GetDisplayPortFromMarginsData. r=kats
Differential Revision: https://phabricator.services.mozilla.com/D92507
2020-10-07 22:35:20 +00:00
Botond Ballo 5fac61e3d1 Bug 1664101 - Store displayport margins in unadjusted form. r=kats
Where an adjustment (to reflect a delta between the APZ and layout
scroll offsets) is necessary, the inputs needed to compute the
adjustment are stored with the margins, and the adjustment is
applied at query time.

A couple of notes on this patch:

 * Storing DisplayPortMargins::mLayoutOffset is probably unnecessary,
   we should be able to just query the scroll frame's layout offset
   when applying the margins.

 * Some callers of DisplayPortMargins::WithNoAdjustment() may be
   incorrect, in that they pass in margins that are relative to the
   visual viewport but do not make a corresponding adjustment.
   This is a pre-existing issue that this patch just makes clearer.

As this is a regression-prone area, this patch is careful to avoid
making any functional changes, leaving the above issues to be
addressed in future bugs.

Differential Revision: https://phabricator.services.mozilla.com/D92506
2020-10-07 22:35:07 +00:00
Botond Ballo 715fb4d644 Bug 1664101 - Move DisplayPort*PropertyData below DisplayPortOptions. r=kats
In a later patch, DisplayPortMarginsPropertyData will have a
dependency on one of the options.

Differential Revision: https://phabricator.services.mozilla.com/D92505
2020-10-07 22:34:54 +00:00
Botond Ballo c4fb54eee1 Bug 1664101 - Fix an incorrect usage of the visual viewport offset in ComputeVisibleRectForFrame(). r=kats
It's used as the offset of the visible rect, which is intended to be
relative to the layout viewport.

This is mostly hidden by the fact that we almost always
overwrite this value with the displayport rect offset.

Differential Revision: https://phabricator.services.mozilla.com/D90784
2020-10-07 22:34:47 +00:00
Mike Hommey 3a86574eae Bug 1669642 - Rename LLVMCONFIG to LLVM_CONFIG and derive it like we do for LLVM_OBJDUMP. r=firefox-build-system-reviewers,andi,rstewart
Differential Revision: https://phabricator.services.mozilla.com/D92737
2020-10-07 22:36:49 +00:00
Noemi Erli d830360f15 Backed out changeset d4b7aea9a014 (bug 1663967) for causing failures in browser_permmgr_sync.js CLOSED TREE 2020-10-08 06:25:39 +03:00
Csoregi Natalia 708c2f0ad2 Backed out changeset d42dc1f995bb (bug 1669275) for gfx crashes. CLOSED TREE 2020-10-08 04:26:03 +03:00
Csoregi Natalia da0a3666b9 Backed out 4 changesets (bug 1664804) for failures on browser_inspector_highlighter-geometry_06.js. CLOSED TREE
Backed out changeset a54e27ab0e56 (bug 1664804)
Backed out changeset 5e665bbcad8d (bug 1664804)
Backed out changeset f9c62853d8ba (bug 1664804)
Backed out changeset 17fef6ea08fe (bug 1664804)
2020-10-08 04:12:57 +03:00
Roger Yang c6a26a8b39 Bug 1666766 - Add ApplicationBuildID annotation for determining builds that are affected by a crash. r=gsvelto
Differential Revision: https://phabricator.services.mozilla.com/D91206
2020-10-07 17:45:41 +00:00
Jon Bauman 3532affb49 Bug 1651239 - Merge GeckoMediaPluginServiceChild::GetContentParent methods. r=bryce
Differential Revision: https://phabricator.services.mozilla.com/D92341
2020-10-07 19:40:40 +00:00
Robert Mader 8a5c42d45a Bug 1669275 - [WR/EGL/X11] Use GLX features on mesa. r=stransky
This allows mesa to continue using the existing vsync implementation
and nvidia to use the new EGL xvisual logic.

It is an intermediate solution until the issues are fixed. However,
assuming it will take a while to do so, it's probably worth it.

Differential Revision: https://phabricator.services.mozilla.com/D92466
2020-10-07 21:21:20 +00:00
Emilio Cobos Álvarez 6d9522e464 Bug 1669772 - Don't do a silly print preview from window.print() with the new tab modal UI. r=jwatt
The comment should be self-descriptive. We keep cloning the doc sync and
the UI will preview that doc, so it works out nicely and we do less
work.

Differential Revision: https://phabricator.services.mozilla.com/D92806
2020-10-07 22:23:43 +00:00
Kris Maglione 832d650ddb Bug 1669538: Expose reason for Fission enablement decision in nsIXULRuntime. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D92676
2020-10-07 22:13:48 +00:00
Andreas Pehrson 3f339deda4 Bug 1616729 - Show top window's document origin to users when requesting media device permissions. r=geckoview-reviewers,johannh,agi
This is similar to what we do on desktop.

Differential Revision: https://phabricator.services.mozilla.com/D92239
2020-10-07 21:42:22 +00:00
Andreas Pehrson b63c589e27 Bug 1616729 - Use the top window's document origin for requesting camera permissions. r=geckoview-reviewers,johannh,agi
Differential Revision: https://phabricator.services.mozilla.com/D92238
2020-10-07 21:42:40 +00:00
Andreas Pehrson 68ab8f8c2d Bug 1616729 - Add geckoview-junit test for cross-origin subframe gUM request with allow/no-allow. r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D92763
2020-10-07 19:18:39 +00:00
Eitan Isaacson 7a572196df Bug 1669821 - Implement search predicate API on virtual root. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D92820
2020-10-07 20:34:21 +00:00
Aki Sasaki dea69bae37 Bug 1669635 - add debugging info to missing pushdate. r=releng-reviewers,mtabara
Differential Revision: https://phabricator.services.mozilla.com/D92812
2020-10-07 21:33:30 +00:00
Razvan Caliman 9ff9f666b0 Bug 1667368 - [devtools] Prevent accidentally creating multiple highlighter instances r=jdescottes
When requesting a highlighter instance, the inspector front returns one from its cache if present, otherwise it sends a request to the server create a new one.

But if multiple requests come in very quickly before the server responds to the original request, the cache is still empty so the front fires a few more requests. How many? It's arbitrary. As many as fit before the original request's promise resolves and the cache is set. This is the root cause for the issue of seeing duplicate highlighters.

The issue is more pronounced when there is congestion: many microtasks in the queue, for example when loading a heavy tool like the Inspector on a complex page.

To solve this, we store the unsettled promise to create a highlighter and explicitly wait for it to resolve while ignoring subsequent requests.

Differential Revision: https://phabricator.services.mozilla.com/D92802
2020-10-07 20:30:44 +00:00
Julian Descottes 1d736794aa Bug 1669353 - [devtools] Tweak about:debugging main process test to check no target is created r=ochameau
Depends on D92499
Tweak an existing mock in the main process about:debugging test to check that we are not creating any target.

Differential Revision: https://phabricator.services.mozilla.com/D92553
2020-10-07 10:54:16 +00:00
Alexandre Poirot a73761a538 Bug 1669353 - [devtools] Stop instantiating main process target front from about:debugging. r=jdescottes
We can let about:devtools-toolbox instantiate it, as we do for most other target types.

Differential Revision: https://phabricator.services.mozilla.com/D92499
2020-10-07 21:22:32 +00:00
Alexandre Poirot 68f928fc97 Bug 1669353 - [devtools] Remove unused processId attribute from about:debugging on process targets. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D92498
2020-10-07 21:22:24 +00:00
J.C. Jones 429b38902b Bug 1666701 - Upgrade Authenticator-rs to v0.3.1 r=kjacobs,keeler
This patch fixes a failure to compile on OpenBSD, and also includes the new
(and not yet used by Gecko) WebDriver implementation, and its associated
error-code upgrades.

This has a lot of new packages added into the cargo-checksum, but they were
already used by Gecko, and thus don't change the gecko-wide Cargo.{lock,toml}
files.

Differential Revision: https://phabricator.services.mozilla.com/D92784
2020-10-07 19:14:34 +00:00
Matt Woodrow 0563d3a60a Bug 1664804 - Allow external surfaces for WebGL again. r=jgilbert
This check was previously added in bug 1628175, and then accidentally removed in bug 1632249.

Differential Revision: https://phabricator.services.mozilla.com/D91671
2020-10-07 20:39:21 +00:00
Matt Woodrow 045e73c50c Bug 1664804 - Skip building RSF content if we have an opaque top layer occluding it. r=miko
Differential Revision: https://phabricator.services.mozilla.com/D91670
2020-10-07 20:39:18 +00:00
Matt Woodrow 00c5ca19cb Bug 1664804 - Compute whether top layer content is opaque. r=miko
The default styling for a ::backdrop pseudo element results in it being fully opaque and occluding all the rest of the page.
This allows us to detect that case early, and skip doing any work for the rest of the page.

Differential Revision: https://phabricator.services.mozilla.com/D91669
2020-10-07 20:39:14 +00:00
Matt Woodrow 14f5ceea5b Bug 1664804 - Build top layer content before we build scrolled content. r=miko
Differential Revision: https://phabricator.services.mozilla.com/D91668
2020-10-07 20:39:01 +00:00
Matt Woodrow bd855a3f9e Bug 1668713 - Disable D2D canvas when using SWGL. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D92171
2020-10-07 21:07:06 +00:00
Daniel Holbert 3e52de68f4 Bug 1669774 part 2: Rename some APIs and variables for accuracy (s/page/sheet/) in nsPrintJob, nsPagePrintTimer, and nsDocumentViewer. r=TYLin
Differential Revision: https://phabricator.services.mozilla.com/D92791
2020-10-07 21:00:26 +00:00
Daniel Holbert fd2a60b29e Bug 1669774 part 1: Rename some nsPageSequenceFrame APIs and vars with s/page/sheet/for accuracy. r=TYLin
Differential Revision: https://phabricator.services.mozilla.com/D92789
2020-10-07 20:59:05 +00:00
Daniel Holbert 06a402acb0 Bug 1661868 part 2: Unify page-range handling logic, to assume all PrintedSheetFrames should be printed (and let them manage page-range-based skipping during layout). r=TYLin
This patch does the following things:

(1) It removes the legacy page-range-handling function
"DetermineWhetherToPrintPage()", and it now will always print every
PrintedSheetFrame.

(2) It activates PrintedSheetFrame's page-range handling function so that it
can take over responsibility for skipping pages during print operations.

(3) It adjusts the nsPrintJob code that kicks off individual asynchronous
"print the next page" operations (which is now really "print the next
PrintedSheetFrame).  This nsPrintJob code used to have page-range-related
handling interwoven into it, and that handling isn't necessary anymore now that
we're handling page-skipping up front at layout time.

(4) It replaces the mPageNum member-var (which tracks which page we're about to
print or are currently printing) with mCurrentSheetIdx, which is now a 0-based
index into the list of PrintedSheetFrame instances.

(5) It removes nsPrintData:mNumPagesPrinted, which was only used for
progress-bar-completion updates & which basically tracked the same information
that I'm tracking in the new mCurrentSheetIdx variable.

There's some additional cleanup that we should do after this lands (e.g. some
s/page/sheet/ renamings) but I'm holding off on that for now, to keep this
patch relatively targeted.

Differential Revision: https://phabricator.services.mozilla.com/D92660
2020-10-07 20:51:56 +00:00
Daniel Holbert 59211689e7 Bug 1661868 part 1: Broaden PrintedSheetFrame's "layout-time" page-range handling to support complex page ranges. r=TYLin
This patch does the following:

* It adds better documentation for the meanings of the page range member-vars
in nsSharedPageData.

* It copies some logic (with minor tweaks) from the legacy codepath that
handles page-range support (nsPageSequenceFrame::DetermineWhetherToPrintPage())
into to the new codepath for page-range support (PrintedSheetFrame.cpp's helper
function "TagIfSkippedByCustomRange()").

At this point in the patch stack, the legacy codepath is unchanged & still
handles all print operations; and the new PrintedSheetFrame.cpp codepath only
handles page-range-skipping for the print-preview visualization in the
Tab-Modal print dialog. So, this patch effectively gives that print-preview
visualization the platform-support that it would need for complex page ranges
(though that's not available in the UI at this point, so you can't really test
that).

Spoiler alert: the next patch in this series will remove the legacy codepath
entirely, and at *that* point, the platform-native print dialog's
complex-page-range feature will be backed by the PrintedSheetFrame.cpp code
that's added here.

Differential Revision: https://phabricator.services.mozilla.com/D92696
2020-10-07 20:45:23 +00:00