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

760619 Коммитов

Автор SHA1 Сообщение Дата
Makoto Kato 75d5eab147 Bug 1711501 - Clean up browser.properties. r=geckoview-reviewers,agi
Extension.jsm, ContextualIdentityService.jsm and GeckoViewConsole.jsm still reference browser.properties.

Depends on D117622

Differential Revision: https://phabricator.services.mozilla.com/D117623
2021-06-15 03:00:54 +00:00
Makoto Kato 91cbe3c73a Bug 1711501 - Remove Fennec's character encoding menu preference. r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D117622
2021-06-15 03:00:54 +00:00
Ryan Hunt b31b78eea6 Bug 1713400 - wasm: Switch memory runtime code to use pages instead of byte lengths. r=lth
This commit updates the memory runtime code to generally
use pages instead of byte lengths. In terms of runtime
structures: limits are in pages, memory object max
size is in pages, memory object current size is in bytes,
and the TlsData bounds check limit is in bytes.

This code is tricky, so I've added a 'wasm::Pages' typed unit
to catch cases of type confusion and make intent clearer. I've
also tried to add asserts, comments, and rename unclear variables.

The array buffers (shared and non-shared) still track their
length in bytes (this is best as the byte length is needed for
warm code in memory.copy/fill), but now the 'maximum' field is
stored in pages. This allows maximum values that would overflow
byte lengths with memory64 to be represented.

The array buffer interface for wasm now generally only uses
pages, and most code internal operates on pages. There are
still a few cases where byte lengths are required and we add
code or assert that converting from pages to byte lengths is
valid.

Differential Revision: https://phabricator.services.mozilla.com/D116652
2021-06-15 02:18:26 +00:00
Ryan Hunt 5242289bd1 Bug 1713400 - wasm: Reduce dependencies on MemoryDesc byte length's. r=lth
Add accessor methods and tweak code to reduce users
that depend on MemoryDesc exposing raw byte lengths for
the initial and maximum fields.

Additionally, MemoryKind is added to MemoryDesc so we can start
asserting in code that assumes Memory32.

Differential Revision: https://phabricator.services.mozilla.com/D116651
2021-06-15 02:18:26 +00:00
Ryan Hunt d452281861 Bug 1713400 - wasm: Add MemoryDesc as analog to TableDesc. r=lth
This is a clean-up to add a first-class MemoryDesc object,
replacing the ad-hoc methods of describing a module's memory.

Temporarily, this is just a Limits (in pages) and the byte length converted
versions of Limits. The byte length fields will be dropped later.

asm.js used to rely heavily on mutating the ad-hoc representation on
ModuleEnvironment. This commit adds a ModuleEnvironmentShared::Memory
struct for simulating the old way of mutating ModuleEnvironment.

Differential Revision: https://phabricator.services.mozilla.com/D116650
2021-06-15 02:18:26 +00:00
Hiroyuki Ikezoe 3faa6fa27a Bug 1709460 - Try to initialize a displayport base for OOP iframe's root scroller with its visible rect. r=tnikkel
In the same manner what we initialize a diplayport base for top level contents.

Differential Revision: https://phabricator.services.mozilla.com/D116576
2021-06-15 01:49:32 +00:00
Hiroyuki Ikezoe a137dec121 Bug 1709460 - Add a flag representing whether mEffectsInfo has been set or not. r=tnikkel
We are going to use the mEffectsInfo's mVisibleRect as a displayport base for
OOP iframe's root scroller and we don't want the displayport base if it hasn't
been arrived from the parent content, to do that, we need to tell the difference
whether the iframe was painted as empty or hasn't been painted.

Differential Revision: https://phabricator.services.mozilla.com/D116575
2021-06-15 01:49:31 +00:00
Lee Salzman bd25bb5370 Bug 1714511 - use vqmovun_s16 for packing pixels. r=sotaro
vqmovn_u16 is very different semantically then _mm_packus_epi16. _mm_packus_epi16 treats the input as signed 16-bit integers and narrows to unsigned 8-bit.
vqmovn_u16, however, is an unsigned to unsigned narrow. vqmovun_s16 does what we actually need here, which is to treated the input as signed 16-bit and narrow to unsigned 8-bit.

