Closed Bug 2047962 Opened 3 months ago Closed 3 months ago

`browser.startup.homepage` with `data:text/plain,browser.startup.homepage=…")` incompatible since 152.0

Categories

(Core :: AutoConfig (Mission Control Desktop), defect)

Firefox 152
defect

Tracking

()

RESOLVED FIXED
154 Branch
Tracking Status
relnote-firefox --- 152+
firefox-esr140 --- unaffected
firefox152 --- fixed
firefox153 --- fixed
firefox154 --- fixed

People

(Reporter: pmenzel+bugzilla.mozilla.org, Assigned: mkaply)

References

(Regression)

Details

(Keywords: regression)

Attachments

(3 files)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:140.0) Gecko/20100101 Firefox/140.0

Steps to reproduce:

We deployed our own preferences with

defaultPref("browser.startup.homepage","data:text/plain,browser.startup.homepage=https://something.molgen.mpg.de/");

Actual results:

Upgrading from 151.0.4 to 152.0, the page is not loaded, and the string is shown in the window:

data:text/plain,browser.startup.homepage=https://something.molgen.mpg.de/

Expected results:

Firefox should be able to deal with old configurations.

Changing the line to

defaultPref("browser.startup.homepage","https://something.molgen.mpg.de/");

made it work again.

The goal is that users can still change this preference. No idea, why this is the reason for the strange string.

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

Component: Untriaged → Widget: Gtk
Product: Firefox → Core
Component: Widget: Gtk → Tabbed Browser
Product: Core → Firefox

The severity field is not set for this bug.
:dao, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(dao+bmo)
Component: Tabbed Browser → Enterprise Policies
Flags: needinfo?(dao+bmo)

I'll make sure to document in the next readme. I'm surprised that anyone is still using this mechanism to set the homepage.

The browser.startup.homepage pref was moved away from be a "complex preference" which is why you needed that syntax.

You can just use the URL now.

I would recommend switching from autoconfig to enterprise policies though.

Status: UNCONFIRMED → RESOLVED
Closed: 3 months ago
Resolution: --- → WONTFIX

Is there a way to migrate the old settings automatically for better user experience?

Status: RESOLVED → REOPENED
Ever confirmed: true
Keywords: regression
Regressed by: 1490339
Resolution: WONTFIX → ---
Assignee: nobody → mozilla

Is there a way to migrate the old settings automatically for better user experience?

Yes. Patch is up.

Set release status flags based on info from the regressing bug 1490339

Attachment #9603427 - Attachment description: Bug 2047962 - Unwrap legacy data:text/plain, homepage pref value. r?#desktop-core → Bug 2047962 - Unwrap legacy data:text/plain, pref values in autoconfig. r?#desktop-core
Pushed by mozilla@kaply.com: https://github.com/mozilla-firefox/firefox/commit/0caed5e4a506 https://hg.mozilla.org/integration/autoland/rev/82f41dfb9128 Unwrap legacy data:text/plain, pref values in autoconfig. r=firefox-desktop-core-reviewers ,Gijs
Pushed by asilaghi@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/a7fafb63030d https://hg.mozilla.org/integration/autoland/rev/e1bfcaf48a77 Revert "Bug 2047962 - Unwrap legacy data:text/plain, pref values in autoconfig. r=firefox-desktop-core-reviewers ,Gijs" for causing bc tests failures at ext_browserAction_disabled.js

I ll reland this because it was not the real culprit.

Pushed by asilaghi@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/58e1a9fe3262 https://hg.mozilla.org/integration/autoland/rev/434aadf470e8 Unwrap legacy data:text/plain, pref values in autoconfig. r=firefox-desktop-core-reviewers ,Gijs
Status: REOPENED → RESOLVED
Closed: 3 months ago → 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → 154 Branch

The patch landed in nightly and beta is affected.
:mkaply, is this bug important enough to require an uplift?

For more information, please visit BugBot documentation.

Flags: needinfo?(mozilla)
Attachment #9604742 - Flags: approval-mozilla-beta?

firefox-beta Uplift Approval Request

  • User impact if declined/Reason for urgency: Direct customer impact.
  • Code covered by automated testing?: yes
  • Fix verified in Nightly?: yes
  • Needs manual QE testing?: no
  • Steps to reproduce for manual QE testing:
  • Risk associated with taking this patch: low
  • Explanation of risk level: Affects one specific path in autoconfig.
  • String changes made/needed?: None
  • Is Android affected?: no
Flags: needinfo?(mozilla)
Attachment #9604742 - Flags: approval-mozilla-beta? → approval-mozilla-beta+

Did you want to nominate this for Release uplift also for the final planned dot release of the cycle?

Flags: needinfo?(mozilla)

Thanks, probably a nice thing to do for them.

Flags: needinfo?(mozilla)

firefox-release Uplift Approval Request

  • User impact if declined/Reason for urgency: Impacts enterprise customers
  • Code covered by automated testing?: yes
  • Fix verified in Nightly?: yes
  • Needs manual QE testing?: no
  • Steps to reproduce for manual QE testing:
  • Risk associated with taking this patch: low
  • Explanation of risk level: Only affects one specific autoconfig path.
  • String changes made/needed?: None
  • Is Android affected?: no
Attachment #9606254 - Flags: approval-mozilla-release?
Attachment #9606254 - Flags: approval-mozilla-release? → approval-mozilla-release+

Added to the 152.0.6 relnotes.

QA Whiteboard: [qa-triage-done-c154/b153]
Component: Enterprise Policies → AutoConfig (Mission Control Desktop)
Product: Firefox → Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: