Commit Graph

741680 Commits

Author SHA1 Message Date
Bernard Igiri
cc349bf06f Bug 1687116 - Enabling Help and Feedback links in Windows and Linux in the About Dialog. r=Gijs
Enabling help and feedback links in Windows and Linux by making sure the functions for these are available in the About dialog in Windows and Linux builds.

Differential Revision: https://phabricator.services.mozilla.com/D102512
2021-01-21 18:57:43 +00:00
Connor Sheehan
b298e2e1a1 Bug 1687947: keep Atom declarations on a single line and exclude from black formatting r=hsivonen
These lines are parsed by the `htmlparser` and are expected to be on a single
line. The `black` reformat has moved some of these definitions to multiple lines
due to line length. This commit moves all declarations back to a single line and
adds `fmt: {off,on}` statements so they will be ignored in future reformats.

Differential Revision: https://phabricator.services.mozilla.com/D102626
2021-01-21 18:00:16 +00:00
Jim Blandy
d45fbc5a22 Bug 1676554: Decide whether rectangles fall within rounded rectangles more accurately. r=gw
Under software WebRender, performance is substantially improved if we make the approximations in ClipItemKind::get_clip_result more accurate.

That function's job is to decide whether a primitive falls entirely inside a
clip, entirely outside it, or has regions of both. If the primitive is known to
fall entirely inside the clip, WebRender doesn't bother applying the clip to it.
This also saves WR the trouble of rendering the clip mask itself - which is what
the cs_rectangle_clip shader is spending a lot of time on when displaying these
pages.

Before this change, ClipItemKind::get_clip_result handles rounded rectangle clip
regions by computing an 'inner rect', a rectangle inset from the rounded
rectangle on each side by the relevant rounding radii. This is a correct
conservative approximation, but it means that any primitive that lies flush with
one of the flat sides of the clip is considered to only be partially within the
clip, and thus needs to have the clip mask applied - even though simple
rectangle intersection would serve.

With this change, instead of an 'inner rect', we approximate the rounded
rectangle by a rectangle with rectangular chunks taken out of each corner. This
lets us recognize more primitives as being fully within the clip, and apply the
clip mask less often.

Differential Revision: https://phabricator.services.mozilla.com/D102526
2021-01-21 03:59:25 +00:00
Dana Keeler
358fbca039 Bug 1686814 - remove unnecessary es6 modules inclusions in aboutNetError.xhtml r=johannh
These modules were included in bug 1685552, but they weren't necessary.

Differential Revision: https://phabricator.services.mozilla.com/D102345
2021-01-21 19:06:44 +00:00
Cosmin Sabou
c2cbf590a6 Backed out changeset 975f6057245a (bug 1572798) for turning bug 1511706 to perma. CLOSED TREE 2021-01-21 21:35:33 +02:00
Cosmin Sabou
e508d18913 Backed out changeset 47e661ca053c (bug 1543327) for causing browsertime failures. 2021-01-21 21:26:58 +02:00
Nicolas B. Pierron
b39cce4fb7 Bug 1679922 - Change wording of --enable-arm64-fjcvtzs to include Enable|Disable. r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D102630
2021-01-21 19:00:50 +00:00
Punam Dahiya
2b1385159c Bug 1686142 - Update SHOW_MIGRATION_WIZARD SpecialMessageActions Schema to validate source param r=k88hudson
Differential Revision: https://phabricator.services.mozilla.com/D101818
2021-01-21 18:47:13 +00:00
Mark Banner
9c69be2431 Bug 1685986 - Prepare to enable ESLint on gfx/wr/debugger/ where possible. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D101334
2021-01-21 18:35:57 +00:00
Mark Banner
d5cb20e148 Bug 1685986 - Automatically fix ESLint issues in gfx/wr/debugger. r=mstange
This is fixing formatting (prettier) and dot-notation issues.

Differential Revision: https://phabricator.services.mozilla.com/D101333
2021-01-21 18:36:23 +00:00
Kagami Sascha Rosylight
69d9e4312c Bug 1686225 - Part 1: Replace infallible with needsErrorResult r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D102254
2021-01-21 15:49:29 +00:00
Nicolas B. Pierron
704ee8449e Bug 1679922 - Apple Aarch64: Hard code JSCVT feature flag. r=lth
Apple Silicon does not provide any way to figure out the JSCVT flag at runtime.
This patch hard code in the MOZ_AARCH64_JSCVT macro the expected value of the
JSCVT flag expected on Apple Silicon hardware.