Differential Revision: https://phabricator.services.mozilla.com/D117705
2021-06-15 01:32:36 +00:00
Noemi Erli 6fcc995a0a Backed out 2 changesets (bug 1701770) for causing failures in browser_checkdllblockliststate.js CLOSED TREE
Backed out changeset a6f46b0a30e9 (bug 1701770)
Backed out changeset 263591537722 (bug 1701770)
2021-06-15 04:09:49 +03:00
Daniel Holbert 1154db03a0 Bug 1540635: Generalize fuzzy annotation for reftest 1295466-1.xhtml to remove Windows version check. (no review, just tweaking test fuzziness metadata)
This test formerly had a win7-specific fuzzy annotation. I'm generalizing that
annotation to include all Windows versions, since Windows 10 has had similar
fuzzy failures; and I'm also merging with the adjacent "gtkWidget" fuzzy
annotation, since it's got exactly the same fuzzy thresholds.

Differential Revision: https://phabricator.services.mozilla.com/D117719
2021-06-14 23:59:18 +00:00
Matt Woodrow 14a6394257 Bug 1714596 - Don't try to create a temporary DrawTarget for zero-sized blend modes. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D117592
2021-06-14 23:46:59 +00:00
Matt Woodrow 6088072b46 Bug 1678102 - Store the set of pending transactions in ClientLayerManager, to ensure we clear all of them during Destroy. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D117588
2021-06-14 23:43:21 +00:00
Daisuke Akatsuka 753cf86f05 Bug 1602396: Set focus to URLBar when an empty tab is moved to new window. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D117522
2021-06-14 23:38:50 +00:00
Timothy Nikkel 5a68c238f5 Bug 1700247. Add test. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D117584
2021-06-14 22:37:35 +00:00
Timothy Nikkel 38d7ba31ed Bug 1700247. Allow pinch zooming over an oopif to work. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D109449
2021-06-14 22:37:34 +00:00
sotaro d2f29f94be Bug 1715953 - Add flush DrawTarget r=lsalzman,gfx-reviewers
Needs to call flush DrawTarget to apply pending updates.

Differential Revision: https://phabricator.services.mozilla.com/D117628
2021-06-14 22:34:49 +00:00
alwu 97b2a661fb Bug 1692881 - part2 : keep decoded video has at least same amount of duration as decoded audio data. r=bryce
MDSM will stop decoding video when it reaches the certain amount of frames, but that will not work well if the video decoding is way too slow than the audio decoding.

In that situation, video should keep decoding as much as possible, in order to catch up with the audio decoding.

But we also don't need to decode video without any constraint, set the duration of decoded video to at least as the same as the decoded audio seems fair and enough.

Differential Revision: https://phabricator.services.mozilla.com/D117243
2021-06-14 22:31:51 +00:00
alwu a342363d48 Bug 1692881 - part1 : let MDSM detect whether the video decoding is too slow and force to request the next key frame. r=bryce
If the decoded video MDSM received is already late, then it indicates that video decoding is too slow.

If we keep decoding but in the same speed, it's very likely all following decoded videos would still be behind the clock and need to be discarded.

The reader has its own mechanism to seek to the next keyframe, but that will only happen when the time of next keyframe is behind the given time threshold, which is the current time.

When the video has pretty long keyframe interval (eg. 5s), then that mechanism won't be triggered because the even if the decoded video frames are late, the next keyframe still far exceeds the current time, so the reader doesn't think it's necessary to skip.

Therefore, MDSM should force the reader to seek to the next keyframe directly, because it know both the decoded time of video frames and the current playback time.

