Closed Bug 1708233 Opened 4 years ago Closed 4 years ago

Invalid value for Referer header on history navigations

Categories

(Core :: DOM: Navigation, defect)

defect

Tracking

()

RESOLVED INVALID

People

(Reporter: n.goeggi, Unassigned)

Details

[1] Goto https://mica-fishy-farmhouse.glitch.me/index.html
[2] Click on "Goto page 2" and then on "Goto auto back page"
[3] Observe the request made by the auto back page (the page immediately calls history.back() )

The request is issued by /autoback.html through history.back() and takes the user back to /page2.html but the Referer header is set to https://mica-fishy-farmhouse.glitch.me/index.html .

Note: This behavior can only be seen if the pages are not loaded from the bfcache, otherwise no actual requests are made.

Component: DOM: Security → Networking: HTTP
Component: Networking: HTTP → DOM: Navigation

I think this is the correct behavior. Chrome and Firefox both report the same Referer: https://mica-fishy-farmhouse.glitch.me/index.html because that was the original request's Referer. Loading from history is not issuing a new request.

Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.