brizental pushed to branch mullvad-browser-153.0esr-16.0-1 at The Tor Project / Applications / Mullvad Browser
Commits:
-
d88f3275
by Beatriz Rizental at 2026-07-22T22:46:50-03:00
-
622b3fe0
by Beatriz Rizental at 2026-07-22T22:46:51-03:00
-
f851d77f
by Beatriz Rizental at 2026-07-22T22:46:52-03:00
4 changed files:
- browser/app/profile/001-base-profile.js
- browser/components/aiwindow/ui/modules/AIWindow.sys.mjs
- + testing/base-browser/manifest.toml
- + testing/base-browser/test_new_window.py
Changes:
| ... | ... | @@ -383,6 +383,8 @@ pref("pdfjs.enableAltTextModelDownload", false, locked); |
| 383 | 383 | pref("browser.urlbar.quicksuggest.mlEnabled", false, locked);
|
| 384 | 384 | // Disable SemanticHistory search. tor-browser#44045.
|
| 385 | 385 | pref("places.semanticHistory.featureGate", false, locked);
|
| 386 | +// tor-browser#45120: Disable AIWindow
|
|
| 387 | +pref("browser.smartwindow.enabled", false);
|
|
| 386 | 388 | |
| 387 | 389 | |
| 388 | 390 | // tor-browser#41945 - disable automatic cookie banners dismissal until
|
| ... | ... | @@ -131,7 +131,11 @@ export const AIWindow = { |
| 131 | 131 | Services.obs.addObserver(this, lazy.ONLOGOUT_NOTIFICATION);
|
| 132 | 132 | Services.obs.addObserver(this, "tabstrip-orientation-change");
|
| 133 | 133 | lazy.SmartWindowTelemetry.init();
|
| 134 | - lazy.getAllModelsData(); // loads model data into cache for about:preferences
|
|
| 134 | + if (this.isAIWindowEnabled()) {
|
|
| 135 | + // Depends on the ml component, which tor-browser#44045 excludes from
|
|
| 136 | + // the build, so only touch it when AI Window is actually enabled.
|
|
| 137 | + lazy.getAllModelsData(); // loads model data into cache for about:preferences
|
|
| 138 | + }
|
|
| 135 | 139 | lazy.NimbusFeatures.smartWindow.onUpdate(this.onNimbusUpdate);
|
| 136 | 140 | this._initialized = true;
|
| 137 | 141 |
| 1 | +[DEFAULT]
|
|
| 2 | +tags = "base-browser"
|
|
| 3 | + |
|
| 4 | +["test_new_window.py"] |
| 1 | +from marionette_harness import MarionetteTestCase, WindowManagerMixin
|
|
| 2 | + |
|
| 3 | + |
|
| 4 | +class TestNewWindow(WindowManagerMixin, MarionetteTestCase):
|
|
| 5 | + def tearDown(self):
|
|
| 6 | + self.close_all_windows()
|
|
| 7 | + super().tearDown()
|
|
| 8 | + |
|
| 9 | + def test_open_new_window(self):
|
|
| 10 | + with self.marionette.using_context("chrome"):
|
|
| 11 | + new_window = self.open_window()
|
|
| 12 | + |
|
| 13 | + self.assertEqual(
|
|
| 14 | + len(self.marionette.chrome_window_handles),
|
|
| 15 | + len(self.start_windows) + 1,
|
|
| 16 | + "A new browser window should have been opened.",
|
|
| 17 | + )
|
|
| 18 | + |
|
| 19 | + self.marionette.switch_to_window(new_window)
|
|
| 20 | + self.marionette.navigate("about:blank")
|
|
| 21 | + self.assertEqual(
|
|
| 22 | + self.marionette.get_url(),
|
|
| 23 | + "about:blank",
|
|
| 24 | + "Should be able to navigate in the newly opened window.",
|
|
| 25 | + ) |