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

756088 Коммитов

Автор SHA1 Сообщение Дата
Emilio Cobos Álvarez 6c4266f7f7 Bug 1680387 - Read and expose EXIF image resolution data. r=tnikkel,aosmond
Differential Revision: https://phabricator.services.mozilla.com/D113264
2021-05-05 09:41:23 +00:00
lyavor dc8fb2b8d5 Bug 1707856: Test redirect downgrades with https-first. r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D113511
2021-05-05 09:39:59 +00:00
Paul Adenot 9f5459ee57 Bug 1685503 - Wait for "timeupdate", or one second (when paused) when testing the telemetry probes for visible and invisible media elements, to not depend on high-resolution clock. r=alwu
This patch moves to a lower-resolution clock on Windows, so this was failing.

Differential Revision: https://phabricator.services.mozilla.com/D114073
2021-05-05 09:24:51 +00:00
Paul Adenot c59e733060 Bug 1685503 - Use AwakeTimeStamp to count time for media telemetry. r=alwu
Differential Revision: https://phabricator.services.mozilla.com/D112797
2021-05-05 09:24:51 +00:00
Nicolas Silva 32c8731610 Bug 1709535 - Fix clear tiles. r=gfx-reviewers,jnicol
In bug 1696905 I changed how clear tiles are rendered from multiply blend to opaque, however it breaks window controls on Windows 8 (the only thing that clear tiles are used for). This patch reverts clear tiles to the previous behavior.

I'm not sure how to test this part of the code because it depends on the widget integration code having something to show behind the window.

Differential Revision: https://phabricator.services.mozilla.com/D114327
2021-05-05 09:22:48 +00:00
Andrei Oprea 92b0ab56f1 Bug 1707901 - Add opt in to nimbus experiments via URL r=k88hudson
Differential Revision: https://phabricator.services.mozilla.com/D113641
2021-05-05 08:58:56 +00:00
Martin Giger cb53a7c598 Bug 1709056 - Fix IOUtils append mode documentation and overwrite error. r=barret
Differential Revision: https://phabricator.services.mozilla.com/D114075
2021-05-05 08:36:48 +00:00
Iulian Moraru e4231baf41 Backed out 2 changesets (bug 1708660, bug 1708657) for causing build bustages. CLOSED TREE
Backed out changeset b0fa991c8314 (bug 1708657)
Backed out changeset ef755a58e62b (bug 1708660)
2021-05-05 11:47:50 +03:00
stransky 8d506867f0 Bug 1621660 [Wayland] When parent window is modal, set modal popup child window too, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D114240
2021-05-05 08:18:45 +00:00
Peter Van der Beken f75d011be1 Bug 1708657 - Cleanup in-tree WebIDL documentation a bit. r=freddyb
- Add a main header to the page
- Clean up the conversion from MDN a bit
- Modify type table to list-table to make it a bit easier to maintain
- Remove documentation for obsolete NavigatorProperty extended attribute
- Add a warning that JS-implemented WebIDL is deprecated

Depends on D113949

Differential Revision: https://phabricator.services.mozilla.com/D113950
2021-05-05 08:08:53 +00:00
Peter Van der Beken 1be1c3b5b0 Bug 1708660 - Remove support for map/setLike in JS-implemented WebIDL. r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D113949
2021-05-05 08:08:52 +00:00
Nicolas Chevobbe 581f3fd2ca Bug 1706094 - [devtools] Set watchedByDevTools browsingContextflag in the parent process. r=ochameau.
We're using frame-helper#createTargets to set the flag as we're already looping
over the browsing context we need to handle.
We keep a Map of watcher/observer so we can remove the observer when the targets
get destroyed.

For the browser toolbox top-level browsing context we keep setting the flag in
the browsing context target actor as it lives in the parent process, and we
don't have watcher support enabled by default, so frame-helper wouldn't be hit.
frame-helper is not used in the legacy browser toolbox, so we won't set the flag
on tabs when devtools.browsertoolbox.fission is false, but that's okay it's not
currently set anyway in this setup.

Tests are added with multiple cases to ensure the flag is set in different situations.

