"Choose browser" button in about:firefoxview#history > "Import history from another browser" banner bypasses DisableProfileImport enterprise policy
Categories
(Firefox :: Firefox View, defect, P2)
Tracking
()
People
(Reporter: aoia7rz7l, Assigned: mkaply)
References
(Regression)
Details
(Keywords: regression, Whiteboard: [fidefe-firefox-view])
Attachments
(2 files)
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
phab-bot
:
approval-mozilla-esr140+
|
Details | Review |
Tested on 140.3.1esr and Nightly 145.0a1 (2025-10-11) BuildID 20251011212838.
Prerequisite:
Set the DisableProfileImport policy to true (You might need to modify mozregression/launchers.py in order to reproduce this using mozregression).
STR:
- Press the
Altkey and selectFile > Import From Another Browser. - Confirm that the
Import From Another Browseroption is greyed out. - Open the Library.
- Click on
Import and Backup > Import Data from Another Browser. - Confirm that the
Import Data from Another Browseroption is also greyed out. - Open
about:preferences. - Confirm that the Import Browser Data section is hidden.
- Open
about:firefoxview#history.
Expected Behavior:
No "Import history from another browser" banner offering to Choose browser when the DisableProfileImport policy is set to true.
Actual Behavior:
The "Import history from another browser" banner offered users the option to Choose browser, thus bypassing the DisableProfileImport policy.
mozregression --good 115 --bad 140 --pref browser.tabs.firefox-view-next:true returned
Last good revision: 89d21fac92b8f98201b8715c6c050aace4b46afb (2023-07-17)
First bad revision: 9330f8cb5765b67a89ac1427300f344a63d42cdc (2023-07-18)
Pushlog : https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=89d21fac92b8f98201b8715c6c050aace4b46afb&tochange=9330f8cb5765b67a89ac1427300f344a63d42cdc
Switching bisection method to taskcluster
Getting mozilla-central builds between 89d21fac92b8f98201b8715c6c050aace4b46afb and 9330f8cb5765b67a89ac1427300f344a63d42cdc
...
There are no build artifacts for these changesets (they are probably too old).
It's probably bug 1826604.
I have tentatively marked the affected OSes as Windows-only, because I wasn't able to trigger the banner in my Linux environment where Firefox "couldn't find any programs that contain bookmark, history or password data".
Comment 1•8 months ago
|
||
The Bugbug bot thinks this bug should belong to the 'Firefox::Firefox View' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Comment 2•7 months ago
|
||
:kcochrane, since you are the author of the regressor, bug 1826604, could you take a look? Also, could you set the severity field?
For more information, please visit BugBot documentation.
Updated•7 months ago
|
Comment 3•7 months ago
|
||
Mike, the link to that enterprise template states the "Disables the “Import data from another browser” option in the bookmarks window.". Is this outdated wording and does it actually apply to bookmarks and all history entry points? If so, we'll probably need to disable it in the new sidebar as well because we show a similar button in the history panel.
| Assignee | ||
Comment 4•7 months ago
|
||
It's outdated wording. I'll update.
I added checks to a lot of places in the past to cover this.
https://searchfox.org/firefox-main/search?q=%22profileImport%22&path=&case=false®exp=false
Comment 5•7 months ago
•
|
||
Adding the firefox view whiteboard tag.
Updated•7 months ago
|
| Assignee | ||
Comment 6•7 months ago
|
||
I swear I did this for Firefox View but I can't find it.
| Assignee | ||
Comment 7•7 months ago
|
||
This would be easier to just do in the "shouldshowimport" function:
https://bugzilla.mozilla.org/show_bug.cgi?id=1993863#c3
I'll do a quick patch.
| Assignee | ||
Comment 8•7 months ago
|
||
Updated•7 months ago
|
Comment 9•7 months ago
|
||
Set release status flags based on info from the regressing bug 1826604
Comment 10•7 months ago
|
||
Updated•7 months ago
|
Comment 11•7 months ago
|
||
| bugherder | ||
Comment 12•7 months ago
|
||
The patch landed in nightly and beta is affected.
:mkaply, is this bug important enough to require an uplift?
- If yes, please nominate the patch for beta approval.
- See https://wiki.mozilla.org/Release_Management/Requesting_an_Uplift for documentation on how to request an uplift.
- If no, please set
status-firefox145towontfix.
For more information, please visit BugBot documentation.
| Assignee | ||
Comment 13•7 months ago
|
||
Too late for 145. I'll request uplift to ESR in the next cycle.
Updated•7 months ago
|
Updated•7 months ago
|
Updated•7 months ago
|
Comment 14•7 months ago
|
||
I've repro this issue using an affected Nightly build with STR from comment 0 on Win 11.
The issue is verified as fixed on Beta 146.0b2 under Win 11.
Comment 15•7 months ago
|
||
firefox-esr140 Uplift Approval Request
- User impact if declined: Parity with Firefox 146
- Code covered by automated testing: no
- Fix verified in Nightly: yes
- Needs manual QE test: no
- Steps to reproduce for manual QE testing:
- Risk associated with taking this patch: low
- Explanation of risk level: Low. Only adds an extra policy check
- String changes made/needed: No
- Is Android affected?: no
| Assignee | ||
Comment 16•7 months ago
|
||
Original Revision: https://phabricator.services.mozilla.com/D270680
Updated•7 months ago
|
Updated•7 months ago
|
Comment 17•7 months ago
|
||
| uplift | ||
Comment 18•6 months ago
|
||
I was able to reproduce the issue on Win11 using Firefox build 145.0a1(20251011090504) using steps from description.
Verified as fixed on Win11 using Firefox build 140.6.0esr(20251201132345) using steps from description.
Description
•