referrer not sent when loading - loadUri(String uri, String referrer, int flags)
Categories
(GeckoView :: General, defect, P1)
Tracking
(firefox66 wontfix, firefox67 wontfix, firefox68 fixed)
People
(Reporter: colormatch, Assigned: esawin)
References
Details
(Whiteboard: [geckoview:fenix:m5])
Attachments
(2 files)
User Agent: Mozilla/5.0 (Windows NT 6.2; Win64; x64; rv:66.0) Gecko/20100101 Firefox/66.0
Steps to reproduce:
load a geckoview session with:
geckoSession.loadUri("https://www.whatsmyreferer.com/","www.SomeRef.com",0);
or
geckoSession.loadUri("https://www.whatsmyreferer.com/",Uri.encode("www.SomeRef.com"),0);
Actual results:
Page loads without sent referrer header.
Expected results:
referrer header should have been sent when loading via:
void loadUri(String uri, String referrer, int flags)
Load the given URI with the specified referrer and load type.
void loadUri(Uri uri, Uri referrer, int flags)
Load the given URI with the specified referrer and load type.
Updated•6 years ago
|
Assignee | ||
Comment 1•6 years ago
|
||
That's a regression from bug 1517703, we need to pass a ReferrerInfo
.
Ugh. Clearly we need a test for this too.
Comment 3•6 years ago
|
||
Custom tabs will need the referrer, too.
Updated•6 years ago
|
Updated•6 years ago
|
Assignee | ||
Comment 4•6 years ago
|
||
Assignee | ||
Comment 5•6 years ago
|
||
Depends on D29683
Assignee | ||
Comment 7•6 years ago
|
||
Yes, Fennec has been regressed, too. I think Emily is working on that.
Assignee | ||
Comment 8•6 years ago
|
||
Gijs, you've done the original review for the ReferrerInfo
usage conversion, can you redirect your review to someone suitable in the respect?
Comment 9•6 years ago
|
||
(In reply to Eugen Sawin [:esawin] from comment #8)
Gijs, you've done the original review for the
ReferrerInfo
usage conversion, can you redirect your review to someone suitable in the respect?
snorp was already listed as a reviewer, that seemed OK to me?
Assignee | ||
Comment 10•6 years ago
|
||
(In reply to :Gijs (he/him) from comment #9)
(In reply to Eugen Sawin [:esawin] from comment #8)
Gijs, you've done the original review for the
ReferrerInfo
usage conversion, can you redirect your review to someone suitable in the respect?snorp was already listed as a reviewer, that seemed OK to me?
It's probably OK, but I wanted to make sure that I'm using the new loadUri
API correctly, snorp was tagged for the "is this correct for GV" part.
Comment 11•6 years ago
|
||
(In reply to Eugen Sawin [:esawin] from comment #10)
It's probably OK, but I wanted to make sure that I'm using the new
loadUri
API correctly
Assuming browser
is an instance of the CE in browser-custom-element.js, yes.
In fact, how does that call work today? :-\
Comment 12•6 years ago
|
||
Comment 13•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/f7323ab06d60
https://hg.mozilla.org/mozilla-central/rev/c8216edb37a9
Updated•6 years ago
|
Description
•