Closed Bug 1148938 Opened 6 years ago Closed 6 years ago

Temporarily test suggested tiles for Nightly and Aurora

Categories

(Firefox :: New Tab Page, defect)

defect
Not set
normal
Points:
2

Tracking

()

VERIFIED FIXED
Firefox 40
Iteration:
40.1 - 13 Apr
Tracking Status
firefox39 --- verified
firefox40 --- verified

People

(Reporter: Mardak, Assigned: Mardak)

References

Details

(Whiteboard: .001)

Attachments

(2 files, 2 obsolete files)

In order to uplift suggested tiles in bug 1148859, we'll need wider testing that's on by default in Nightly and Aurora.

One simple fix is to change the newtab pref to a hardcoded data uri.

Alternatively, we could host a test file somewhere (probably not on people.mozilla).. maybe tiles.up.mozillalabs or even tiles.services.mozilla if it's easy enough for us to just upload.

Then we could point users to something like..

https://tiles.services.mozilla.com/test/suggested/%LOCALE%

Not sure if we need to allocate tile ids on our server. Or perhaps we can use a dummy id... of 0?
Ran into bug 1149021 when testing with this suggested tile that only had an image:

https://people.mozilla.org/~elee/suggested.unicorn.json
Depends on: 1149021
Summary: Use test suggested tiles for Nightly and Aurora → Temporarily test suggested tiles for Nightly and Aurora
Attached patch v1 (obsolete) — Splinter Review
Not entirely sure what the url will be yet, and this code should be removed before we hit release.. but just in case, I added the ifdef.
Assignee: nobody → edilee
Status: NEW → ASSIGNED
Attachment #8585306 - Flags: review?(adw)
Attached image v1 screenshot
adw, is there a good way to only set the temporary pref value for en-US? some ifdef AB_CD = en-US type thing? Or maybe we just do it through js code:

Instead of

this.__linksURL = Services.prefs.getCharPref(this._observedPrefs["linksURL"]);

if en-US: use alternate test url, e.g., https://people.mozilla.org/~elee/suggested.unicorn.json
Flags: needinfo?(adw)
Attached patch v2 (obsolete) — Splinter Review
This makes sure only en-US users get the suggested tile as only en-US has strings localized.
Attachment #8585306 - Attachment is obsolete: true
Attachment #8585306 - Flags: review?(adw)
Attachment #8585656 - Flags: review?(adw)
Attached patch v2.1Splinter Review
Ha.. brain fart. We don't need to remotely host a test tile as we aren't changing it. And by the time we do change it, we'll probably have the v3 endpoint up.

So just convert the file to data uri!
Attachment #8585656 - Attachment is obsolete: true
Attachment #8585656 - Flags: review?(adw)
Flags: needinfo?(adw)
Attachment #8585711 - Flags: review?(adw)
Comment on attachment 8585711 [details] [diff] [review]
v2.1

Review of attachment 8585711 [details] [diff] [review]:
-----------------------------------------------------------------

(In reply to Ed Lee :Mardak from comment #4)
> adw, is there a good way to only set the temporary pref value for en-US?
> some ifdef AB_CD = en-US type thing?

Not that I know of.  But this kind of seems like something you could use the experiments system for.  Have you considered that?  Anyhow, r+.
Attachment #8585711 - Flags: review?(adw) → review+
https://hg.mozilla.org/integration/fx-team/rev/568ab0081a4e
Iteration: --- → 40.1 - 13 Apr
Points: --- → 2
https://hg.mozilla.org/mozilla-central/rev/568ab0081a4e
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 40
Confirming this implementation on Windows 7 64-bit, Windows 8.1 64-bit, Ubuntu 14.04 32-bit and Mac OS X 10.9.5 using:
- latest Nightly, build ID: 20150407030207;
- latest Aurora, build ID: 20150407004006.
Status: RESOLVED → VERIFIED
Blocks: 1155443
No longer blocks: 1155443
You need to log in before you can comment on or make changes to this bug.