Differential Revision: https://phabricator.services.mozilla.com/D117242
2021-06-14 22:31:50 +00:00
Csoregi Natalia ee2d1d13f4 Backed out changeset 9c2ba085b136 (bug 1703609) for failures on browser_devices_get_user_media_queue_request.js. CLOSED TREE 2021-06-15 02:55:35 +03:00
Csoregi Natalia 0ae75685a2 Backed out changeset e944d9aaf395 (bug 1709838) for failures on browser_partitionedCookies.js. CLOSED TREE 2021-06-15 02:09:39 +03:00
Noemi Erli 4ed44ac8ab Backed out 2 changesets (bug 1716395, bug 1716317) for causing webrender bustages CLOSED TREE
Backed out changeset d0526849e7c3 (bug 1716317)
Backed out changeset 0693eb0f1e49 (bug 1716395)
2021-06-15 01:26:00 +03:00
Mats Palmgren ae198332cf Bug 942017 - Add a reftest to check the line height of 'decimal' ::markers. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D117696
2021-06-14 22:00:44 +00:00
Aaron Klotz bacaa5246b Bug 1707954: Part 4 - Build fixes to reflect EnsureMTA changes; r=Jamie
Now that we always have an MTA active, we don't need to explicitly try to
start it anymore. These locations in our source were doing so, which is now
not only redundant, but fails (since `EnsureMTA`'s default constructor is now
`private`).

We also fix a spot in `JumpListBuilder` where we need a lambda to capture by
reference to fix a static analysis issue.

Differential Revision: https://phabricator.services.mozilla.com/D113563
2021-06-14 21:53:19 +00:00
Aaron Klotz 93f41e2170 Bug 1707954: Part 3 - Add eager MTA creation to mscom::EnsureMTA; r=Jamie
* We make `EnsureMTA`'s default constructor `private`, and `ProcessRuntime` a friend.
  `ProcessRuntime` calls this to eagerly create the MTA.
* The default constructor uses the new-ish `CoIncrementMTAUsage` to create the
  MTA without requiring a dedicated thread (when available). Otherwise we
  fall back to the traditional method. In the latter case, we synchronously
  wait for the initialization to complete so that we are guaranteed to have
  an MTA when we return.
* Some minor refactoring to make it easier to do the sync wait in the
  default constructor. I also renamed a couple of things just to make them
  more clear.

Differential Revision: https://phabricator.services.mozilla.com/D113562
2021-06-14 21:53:18 +00:00
Aaron Klotz f3adb70f19 Bug 1707954: Part 2 - Update Launcher Process with mscom::ProcessRuntime changes; r=Jamie
Given the changes in part 1, we must now use the `ProcessCategory` variant of
`ProcessRuntime`'s constructors.

Differential Revision: https://phabricator.services.mozilla.com/D113561
2021-06-14 21:53:18 +00:00
Aaron Klotz 0785438543 Bug 1707954: Part 1 - Change mscom::ProcessRuntime to ensure MTA creation during startup; r=Jamie
This patch does the following:

* General cleanup:
  * More explicit restrictions of how/when the various constructors are available.
  * `InitializeSecurity` is made `static`, since it doesn't really manipulate instance variables.
  * We move some logic for resolving `CoInitializeEx` flags into `GetDesiredApartmentType`.
* Addition of `PostInit`:
  * This doesn't do anything at the moment, but since I'm already making a bunch
    of changes, I wanted to add this too. `PostInit` is a static method that
    is invoked once the `ProcessRuntime` is finished initializing, and, when
    present, the sandbox is fully enabled.
* We call `EnsureMTA`'s default constructor to eagerly bring up the MTA. This
  causes all background threads to implicitly become members of the MTA, which
  means that we can eliminate `CoInitializeEx` calls throughout our codebase,
  since they're slow and most developers do not have a clear understanding of
  what those functions actually do.
  * This also simplifies the COM initialization in sandboxed content processes
    with Win32K lockdown, since if our main thread is in the implicit MTA, we
    can immediately initialize ourselves without needing to punt that work
    over to the persistent MTA thread.

