Commit Graph

836677 Commits

Author SHA1 Message Date
Julian Descottes
c0f871815e Bug 1826366 - [remote] Manual fixes for valid-jsdoc in remote r=webdriver-reviewers,whimboo
Depends on D174738

Differential Revision: https://phabricator.services.mozilla.com/D174739
2023-04-05 16:25:48 +00:00
Julian Descottes
7ccbffb9f7 Bug 1826366 - [remote] Apply lint --fix for valid-jsdoc in remote r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D174738
2023-04-05 16:25:47 +00:00
Jamie Nicol
807600c38c Bug 1825518 - Use highp for v_color_mat varying to avoid crash on Mali-T devices. r=gfx-reviewers,lsalzman
Since landing bug 1823411 we have been receiving crash reports on a
variety of Mali-T devices when attempting to compile the brush_blend
shader. This appears to be due to changing v_color_mat to mediump,
though the reason why that crashes is currently unknown. This patch
reverts it to highp to avoid the crash.

This is being landed as-is due to being so late in the cycle, in order
to prevent crashes making it to beta. Further work should be to
determine precisely what conditions cause the crash, and add a test to
ensure we do not encounter it again.

Differential Revision: https://phabricator.services.mozilla.com/D174722
2023-04-05 16:17:19 +00:00
Lee Salzman
805dbc2586 Bug 1826420 - Fast-path non-aligned clip rects in DrawTargetWebgl. r=gfx-reviewers,aosmond
This adds interpolants to the AA distance calculation to handle the AA'ing of
the clip rect.

Differential Revision: https://phabricator.services.mozilla.com/D174650
2023-04-05 15:52:36 +00:00
Victoria Ajala
aebcad9703 Bug 1819174 Update test suite default tags for remote protocol component. r=whimboo,webdriver-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D174239
2023-04-05 15:36:28 +00:00
Mark Banner
f5cf70a12b Bug 1826570 - Remove unnecessary Prettier configuration for debugger/. r=devtools-reviewers,nchevobbe
The .prettierignore entries are already in the top-level .prettierignore.

Depends on D174760

Differential Revision: https://phabricator.services.mozilla.com/D174761
2023-04-05 15:35:36 +00:00
Mark Banner
a4d6fd47a4 Bug 1826561 - Run Prettier on some toolkit/mozapps/extensions/ tests which are disabled for ESLint. r=extension-reviewers,robwu
Differential Revision: https://phabricator.services.mozilla.com/D174760
2023-04-05 15:35:35 +00:00
Angel_V129
cf4248bb7d Bug 1819423 - Add support for importing synced bookmarks for Chrome-based browsers. r=kpatenio.
Differential Revision: https://phabricator.services.mozilla.com/D173391
2023-04-05 15:34:01 +00:00
Tom Schuster
8c2db1ae86 Bug 1826531 - Disable assert because Android already seems to use fdlibm by default. r=spidermonkey-reviewers,iain
Differential Revision: https://phabricator.services.mozilla.com/D174772
2023-04-05 15:31:42 +00:00
Tom Schuster
d6d24bc0e0 Bug 1826529 - Show nsContentPolicyType as string in CSP log. r=freddyb
Differential Revision: https://phabricator.services.mozilla.com/D174740
2023-04-05 15:23:00 +00:00
Iain Ireland
947aaa2ad5 Bug 1825979: Ensure ballast in NewFakeLoopPredecessor r=nbp
Leaving out the testcase, because the existing one is enormous and fragile. I tried for a while to get a decent testcase, but it's very sensitive to the order of memory allocations, and I couldn't reduce it to anything reasonable. I verified in rr that we enter NewFakeLoopPredecessor with plenty of ballast and use it all up allocating fake defs for ~140 phis.

Differential Revision: https://phabricator.services.mozilla.com/D174684
2023-04-05 15:16:40 +00:00
Mike Conley
05fe7a6d75 Bug 1821744 - Enable the new migration wizard by default on Nightly. r=niklas
Differential Revision: https://phabricator.services.mozilla.com/D174653
2023-04-05 15:09:41 +00:00
serge-sans-paille
15af9293d7 Bug 1826494 - Change gemmology organization ownership r=marco
https://github.com/serge-sans-paille/gemmology -> https://github.com/mozilla/gemmology

Differential Revision: https://phabricator.services.mozilla.com/D174714
2023-04-05 14:57:23 +00:00
serge-sans-paille
f69df445d3 Bug 1825336 - Make toolkit/components/url-classifier/ buildable outside of a unified build environment r=janv
Fix for DEBUG configuration.