Differential Revision: https://phabricator.services.mozilla.com/D113628
2021-05-05 08:04:24 +00:00
keiko c23d24e129 Bug 1705755 - added explanations about Bugzilla and Phabricator amended2 r=firefox-source-docs-reviewers,sylvestre,championshuttler DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D113256
2021-05-05 06:58:16 +00:00
Mike Hommey f1cf961151 Bug 1709505 - Fix -D dead-code bustage in third_party/rust/mio. r=emilio
After bug 1708379, the build fails with --enable-warnings-as-errors with
rustc 1.52.

```
error: field is never read: `hdr`
    --> third_party/rust/mio/src/sys/unix/uds.rs:190:17
     |
 190 |                 hdr: libc::cmsghdr,
     |                 ^^^^^^^^^^^^^^^^^^
     |
     = note: `-D dead-code` implied by `-D warnings`
```

```
error: field is never read: `instant_notify`
   --> third_party/rust/mio/src/sys/windows/tcp.rs:85:5
    |
 85 |     instant_notify: bool,
    |     ^^^^^^^^^^^^^^^^^^^^
    |
    = note: `-D dead-code` implied by `-D warnings`
```

Differential Revision: https://phabricator.services.mozilla.com/D114311
2021-05-05 06:54:23 +00:00
Mike Hommey 4178828587 Bug 1709509 - Fix clippy warnings in webrender_bindings. r=gfx-reviewers,lsalzman
Fixed the following:
- methods called `to_*` usually take self by reference; consider choosing
  a less ambiguous name (clippy::wrong_self_convention)
- an implementation of `From` is preferred since it gives you `Into<_>`
  for free where the reverse isn't true (clippy::from_over_into)
- manual implementation of `Option::map` (clippy::manual_map)
- comparing with null is better expressed by the `.is_null()` method
  (clippy::cmp_null)
- use of `unwrap_or` followed by a function call (clippy::or_fun_call)
- you don't need to add `&` to all patterns (clippy::match_ref_pats)
- writing `&PathBuf` instead of `&Path` involves a new object where a
  slice will do (clippy::ptr_arg)

Locally ignored:
- 6 bindings with single-character names in scope (clippy::many_single_char_names)

Globally ignored:
- this public function dereferences a raw pointer but is not marked
  `unsafe` (clippy::not_unsafe_ptr_arg_deref)
- unsafe function's docs miss `# Safety` section (clippy::missing_safety_doc)

Differential Revision: https://phabricator.services.mozilla.com/D114319
2021-05-05 05:50:32 +00:00
Julian Seward 40dabb3533 Bug 1678097 - Add vector registers on ARM64. r=lth,nbp.
In short, this patch adds support for vector registers on ARM64, including
machinery to save and restore them on the stack.  It also cleans up and
documents some of the save/restore logic.

There are many changes:

* We add a new type, Bitset128, that can represent the register set on ARM64
  with vector registers. This is a mostly-constexpr class with two uint64_t's
  that behaves like a 128-bit integer in the cases we need for register sets.

* Since the new type is 16 bytes wide, misc code throughout the system that
  switches on register set width is updated to handle the case.

* The FloatRegisters::SetType is changed to use Bitset128, and various
  constants defined in ARM64 FloatRegisters are updated to reflect this.  As
  the constants are constexpr, we can be reasonably sure that there are no
  initialization-order problems introduced by this.

* The registers in ARM64 FloatRegisters are rearranged so that single comes
  before double, which comes before vector registers, to conform to the order
  used everywhere else.

* In MacroAssembler.h, the semantics required of PushRegsInMask and its
  associated functions have been further documented.

* For ARM64, PushRegsInMask and its associated functions (PushRegsInMask,
  storeRegsInMask, PopRegsInMaskIgnore, ReduceSetForPush, GetPushSizeInBytes,
  getRegisterDumpOffsetInBytes, and new function
  FloatRegister::BroadcastToAllSizes), have been rewritten to handle
  saving/restoring of SIMD registers.  PushRegsInMask and storeRegsInMask have
  been merged into a single function so as to reduce code duplication and the
  associated danger of mistakenly writing different formats.