Differential Revision: https://phabricator.services.mozilla.com/D113560
2021-06-14 21:53:17 +00:00
Aaron Klotz e46f2fb521 Bug 1716036: Use StaticLocalAutoPtr for magic statics in nsThread; r=KrisWright
The "magic static" objects created in `nsThread::ThreadList` and
`nsThread::ThreadListMutex` have non-trivial destructors, so they end up
setting `atexit` hooks.

I'd like to switch these over to be `StaticLocalAutoPtr`s which were added
specifically for the purpose of holding magic statics, and have trivial
destructors.

Differential Revision: https://phabricator.services.mozilla.com/D117549
2021-06-14 21:40:07 +00:00
Nicolas Silva 2c5fbaa287 Bug 1716317 - Reorder the profile counters. r=gfx-reviewers,gw
Only a cosmetic change. There is a check during initialization that the constants match the sequential order so little room for getting it wrong.

Differential Revision: https://phabricator.services.mozilla.com/D117702
2021-06-14 21:30:01 +00:00
Nicolas Silva c38415f653 Bug 1716395 - Break texture memory down into categories in memory reports. r=gfx-reviewers,jrmuizel
Also expose the information in the profiler HUD and rename some counters to make it more apparent when specific to the atlases as opposed to other textures mamanged by the texture cache.

Differential Revision: https://phabricator.services.mozilla.com/D117695
2021-06-14 21:30:00 +00:00
Jeff Gilbert 4121499edb Bug 1715690 - Generalize WebGL RENDERER into large buckets. r=lsalzman
+ Minor reduction in unused flexibility of limits.

Differential Revision: https://phabricator.services.mozilla.com/D117385
2021-06-14 21:27:08 +00:00
Gregory Mierzwinski 673aa45a79 Bug 1716374 - Use browsertime-specific method for selecting downstream tasks. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D117685
2021-06-14 21:04:35 +00:00
Daniel Holbert c87467472c Bug 1696759: Annotate fuzziness in web-platform-test position-sticky-flexbox.html. (no review; minor test metadata tweak)
I'm replacing the existing [PASS,FAIL] annotation, since I'm pretty sure
moz-wptsync-bot added it (quite recently) in response to some instances of this
intermittent fuzzy-pixels test-failure.

Differential Revision: https://phabricator.services.mozilla.com/D117701
2021-06-14 21:00:43 +00:00
Mats Palmgren 7b134f9933 Bug 1713730 - Make 'border-image-repeat: space' paint correctly. r=dholbert
Specifically: in DrawBackgroundImage (which we use to draw borders as well),
this patch makes us translate the anchor-point (together with our destination
rect), for each tiled call to DrawImageInternal.

Differential Revision: https://phabricator.services.mozilla.com/D116596
2021-06-14 20:59:46 +00:00
Chris Martin 605af58d88 Bug 1701770 - Don't load DPI functions in Win32k Lockdown tab r=bobowen
Currently, as part of initialization of xul.dll on Windows we dynamically
load some DPI-related functions on Windows 10. Those functions cannot be used
with Win32k lockdown, and thus there is no point to loading them.

Differential Revision: https://phabricator.services.mozilla.com/D116629
2021-06-14 20:55:34 +00:00
Chris Martin d909ca765f Bug 1701770 - Defer Windows DPI Awareness from load time to run time r=bobowen,aklotz
Currently, we set DPI awareness in the manifest files for firefox.exe.

Unfortunately, that causes DPI-related Win32k calls when user32.dll
is loaded.

This changes things to wait until we are sure we're not running in a
Win32k Lockdown Content Process before we attempt to initialize DPI scaling.

Differential Revision: https://phabricator.services.mozilla.com/D116433
2021-06-14 20:55:33 +00:00
Molly Howell c5b07911a3 Bug 1703609 - Hide doorhangers while site permissions panel is showing. r=emalysz
Differential Revision: https://phabricator.services.mozilla.com/D117700
2021-06-14 20:49:38 +00:00
Sean Feng 08425b64e2 Bug 1714467 - Enable dom.input_events.strict_input_vsync_alignment in all channels r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D116790
2021-06-14 20:46:50 +00:00
surajeet310 ec19bcfbf2 Bug 1714688 - Removed 'if PY2' logic from python/mozrelease r=mhentges
Python2 is no longer used in Mozrelease

