HTTP Referer not set when clicking articles
Categories
(Firefox :: New Tab Page, defect, P1)
Tracking
()
People
(Reporter: Mardak, Assigned: Mardak)
References
(Blocks 1 open bug)
Details
(Keywords: github-merged)
User Story
Attachments
(6 files)
pdahiya noticed "while working on <jsm> changes to support context menu options, I realise we need site_referrer thats in default activity stream coming from prefs https://searchfox.org/mozilla-central/search?q=stories_referrer"
This means discovery stream isn't attributing link clicks to pocket where topstories would use the value set in the pref browser.newtabpage.activity-stream.feeds.section.topstories.options
… "stories_referrer":"https://getpocket.com/recommendations" …
Assignee | ||
Updated•6 years ago
|
Comment 1•6 years ago
|
||
Probably pretty straightforward fix, please request uplift once you land a patch.
Assignee | ||
Updated•6 years ago
|
Comment 2•6 years ago
|
||
Assignee | ||
Updated•6 years ago
|
Assignee | ||
Comment 3•6 years ago
|
||
Assignee | ||
Comment 4•6 years ago
|
||
QA steps:
- open up Browser Console (Tools -> Web Developer -> Browser Console)
- make sure [Requests] is selected
- open up new tab page (with discovery stream enabled)
- click on an article
- find the first request for the article (should match the url on the link)
- expand request with default Headers tab selected
- make sure "Referer" is set in the Request headers section (under Response headers; can filter for "refer")
step 7 should look like attached. (Alternatively, if you know of easier ways to inspect request headers, do that! :))
Assignee | ||
Comment 5•6 years ago
|
||
Comment on attachment 9048965 [details]
Bug 1533089 - HTTP Referer not set when clicking articles
Beta/Release Uplift Approval Request
- Feature/Bug causing the regression: Bug 1512725
- User impact if declined: 66 experiment users' visits to articles don't get attributed to coming from pocket, so publishers might think they're getting less pocket recommendation traffic and be less inclined to have relationships with mozilla
- Is this code covered by automated tests?: No
- Has the fix been verified in Nightly?: No
- Needs manual test from QE?: Yes
- If yes, steps to reproduce: comment 4
- List of other uplifts needed: None
- Risk to taking this patch: Medium
- Why is the change risky/not risky? (and alternatives if risky): Not a trivial fix as it changes how clicking links work, which is a core feature, but the implementation mostly reuses link-clicking-with-referrer functionality that has been in use in firefox for many releases now
- String changes made/needed: none
Assignee | ||
Comment 6•6 years ago
|
||
Uplift note: unlike other uplifts that needed separate phabricator patches specially for mozilla-beta, this one for mozilla-central (which hasn't landed yet as of this comment) applies cleanly to mozilla-beta so the mozilla-central commit can be used directly
Comment 8•6 years ago
|
||
Comment 9•6 years ago
|
||
bugherder |
Updated•6 years ago
|
Comment 10•6 years ago
|
||
Brahmini can you take a look at the QA steps for this?
Comment 11•6 years ago
|
||
(In reply to Ed Lee :Mardak from comment #4)
Created attachment 9048966 [details]
QA steps resultQA steps:
- open up Browser Console (Tools -> Web Developer -> Browser Console)
- make sure [Requests] is selected
- open up new tab page (with discovery stream enabled)
- click on an article
- find the first request for the article (should match the url on the link)
- expand request with default Headers tab selected
- make sure "Referer" is set in the Request headers section (under Response headers; can filter for "refer")
step 7 should look like attached. (Alternatively, if you know of easier ways to inspect request headers, do that! :))
QA Results:
Tested on :
FF Nightly version : 67.0a1 (2019-03-07)
OS : Mac and Windows 10 Pro
[Prerequisites]:
- The
browser.newtabpage.activity-stream.discoverystream.config
pref is set todefault
- Discovery Stream is also set to
Enabled
Works as expected.
NOTE:
- On Mac OS, FF Nightly shows googleapis as the first request, and then the article request.
- On Windows OS - article request is the first request.
Below are attached results for both OS.
Comment 12•6 years ago
|
||
Comment 13•6 years ago
|
||
Assignee | ||
Updated•6 years ago
|
Comment 14•6 years ago
|
||
Comment on attachment 9048965 [details]
Bug 1533089 - HTTP Referer not set when clicking articles
Last minute fix for pocket/new tab issue, verified in nightly.
OK to uplift for the RC next monday.
Comment 15•6 years ago
|
||
bugherder uplift |
Updated•6 years ago
|
Assignee | ||
Comment 16•6 years ago
|
||
Assignee | ||
Updated•6 years ago
|
Updated•5 years ago
|
Description
•