Differential Revision: https://phabricator.services.mozilla.com/D101208
2021-01-21 12:06:33 +00:00
Iain Ireland
4406a700db Bug 1687661: Add test r=jandem
Depends on D102468

Differential Revision: https://phabricator.services.mozilla.com/D102469
2021-01-21 18:00:55 +00:00
Iain Ireland
4d4c26a45d Bug 1687661: Mark ToNumberInt32 as guard r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D102468
2021-01-21 17:19:50 +00:00
Emilio Cobos Álvarez
a713e37be6 Bug 1572798 - Make content browsing contexts for tabs start as inactive. r=nika
Otherwise autoplay blocking until-in-foreground breaks with the other
patch in this bug, because it unblocks media playback once a browsing
context is active for the first time.

Differential Revision: https://phabricator.services.mozilla.com/D42329
2021-01-21 17:40:12 +00:00
Petr Sumbera
fdaca8c7bc Bug 1554971 - Add missing architectures for runtime.getPlatformInfo r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D102610
2021-01-21 17:04:34 +00:00
Iain Ireland
1cd5083b5a Bug 1687672: Add BailoutKind::UnboxFolding r=jandem
This uses a similar approach to LICM / BoundsCheckHoisting / etc.

Note that if we would have hit the unbox anyway, then we'll hit it after bailing out and update the CacheIR, so this won't cause us to recompile additional times. This means that we could end up turning off FoldLoadsWithUnbox in cases where it's not the problem, but unlike LICM it's not making a big enough difference to justify special treatment.

Differential Revision: https://phabricator.services.mozilla.com/D102505
2021-01-21 17:23:55 +00:00
nirmay
55420bffb0 Bug 1677643 - Replace nsIScrollableFrame::{HORIZONTAL, VERTICAL} with ScrollDirections. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D102087
2021-01-21 17:45:19 +00:00
Olli Pettay
8c3701e76e Bug 1684310 - Selecting a specific history entry from the dropdown may not cause a navigation, r=jesup
Differential Revision: https://phabricator.services.mozilla.com/D102503
2021-01-21 17:26:57 +00:00
Micah Tigley
6bd423b374 Bug 1687893 - Make opening/closing eventDetail consistent between TabModalPrompt and TabDialogBox content prompts. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D102616
2021-01-21 17:21:06 +00:00
Bas Schouten
57732c3083 Bug 1687535: Give several LazyInstantiator functions fast paths that avoid a11y instantiation. r=Jamie
This prevents us from instantiating accessibility (and incurring a significant performance cost later in the runtime) when we already know the answers a caller will receive if a11y were instantiated.

Differential Revision: https://phabricator.services.mozilla.com/D102371
2021-01-21 17:19:47 +00:00
Matthew Gaudet
af0a23e501 Bug 1687508 - Small cleanup around private names r=yulia
Differential Revision: https://phabricator.services.mozilla.com/D102326
2021-01-21 17:08:19 +00:00
Bernard Igiri
85697ee42f Bug 1687213 - Increase spacing between About Firefox and Submit Feedback links. r=Gijs
Increase spacing bewtween About Firefox and Submit Feedback links.

Differential Revision: https://phabricator.services.mozilla.com/D102328
2021-01-21 17:12:25 +00:00
Jon Coppeard
8d00792ac3 Bug 1687336 - Rename Chunk to TenuredChunk r=allstarschh
Finally rename Chunk itself. I went with TenuredChunk rather than TenuredHeapChunk for brevity.

Depends on D102395

Differential Revision: https://phabricator.services.mozilla.com/D102396
2021-01-20 13:19:03 +00:00
Jon Coppeard
e09d49dff8 Bug 1687336 - Rename tenured heap chunk data structures to distinguish them from nursery ones r=allstarschh
This renames the data structures inside Chunk:

  ChunkInfo -> TenuredChunkInfo
  PerArenaBitmap -> DecommitBitmap
  ChunkBitmap -> MarkBitmap
  ChunkBase -> TenuredChunkBase

