Closed
Bug 1445630
Opened 6 years ago
Closed 6 years ago
New Tab notification should not be shown for partner builds
Categories
(WebExtensions :: Frontend, defect, P3)
WebExtensions
Frontend
Tracking
(firefox60+ verified, firefox61 wontfix)
RESOLVED
FIXED
mozilla60
People
(Reporter: mkaply, Assigned: mkaply)
References
Details
Attachments
(3 files, 1 obsolete file)
56.92 KB,
image/png
|
Details | |
2.44 KB,
patch
|
Details | Diff | Splinter Review | |
59 bytes,
text/x-review-board-request
|
aswan
:
review+
lizzard
:
approval-mozilla-beta+
|
Details |
Our partners are reporting that with Firefox 59, they are seeing the "Your New Tab has changed." message. This message should not display for partner builds. These builds are downloaded with the expectation that the new tab page has changed. Also, this message is showing for existing users that are upgrading to 59. If a user already has the extension installed (and has for while), it should not suddenly show this message.
Comment 1•6 years ago
|
||
(In reply to Mike Kaply [:mkaply] from comment #0) > Our partners are reporting that with Firefox 59, they are seeing the "Your > New Tab has changed." message. > > This message should not display for partner builds. These builds are > downloaded with the expectation that the new tab page has changed. Is there an example of one of these browsers I can download somewhere? > Also, this message is showing for existing users that are upgrading to 59. > > If a user already has the extension installed (and has for while), it should > not suddenly show this message. This was discussed in bug 1421802 and we decided that the user should see the doorhanger when they update to 59.
Updated•6 years ago
|
Summary: New Tab notification should not for partner builds → New Tab notification should not be shown for partner builds
Assignee | ||
Comment 2•6 years ago
|
||
Builds that show this problem are here: http://archive.mozilla.org/pub/firefox/candidates/59.0-candidates/build5/partner-repacks/mailru/v2/
Assignee | ||
Comment 4•6 years ago
|
||
After discussion with Kev, we'd like to pursue making this popup more aware of the fact that a distribution was the source of the change (not just an extension).
Comment 5•6 years ago
|
||
(In reply to Andrew Swan [:aswan] from comment #3) > Mike, what do you want to do there? :aswan see comment 4
Flags: needinfo?(mconca)
Updated•6 years ago
|
Priority: -- → P3
Comment 6•6 years ago
|
||
Spoke with Kev about this. In addition to not showing this to partner builds, can we explore routing the user to manage their extensions in Add-ons Manager, rather than disabling the extension? Kev was concerned about making this detonation option so prominent -- if the user selects it, there is no way for the user to know how to reverse that decision. So, copy would be: Your New Tab Changed An extension, [extension name], changed the page you see when you open a new tab. Learn more Manage Extensions Keep Changes Since this is an interaction issue, bringing Philip into the discussion!
Flags: needinfo?(pwalmsley)
Comment 7•6 years ago
|
||
Per Mark's suggestion, an alternative flow: Keep Disable Extension button. If user selects this option, change button copy to: “Re-enable Extension" and link to Add-ons Manager or show iconized instructions - Pref icon > Add-ons Manager icon (which seem less effective to me). Detonation is still an option here but then user learns where to manage extensions.
Assignee | ||
Comment 8•6 years ago
|
||
This is a simple patch that uses the existing distro pref mechanism. We'd probably also want to add in an extra check that it was truly a distribution by looking at distrbution.id or better yet checking some of the other values since those tend not to be used by non partner distros or funnelcakes app.distributor= app.distributor.channel= app.partner.partnername="partnername" browser.search.distributionID= mozilla.partner.id=
Assignee | ||
Comment 9•6 years ago
|
||
Comment on attachment 8967525 [details] [diff] [review] Simple patch using distro pref Looking for feedback on this approaching. Also whether it's worth adding an explicit distribution ID check. The extensions.installedDistroAddon is only set when distributions install add-ons.
Attachment #8967525 -
Flags: feedback?(aswan)
Comment 10•6 years ago
|
||
Comment on attachment 8967525 [details] [diff] [review] Simple patch using distro pref Review of attachment 8967525 [details] [diff] [review]: ----------------------------------------------------------------- I don't see any obvious problems, but a couple of note: 1. This is going to clash with bug 1397809, you should sync with mstrimer 2. The set of installed distribution extensions can't change during a browser session, you should create a lazy getter that just builds that list once the first time it is needed, rather than re-building it every time isDistributionAddon is called
Attachment #8967525 -
Flags: feedback?(aswan) → feedback+
Assignee | ||
Comment 11•6 years ago
|
||
[Tracking Requested - why for this release]: This is a big issue for our partners.
tracking-firefox60:
--- → ?
Assignee | ||
Comment 12•6 years ago
|
||
Here's what the caching will look like. I'll wait to land until after bug 1397809 lands.
Assignee | ||
Comment 13•6 years ago
|
||
Comment on attachment 8968335 [details] [diff] [review] Version that caches I was wrong, mstriemer's patch isn't going in until 61. So this will be a beta only patch (since his new patch will change it a bit). So asking for final review then beta approval, Andrew: Could you also offer a risk assessment for relman? Thanks!
Attachment #8968335 -
Flags: review?(aswan)
Comment 14•6 years ago
|
||
Comment on attachment 8968335 [details] [diff] [review] Version that caches Review of attachment 8968335 [details] [diff] [review]: ----------------------------------------------------------------- This is not landable as-is since it isn't an exported hg commit... ::: browser/components/extensions/parent/ext-url-overrides.js @@ +247,5 @@ > + gDistributionAddonsList = []; > + let list = Services.prefs.getChildList(PREF_BRANCH_INSTALLED_ADDON, {}); > + if (list.length > 0) { > + for (let childPref of list) { > + gDistributionAddonsList.push(childPref.replace(PREF_BRANCH_INSTALLED_ADDON, "")); the entire contents of the outer if could be simplified to ``` gDistributionAddonsList = Services.prefs.getChildList(...) .map(id => id.replace(...)); ```
Comment 15•6 years ago
|
||
(In reply to Mike Kaply [:mkaply] from comment #13) > Andrew: Could you also offer a risk assessment for relman? The risk here is low since the change is pretty straightforward and confined to the code that handles extension-related notifications for the newtab page. The patch does not include any tests but the existing notifications are covered by automated tests and I assume there will be manual testing for distribution addons.
Comment 16•6 years ago
|
||
Comment on attachment 8968335 [details] [diff] [review] Version that caches Clearing r? for now, please re-request review for an actual hg commit attachment (or just use reviewboard?)
Attachment #8968335 -
Flags: review?(aswan)
Comment hidden (mozreview-request) |
Comment 18•6 years ago
|
||
mozreview-review |
Comment on attachment 8969093 [details] Bug 1445630 - Don't show new tab message for distribution add-ons. https://reviewboard.mozilla.org/r/237780/#review243900 ::: browser/components/extensions/ext-url-overrides.js:71 (Diff revision 1) > > +let gDistributionAddonsList; > + > +function isDistributionAddon(id) { > + if (!gDistributionAddonsList) { > + gDistributionAddonsList = Services.prefs.getChildList(PREF_BRANCH_INSTALLED_ADDON, {}) what is the second argument here?
Attachment #8969093 -
Flags: review?(aswan) → review+
Assignee | ||
Comment 19•6 years ago
|
||
mozreview-review-reply |
Comment on attachment 8969093 [details] Bug 1445630 - Don't show new tab message for distribution add-ons. https://reviewboard.mozilla.org/r/237780/#review243900 > what is the second argument here? cargoculting. It appears there's a mix of using it and not using it in the code: https://searchfox.org/mozilla-central/search?q=getChildList&case=false®exp=false&path=*.js I'll remove and open a bug to get some consistency there.
Comment hidden (mozreview-request) |
Assignee | ||
Comment 22•6 years ago
|
||
Comment on attachment 8969093 [details] Bug 1445630 - Don't show new tab message for distribution add-ons. Approval Request Comment [Feature/Bug causing the regression]: Distribution builds show the new tab popup [User impact if declined]: Asked for new tab even though their build include ones. [Is this code covered by automated tests?]: No [Has the fix been verified in Nightly?]: Yes [Needs manual test from QE? If yes, steps to reproduce]: No [List of other uplifts needed for the feature/fix]: None [Is the change risky?]: No [Why is the change risky/not risky?]: See comments from andrew. [String changes made/needed]:
Attachment #8969093 -
Flags: approval-mozilla-beta?
Comment 23•6 years ago
|
||
How can that be verified on nightly, it's not landed yet.
Assignee | ||
Comment 24•6 years ago
|
||
> How can that be verified on nightly, it's not landed yet.
Sorry, typo. It actually can't be verified on nightly, it's a different patch.
Assignee | ||
Comment 25•6 years ago
|
||
Sorry, I'm being to terse in my comments here. This prompt was originally only for the new tab. Bug 1397809 was created to use this prompt for the homepage as well. I originally thought bug 1397809 was going to be uplifted to 60, so I held off on checking my patch into central. I then learned it was 61 only, but by then the code had landed in 61, so this patch became obsolete on central. So this patch fixes the problem on beta for the new tab. I'll be writing a new patch today in response to 1397809 that handles this on central for new tab and homepage. So this is a beta only patch because of bug 1397809 which moved the code to another file. Hope that makes the situation more clear.
Comment 26•6 years ago
|
||
Let's uplift this for beta 16, and verify the fix in beta. Mike, can you describe how to test this with a partner build and fill out a PI request? We also might want to confirm that the new tab page and the warning work normally in non-partner builds.
Flags: needinfo?(mozilla)
Comment 27•6 years ago
|
||
Comment on attachment 8969093 [details] Bug 1445630 - Don't show new tab message for distribution add-ons. Fix for a regression from 59. This should only affect partner builds.
Attachment #8969093 -
Flags: approval-mozilla-beta? → approval-mozilla-beta+
Comment 28•6 years ago
|
||
bugherder uplift |
https://hg.mozilla.org/releases/mozilla-beta/rev/4153d5337260
Assignee | ||
Comment 29•6 years ago
|
||
To verify this in a partner build, all you have to do is install this build: archive.mozilla.org/pub/firefox/candidates/60.0b16-candidates/build1/partner-repacks/mailru/mailru/v1/ when it comes out and verify that the new popup doesn't appear when new tab is opened. To see the old behavior, you can install this build: archive.mozilla.org/pub/firefox/candidates/60.0b15-candidates/build1/partner-repacks/mailru/mailru/v1/ For non partner builds, just installing an addon like Tabby Cat and opening the new tab is enough. I'll open a pi-request.
Flags: needinfo?(mozilla)
Updated•6 years ago
|
Flags: qe-verify+
Comment 30•6 years ago
|
||
*Partner builds: - I manage to reproduce the issue using the build archive.mozilla.org/pub/firefox/candidates/60.0b15-candidates/build1/partner-repacks/mailru/mailru/v1/ on Windows 10 x64. The doorhanger appeared every time a new tab was opened in a session. - I retested using the build archive.mozilla.org/pub/firefox/candidates/60.0b16-candidates/build1/partner-repacks/mailru/mailru/v1/ on the same platform and the bug is not reproducing anymore. *Non-partner builds: - I tested on beta 60.0b15, beta 60.0b16 and latest Nightly using Windows 10 x64, Ubuntu 16.04 x64 and macOS 10.13 and got the same behaviour on all the builds. - I tested this by installing the Tabby Cat add-on. The doorhanger is displayed when you open the first time a new tab in a session. On the other hand, if you close and open Firefox with the same profile, the doorhanger is still present in the first new tab opened. Is that behaviour expected?
Assignee | ||
Comment 31•6 years ago
|
||
> On the other hand, if you close and open Firefox with the same profile, the doorhanger is still present in the first new tab opened.
The doorhanger continues to show until you interact with it. Once you make a selection, it won't show again.
Comment 32•6 years ago
|
||
I got the same results. I just wanted to make sure they are the correct ones. Thank you for your answer.
Flags: qe-verify+
Assignee | ||
Comment 33•6 years ago
|
||
I'm marking this bug fixed against beta since we can't do another mozreview patch. I'll clone to a patch for nightly/61.
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Flags: needinfo?(pwalmsley)
Resolution: --- → FIXED
Updated•6 years ago
|
Target Milestone: --- → mozilla60
Comment 34•6 years ago
|
||
Adding the “qe-verify-“ flag as per https://bugzilla.mozilla.org/show_bug.cgi?id=1445630#c22
Flags: qe-verify-
Updated•6 years ago
|
Product: Toolkit → WebExtensions
You need to log in
before you can comment on or make changes to this bug.
Description
•