Can't drag downloaded PDF into new tab
Categories
(Firefox :: New Tab Page, defect, P1)
Tracking
()
Tracking | Status | |
---|---|---|
firefox-esr60 | --- | unaffected |
firefox64 | --- | unaffected |
firefox65 | --- | unaffected |
firefox66 | --- | fixed |
People
(Reporter: overholt, Assigned: rrosario)
References
Details
(Keywords: github-merged, regression)
Attachments
(1 file)
(deleted),
text/x-github-pull-request
|
Details |
STR:
- download a PDF
1a. go to https://www150.statcan.gc.ca/n1/en/pub/12-581-x/12-581-x2008001-eng.pdf?st=P_7a_M8l
1b. click the download icon and save it - open a new, blank tab
- click the downloads icon, drag the PDF you just downloaded into the content area of the new tab
Expected:
- pdfjs opens the PDF
Actual:
- you get an "international no" cursor modifier thing
mozregression pointed me to bug 1519303 as what regressed this.
In case it's platform-specific, I tested this on Windows 10.
Updated•6 years ago
|
Comment 1•6 years ago
|
||
The problem is reproducible with not only pdf but also txt and heml file.
And matters worse, drag & drop onto empty area of NewTab from Desktop/Explorer, unable to open a local file.
Assignee | ||
Comment 2•6 years ago
|
||
In Bug 1520697 we started listening to drop events in the search box. For some reason, that change causes this bug where you can no longer drop a file onto the page to open it. I'll look into it. Thanks!
Comment 3•6 years ago
|
||
I wonder if this is related to bug 1503632 where turns out adding a mouse listener, react decided to add it globally resulting in high cpu. So maybe here, react is adding a drop listener and deciding it doesn't need to forward to search box?
Assignee | ||
Comment 4•6 years ago
|
||
(In reply to Ed Lee :Mardak from comment #3)
I wonder if this is related to bug 1503632 where turns out adding a mouse listener, react decided to add it globally resulting in high cpu. So maybe here, react is adding a drop listener and deciding it doesn't need to forward to search box?
This was my first thought too but it wasn't the issue. All our top sites are drop targets too.
Turns out if you add a contenteditable to a page, the browser stops accepting dropped files. I was able to reproduce the issue with just:
<!doctype html>
<html>
<body>
<div contenteditable style="display:none;"></div>
</body>
</html>
Changing the contenteditable
to an invisible <input type="text"/>
fixes the issue. Browser bug?
Assignee | ||
Updated•6 years ago
|
Comment 5•6 years ago
|
||
Comment 6•6 years ago
|
||
Assignee | ||
Updated•6 years ago
|
Comment 7•6 years ago
|
||
Updated•6 years ago
|
Comment 8•6 years ago
|
||
I have reproduced this bug with Nightly 66.0a1 (2019-01-21) on Windows 10, 64 Bit. This fix of this bug is verified with latest Beta 66.0b5!
Build ID : 20190204181317
User Agent : Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:66.0) Gecko/20100101 Firefox/66.0
Updated•5 years ago
|
Description
•