This also renames TenuredChunkBase::bitmap to markBits.

Depends on D102394

Differential Revision: https://phabricator.services.mozilla.com/D102395
2021-01-20 13:18:55 +00:00
Jon Coppeard
05b9a46394 Bug 1687646 - Refactor NurseryDecommitTask so that Chunk doesn't need to know about it r=sfink
Currently the decommit task uses Chunk's next pointer to for a singly linked list of chunks awaiting decommit. This is kind of dubious since they are supposed to be NurseryChunks at this point.

This changes the decommit task to use a vector and simplifies the threading requirements by having us always wait for the previous decommit to finish before starting a new one.

Depends on D102393

Differential Revision: https://phabricator.services.mozilla.com/D102394
2021-01-21 02:46:36 +00:00
Nicolas Chevobbe
9ef7faec7e Bug 1687485 - [devtools] Fix error count on navigation when console isn't enabled. r=ladybenko.
We used to not do anything on navigation for the error count
at the toolbox level, but the test we had to check that the
count was reset on navigation was working; this is because
there's a hook in the console panel to clear the error count
when the console is cleared, and in the test, the console panel
was selected.
This patch fixes that and adds a new test that run some assertion
on reload, without ever enabling the console panel.
Since some assertions seem redundant with the test we already had,
we remove them from the old test.

Differential Revision: https://phabricator.services.mozilla.com/D102325
2021-01-21 16:53:09 +00:00
Gijs Kruitbosch
208fdcb45f Bug 1686816 - use AppendFloat to fix floating point separator issues with the slow script warning probe in localized environments, r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D101852
2021-01-15 03:11:34 +00:00
Henri Sivonen
67b5ed77bf Bug 786797 - Check for integer overflow when computing new buffer sizes. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D102592
2021-01-21 17:02:58 +00:00
Paul Zuehlcke
71c192e217 Bug 1683103 - Renew external protocol dialog telemetry. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D102589
2021-01-21 14:17:33 +00:00
Stephen A Pohl
c549ff9079 Bug 1687838: Calculate array lengths using ArrayLength() in non-native theming code. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D102522
2021-01-21 16:46:33 +00:00
Simon Giesecke
da3d1822e5 Bug 1687256 - Do not fail FileManager::GetUsage if some file was removed from the directory while iterating. r=dom-workers-and-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D102206
2021-01-21 14:39:31 +00:00
Kris Wright
6e005283fa Bug 1645696 - Remove suppressions for issue. r=decoder
Differential Revision: https://phabricator.services.mozilla.com/D101370
2021-01-21 10:57:05 +00:00
Dylan Roeh
f56be74395 Bug 1687523 - Do not call onSessionStateChange if session state is null or contains no history. r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D102425
2021-01-21 16:43:01 +00:00
Gijs Kruitbosch
2a63dc9514 Bug 1686816 - ensure we have useful values for waitCount and deselectCount to avoid 'undefined' showing up in telemetry, r=jaws
Unfortunately a meaningful automated test here is difficult because we're dealing with shutdown.

Differential Revision: https://phabricator.services.mozilla.com/D102598
2021-01-21 16:42:21 +00:00
Jared Wein
d6647f3b6e Bug 1681421 - Read the label property instead of textContent to exclude hidden text. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D102613
2021-01-21 16:10:45 +00:00
Jared Wein
d49e0ac8bf Bug 1681421 - Use the new BrowserTestUtils method to clear the XUL cache. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D101593
2021-01-21 15:32:53 +00:00
Jared Wein
eba891ef0a Bug 1681421 - Implement separated Proton tab design behind browser.proton.enabled pref. r=dao,Gijs,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D99823
2021-01-21 15:32:46 +00:00
Edgar Chen
4827c5658b Bug 1686037 - Part 3: Remove duplicated ImplicitlyReleasePointerCapture call in PresShell; r=smaug
EventStateManager::PostHandleEvent would do the same thing, but need to handle
the cases that PresShell is destroyed and frame is destroyed in
pointerup/pointercancel event listener.

The former case would be handled in D102403. For the latter case, we allow
EventStateManager::PostHandleEvent to handle pointerup/pointercancel event while
frame is no longer available in this patch.

