Closed Bug 2067573 Opened 2 months ago Closed 2 months ago

Whenever I have a map open in Firefox, scrolling breaks across all tabs.

Categories

(Core :: Panning and Zooming, defect)

Firefox 154
defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: rubenblom, Unassigned)

References

Details

Attachments

(2 files)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:154.0) Gecko/20100101 Firefox/154.0

Steps to reproduce:

In a clean session, scrolling with two fingers works to scroll down. Whenever I open a tab with a map on it (for example Google Maps), scrolling breaks across all tabs.

Actual results:

Scrolling functionality is restored after a while, but I can't figure out the trigger. Just closing the tab with the map doesn't seem to work.

Expected results:

Scrolling works like normal across Firefox.

The Bugbug bot thinks this bug should belong to the 'Firefox::Tabbed Browser' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Tabbed Browser

Are you using a laptop trackpad to scroll with two fingers? And when you say it breaks scrolling for all other tabs do you mean you're unable to scroll on other websites or are you unable to scroll through tabs in the tab strip?

Can you also add some more specific steps to reproduce the issue? Thanks!

Flags: needinfo?(rubenblom)

Hi,

So here is a quick demo I recorded: https://youtu.be/OfERCBOTmio
During recording I gathered some more info. First I did a 'refresh', but that didn't work, but a new profile doesn't have this problem.
So I tried using Firefox safe mode in my original profile and the problem did still exist there.
I tried both Apple and Google Maps for testing, and the problem exists in both cases. The Firefox error log doesn't have anything worth nothing (I get a lot of errors like Toolkit.Telemetry, but can't find anything related).

If you'd like me to try something else, please let me know.

Flags: needinfo?(rubenblom)

Thanks for the info and screen recording! Going to see if the Core::Panning & Zooming folks might have any ideas what's going on here as I'm still unable to reproduce on my mac.

Component: Tabbed Browser → Panning and Zooming
Product: Firefox → Core

So I noticed that my syncing didn't work on my Mac anymore, and I logged out of my Mozilla account and relogged and now I can't reproduce it anymore. Isn't that weird?

Yeah, it's weird. A hypothesis I can think of that some preferences that the broken sync had held had some bad impacts? I can't think of any such preferences though.

For now I am closing this bug, if you saw it again, please feel free to reopen this bug. Thanks!

Status: UNCONFIRMED → RESOLVED
Closed: 2 months ago
Resolution: --- → WORKSFORME

Hi, so the bug reappeared suddenly. Not sure if it was ever really gone, but the video is still how I can reproduce.
Syncing is still working OK this time, so if anyone would help me trying to find a solution would be greatly appreciated.

Status: RESOLVED → UNCONFIRMED
Resolution: WORKSFORME → ---

Two things would be helpful to diagnose the problem.

  1. The contents of your about:support (navigate to about:support, click "Copy text to clipboard", post the text as an attachment to this bug). Since you mentioned the issue doesn't occur in a new profile, the issue could be related to a modified preference in your main profile and about:support shows these.

  2. A profile taken with scrolling-related logging enabled:

    • Start in a state where scrolling is working (no maps opens)
    • Navigate toabout:logging?modules=apz.manager:4,apz.controller:5,apz.inputstate:5,apz.inputqueue:5&output=profiler
    • Click "Start Logging"
    • Trigger a successful scroll, then open a map, then trigger an unsuccessful scroll
    • Click "Stop Logging". A Firefox Profiler tab should open.
    • In the top right corner click the link to upload the profile
    • Once the profile is uploaded, you should be able to copy a permalink to the profile, post that in a comment here
Flags: needinfo?(rubenblom)
Attached file about_support —

Hi,
The requested information.
https://share.firefox.dev/4iSGFjf

What I do in the logging is, in 'Safe Mode':
Start logging
Open wikipedia main mage
-scroll-
Open maps.google.com
-zoom a lot-
(I'm in train so tiles don't load)
Notice wikipedia still scrolls
-Go back to maps, scroll some more, tiles are now loaded-
Scrolling is now broken

about:support in attach
I removed the extensions from the about:support as some were private. For testing I always use 'safe mode' so without them.

Flags: needinfo?(rubenblom)

apz.content_response_timeout: 60000 is very suspicious. This means 60 seconds, when the default value of this pref is 400 (0.4 seconds).

Can you go to about:config, change the value of this pref to 400, and see if it resolves the problem?