Differential Revision: https://phabricator.services.mozilla.com/D174752
2023-04-05 14:56:36 +00:00
William Durand
2185297fa9 Bug 1822763 - Listen to AddonManager "onUninstalled" event. r=zmckenney,rpl,geckoview-reviewers,calu,amejiamarmol
For completeness, I added this event too.

Depends on D174466

Differential Revision: https://phabricator.services.mozilla.com/D174469
2023-04-05 14:55:03 +00:00
William Durand
00f8eb6c65 Bug 1822763 - Listen to AddonManager "onEnabled" event. r=zmckenney,rpl,geckoview-reviewers,amejiamarmol
Depends on D173835

Differential Revision: https://phabricator.services.mozilla.com/D174466
2023-04-05 14:55:03 +00:00
William Durand
f862225c59 Bug 1822763 - Listen to AddonManager "onDisabled" event. r=geckoview-reviewers,zmckenney,rpl,amejiamarmol
This is the first step to listen to other AddonManager events. We likely
need a new delegate because there is no other existing delegate we can
leverage I think.

In Fenix, we could use this new delegate like this:

```diff
diff --git a/android-components/components/browser/engine-gecko/src/main/java/mozilla/components/browser/engine/gecko/GeckoEngine.kt b/android-components/components/browser/engine-gecko/src/main/java/mozilla/components/browser/engine/gecko/GeckoEngine.kt
index 5d34a952e8..8031bd1f67 100644
--- a/android-components/components/browser/engine-gecko/src/main/java/mozilla/components/browser/engine/gecko/GeckoEngine.kt
+++ b/android-components/components/browser/engine-gecko/src/main/java/mozilla/components/browser/engine/gecko/GeckoEngine.kt
@@ -357,8 +357,15 @@ class GeckoEngine(
             }
         }

-        runtime.webExtensionController.promptDelegate = promptDelegate
+        val addonManagerDelegate = object : WebExtensionController.AddonManagerDelegate {
+            override fun onDisabled(extension: org.mozilla.geckoview.WebExtension) {
+                webExtensionDelegate.onDisabled(GeckoWebExtension(extension, runtime))
+            }
+        }
+
+        runtime.webExtensionController.setPromptDelegate(promptDelegate)
         runtime.webExtensionController.setDebuggerDelegate(debuggerDelegate)
+        runtime.webExtensionController.setAddonManagerDelegate(addonManagerDelegate)
     }

     /**
@@ -422,7 +429,6 @@ class GeckoEngine(
         runtime.webExtensionController.disable((extension as GeckoWebExtension).nativeExtension, source.id).then(
             {
                 val disabledExtension = GeckoWebExtension(it!!, runtime)
-                webExtensionDelegate?.onDisabled(disabledExtension)
                 onSuccess(disabledExtension)
                 GeckoResult<Void>()
             },
```

Differential Revision: https://phabricator.services.mozilla.com/D173835
2023-04-05 14:55:02 +00:00
Valentin Gosu
ebd2be7cc1 Bug 1800971 - Limit windows-sso to the default container tab by default r=mkaply,edgul
This patch adds a check for the pref `network.http.windows-sso.container-enabled.{containerID}`.
We also default the pref for the no-container userContextId to true.

Differential Revision: https://phabricator.services.mozilla.com/D174751
2023-04-05 14:54:26 +00:00
Mike Kaply
92ec310029 Bug 1803804 - Add a specific signal for enterprise users. r=mstriemer
Differential Revision: https://phabricator.services.mozilla.com/D174489
2023-04-05 14:48:36 +00:00
Hannah Peuckmann
e077b4a3be Bug 1775635 - Properly clean up state. r=pbz
Differential Revision: https://phabricator.services.mozilla.com/D174637
2023-04-05 14:37:10 +00:00
Dale Harvey
47b4406366 Bug 1825710 - Ensure trending icon respects context-fill. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D174731
2023-04-05 14:30:43 +00:00
Manuel Bucher
0e9379cca3 Bug 1818607 - browser_103_asset.js: Request longer timeout for osx test verify chaos mode 10 runs r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D174748
2023-04-05 14:02:00 +00:00
Niklas Baumgardner
8af35caa4a Bug 1779203 - Hide subtitles panel on resize. r=pip-reviewers,kpatenio
Differential Revision: https://phabricator.services.mozilla.com/D172280
2023-04-05 14:00:55 +00:00
Adam Brouwers-Harries
82c01addf1 Bug 1728769 - Use std::underlying_type_t for profile buffer enum types r=canaltinova
This patch replaces "custom" underlying type definitions with definitions gleaned using the std::underlying_type mechanism. This allows us to directly set the underlying type for the enums without having to name it, and reduces the number of semantically identical names in the profile buffer code.

