Open Bug 1901755 Opened 1 year ago Updated 1 year ago

FF Update 127.0: Auto Start On Restart Computer Message Gets Spammed After Updating

Categories

(Firefox :: Messaging System, defect, P5)

Firefox 127
x86_64
Windows 10
defect

Tracking

()

UNCONFIRMED

People

(Reporter: mafeesecondary, Unassigned)

Details

Attachments

(3 files)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0

Steps to reproduce:

Step 1: Opened Firefox 127.0 (64 bit), on Windows 10 after update.
Step 2 (Not sure if this action affects whether the bug occurs):
Navigated to a folder through Firefox (eg. C:/Users/<username>/Music)

Actual results:

Notification Message (notification-message.infobar.animated, parent: vbox.notificationbox-stack.global-notificationbox) gets spammed 16 times with value attribute set to INFOBAR_LAUNCH_ON_LOGIN.

This also squishes the browser view under the notification messages, and only reverts to its original height when the notifications are closed.

  • Information accessed through Browser Toolbox

Expected results:

Notification message infobar should have only been rendered once, instead of 16 times.

OS: Unspecified → Windows 10
Hardware: Unspecified → x86_64

Firefox Browser, when launched for the first item after updating to version 127.0, causes spamming of Start after restart notification message.

I could not trigger more than one infobar when using Firefox 127 on my macOS 13 after a OS restart. Moving this to Messaging System component si that our engineers could take a closer look.

Component: Untriaged → Messaging System
Flags: needinfo?(nshukla)

My gut tells me that this is something to do more with the messaging system, or perhaps something specific to the user's configuration. In the link above this message has a lifetime: 1 and !activeNotifications as a targeting condition so we should never really be in a situation where this message is showing up multiple times, let alone 16 times stacked. We do have a second message with different verbiage that shows up 14 days later, however that isn't what's causing the problem here.

Flags: needinfo?(nshukla)

Can you...

  1. Set this pref to true browser.newtabpage.activity-stream.asrouter.devtoolsEnabled
  2. Go to about:asrouter in your address bar
  3. Click the Impressions tab on the left sidebar
  4. How many message impressions are showing for INFOBAR_LAUNCH_ON_LOGIN in about:asrouter?
Flags: needinfo?(mafeesecondary)