* In many places that are ARM64-specific, code guarded by `#ifndef
  ENABLE_WASM_SIMD` has been removed, so that in effect we always assume that
  SIMD register state is available on the target, and can be loaded and
  stored, even though we haven't yet enabled ARM64 SIMD support per se.

* The routines PushRegsInMaskForWasmStubs, PopRegsInMaskForWasmStubs and
  GetPushSizeInBytesForWasmStubs have been removed, since their operation has
  now been subsumed into their non-`ForWasmStubs` equivalents.

* In Safepoints.cpp, {Write,Read}FloatRegisterMask have been rewritten to
  support 128-bit sets.  One side effect is that reads/writes of 64-bit chunks
  have been changed to use new routines {write,read}Unsigned64 rather than two
  uses of {write,read}Unsigned.  The effect is to save one byte when
  bits 64:32 are all zero.

* Ridealong cleanup: the constant ION_FRAME_SLACK_SIZE has been removed.  It
  has no known uses.

* Note that RABALDR_SIDEALLOC_V128 is still in place in the wasm baseline
  compiler.  This patch does not remove it.

Differential Revision: https://phabricator.services.mozilla.com/D100116
2021-05-05 05:45:35 +00:00
Adam Gashlin 7f923a39e7 Bug 1705373 - Part 2: Expect success even with only the MOZ_UPDATE_AGENT FirstStartup task enabled. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D114307
2021-05-05 04:26:44 +00:00
Adam Gashlin bf41732e48 Bug 1705373 - Part 1: Only set WDBA and Update Agent configs on Firefox (browser app). r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D114306
2021-05-05 04:26:43 +00:00
Glenn Watson b845f71b44 Bug 1709507 - Reduce allocations and memmove during scene building. r=gfx-reviewers,jrmuizel
This can make scene building up to 10% faster on some pages (such
as the youtube.com front page) that use a large number of clips.

Differential Revision: https://phabricator.services.mozilla.com/D114312
2021-05-05 03:00:28 +00:00
Micah Tigley 8d1d39f733 Bug 1708558 - Update history icon in library window. r=sfoster,desktop-theme-reviewers,harry
Differential Revision: https://phabricator.services.mozilla.com/D114273
2021-05-05 02:53:29 +00:00
Daniel Holbert 04bfa3e6a8 Bug 1691192: Give crashtest 471360.html an upper-bound on its looping so that it doesn't cycle forever and block the harness from proceeding. r=mats
Differential Revision: https://phabricator.services.mozilla.com/D113998
2021-05-05 01:46:36 +00:00
Timothy Nikkel 0a51e9f3e0 Bug 1708143. Fix intermittents in test_group_zoomToFocusedInput.html. r=m_kato
There are two kinds of fixes here.