Differential Revision: https://phabricator.services.mozilla.com/D174260
2023-04-05 13:52:29 +00:00
Luca Greco
d3cdd3192f Bug 1788634 - test_ext_eventpage_idle.js to await on rejected promise before asserting pending listeners length. r=willdurand
I was able to hit an intermittent failure which looked the same as the one that seems to be hit in the most recent
intermittent failures for this test on a windows system, mainly when I was also keeping the cpu busy enough along
with running this xpcshell tests with --verify.

The failure seems to be due to a race between the assertion on the number of promises still listed in the
Set and the previously pending promise to be rejected and then removed from the Set.

Awaiting the rejected promise first prevented the intermittent failure to be reproduced locally and so it
seems worth landing the same change to confirm that the intermittent hit on the build infrastructure is
going to be prevented by that same small tweak on the test side.

Differential Revision: https://phabricator.services.mozilla.com/D174473
2023-04-05 13:41:16 +00:00
Rob Wu
fa2f81b770 Bug 1782685 - Turn on availability of DNR API r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D174534
2023-04-05 13:02:21 +00:00
Rob Wu
91b680a54e Bug 1782685 - Remove MV3 requirement from DNR r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D174533
2023-04-05 13:02:20 +00:00
Greg Stoll
6bb6a718dc Bug 1540883 - block a few problematic DLLs r=gsvelto
Differential Revision: https://phabricator.services.mozilla.com/D174502
2023-04-05 12:58:21 +00:00
Rob Wu
274ea51085 Bug 1825947 - Exclude restricted domains from testMatchOutcome r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D174504
2023-04-05 12:41:51 +00:00
Rob Wu
27ba3448f8 Bug 1825947 - Expand coverage of test_ext_dnr_system_restrictions.js r=rpl
Test-only change to expand coverage:
- Rules without "resourceTypes" do not block main frames by default.
  This was desirable because otherwise we could not be simulating
  fetch() requests from specified origins.
  However, it also meant that we lacked test coverage that verified
  that we wouldn't be blocking the main frame.
  Now we have that: dnr_ignores_css_import_at_restrictedDomains.

- While I am at it, I also added extra test coverage for the case
  where the triggering principal is NOT a restricted domain. While
  the implementation works as desired, there was no explicit test
  case for this scenario.

Differential Revision: https://phabricator.services.mozilla.com/D174503
2023-04-05 12:41:51 +00:00
Greg Tatum
d6dae8bafb Bug 1824838 - Wait for the page to be ready to guard against intermittents; r=nordzilla
Differential Revision: https://phabricator.services.mozilla.com/D174670
2023-04-05 12:24:24 +00:00
Greg Tatum
d18c74da1a Bug 1824838 - Add proper Wasm SIMD detection to translations; r=nordzilla
Differential Revision: https://phabricator.services.mozilla.com/D174643
2023-04-05 12:24:23 +00:00
Emilio Cobos Álvarez
1e06c8368f Bug 1826072 - Don't flex permission state label. r=pbz
Err, so the original patch is necessary but not sufficient, and I
clearly goofed my testing (I had removed this attribute in a separate
commit).

The issue is that this button ends up with a markup like:

  <button class="permission-popup-permission-remove-button">
    <label flex="1" class="permission-popup-permission-state-label">Allowed Temporarily</label>
    <hbox class="box-inherit button-box" align="center" pack="center" flex="1" anonid="button-box">
      <image class="button-icon"/>
      <label class="button-text"/>
    </hbox>
  </button>

So the label and hbox divide the available space in half. Removing any
of the flex="1" attributes would cause the desired rendering.

I don't think the hbox needs to be flexible tbh, but ok, that's a
riskier change. I'm pretty sure the label in this case doesn't need to
be flexible at all though, specially since we don't want these buttons
to take any minimum amount of space.

An alternative would be to use `flex: 1 auto` or so for the label (via
CSS). That'd match the pre-regression behavior more exactly, but again I
don't think flexing the label is needed at all.

Depends on D174706

Differential Revision: https://phabricator.services.mozilla.com/D174707
2023-04-05 12:04:03 +00:00
Jan de Mooij
6ef9d65acb Bug 1826078 part 4 - Optimize GC barriers for stores to MNewCallObject. r=iain
The previous patch removed some MIR instructions from `WarpBuilder::buildCallObject`,
because storing aliased arguments to the call object now happens with bytecode
instructions. Unfortunately that means we lost some optimizations baked into
`buildCallObject` to elide GC barriers.

This patch adds an optimization pass to optimize the MIR instructions we generate for
the new bytecode sequence in a similar way to what we did manually in `buildCallObject`.

In the future we could use this to optimize other allocation instructions as well.

Differential Revision: https://phabricator.services.mozilla.com/D174631
2023-04-05 11:37:15 +00:00
Jan de Mooij
b5aa7eb6e7 Bug 1826078 part 3 - Emit bytecode to initialize CallObject slots for arguments. r=arai
Emit bytecode in the prologue to initialize the slots for closed-over arguments, instead
of doing this at runtime.

This is faster in the interpreter and Baseline because we no longer have to look
at the scope's bindings each time we allocate a call object. It also makes it easier
to optimize the `CallObject` allocation later.

Differential Revision: https://phabricator.services.mozilla.com/D174579
2023-04-05 11:37:14 +00:00
Jan de Mooij
9c1c4f56d9 Bug 1826078 part 2 - Add JSOp::GetFrameArg. r=arai
This will be used in the next patch to copy arguments to the call object in the prologue.

Differential Revision: https://phabricator.services.mozilla.com/D174578
2023-04-05 11:37:14 +00:00
Jan de Mooij
7a0d3b431d Bug 1826078 part 1 - Add ParserPositionalFormalParameterIter. r=arai
This is similar to what we do for `BindingIter` and `ParserBindingIter`.

Differential Revision: https://phabricator.services.mozilla.com/D174577
2023-04-05 11:37:14 +00:00
André Bargull
1af28ee6dc Bug 1826514: Add eslint rule to disallow 'arguments' in self-hosted code. r=jandem
Use a custom rule instead of the built-in "prefer-rest-params" [1] rule, so we
can adjust the error message to mention `ArgumentsLength()` and `GetArgument()`.

[1] https://eslint.org/docs/latest/rules/prefer-rest-params

Differential Revision: https://phabricator.services.mozilla.com/D174727
2023-04-05 11:25:20 +00:00
Andreas Pehrson
3c87541fa8 Bug 1826483 - Reinstate the CFRunLoopRunInMode call that was removed in bug 1800213. r=karlt
The thinking in bug 1800213 was that this CFRunLoopRunInMode was no longer
needed as we went from a busy-loop thread model to an event loop based one.

Tests were all green with the change, but it turned out to be CI that had lost
coverage of test_getUserMedia_basicScreenshare.html instead.

Differential Revision: https://phabricator.services.mozilla.com/D174734
2023-04-05 11:19:54 +00:00
Luca Greco
164b7ce122 Bug 1803363 - Applied some more small improvements evaluatRulesCountMax test coverage. r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D174640
2023-04-05 10:36:14 +00:00
Luca Greco
c5313d5974 Bug 1803363 - Mirror ExtensionDNR glean quantity metrics into unified telemetry scalars. r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D174030
2023-04-05 10:36:14 +00:00
Luca Greco
cd75d02610 Bug 1803363 - Mirror ExtensionDNR glean distribution metrics into unified telemetry histograms. r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D174029
2023-04-05 10:36:13 +00:00
Luca Greco
f8f68c580c Bug 1803363 - Mirror ExtensionDNRStore glean labeled counter metrics into unified telemetry scalars. r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D174028
2023-04-05 10:36:13 +00:00
Luca Greco
2569f6441c Bug 1803363 - Mirror ExtensionDNRStore glean distribution metrics into unified telemetry histograms. r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D174027
2023-04-05 10:36:12 +00:00
Luca Greco
f21ff3f485 Bug 1803363 - Record metrics related to the amount of DNR rules enabled during DNR rule evaluation. r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D174026
2023-04-05 10:36:12 +00:00
Luca Greco
6cee8de04e Bug 1803363 - Record timing distribution telemetry probe time to completes DNR rules evaluation. r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D174025
2023-04-05 10:36:12 +00:00
Luca Greco
32fda08871 Bug 1803363 - Record labeled counters telemetry probes on startup cache entries hit and miss. r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D174024
2023-04-05 10:36:11 +00:00
Luca Greco
17a53df0c1 Bug 1803363 - Record telemetry probes on ExtensionDNRStore validating rules and reading/writing startup cache data. r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D174022
2023-04-05 10:36:11 +00:00
Luca Greco
6d49910e4e Bug 1826460 - Make sure ExtensionDNR.clearRuleManager is called extension shutdown. r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D174704
2023-04-05 10:36:10 +00:00
Dão Gottwald
e67f7a0f65 Bug 1775332 - Remove Colorways UI stuff from about:addons. r=extension-reviewers,willdurand
Differential Revision: https://phabricator.services.mozilla.com/D151055
2023-04-05 10:28:22 +00:00