(In reply to Shane Hughes [:aminomancer] from comment #5)

Can you...

  1. Set this pref to true browser.newtabpage.activity-stream.asrouter.devtoolsEnabled
  2. Go to about:asrouter in your address bar
  3. Click the Impressions tab on the left sidebar
  4. How many message impressions are showing for INFOBAR_LAUNCH_ON_LOGIN in about:asrouter?

Hello, I am unable to get access to the ASRouter Dashboard (about:asrouter), it is showing the error message:

You must enable the ASRouter Admin page by setting browser.newtabpage.activity-stream.asrouter.devtoolsEnabled to true and then reloading this page.

Despite about:config > browser.newtabpage.activity-stream.asrouter.devtoolsEnabled is set to true. Though, I am unable to access a wrench icon at about:newtab.

(I am not using Firefox Nightly)

Steps Taken:
-> about:config > browser.newtabpage.activity-stream.asrouter.devtoolsEnabled > clicked on toggle button.
https://i.imgur.com/RcDrnx3.png (screenshot of about:config page, firefox)

If I am doing something wrong, please inform.

Thanks for your replies.

Flags: needinfo?(mafeesecondary)

(In reply to Mafee Comatsu from comment #6)

(In reply to Shane Hughes [:aminomancer] from comment #5)

Can you...

  1. Set this pref to true browser.newtabpage.activity-stream.asrouter.devtoolsEnabled
  2. Go to about:asrouter in your address bar
  3. Click the Impressions tab on the left sidebar
  4. How many message impressions are showing for INFOBAR_LAUNCH_ON_LOGIN in about:asrouter?

Hello, I am unable to get access to the ASRouter Dashboard (about:asrouter), it is showing the error message:

You must enable the ASRouter Admin page by setting browser.newtabpage.activity-stream.asrouter.devtoolsEnabled to true and then reloading this page.

Despite about:config > browser.newtabpage.activity-stream.asrouter.devtoolsEnabled is set to true. Though, I am unable to access a wrench icon at about:newtab.

(I am not using Firefox Nightly)

Steps Taken:
-> about:config > browser.newtabpage.activity-stream.asrouter.devtoolsEnabled > clicked on toggle button.
https://i.imgur.com/RcDrnx3.png (screenshot of about:config page, firefox)

If I am doing something wrong, please inform.

Thanks for your replies.

Screenshot of about:asrouter page
https://i.imgur.com/Wqheuok.png

(In reply to Nipun Shukla from comment #4)

My gut tells me that this is something to do more with the messaging system, or perhaps something specific to the user's configuration. In the link above this message has a lifetime: 1 and !activeNotifications as a targeting condition so we should never really be in a situation where this message is showing up multiple times, let alone 16 times stacked. We do have a second message with different verbiage that shows up 14 days later, however that isn't what's causing the problem here.

Can send extension list if required.

(In reply to Simona Badau, Desktop QA from comment #2)

I could not trigger more than one infobar when using Firefox 127 on my macOS 13 after a OS restart. Moving this to Messaging System component si that our engineers could take a closer look.

Sorry, my initial report was a bit mixed-up. What I meant was:

When Firefox is relaunched after updating to Firefox v127.0, this bug occurred.

Thanks for the update. It doesn't sound like you're doing anything wrong, but that's very strange. No issues with that pref have been reported before, despite constant daily use by many engineers. We also have never heard of anything like the original bug you filed. We're unable to reproduce either issue, so we'll have to give you instructions so you can debug it. It seems like this breakage extends to multiple areas of the browser and seems to be quite peculiar to your system, install, or profile. So I have to ask about those things.

  1. Just to be clear, the devtools are in about:asrouter, not about:newtab.
  2. Did you try restarting Firefox after setting the pref?
  3. Are you encountering these issues on an official build on the Release channel?
  4. Are you using any custom modifications to your browser?
    • You seem like a power user, so I wonder which prefs you might have changed, add-ons you might have installed, etc.
    • Are you using userChrome modifications?
    • Autoconfig?
    • Enterprise policies?
  5. Have you tried reproducing the issue on a new profile (see about:profiles)?
  6. Would you mind going to about:support, clicking "Copy raw data to clipboard", and pasting it here? (The site will ask if you want to paste it as an attachment or as a comment. Choose attachment.)
  7. How much disk space is available on the drive that hosts your Firefox installation? What about the drive that hosts your Firefox profiles? (if they're not the same drive)

(In reply to Shane Hughes [:aminomancer] from comment #10)

Thanks for the update. It doesn't sound like you're doing anything wrong, but that's very strange. No issues with that pref have been reported before, despite constant daily use by many engineers. We also have never heard of anything like the original bug you filed. We're unable to reproduce either issue, so we'll have to give you instructions so you can debug it. It seems like this breakage extends to multiple areas of the browser and seems to be quite peculiar to your system, install, or profile. So I have to ask about those things.

  1. Just to be clear, the devtools are in about:asrouter, not about:newtab.
  2. Did you try restarting Firefox after setting the pref?
  3. Are you encountering these issues on an official build on the Release channel?
  4. Are you using any custom modifications to your browser?
    • You seem like a power user, so I wonder which prefs you might have changed, add-ons you might have installed, etc.
    • Are you using userChrome modifications?
    • Autoconfig?
    • Enterprise policies?
  5. Have you tried reproducing the issue on a new profile (see about:profiles)?
  6. Would you mind going to about:support, clicking "Copy raw data to clipboard", and pasting it here? (The site will ask if you want to paste it as an attachment or as a comment. Choose attachment.)
  7. How much disk space is available on the drive that hosts your Firefox installation? What about the drive that hosts your Firefox profiles? (if they're not the same drive)

Answers to questions based on sr. number:

1: No, the devtools (Discovery Stream Admin) appears when I click the wrench icon (🔧) (which is at, top right of new tab page, under settings cog button) @about:newtab. https://i.imgur.com/b2E3caX.png

  1. Yes, I did. Also signed-out and signed back in on Windows (closing all apps and logging in again)

  2. I am using the official build, installer downloaded from (https://www.mozilla.org/en-US/firefox/)

  3. Modifications: Addons, and some about:config settings changed, which I don't think would affect the bug which was caused.

  • Using Addons: Ublock Origin, Dark Reader. about:config changes are mostly for easy use, like lowering volume for media players, etc.
  • None. Using default Dark theme without third-party addons or modifications that cannot be accessed through the Firefox Addons website.
  • No.
  • None.

But

I am suspecting that I have a large browser history (which I use instead of visiting a search engine easy navigation), and it sometimes slows the startup process.

  1. I have not, if I get time, I would try to. I would have to first downgrade to the last version I was using. ALSO: I did not update Firefox for version 126.x and directly jumped from 125.x to 127.0.

  2. If possible, can this be shared through e-mail, if you are okay with that for privacy reasons

  3. Roughly 80GB is the space available for the partition where my profiles are stored, @C:\Users\HP\AppData\Roaming\Mozilla\Firefox\Profiles\, in the C:\ Drive

1: No, the devtools (Discovery Stream Admin) appears when I click the wrench icon (🔧) (which is at, top right of new tab page, under settings cog button) @about:newtab. https://i.imgur.com/b2E3caX.png

I didn't intend that as a question - you want to open the ASRouter Admin, not the Discovery Stream Admin. It's about:asrouter. The wrench button on the new tab page has nothing to do with messaging. It used to, but all messaging capabilities were moved out into their own separate page, about:asrouter.

If possible, can this be shared through e-mail, if you are okay with that for privacy reasons

Absolutely, send it to shughes@mozilla.com please.

Thanks for answering all our questions.

(In reply to Shane Hughes [:aminomancer] from comment #12)

I didn't intend that as a question - you want to open the ASRouter Admin, not the Discovery Stream Admin. It's about:asrouter. The wrench button on the new tab page has nothing to do with messaging. It used to, but all messaging capabilities were moved out into their own separate page, about:asrouter.

Tried opening about:asrouter but it is displaying the same error as mentioned, that asrouter admin is disabled through about:config. But browser.newtabpage.activity-stream.asrouter.devtoolsEnabled is set to true.

We may be able to check this using the browser console. Follow those instructions, then open the Console tab, then paste this in and hit enter:

ChromeUtils.importESModule("resource:///modules/asrouter/ASRouter.sys.mjs").ASRouter.state.messageImpressions

The log should then show an Object - right click the word "Object" and hit "Copy Object", then paste it here please.

Flags: needinfo?(mafeesecondary)

@mafeesecondary curious if you are able to open ASRouter Admin dev tools on clicking link in top section shown in screenshot https://imgur.com/b2E3caX . If yes, you should see Impressions tab on left sidebar Thanks

(In reply to Punam Dahiya [:pdahiya] from comment #15)

@mafeesecondary curious if you are able to open ASRouter Admin dev tools on clicking link in top section shown in screenshot https://imgur.com/b2E3caX . If yes, you should see Impressions tab on left sidebar Thanks

Tried that, same result. I was also going to mention the same on the Original Post

Flags: needinfo?(mafeesecondary)

(In reply to Shane Hughes [:aminomancer] from comment #14)

We may be able to check this using the browser console. Follow those instructions, then open the Console tab, then paste this in and hit enter:

ChromeUtils.importESModule("resource:///modules/asrouter/ASRouter.sys.mjs").ASRouter.state.messageImpressions

The log should then show an Object - right click the word "Object" and hit "Copy Object", then paste it here please.

{
  "MILESTONE_MESSAGE_87": [
    1711776672801
  ],
  "INFOBAR_LAUNCH_ON_LOGIN": [
    1718111797231,
    1718111797231,
    1718111797231,
    1718111797231,
    1718111797231,
    1718111797231,
    1718111797231,
    1718111797231,
    1718111797231,
    1718111797231,
    1718111797231,
    1718111797231,
    1718111797231,
    1718111797231,
    1718111797232,
    1718111797232
  ]
}

(In reply to Mafee Comatsu from comment #17)

(In reply to Shane Hughes [:aminomancer] from comment #14)

We may be able to check this using the browser console. Follow those instructions, then open the Console tab, then paste this in and hit enter:

ChromeUtils.importESModule("resource:///modules/asrouter/ASRouter.sys.mjs").ASRouter.state.messageImpressions

The log should then show an Object - right click the word "Object" and hit "Copy Object", then paste it here please.

{
  "MILESTONE_MESSAGE_87": [
    1711776672801
  ],
  "INFOBAR_LAUNCH_ON_LOGIN": [
    1718111797231,
    1718111797231,
    1718111797231,
    1718111797231,
    1718111797231,
    1718111797231,
    1718111797231,
    1718111797231,
    1718111797231,
    1718111797231,
    1718111797231,
    1718111797231,
    1718111797231,
    1718111797231,
    1718111797232,
    1718111797232
  ]
}

16 items in Array INFOBAR_LAUNCH_ON_LOGIN

Was not able to upload as attachment
Output of ```
ChromeUtils.importESModule("resource:///modules/asrouter/ASRouter.sys.mjs").ASRouter.state


```json
{
  "weight": 100,
  "id": "INFOBAR_LAUNCH_ON_LOGIN",
  "groups": [
    "cfr"
  ],
  "template": "infobar",
  "content": {
    "type": "global",
    "text": {
      "string_id": "launch-on-login-infobar-message"
    },
    "buttons": [
      {
        "label": {
          "string_id": "launch-on-login-learnmore"
        },
        "supportPage": "make-firefox-automatically-open-when-you-start",
        "action": {
          "type": "CANCEL"
        }
      },
      {
        "label": {
          "string_id": "launch-on-login-infobar-reject-button"
        },
        "action": {
          "type": "CANCEL"
        }
      },
      {
        "label": {
          "string_id": "launch-on-login-infobar-confirm-button"
        },
        "primary": true,
        "action": {
          "type": "MULTI_ACTION",
          "data": {
            "actions": [
              {
                "type": "SET_PREF",
                "data": {
                  "pref": {
                    "name": "browser.startup.windowsLaunchOnLogin.disableLaunchOnLoginPrompt",
                    "value": true
                  }
                }
              },
              {
                "type": "CONFIRM_LAUNCH_ON_LOGIN"
              }
            ]
          }
        }
      }
    ]
  },
  "frequency": {
    "lifetime": 1
  },
  "trigger": {
    "id": "defaultBrowserCheck"
  },
  "targeting": "source == 'newtab'\n    && 'browser.startup.windowsLaunchOnLogin.disableLaunchOnLoginPrompt'|preferenceValue == false\n    && 'browser.startup.windowsLaunchOnLogin.enabled'|preferenceValue == true && isDefaultBrowser && !activeNotifications\n    && !launchOnLoginEnabled && !isMSIX",
  "provider": "onboarding"
}

Have you been able to reproduce this bug on multiple launches, or was this a one-off event?

(In reply to Shane Hughes [:aminomancer] from comment #22)

Have you been able to reproduce this bug on multiple launches, or was this a one-off event?

Negative

(In reply to Shane Hughes [:aminomancer] from comment #22)

Have you been able to reproduce this bug on multiple launches, or was this a one-off event?

Happened only once, I tried to downgrade and upgrade, it did not trigger the bug this time.

We're unable to reproduce or diagnose the issue. We suspect it might be related to chrome idle tasks behavior, but will move to P5 for now as we don't have reliable steps to replicate.

Severity: -- → S4
Priority: -- → P5

:Mafee Comatsu please let us know if you run into this again.

(In reply to Meg Viar [:mviar] from comment #26)

:Mafee Comatsu please let us know if you run into this again.

Notification with frequency: { lifetime: 1 } randomly reappeared on a Firefox Launching after restarting the system.

https://i.imgur.com/nCYiHus.png

The bug seems to have vanished on re-installation of Firefox.

QA Whiteboard: qa-not-reproducible
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: