Closed
Bug 263388
Opened 20 years ago
Closed 20 years ago
Downloads initiated in hidden iframe doesn't work
Categories
(Core :: XUL, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: pavel.penaz, Assigned: jwkbugzilla)
References
()
Details
(Keywords: fixed-aviary1.0, regression, testcase)
Attachments
(2 files)
138 bytes,
text/html
|
Details | |
2.02 KB,
patch
|
jst
:
review+
bzbarsky
:
superreview+
asa
:
approval-aviary+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.3) Gecko/20041007 Firefox/0.10
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.3) Gecko/20041007 Firefox/0.10
On the above page a popup is blocked, which contains an exe file download. But
still download dialog appears and is not functional. When you click to download
the file, the download windows disappears and nothing happens..
Reproducible: Always
Steps to Reproduce:
1. Go to the page: http://thenewsearch.com/thenewsearch.html
2. Click OK in the download window
Actual Results:
Download window disappears and the file is not downloaded
Expected Results:
Either
1. the file should get saved
or
2. the download window should be blocked by FF popup blocker
Reporter | ||
Comment 1•20 years ago
|
||
Just a side note, be careful with the exe file. It is a dialer so do not try to
open it.
Comment 2•20 years ago
|
||
The file download is not in a popup, it's in an iframe. The download is
functional, Firefox's download manager (Tools -> Downloads or Ctrl+J) shows your
download history. It's not allowed to be opened because it's an .exe, as a
security precaution.
As far as I see, everything here is working as intended.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
Reporter | ||
Comment 3•20 years ago
|
||
With a clean profile I still get the same behaviour. If I turn off the popup
blocker, everything works fine and i can either save or cancel the download. But
with the popup blocker enabled the save dialog shows up but I am not able to
save the file, the download window disappears after I click OK before I can even
choose location to save the file to.
If I click in the popup notification area and I click on the item to show the
popup, the download window appears again and this time it works and I am able to
save the file.
Reporter | ||
Comment 4•20 years ago
|
||
Reopening the bug to get noticed. I've played with this problem on a clean
install of WinXP and Firefox and I have found the following. This issue only
shows up if you have Firefox set to "ask me where to save every file", then the
download window does not do anything. If you have FF set to "automatically save
downloads" than it works properly.
Status: RESOLVED → UNCONFIRMED
Resolution: INVALID → ---
Reporter | ||
Comment 5•20 years ago
|
||
I managed to reproduce this on WinXP with Mozilla (clean install, new profile).
You have to have popup blocker enabled to be able to reproduce this bug..
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8a5) Gecko/20041008
Comment 6•20 years ago
|
||
1)Enable Popup blocker
2)Make sure "Ask me where to save..." is enabled
The download is not in the popup, but somehow the blocking the popup is causing
it to fail. Since the popup blocker seems to cause the problem, I'll throw this
in that component. Since you said this happened in Suite -> Browser. Thanks
for your persistance and a better report of why.
I wonder if this happened before the popup blocking changes?
JS Console:
Error: [Exception... "Component returned failure code: 0x80004005
(NS_ERROR_FAILURE) [nsIFilePicker.init]" nsresult: "0x80004005
(NS_ERROR_FAILURE)" location: "JS frame ::
file:///C:/MOZILLA/CLEANA~1/MOZILLA/DIST/BIN/components/nsHelperAppDlg.js ::
anonymous :: line 155" data: no]
Source File:
file:///C:/MOZILLA/CLEANA~1/MOZILLA/DIST/BIN/components/nsHelperAppDlg.js
Line: 155
Status: UNCONFIRMED → NEW
Component: Download Manager → XP Apps
Ever confirmed: true
Product: Firefox → Browser
Summary: Popup with exe download is not blocked properly → Popup blocker interferes with exe download
Version: unspecified → Trunk
Comment 8•20 years ago
|
||
Back to Browser, as the reporter says and I just verified, this ALSO affects Suite.
Product: Firefox → Browser
Updated•20 years ago
|
Assignee: bugs → download-manager
QA Contact: bmo
Comment 9•20 years ago
|
||
Something really fishy is up here. jst, wladimir, could you check this out?
Flags: blocking1.7.x?
Flags: blocking-aviary1.0?
Comment 10•20 years ago
|
||
Hmm, in a firefox (winxp) branch build from today I get a functioning download
dialog, if I click ok, firefox downloads the file n' all.
Comment 11•20 years ago
|
||
This site is feeding its visitors this exe file in a frame, *and* as a popup.
The one that comes as the content of a frame we display the download dialog for,
but the popup is just blocked. I don't see how this can have anything to do with
the popup blocker...
Reporter | ||
Comment 12•20 years ago
|
||
Can anyone confirm that this bug is fixed with todays latest Tinderbox branch
build? Or perhaps the site has changed its content. Now when I load the page it
loads fine, download dialog does not automatically show up. Download dialog
shows up only when I allow the popup from the information bar. Anyone?
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.3) Gecko/20041014
Firefox/0.10
Reporter | ||
Comment 13•20 years ago
|
||
Please ignore my above comment, now I get the download dialog from frame again
and it still does not work..
Assignee | ||
Comment 14•20 years ago
|
||
Testing in Firefox 0.10.1 - the site opens a download dialog from both frame and
popup. It works from the popup but not from the frame *regardless the popup
blocker setting*. This definitely doesn't have anything to do with the popup
blocker.
JS Console shows an exception (NS_ERROR_FAILURE) in nsHelperAppDlg.js for this line:
picker.init(parent, windowTitle, nsIFilePicker.modeSave);
nsIFilePicker obviously doesn't like getting a frame instead of a window.
Changing it to this fixes the problem:
picker.init(parent.top, windowTitle, nsIFilePicker.modeSave);
Assignee | ||
Comment 15•20 years ago
|
||
This tries to open a download dialog from an invisible iframe. Firefox 0.10.1
and Mozilla 1.8a4 fail to open the file picker when requested to save the file
(in Firefox "Ask me where to save every file" has to be enabled in the
preferences). Mozilla 1.7.3 isn't affected by the bug for some reason (on
Windows, might be OS-dependent).
Assignee | ||
Comment 16•20 years ago
|
||
I think this has to be fixed in the FilePicker - it needs to go to the parent
window if the current one doesn't have a widget associated with it. There might
be a better way to do this of course, my code is mostly Copy&Paste from
nsGlobalWindow::GetParent().
nsBaseFilePicker.cpp has the same version for trunk and aviary, so this patch
should be appliable to both.
Assignee | ||
Comment 17•20 years ago
|
||
Comment on attachment 162171 [details] [diff] [review]
FilePicker patch
This seems to be a regression from bug 256235, asking jst to review.
Attachment #162171 -
Flags: review?(jst)
Assignee | ||
Comment 18•20 years ago
|
||
Patch from bug 256235 hasn't been checked in on the 1.7 branch, so it isn't
affected. Removing blocking1.7.x request.
Flags: blocking1.7.x?
Assignee | ||
Updated•20 years ago
|
Keywords: regression,
testcase
Comment 19•20 years ago
|
||
Comment on attachment 162171 [details] [diff] [review]
FilePicker patch
r=jst
Attachment #162171 -
Flags: review?(jst) → review+
Assignee | ||
Updated•20 years ago
|
Attachment #162171 -
Flags: superreview?(bzbarsky)
Attachment #162171 -
Flags: approval-aviary?
Comment 20•20 years ago
|
||
Comment on attachment 162171 [details] [diff] [review]
FilePicker patch
>Index: widget/src/xpwidgets/nsBaseFilePicker.cpp
>+ if (!parent)
>+ return nsnull;
>+
>+ sgo = do_GetInterface(parent);
do_GI is null-safe; no need to null-check parent.
sr=bzbarsky.
Attachment #162171 -
Flags: superreview?(bzbarsky) → superreview+
Comment 21•20 years ago
|
||
Fixed on the trunk.
Updated•20 years ago
|
Status: NEW → RESOLVED
Closed: 20 years ago → 20 years ago
Resolution: --- → FIXED
Updated•20 years ago
|
Component: Download Manager → XP Toolkit/Widgets
Comment 22•20 years ago
|
||
Updating summary.
Summary: Popup blocker interferes with exe download → Downloads initiated in hidden iframe doesn't work
Comment 23•20 years ago
|
||
trev, please include a quick explanation of what the patch does, what kind of
testing it's had and what kinds of risks are associated with taking the patch
when you request approval. doing that will help to expidite approval requests.
thanks.
Assignee | ||
Comment 24•20 years ago
|
||
This patch fixes a regression, that has been checked into the aviary branch (bug
256235). Problem is that downloads initiated from an invisible frame fail
because it doesn't have a native widget associated with it. The patch simply
takes the parent of the frame in this case. I don't see any risks with this
approach, code is mostly Copy&Paste from nsGlobalWindow::GetParent() which works
fine. Testing - it fixes the problem, it doesn't crash on any download, there is
not much more you can test here. So far there are no bug reports about problems
with this patch on trunk.
Comment 25•20 years ago
|
||
Comment on attachment 162171 [details] [diff] [review]
FilePicker patch
a=asa for aviary checkin.
Attachment #162171 -
Flags: approval-aviary? → approval-aviary+
Comment 26•20 years ago
|
||
Fixed on the aviary branch.
Flags: blocking-aviary1.0?
Keywords: fixed-aviary1.0
Reporter | ||
Comment 27•20 years ago
|
||
Verified fixed on latest FF tinderbox branch and trunk builds.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.3) Gecko/20041018 Firefox/1.0
Assignee | ||
Updated•18 years ago
|
Assignee: download-manager → trev
You need to log in
before you can comment on or make changes to this bug.
Description
•