Differential Revision: https://phabricator.services.mozilla.com/D117583
2021-06-14 20:41:31 +00:00
Glenn Watson 786dd59014 Bug 1715935 - Add experimental low quality pinch-zoom mode. r=gfx-reviewers,kvark
Building on previous patches, this adds a preference to enable
a low quality pinch-zoom mode that reuses cached tiles where
possible.

It doesn't currently redraw at the higher quality scale at the
end of a pinch-zoom, and there are some sampling artifacts in some
cases. However, it should be enough to do some performance testing
on low and devices and see if it helps.

Differential Revision: https://phabricator.services.mozilla.com/D117497
2021-06-14 20:40:21 +00:00
Noemi Erli ce2801c88f Backed out 8 changesets (bug 1714933) for causing build bustages in 1659595.js CLOSED TREE
Backed out changeset 2f72875b300f (bug 1714933)
Backed out changeset a42831b46643 (bug 1714933)
Backed out changeset c7ccabae5816 (bug 1714933)
Backed out changeset a4f4e4026174 (bug 1714933)
Backed out changeset fca960ad267b (bug 1714933)
Backed out changeset 62bdba475376 (bug 1714933)
Backed out changeset f168a2d1d391 (bug 1714933)
Backed out changeset 85af7c63b9c5 (bug 1714933)
2021-06-14 23:47:43 +03:00
dev 75305aaa76 Bug 1674412 - Fix intermittent rounding accuracy bug. r=gfx-reviewers,nical
Differential Revision: https://phabricator.services.mozilla.com/D117616
2021-06-14 20:12:09 +00:00
Iain Ireland cc9a70bde5 Bug 1716396: Skip testcase if Intl is not defined r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D117694
2021-06-14 20:02:44 +00:00
Kagami Sascha Rosylight d371e763e5 Bug 1713334 - Part 5: Allow caret to be at the end of text node r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D117024
2021-06-14 19:56:24 +00:00
Kagami Sascha Rosylight 7916262845 Bug 1713334 - Part 4: Always select the text node r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D117474
2021-06-14 19:56:23 +00:00
Kagami Sascha Rosylight d6d3699b31 Bug 1713334 - Part 3: Assume TextEditor always have a text node r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D117023
2021-06-14 19:56:23 +00:00
Kagami Sascha Rosylight 4a9087283b Bug 1713334 - Part 2: Initialize TextEditor always with a text node r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D117022
2021-06-14 19:56:23 +00:00
Kagami Sascha Rosylight 52d022e717 Bug 1713334 - Part 1: Keep a text node inside text controls even if empty r=masayuki,Jamie
Doing so prevents confusion when detecting selection change.

Differential Revision: https://phabricator.services.mozilla.com/D116303
2021-06-14 19:56:22 +00:00
Andrew Creskey de66360ca3 Bug 1713385 - Add typing metrics to history metadata r=Standard8
Collect typing metrics (time spent typing, number of keys pressed) to improve history metadata.

Differential Revision: https://phabricator.services.mozilla.com/D116719
2021-06-14 19:56:06 +00:00
Christoph Kerschbaumer e72a7b286d Bug 1709838: Enable HTTPS-First Mode in PBM Mode in Nightly r=arthuredelstein
Differential Revision: https://phabricator.services.mozilla.com/D114500
2021-06-14 19:51:15 +00:00
André Bargull a75ff2190a Bug 1714933 - Part 8: Update expected canonicalisation of "no". r=tcampbell
"no" is no longer canonicalised to "nb" in CLDR 39.

Differential Revision: https://phabricator.services.mozilla.com/D117686
2021-06-14 19:46:54 +00:00