The first is calling waitToClearOutAnyPotentialScrolls after anything that might cause scrolls to make sure all scrolls are done before we move on in the test (so they don't mess us up later). Calling focus on an element is one thing that causes scrolling that may not be obvious.

The second is using promiseTransformEnd to be sure the zoom to focused input animation is done.

Differential Revision: https://phabricator.services.mozilla.com/D113908
2021-05-05 00:25:16 +00:00
Tooru Fujisawa 4c060cb465 Bug 1704185 - Rename JS::GetRealmWeakMapKey to JS::GetRealmKeyObject. r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D111635
2021-05-04 23:48:26 +00:00
Dana Keeler ad61aa064a Bug 1670506 - OCSP requests shouldn't interact with the necko cache at all r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D114030
2021-05-04 23:28:50 +00:00
Sean Feng 4feed6d4c7 Bug 1701989 - Add a talos benchmark to measure the pageload performance with multiple cross origin iframes r=sparky,perftest-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D114124
2021-05-04 23:17:08 +00:00
Karl Tomlinson 4fa3851cb4 Bug 1708123 test MediaRecorder constructor error messages r=jib
Differential Revision: https://phabricator.services.mozilla.com/D113917
2021-05-04 23:11:24 +00:00
Karl Tomlinson 4d5c5a7af6 Bug 1708123 choose the better message on lack of MIME type support in MediaRecorder constructor r=jib
Differential Revision: https://phabricator.services.mozilla.com/D113916
2021-05-04 23:11:23 +00:00
Dorel Luca 803852ff99 Backed out changeset 31a188caa6dd (bug 1707901) for toolkit/components/normandy/test/browser/browser_about_studies.js. CLOSED TREE 2021-05-05 02:07:29 +03:00
Dorel Luca d7fb1f865f Backed out changeset 0672855335bc (bug 1702678) for Mochitest failures in toolkit/components/windowwatcher/nsWindowWatcher.cpp. CLOSED TREE 2021-05-05 02:01:05 +03:00
Andrei Oprea 6099a1abdc Bug 1707901 - Add opt in to nimbus experiments via URL r=k88hudson
Differential Revision: https://phabricator.services.mozilla.com/D113641
2021-05-04 22:33:02 +00:00
Mike Conley 059bfb0145 Bug 1709338 - Make sure to show Download Panel warning icons. r=harry,desktop-theme-reviewers
We need to supply both the width and height on the icon to make it appear. Also, as of
bug 1706777, we don't need the margin offset to vertically center the icon.

Differential Revision: https://phabricator.services.mozilla.com/D114246
2021-05-04 22:30:39 +00:00
Sammy Khamis b0a54ccd60 Bug 1584132 - Added test to ensure chooseWhatToSync dialog correctly updates. r=markh,preferences-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D113391
2021-05-04 22:17:11 +00:00
Karl Tomlinson 75943ec6c2 Bug 1709474 - rename nsIDOMNavigatorUserMedia.idl to nsIMediaDevice.idl r=jib
This is more appropriate since
https://hg.mozilla.org/mozilla-central/rev/db29f053e54ef83da3e313de6e85f3b850faa543#l5.12
and helps generated webidl bindings find the right header.

Differential Revision: https://phabricator.services.mozilla.com/D111564
2021-05-04 22:03:01 +00:00
Narcis Beleuzu fc252d1f69 Backed out changeset 5b15696335bd (bug 1696473) for xpcshell failures on test_subframe_stop_after_parent_error.js . CLOSED TREE 2021-05-05 01:12:48 +03:00
Narcis Beleuzu 09fdf287a6 Backed out changeset fd747fbe4058 (bug 1688188) as req by sfink 2021-05-05 01:07:13 +03:00
James Teh 1c2bc0ce07 Bug 1709250: Null check LocalAcc() in GeckoCustom. r=morgan
We didn't do defunct checks previously, but it seems the methods we were calling were safe on defunct accessibles.
Now that retrieving the accessible returns null once it's shut down, we need to explicitly null check it.

Differential Revision: https://phabricator.services.mozilla.com/D114197
2021-05-04 21:59:03 +00:00
Bryce Seager van Dyk a5f0265053 Bug 1692582 - Handle non-ok error codes + zero and negative values when getting duration for IMFSamples. r=alwu
This patch changes our handling of durations in the WMF video MFT manager.
Prior to this patch we had some handling for if VP9 samples were returned with
zero duration. However, this patch extends this to the general case so that we
will try and estimate the duration using Gecko data in the following cases
- If Windows returns an error code when getting the duration. This can be
  because the duration is unknown, but the API also specifies it can fail due to
  other, unstated reasons (we handle these too).
- If Windows returns a 0 duration. This is also used to indicate an unknown
  duration. We now handle this for arbitrary codecs, not just VP9.
- If Windows returns a negative duration. It's unclear if Windows will do this,
  and if it does, under what cases. However, since the API returns the duration
  as an signed int it's possible, so we cover this too.

In all cases above, we will use the duration we record from our last input
sample as the output sample duration.

Differential Revision: https://phabricator.services.mozilla.com/D114247
2021-05-04 21:56:48 +00:00
Kris Maglione c40721b2ea Bug 1696473: End subframe loads for initial about:blank document on request error. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D112289
2021-05-04 21:19:51 +00:00
Kris Maglione 314594a5ea Bug 1702678: Handle corner case when opener window is closed from a nested event loop during open. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D111179
2021-05-04 21:19:22 +00:00
Mike Conley 89d94d36bd Bug 1706084 - Update tab-audio-blocked-small.svg icon and tab icon overlay fill/stroke values for Proton. r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D114155
2021-05-04 21:16:51 +00:00
Dão Gottwald 11abef3136 Bug 1709350 - Remove the rest of panelUI-custom-colors.inc.css. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D114235
2021-05-04 21:16:38 +00:00
Mike Hommey 506594be8f Bug 1709253 - Fix building rust programs. r=firefox-build-system-reviewers,mhentges
Differential Revision: https://phabricator.services.mozilla.com/D114212
2021-05-04 20:45:43 +00:00
Mitchell Hentges df45b126d1 Bug 1698616: Bump python dependencies r=firefox-build-system-reviewers,glandium
Did you know that our version of requests was from 2015? Phwoar!
This bumps `jinja2`, `py`, `pyyaml`, `requests` and `urllib3`.
There's significant risk for regressions due to breaking changes,
though due to the dynamic nature of Python, they're tricky to track
down.

The potential breaking changes I'm expecting to potentially affect
us are:

* `requests@2.11.0`: No longer accepts non-strings as header values.
* `requests@2.16.0`: `requests.packages` namespace was removed due to
  packages no longer being vendored. The namespace has been
  incrementally restored over future releases, but it's unclear to
  what degree.
* `requests@2.24.0`: Redirect resolution now only happens when
  `allow_redirects` is `True`.
* `requests` version of `urllib3` was bumped from `1.13.1` to `1.26`,
  unsure what repercussions that will have.

This also added dependencies to `flake8_requirements`. This is because
the vendored `importlib-metadata` update (and the new
`typing-extensions` dependency) is found by `pip`, but the
vendored `typing-extensions` is _not_ discovered (perhaps due to
details around "eggs" and the way we add vendored code to the sys.path).
So, `pip` tries to install it manually and fails when it finds no hash.
By re-compiling `flake8_requirements`, the necessary hashes are made
available.

Differential Revision: https://phabricator.services.mozilla.com/D108526
2021-05-04 20:43:26 +00:00
Mike Hommey 5aab00eccc Bug 1708547 - Port the mach bootstrap import hook to python 3. r=mhentges,firefox-build-system-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D113857
2021-05-04 20:39:58 +00:00
Marco Bonardo f1454c9308 Bug 1706334 - Improving the accessible text on Add Engine items. r=adw,Jamie,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D113146
2021-05-04 19:52:52 +00:00
Emma Malysz 3fcda6fea5 Bug 1709160, net error pages should have security panel view available in the control center r=pbz
Differential Revision: https://phabricator.services.mozilla.com/D114134
2021-05-04 19:25:43 +00:00
Eitan Isaacson 6f52e37071 Bug 1513447 - Use generated marker elements for list bullet accessibles. r=Jamie
In 1513447 there is a demonstrated instance in which the generated
marker is replaced with another one and throws the list item bullet
state into an unknown state. To remedy this we need to observe when such
elements are removed and added.

Instead of that, I opted to finally make the bullet accessible a real
content-backed accessible. This should help with other issues that pop
up when the list item overrides children management and keeps an
artificial accessible as its first child.

Differential Revision: https://phabricator.services.mozilla.com/D110719
2021-05-04 19:07:59 +00:00
Emilio Cobos Álvarez 3aa2544989 Bug 1700379 - Move code dealing with transform getters to the frame that we actually wrap its contents around. r=miko
This shouldn't change behavior, but simplifies the setup quite a bit, I
think.

Differential Revision: https://phabricator.services.mozilla.com/D109510
2021-05-04 18:46:44 +00:00
Adam Gashlin d99519a3ff Bug 1700836 - Remove expired firstStartup telemetry. r=mythmon
Differential Revision: https://phabricator.services.mozilla.com/D114263
2021-05-04 18:44:52 +00:00
Sean Feng 4c04bd745b Bug 1709233 - Fix a null pointer crash in HTMLDialogElement::StorePreviouslyFocusedElement r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D114256
2021-05-04 18:39:04 +00:00