When duplicating a https tab, Firefox sometimes accesses the http version of the website.
Categories
(Firefox :: Untriaged, defect)
Tracking
()
People
(Reporter: 7e14hz, Unassigned)
Details
Attachments
(1 file)
|
417.10 KB,
image/png
|
Details |
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Firefox/68.0
Steps to reproduce:
I am playing Cookie Clicker and sometimes I am duplicating the tab to check the outcome of certain game events. Today the website had some problems with the certificates, which seems to have been somewhat fixed; but now the game can be accessed through both http and https, each having its own game data storage.
Actual results:
What didn't happen before, sometimes, when I duplicate a tab, it goes from https:// to http://. It doesn't happen all the time, maybe one time out of 30, but it can be produced via right click → Duplicate Tab, via dragging the url of the current tab to an empty space on the tab bar, and even via opening a new tab and pasting the whole (plain text) url into the location bar.
The worrying part is, It doesn't even attempt to access https.
I'm attaching a screenshot with an example of bad behavior. As you can see, the very first request Firefox makes is to http://orteil.dashnet.org/cookieclicker/?__r=1.efc42a57ff1590c7a616afb8d637a303, but what I manually pasted to the input box was https://orteil.dashnet.org/cookieclicker/.
Expected results:
Firefox should open exactly what I tell it to open...
Firefox Developer Edition 68.0b12 (64-bit) on Windows 10 1903 b. 18362.175
Ok I think the problem is with Firefox's Network Monitor, it's missing the first entry while Chrome has it, and it explains the situation. The beginning of Firefox's HAR:
{
"log": {
"version": "1.2",
"creator": {
"name": "Firefox",
"version": "68.0"
},
"browser": {
"name": "Firefox",
"version": "68.0"
},
"pages": [
{
"startedDateTime": "2019-06-23T23:12:39.233+03:00",
"id": "page_2",
"pageTimings": {
"onContentLoad": 1726,
"onLoad": 2215
}
}
],
"entries": [
{
"pageref": "page_2",
"startedDateTime": "2019-06-23T23:12:39.233+03:00",
"request": {
"bodySize": 0,
"method": "GET",
"url": "http://orteil.dashnet.org/cookieclicker/?__r=1.efc42a57ff1590c7a616afb8d637a303",
"httpVersion": "HTTP/1.1",
"headers": [
{
"name": "Host",
"value": "orteil.dashnet.org"
},
{
"name": "User-Agent",
"value": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Firefox/68.0"
},
{
"name": "Accept",
"value": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"
},
{
"name": "Accept-Language",
"value": "en-US,en;q=0.5"
},
{
"name": "Accept-Encoding",
"value": "gzip, deflate"
},
{
"name": "Connection",
"value": "keep-alive"
},
{
"name": "Cookie",
"value": "__cfduid=d43968d8dce11586da94b273b9ea767d51507584249; cookieconsent_dismissed=yes; 60gpBAK=R1224191420; 60gpD=R2954622603"
},
{
"name": "Upgrade-Insecure-Requests",
"value": "1"
}
],
"cookies": [
{
"name": "__cfduid",
"value": "d43968d8dce11586da94b273b9ea767d51507584249"
},
{
"name": "cookieconsent_dismissed",
"value": "yes"
},
{
"name": "60gpBAK",
"value": "R1224191420"
},
{
"name": "60gpD",
"value": "R2954622603"
}
],
"queryString": [
{
"name": "__r",
"value": "1.efc42a57ff1590c7a616afb8d637a303"
}
],
"headersSize": 512
},
"response": {
"status": 307,
"statusText": "Temporary Redirect",
"httpVersion": "HTTP/1.1",
"headers": [
{
"name": "Server",
"value": "nginx"
},
{
"name": "Date",
"value": "Sun, 23 Jun 2019 20:12:50 GMT"
},
{
"name": "Content-Type",
"value": "text/html"
},
{
"name": "Content-Length",
"value": "180"
},
{
"name": "Set-Cookie",
"value": "__r=1.efc42a57ff1590c7a616afb8d637a303; path=/; Max-Age=60;"
},
{
"name": "Location",
"value": "http://orteil.dashnet.org/cookieclicker/"
},
{
"name": "X-IPLB-Instance",
"value": "30850"
}
],
"cookies": [
{
"name": "__r",
"value": "1.efc42a57ff1590c7a616afb8d637a303"
}
],
"content": {
"mimeType": "text/html",
"size": 12014,
"comment": "Response bodies are not included."
},
"redirectURL": "http://orteil.dashnet.org/cookieclicker/",
"headersSize": 282,
"bodySize": 4140
},
"cache": {},
"timings": {
"blocked": 0,
"dns": 0,
"connect": 57,
"ssl": 0,
"send": 0,
"wait": 52,
"receive": 0
},
"time": 109,
"_securityState": "insecure",
"serverIPAddress": "94.23.151.19",
"connection": "80"
},
The beginning of Chrome's HAR:
{
"log": {
"version": "1.2",
"creator": {
"name": "WebInspector",
"version": "537.36"
},
"pages": [
{
"startedDateTime": "2019-06-23T21:21:50.709Z",
"id": "page_1",
"title": "https://orteil.dashnet.org/cookieclicker/",
"pageTimings": {
"onContentLoad": 956.5709999999399,
"onLoad": 1195.1799999999366
}
}
],
"entries": [
{
"startedDateTime": "2019-06-23T21:21:50.707Z",
"time": 122.85299999985,
"request": {
"method": "GET",
"url": "https://orteil.dashnet.org/cookieclicker/",
"httpVersion": "http/2.0",
"headers": [
{
"name": ":method",
"value": "GET"
},
{
"name": ":authority",
"value": "orteil.dashnet.org"
},
{
"name": ":scheme",
"value": "https"
},
{
"name": ":path",
"value": "/cookieclicker/"
},
{
"name": "pragma",
"value": "no-cache"
},
{
"name": "cache-control",
"value": "no-cache"
},
{
"name": "upgrade-insecure-requests",
"value": "1"
},
{
"name": "user-agent",
"value": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36"
},
{
"name": "dnt",
"value": "1"
},
{
"name": "accept",
"value": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3"
},
{
"name": "accept-encoding",
"value": "gzip, deflate, br"
},
{
"name": "accept-language",
"value": "en-US,en;q=0.9,ru-RU;q=0.8,ru;q=0.7,fr-FR;q=0.6,fr;q=0.5,en-GB;q=0.4"
},
{
"name": "cookie",
"value": "__cfduid=ddd133fb111926c3f04a8ec40f75c29871560983697; 60gp=R4109742925; cookieconsent_dismissed=yes; 60gpBAK=R1224193598; 60gpD=R2954622603"
}
],
"queryString": [],
"cookies": [
{
"name": "60gp",
"value": "R4109742925",
"expires": null,
"httpOnly": false,
"secure": false
},
{
"name": "60gpBAK",
"value": "R1224193598",
"expires": null,
"httpOnly": false,
"secure": false
},
{
"name": "60gpD",
"value": "R2954622603",
"expires": null,
"httpOnly": false,
"secure": false
},
{
"name": "__cfduid",
"value": "ddd133fb111926c3f04a8ec40f75c29871560983697",
"expires": null,
"httpOnly": false,
"secure": false
},
{
"name": "cookieconsent_dismissed",
"value": "yes",
"expires": null,
"httpOnly": false,
"secure": false
}
],
"headersSize": -1,
"bodySize": 0
},
"response": {
"status": 307,
"statusText": "",
"httpVersion": "http/2.0",
"headers": [
{
"name": "status",
"value": "307"
},
{
"name": "date",
"value": "Sun, 23 Jun 2019 21:21:54 GMT"
},
{
"name": "content-type",
"value": "text/html"
},
{
"name": "location",
"value": "http://orteil.dashnet.org/cookieclicker/?__r=1.efc42a57ff1590c7a616afb8d637a303"
},
{
"name": "x-request-id",
"value": "58ccb4b8cd453f777cd392a4cdefbf5c"
},
{
"name": "cache-control",
"value": "no-cache"
},
{
"name": "content-encoding",
"value": "gzip"
},
{
"name": "vary",
"value": "Accept-Encoding"
},
{
"name": "x-cdn-pop",
"value": "sbg"
},
{
"name": "x-cdn-pop-ip",
"value": "137.74.120.32/27"
},
{
"name": "x-cacheable",
"value": "Cacheable"
}
],
"cookies": [],
"content": {
"size": 0,
"mimeType": "text/html"
},
"redirectURL": "http://orteil.dashnet.org/cookieclicker/?__r=1.efc42a57ff1590c7a616afb8d637a303",
"headersSize": -1,
"bodySize": -1,
"_transferSize": 397
},
"cache": {},
"timings": {
"blocked": 10.450000000038548,
"dns": -1,
"ssl": -1,
"connect": -1,
"send": 0.2550000000000008,
"wait": 110.03500000003035,
"receive": 2.1129999997810955,
"_blocked_queueing": 1.966000000038548
},
"serverIPAddress": "213.186.33.107",
"_initiator": {
"type": "other"
},
"_priority": "VeryHigh",
"_resourceType": "other",
"connection": "282",
"pageref": "page_1"
},
Since most of the information in this bug is not relevant to the issue, i'll reopen another one.
Description
•