Open Bug 1714910 Opened 4 years ago Updated 4 years ago

"Reopen closed tab" does not preserve request method

Categories

(Firefox :: Session Restore, defect)

Firefox 90
defect

Tracking

()

Tracking Status
firefox89 --- affected
firefox90 --- affected
firefox91 --- affected

People

(Reporter: william, Unassigned)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:90.0) Gecko/20100101 Firefox/90.0

Steps to reproduce:

  1. Navigate to a page via a POST request.
  2. Close the tab
  3. Re-open the tab with Command+Shift+T/Ctrl+Shift+T or by going to to History > Recently Closed Tabs
  4. Refresh the page.

Actual results:

A GET request is performed

Expected results:

The user should be prompted first for another POST request (like what happens when you don't close and re-open the tab), then a POST request should be performed.

Component: Untriaged → Session Restore

Hi Will !
In order to reproduce this issue, could you please add a test case to do it or the URL that you are using?
Also, if it is possible, could you add a screen recording showing where the problem is?.
Thanks!

Flags: needinfo?(william)
Attached video bug-demo-2.mov

Hi Marcela!

I spun up a quick demo at https://firefox-bug-1714910.willbarkoff.dev/ (source: https://github.com/willbarkoff/firefox-bug-1714910). I've also attached a screen recording to demonstrate what I'm discussing.

Please let me know if you need anything else!
Will

Flags: needinfo?(william)

Thank you for the information.
I was able to reproduce this issue on latest Nightly 91.0a1 (2021-06-09)(64-bit), Beta 90.0b4, and Release 89.0 on macOS 10.15 and Windows 10.
I'll change flags accordingly.
Severity suggested S2.

Severity: -- → S3
Status: UNCONFIRMED → NEW
Has Regression Range: --- → no
Has STR: --- → yes
Component: Session Restore → Networking: HTTP
Ever confirmed: true
Product: Firefox → Core

This bug seems to have always been around. I tested with Firefox 51 and it was still there.
It doesn't seem to happen in Chrome, Safari or Edge.

It seems to be caused by the fact that we don't hold on to the actual channel and/or upload stream when we close the tab, and so probably no info whether the closed tab was a post or a get.

Component: Networking: HTTP → Session Restore
Product: Core → Firefox
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: