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

836692 Коммитов

Автор SHA1 Сообщение Дата
Valentin Gosu f35dd148f7 Bug 1610741 - Update warning message in DoH warning pages r=flod,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D174769
2023-04-05 17:13:54 +00:00
Kershaw Chang e6e197335c Bug 1816948 - Update the link to change DoH settings when getting a TRR server error, r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D173942
2023-04-05 17:13:54 +00:00
Kershaw Chang 106692769a Bug 1596847 - DoH settings UI for excluded domains, r=fluent-reviewers,settings-reviewers,Gijs,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D173521
2023-04-05 17:13:54 +00:00
Valentin Gosu 30552a1a59 Bug 1610741 - Allow setting invalid URL in TRRService and show it in settings r=Gijs,fluent-reviewers,settings-reviewers,flod
- Patch changes TRRService::MaybeSetPrivateURI so that it doesn't bail
  if the URL is invalid. That could lead us into a state where the
  network.trr.uri pref has been set to some invalid URL, but we continue
  using the previous domain (or even the default TRR provider) instead.
- Updates the DoH settings UI to not set the network.trr.uri pref to "",
  as that will cause the TRRService to use the value of
  the network.trr.default_provider_uri pref instead.

Differential Revision: https://phabricator.services.mozilla.com/D174111
2023-04-05 17:13:53 +00:00
Valentin Gosu 4122ebd649 Bug 1610741 - DoH Settings UI: Show error reason in Not Available label r=Gijs,kershaw,fluent-reviewers,necko-reviewers,settings-reviewers,flod
- The patch saves the confirmation channel's status and skipReason in the TRR Service
- The UI queries the status and displays the stringified version in the Not Available (reason) label
- Introduces doh-status-label CSS rule so the Learn-More link isn't off center

Differential Revision: https://phabricator.services.mozilla.com/D174110
2023-04-05 17:13:53 +00:00
Valentin Gosu 524bec08c5 Bug 1610741 - Remove old DoH UI r=Gijs,settings-reviewers,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D173940
2023-04-05 17:13:52 +00:00
Valentin Gosu ed0851e1a3 Bug 1610741 - DoH setting UI r=kershaw,settings-reviewers,Gijs,pbz,flod
Project plan: https://docs.google.com/document/d/12IGABt1eXI276qHduXXbVZqRFrhLN7Ad3gKEgxz81sE
Copy deck: https://docs.google.com/document/d/130UTox8bQbybjYIwvltR4qBg2hWjsGhuNUHypLwUAEQ
Figma: https://www.figma.com/file/qE8FEIOv2Q0pm8e1euItd1/DoH-UI-Improvements?node-id=15%3A3479&t=8tJjft2zfvDJcV2N-0


This change adds a DNS over HTTPS section to about:preferences#privacy
The UI is intended to have the same style as the Enhanced Tracking Protection
choices.
The old DoH UI is going to be removed in a followup patch.

Differential Revision: https://phabricator.services.mozilla.com/D172966
2023-04-05 17:13:52 +00:00
Katherine Patenio 9050d19f58 Bug 1826461 - allow PiP label override via Nimbus if not expanded first-time toggle. r=pip-reviewers,mhowell
Differential Revision: https://phabricator.services.mozilla.com/D174705
2023-04-05 17:13:08 +00:00
Julian Descottes d51dd03761 Bug 1825916 - [devtools] Add a http3 only test for netmonitor response headers r=bomsy,devtools-reviewers
Depends on D174526

Differential Revision: https://phabricator.services.mozilla.com/D174527
2023-04-05 17:13:05 +00:00
Julian Descottes 5ec4d15140 Bug 1825916 - [devtools] Update getHttpVersion to read the response version r=bomsy,devtools-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D174526
2023-04-05 17:13:05 +00:00
Shane Hughes 9298f433c4 Bug 1826046 - Fix a targeting error when form autofill is unsupported. r=omc-reviewers,jprickett
The new form autofill targeting attributes use an actor that may not be
registered in regions where neither credit card nor address autofill is
supported. In that case, the actor never gets registered, and requesting
an unrecognized JSActor throws an exception, which causes JEXL
evaluation to fail, ultimately causing message requests to fail. The
simplest fix is to just catch the exception and report 0 for targeting.
Using an actor externally isn't ideal, but in this case it's
conventional and the alternative - importing the storage object - isn't
great either.

Differential Revision: https://phabricator.services.mozilla.com/D174447
2023-04-05 17:06:09 +00:00
Dan Minor 665ba7b04d Bug 1793960 - Implement code generation for getter/setter decorators; r=arai
Differential Revision: https://phabricator.services.mozilla.com/D172246
2023-04-05 17:00:41 +00:00
Bryan Thrall 093cfe4196 Bug 1826553 - Fix incomplete JSONPrinter type error in release build r=arai
Differential Revision: https://phabricator.services.mozilla.com/D174776
2023-04-05 16:35:43 +00:00
Nika Layzell 83c3e70137 Bug 1822863 - Use `Span<...>` in IPDL send signatures, r=ipc-reviewers,mccr8
This should make it possible to send data without copying in some
situations.

This requires adding the `rightconst` attribute to the C++ `Type` type
in order to allow specifying `Span<PFoo* const>`, which isn't possible
to specify with a left const. The type is getting very gross with all of
these flags and it's probably worth switching it to be a recursive
type at this point.

Differential Revision: https://phabricator.services.mozilla.com/D173570
2023-04-05 16:29:51 +00:00
Julian Descottes b99f316590 Bug 1826366 - [remote] Enable valid-jsdoc linter for remote/** r=webdriver-reviewers,whimboo
Depends on D174739

Differential Revision: https://phabricator.services.mozilla.com/D174718
2023-04-05 16:25:49 +00:00
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