Differential Revision: https://phabricator.services.mozilla.com/D102404
2021-01-21 14:54:55 +00:00
Edgar Chen
b615527436 Bug 1686037 - Part 2: Clean up pointer capture info when PresContext is destroyed; r=smaug
Found a possible leak from running layout/base/tests/test_bug993936.html after
enable implicit pointer capture for touch event. The test synthesize touchstart
and touchmove event, but no touchend, so we don't run the release steps and the
PointerCaptureInfo still hold a reference to Element which cause the leak.

This could also possible happens in real world, for example, user touch a page
with finger that triggers pointer capture, and then tab get closed before touch
is released.

Differential Revision: https://phabricator.services.mozilla.com/D102403
2021-01-21 16:38:59 +00:00
Edgar Chen
f43f83b1a9 Bug 1686037 - Part 1: Move nsGenericHTMLElement::GetPresContext to Element; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D102321
2021-01-21 14:19:57 +00:00
nirmay
56848ca9c1 Bug 1543327 - Explicitly disables alerts for non-Firefox browsers. r=sparky,perftest-reviewers,AlexandruIonescu
Differential Revision: https://phabricator.services.mozilla.com/D101584
2021-01-21 16:18:39 +00:00
Simon Giesecke
4e33445ac3 Bug 1687254 - Skip directory entries that no longer exist in GetBodyUsage. r=dom-workers-and-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D102204
2021-01-21 15:33:04 +00:00
Simon Giesecke
d2ae46de32 Bug 1687254 - Add GetDirEntryKind utility function. r=dom-workers-and-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D102203
2021-01-21 14:38:30 +00:00
Kris Wright
207c544f93 Bug 1607138 - Remove suppression for gXPCOMThreadsShutdown r=decoder
This is no longer going to be detected by tsan. I figure with full shutdown enabled we should be able to see if there were other issues around this one.

Differential Revision: https://phabricator.services.mozilla.com/D102487
2021-01-21 11:06:22 +00:00
Kris Wright
e5aed0986a Bug 1607138 - gXPCOMThreadsShutdown should be atomic r=xpcom-reviewers,mccr8
This commit makes `gXPCOMThreadsShutdown` atomic. I've deliberated on this one for a while because I was mostly interested in how timer threads may be trying to init during shutdown, but these aren't the only places where we are making accesses into `gXPCOMThreadsShutdown` so it should be made atomic regardless.

Differential Revision: https://phabricator.services.mozilla.com/D102486
2021-01-21 01:01:26 +00:00
Greg Tatum
b9f323e9a1 Bug 1599774 - Localize about:profiling and DevTools perf panel; r=julienw,flod
This handles most of the localization, but will require a few follow-ups.

First off is Bug 1681539, which is for localizing profiler presets. There
isn't anything too weird about this for the DevTools and about:profilling
context, but requires a solution for the popup. The appmenu.ftl bundle
might need to be included.

I did not localize profiler feature list, nor the byte size computation.

Differential Revision: https://phabricator.services.mozilla.com/D99275
2021-01-21 15:49:42 +00:00
Greg Tatum
9b29ffdedb Bug 1599774 - Localize the profiler popup; r=julienw,fluent-reviewers,flod
This was based off of the differential revision:
https://phabricator.services.mozilla.com/D71403

I started a new revision as the old one had bitrotted quite a bit. I
handled flod's review feedback from the previous review.

This patch will require a follow-up with handling the profiler presets.
See Bug 1681539.

Differential Revision: https://phabricator.services.mozilla.com/D99274
2021-01-16 07:58:47 +00:00
ffxbld
67f0360f38 No Bug, mozilla-central repo-update HSTS HPKP remote-settings tld-suffixes - a=repo-update r=jcristau
Differential Revision: https://phabricator.services.mozilla.com/D102602
2021-01-21 15:43:18 +00:00
Jeff Muizelaar
061b4b0ee9 Bug 1687856 - Remove unneeded Cargo.lock. r=kvark
I believe this was unintentionally added in bug 1637092.

Differential Revision: https://phabricator.services.mozilla.com/D102521
2021-01-21 15:41:03 +00:00