Wow such a small thing.
It seems to work, will reopen if it breaks somehow. I'll keep this value in check across my devices.

Status: UNCONFIRMED → RESOLVED
Closed: 2 months ago → 2 months ago
Resolution: --- → WORKSFORME
See Also: → 2070448
See Also: → 2072785
See Also: → 2072786
Duplicate of this bug: 2070448

(In reply to Ruben from comment #12)

Wow such a small thing.
It seems to work, will reopen if it breaks somehow. I'll keep this value in check across my devices.

Out of curiosity. Did you enable the Remote Agent in your profile for agentic browsing related tasks? We set the value to 60000 beside some other test suites only, and there was a problem that we didn't reset a couple of preferences. Thanks for letting us know!

Flags: needinfo?(rubenblom)

It's very possible I did once.

Flags: needinfo?(rubenblom)

If that's the case please check the following list of preferences:
https://searchfox.org/firefox-main/source/remote/shared/RecommendedPreferences.sys.mjs#83

If most of them are set we should help you to get them all reset. In such a case sorry that this happened but it was a short-term bug that already got fixed.

O my, yes this was pretty much all different from default.

(In reply to Ruben from comment #17)

O my, yes this was pretty much all different from default.

We are sorry that this happened to you. In case you don't want to reset it all yourself @jdecottes may be able to help to reset each of the prefs that we set in the Remote Agent.

Flags: needinfo?(jdescottes)

Did you enable the Remote Agent in your profile for agentic browsing related tasks?

1/ This feature is Nightly only, the report is on release channel.
2/ The UI bits to start this also shipped in 156 and this is 155

So I think this must have been triggered from another entry point? I don't really understand how this could be the reason for the issue here.
Unless they called the APIs directly with the Browser Console?

Ruben, when you say "It's very possible I did once.", what are you referring to exactly?
When Henrik talks about "Remote Control", it's a dedicated popup that you need to enable first via a preference (and which again would only be available in 156).
Did you start your Firefox with additional parameters such as --marionette-port or --remote-debugging-port?
And just to make sure, can you check the value of the remote.prefs.recommended.applied preference?

Thanks

Flags: needinfo?(jdescottes) → needinfo?(rubenblom)

(and I just see this was even reported on 154 initially, where the Chrome JS apis to start remote servers did not even exist)

Did you start your Firefox with additional parameters such as --marionette-port or --remote-debugging-port?

This is what I did. I played with Firefox<->MCP<->LLM and used these parameters.
Unfortunately, I already completely reset all about:config non-default parameters. So I can't check what was there before, sorry.

Flags: needinfo?(rubenblom)

Alright, thanks for checking. And sorry that your preferences got wiped (they should normally have been reset on shutdown, but this regressed with Bug 2028422).

@Julian, after re-enabling setting sync, the config was back again in it's faulty state, and remote.prefs.recommended.applied was indeed 'True'

Sorry for the double post.

If I start firefox again with --marionette --remote-debugging-port my config is screwed up again, and remains so even if I launch it normally after the remote session. Not sure where to go from here, seems outside the scope of this bug.

Sorry for the double post.

If I start firefox again with --marionette --remote-debugging-port my config is screwed up again, and remains so even if I launch it normally after the remote session. Not sure where to go from here, seems outside the scope of this bug.

The issue with preferences was only fixed in Firefox 157 via Bug 2066531 and you are using Firefox 156. In Firefox 158 we should have an even better solution which can't persist at all in your preferences (Bug 2074275) , but in the meantime please avoid using --marionette --remote-debugging-port against your regular profile.

If you need to cleanup your preferences, you can run the following script in the browser console / toolbox:

// Clears the WebDriver recommended preferences left behind in a normal profile
// (bug 2066518). Paste in the Browser Console with devtools.chrome.enabled=true,
// then restart Firefox.

Services.prefs.clearUserPref("app.normandy.api_url");
Services.prefs.clearUserPref("app.update.disabledForTesting");
Services.prefs.clearUserPref("apz.axis_lock.mode");
Services.prefs.clearUserPref("apz.content_response_timeout");
Services.prefs.clearUserPref("browser.backup.enabled");
Services.prefs.clearUserPref("browser.contentblocking.introCount");
Services.prefs.clearUserPref("browser.discovery.enabled");
Services.prefs.clearUserPref("browser.dom.window.dump.enabled");
Services.prefs.clearUserPref("browser.download.alwaysOpenPanel");
Services.prefs.clearUserPref("browser.download.panel.shown");
Services.prefs.clearUserPref("browser.http.blank_page_with_error_response.enabled");
Services.prefs.clearUserPref("browser.ml.enable");
Services.prefs.clearUserPref("browser.newtabpage.activity-stream.asrouter.userprefs.cfr.features");
Services.prefs.clearUserPref("browser.newtabpage.activity-stream.testing.shouldInitializeFeeds");
Services.prefs.clearUserPref("browser.newtabpage.activity-stream.showSponsoredTopSites");
Services.prefs.clearUserPref("browser.pagethumbnails.capturing_disabled");
Services.prefs.clearUserPref("browser.preonboarding.enabled");
Services.prefs.clearUserPref("browser.region.network.url");
Services.prefs.clearUserPref("browser.safebrowsing.blockedURIs.enabled");
Services.prefs.clearUserPref("browser.safebrowsing.downloads.enabled");
Services.prefs.clearUserPref("browser.safebrowsing.malware.enabled");
Services.prefs.clearUserPref("browser.safebrowsing.phishing.enabled");
Services.prefs.clearUserPref("browser.search.update");
Services.prefs.clearUserPref("browser.sessionstore.resume_from_crash");
Services.prefs.clearUserPref("browser.shell.checkDefaultBrowser");
Services.prefs.clearUserPref("browser.startup.couldRestoreSession.count");
Services.prefs.clearUserPref("browser.startup.homepage_override.mstone");
Services.prefs.clearUserPref("browser.tabs.remote.unloadDelayMs");
Services.prefs.clearUserPref("browser.tabs.unloadOnLowMemory");
Services.prefs.clearUserPref("browser.tabs.warnOnClose");
Services.prefs.clearUserPref("browser.tabs.warnOnCloseOtherTabs");
Services.prefs.clearUserPref("browser.tabs.warnOnOpen");
Services.prefs.clearUserPref("browser.toolbars.bookmarks.visibility");
Services.prefs.clearUserPref("browser.topsites.contile.enabled");
Services.prefs.clearUserPref("browser.translations.enable");
Services.prefs.clearUserPref("browser.usedOnWindows10.introURL");
Services.prefs.clearUserPref("browser.urlbar.merino.endpointURL");
Services.prefs.clearUserPref("browser.urlbar.merino.ohttpConfigURL");
Services.prefs.clearUserPref("browser.urlbar.merino.ohttpRelayURL");
Services.prefs.clearUserPref("browser.urlbar.suggest.searches");
Services.prefs.clearUserPref("browser.warnOnQuit");
Services.prefs.clearUserPref("datareporting.healthreport.documentServerURI");
Services.prefs.clearUserPref("datareporting.healthreport.logging.consoleEnabled");
Services.prefs.clearUserPref("datareporting.healthreport.service.enabled");
Services.prefs.clearUserPref("datareporting.healthreport.service.firstRun");
Services.prefs.clearUserPref("datareporting.healthreport.uploadEnabled");
Services.prefs.clearUserPref("datareporting.policy.dataSubmissionEnabled");
Services.prefs.clearUserPref("datareporting.policy.dataSubmissionPolicyAccepted");
Services.prefs.clearUserPref("datareporting.policy.dataSubmissionPolicyBypassNotification");
Services.prefs.clearUserPref("datareporting.usage.uploadEnabled");
Services.prefs.clearUserPref("telemetry.fog.test.localhost_port");
Services.prefs.clearUserPref("dom.disable_open_during_load");
Services.prefs.clearUserPref("dom.file.createInChild");
Services.prefs.clearUserPref("dom.input_events.security.minNumTicks");
Services.prefs.clearUserPref("dom.input_events.security.minTimeElapsedInMS");
Services.prefs.clearUserPref("dom.ipc.reportProcessHangs");
Services.prefs.clearUserPref("threads.lower_mainthread_priority_in_background.enabled");
Services.prefs.clearUserPref("dom.ipc.processPriorityManager.enabled");
Services.prefs.clearUserPref("dom.max_chrome_script_run_time");
Services.prefs.clearUserPref("dom.max_script_run_time");
Services.prefs.clearUserPref("dom.navigation.navigationRateLimit.count");
Services.prefs.clearUserPref("dom.permissions.testing.enabled");
Services.prefs.clearUserPref("dom.push.connection.enabled");
Services.prefs.clearUserPref("dom.screenorientation.allow-lock");
Services.prefs.clearUserPref("dom.successive_dialog_time_limit");
Services.prefs.clearUserPref("extensions.autoDisableScopes");
Services.prefs.clearUserPref("extensions.enabledScopes");
Services.prefs.clearUserPref("extensions.formautofill.addresses.enabled");
Services.prefs.clearUserPref("extensions.formautofill.creditCards.enabled");
Services.prefs.clearUserPref("extensions.getAddons.cache.enabled");
Services.prefs.clearUserPref("extensions.installDistroAddons");
Services.prefs.clearUserPref("extensions.update.enabled");
Services.prefs.clearUserPref("extensions.update.notifyUser");
Services.prefs.clearUserPref("extensions.getAddons.discovery.api_url");
Services.prefs.clearUserPref("extensions.blocklist.detailsURL");
Services.prefs.clearUserPref("extensions.blocklist.itemURL");
Services.prefs.clearUserPref("extensions.hotfix.url");
Services.prefs.clearUserPref("extensions.systemAddon.update.enabled");
Services.prefs.clearUserPref("extensions.update.background.url");
Services.prefs.clearUserPref("extensions.update.url");
Services.prefs.clearUserPref("extensions.getAddons.get.url");
Services.prefs.clearUserPref("extensions.getAddons.search.browseURL");
Services.prefs.clearUserPref("focusmanager.testmode");
Services.prefs.clearUserPref("general.useragent.updates.enabled");
Services.prefs.clearUserPref("geo.prompt.open_system_prefs");
Services.prefs.clearUserPref("geo.provider.network.url");
Services.prefs.clearUserPref("geo.provider.testing");
Services.prefs.clearUserPref("geo.wifi.scan");
Services.prefs.clearUserPref("identity.fxaccounts.auth.uri");
Services.prefs.clearUserPref("mousewheel.allow_scrolling_more_than_one_page");
Services.prefs.clearUserPref("network.captive-portal-service.enabled");
Services.prefs.clearUserPref("network.connectivity-service.enabled");
Services.prefs.clearUserPref("network.http.prompt-temp-redirect");
Services.prefs.clearUserPref("network.manage-offline-status");
Services.prefs.clearUserPref("network.sntp.pools");
Services.prefs.clearUserPref("places.semanticHistory.featureGate");
Services.prefs.clearUserPref("privacy.trackingprotection.enabled");
Services.prefs.clearUserPref("privacy.trackingprotection.pbmode.enabled");
Services.prefs.clearUserPref("remote.prefs.recommended.applied");
Services.prefs.clearUserPref("security.certerrors.mitm.priming.enabled");
Services.prefs.clearUserPref("security.fileuri.strict_origin_policy");
Services.prefs.clearUserPref("security.notification_enable_delay");
Services.prefs.clearUserPref("security.remote_settings.intermediates.enabled");
Services.prefs.clearUserPref("security.webauthn.related_origin_requests_mode");
Services.prefs.clearUserPref("services.settings.loglevel");
Services.prefs.clearUserPref("services.settings.server");
Services.prefs.clearUserPref("signon.autofillForms");
Services.prefs.clearUserPref("signon.management.page.breach-alerts.enabled");
Services.prefs.clearUserPref("signon.management.page.vulnerable-passwords.enabled");
Services.prefs.clearUserPref("signon.rememberSignons");
Services.prefs.clearUserPref("startup.homepage_welcome_url");
Services.prefs.clearUserPref("startup.homepage_welcome_url.additional");
Services.prefs.clearUserPref("termsofuse.bypassNotification");
Services.prefs.clearUserPref("toolkit.startup.max_resumed_crashes");
Services.prefs.clearUserPref("toolkit.telemetry.server");
Services.prefs.clearUserPref("widget.windows.window_occlusion_tracking.enabled");

// Set by WebDriver BiDi and by the Marionette server, not recommended prefs.
Services.prefs.clearUserPref("permissions.isolateBy.userContext");
Services.prefs.clearUserPref("marionette.port");

Services.prefs.savePrefFile(null);

Don't hesitate to reach out on Matrix (https://chat.mozilla.org/#/room/#webdriver:mozilla.org) if you have issues, this bug is closed and might not be monitored, so your messages might be ignored.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: