Avoid showing Mozilla VPN in unsupported countries
Categories
(Firefox :: Messaging System, enhancement, P1)
Tracking
()
People
(Reporter: pdahiya, Assigned: mviar, Mentored)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
Scope of this bug is to stop showing Mozilla VPN as available product in unsupported countries under about:preferences -> More From Mozilla
See https://mozilla.slack.com/archives/C02F3K16P9U/p1637174143149900
This is required before rolling out More From Mozilla feature by default and not a blocker for Fx 95 or 96 experiment that's en-US only
Reporter | ||
Updated•2 years ago
|
Comment 1•2 years ago
|
||
Wherever we end up writing the logic for this we should also move this check in there.
Reporter | ||
Updated•2 years ago
|
Reporter | ||
Updated•2 years ago
|
Reporter | ||
Comment 2•2 years ago
|
||
[Tracking Requested - why for this release]:
Needed for releasing More From Mozilla as feature in Fx96
Updated•2 years ago
|
Updated•2 years ago
|
Reporter | ||
Comment 3•2 years ago
|
||
Removing tracking request for Fx96 as More From Mozilla is no longer targeted to be rolled out as feature in Fx96. Thanks
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Comment 4•2 years ago
|
||
Comment 5•2 years ago
|
||
Passing by note: this should apply also to Rally, which is a US and en-US only feature (and we shouldn't expose those specific strings for that reason).
Comment 6•2 years ago
|
||
Hector, any thoughts here?
Functionally, this would work similarly (but not identically) to the way the captive portal VPN promo checker in bug 1730621 does. It will create a new preference brower.vpn-promo.enabled
that can be set to false during repacks to turn off the More for Mozillla VPN promo manually. It has a another pref, browser.vpn_promo.disallowed_regions
, which (currently) defaults to "cn,kp,ir,sy,cu,sd,ua,by,iq,om,ru,tr,tm,ae". Both the current and home regions are checked against this list. I have mixed feelings about doing it as a pref: one one hand, it allows enterprise admins to add to the list if they want. On the other hand, enterprise admins could remove from the list as well (though I don't know why they'd want to), and perhaps that creates risk for us. Do you have an opinion on whether we should leave this list as a pref, or just keep it hard-coded?
The plan is that in another patch, all of the different bespoke implementations that are similar to this service can be replaced by calls to this one, so that you'll no longer have to keep track of a bunch of different preferences for the same rthing.
Comment 7•2 years ago
|
||
Venetia, I'd be interested in your thoughts on the above question as well...
For this specific case, I am more conservative. I am concerned but the pref being removed by enterprise admins - is there a way that they cant touch it?
Updated•2 years ago
|
Assignee | ||
Comment 9•2 years ago
|
||
Hi Mike - is it possible to block enterprise admins from changing a preference? We're considering saving countries where we won't show VPN promos as a pref, but we don't want admins to remove items from the list due to legal risks.
Comment 10•2 years ago
|
||
Yes, we can add any preferences to a list of excluded preferences for policy:
https://searchfox.org/mozilla-central/source/browser/components/enterprisepolicies/Policies.jsm#1605
Comment 11•2 years ago
|
||
Hi Dan,
Sorry I was out for the past several days.
(In reply to Dan Mosedale (:dmosedale, :dmose) from comment #6)
Hector, any thoughts here?
Functionally, this would work similarly (but not identically) to the way the captive portal VPN promo checker in bug 1730621 does. It will create a new preference
brower.vpn-promo.enabled
that can be set to false during repacks to turn off the More for Mozillla VPN promo manually. It has a another pref,browser.vpn_promo.disallowed_regions
, which (currently) defaults to "cn,kp,ir,sy,cu,sd,ua,by,iq,om,ru,tr,tm,ae". Both the current and home regions are checked against this list. I have mixed feelings about doing it as a pref: one one hand, it allows enterprise admins to add to the list if they want. On the other hand, enterprise admins could remove from the list as well (though I don't know why they'd want to), and perhaps that creates risk for us. Do you have an opinion on whether we should leave this list as a pref, or just keep it hard-coded?
I think :mkaply's answer in comment 10 addressed your concern here. I don't really have a preference either way.
The plan is that in another patch, all of the different bespoke implementations that are similar to this service can be replaced by calls to this one, so that you'll no longer have to keep track of a bunch of different preferences for the same rthing.
That would be great, thank you!
Comment 12•2 years ago
|
||
Just for the record, so that the list of countries requested to be blocked is documented here, rather than in a Slack thread which may be garbage collected, here they are:
China
North Korea
Iran
Syria
Cuba
Sudan
Crimea region of Ukraine
Belarus
Iraq
Oman
Russia
Turkey
Turkmenistan
UAE
Because of how the Mozilla Location Service APIs are currently structured, there was no way to block only Crimea, so all of Ukraine is being blocked.
Updated•2 years ago
|
Updated•2 years ago
|
Comment 13•2 years ago
|
||
Pushed by mviar@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/5b08dfaa1737 Avoid showing Mozilla VPN in unsupported countries r=dmose,preferences-reviewers,pdahiya,Gijs
Comment 14•2 years ago
|
||
bugherder |
Updated•2 years ago
|
Comment 15•2 years ago
|
||
Partners distribute builds we produce, so they don’t have that ability to disable this pref for disallowed regions.
Comment 16•2 years ago
|
||
A question - can we get a report if a pref gets flipped?
Comment 17•2 years ago
|
||
(In reply to Venetia from comment #16)
A question - can we get a report if a pref gets flipped?
A subset of user prefs are collected in telemetry environment, see 1.
Comment 18•2 years ago
|
||
Interesting; I was not aware of this. @mconnor, when partners change prefs in their distros, do they show up as user prefs, or is there some other mechanism?
Comment 19•2 years ago
|
||
(In reply to Dan Mosedale (:dmosedale, :dmose) from comment #18)
Interesting; I was not aware of this. @mconnor, when partners change prefs in their distros, do they show up as user prefs, or is there some other mechanism?
Hi :dmose, distro prefs are set on the default branch, not as user pref, see distribution.js.
Comment 21•2 years ago
|
||
I have verified this bug using the following steps on the latest Firefox Beta (97.0b4 Build ID - 20220116190254) on Windows 10, MacOS 11.6 and Linux Mint 20.2. The “Mozilla VPN” element is not available on "More From Mozilla" section from the "about:preferences" page for unsupported countries.
Description
•