Closed Bug 1688384 Opened 5 years ago Closed 4 years ago

dragged URL eliminates tab history / back button

Categories

(Firefox :: General, defect, P3)

Firefox 84
defect

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: hammerquill, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:84.0) Gecko/20100101 Firefox/84.0

Steps to reproduce:

Attempting to drag an address for an image from one tab to a "drag and drop" image upload on another tab, the address I dragged replaced what I had in the tab I dragged it to, and eliminated the back button, so I couldn't get back to where I was.

Actual results:

Dragged the URL from one tab to another. That URL came up in the other tab (instead of pasting to the place I expected to drop it within the showing page). When the image came up in the tab I had dragged to, the Back button was ghosted, so I couldn't even get back to the previous page, the one I had been on.

Expected results:

If the site was set up right, it could have accepted the URL. But even if it wasn't, and FF just assumed I was asking to open that URL in this other tab, it should still have let me go back to the previous page. It didn't. Effectively, it eliminated that tab's entire history.

Bugbug thinks this bug should belong to this component, but please revert this change in case of error.

Component: Untriaged → DOM: Navigation
Product: Firefox → Core

I can't reproduce when dragging some image from tab A to tab B (where B had other pages loaded before it). Tab B just loads the image and back button works just fine.
Am I misinterpreting some of comment 0 ?
Or does this happen only on some particular page?

Severity: -- → S3
Flags: needinfo?(hammerquill)
Priority: -- → P3

I no longer know the first place I saw this error, but the most recent one, presumably using similar code, was on dailykos.com. It requires that you be logged in (and I think you have to be signed up for some days before commenting). When commenting, click the image link to add an image to your comment. It brings up a dialog with a "drag image here" space. If you then drag an image from another tab, the instant you drop it, it doesn't attempt to import that image, but replaces the whole tab content with the image, with no back button.

I encountered this at least a couple of times before - once on this site, but also on at least one and I think more than one other site, presumably using the same image upload library. The reason I mentioned it here is that, though it is mainly an issue the site programmers need to fix, it nonetheless is doing something extra - somehow overriding firefox's normal behavior - upon its failure.

If I can find the other place(s) I've seen this I'll add to the thread, in case they have lower bars to entry.

Flags: needinfo?(hammerquill)

Neil, does this behavior ring any bells? Frontend does capture drops in some cases and triggers a load.
(but those loads should still be normal loads, not replacing anything)

Component: DOM: Navigation → General
Flags: needinfo?(enndeakin)
Product: Core → Firefox

Unfortunately, without a testcase and clear steps that reproduce the problem, I don't think there's much we can do here. We can reopen if the steps become more clear.

Status: UNCONFIRMED → RESOLVED
Closed: 4 years ago
Resolution: --- → INCOMPLETE
Flags: needinfo?(enndeakin)
You need to log in before you can comment on or make changes to this bug.