Bug 1568493
Summary: | Trying to open html file results in download | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Alexander Kurtakov <akurtako> | ||||
Component: | epiphany | Assignee: | Michael Catanzaro <mcatanzaro+wrong-account-do-not-cc> | ||||
Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | unspecified | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 28 | CC: | alexl, ericwill, gecko-bugs-nobody, jhorak, john.j5live, loskutov, lufimtse, mcatanzaro+wrong-account-do-not-cc, mclasen, phatina, rhughes, rstrode, sandmann, tpopela | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | If docs needed, set a value | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2018-04-17 15:51:40 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Same behavior as Chrome, closing Firefox, opens it just fine. Would you please explain what is wrong with the file if I understand your action properly? Epiphany can open it too, it just doesn't open main resource downloads automatically. If you think that should be changed, we can consider it, but then we're just as likely to get reports from Chrome users complaining that it displayed the file instead of downloading it, right? Can you point me how I can achieve that with webkitgtk? I ended up opening this bug as I was investigating SWT Browser (webkitgtk) issue and thought of trying epiphany and noticed the same happens. Hm, I'm not sure if it's possible. I would ask on webkit-gtk.org. I'm wondering why webkit tries to *download* this *local* file *many times* and still doesn't show anything: #################### <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/> <title>About</title> </head> <body lang="EN-US"> <h2>About This Content</h2> <p>January 2, 2014</p> <h3>License</h3> </body> </html> #################### but this file is properly shown without a single download dialog: #################### <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/> <title>About</title> </head> <body lang="EN-US"> <h2>About This Content</h2> <p>January 2, 2014</p> <h3>License</h3> </body> </html> #################### For me (a stupid browser user) this is just wrong. I can't imagine the behavior shown in the video below is expected and not a bug. So please consider to reopen this one. You can see (may be, if you are using the right browser) the (GIF) video here: https://bugs.eclipse.org/bugs/attachment.cgi?id=273681 (In reply to Andrey Loskutov from comment #6) > I'm wondering why webkit tries to *download* this *local* file *many times* > and still doesn't show anything Again, I don't know, but my guess is it will treat it as a download unless there's an .htm or .html extension. I don't really know. Since Chromium is doing the same thing, I doubt it's a bug. (In reply to Michael Catanzaro from comment #7) > (In reply to Andrey Loskutov from comment #6) > > I'm wondering why webkit tries to *download* this *local* file *many times* > > and still doesn't show anything > > Again, I don't know, but my guess is it will treat it as a download unless > there's an .htm or .html extension. I don't really know. Since Chromium is > doing the same thing, I doubt it's a bug. I think we have an misunderstanding. It happens also if you download the file locally, name it e.g. about about.html and try to open it by typing file//... in location field. (In reply to Alexander Kurtakov from comment #8) > I think we have an misunderstanding. It happens also if you download the > file locally, name it e.g. about about.html and try to open it by typing > file//... in location field. I saved this content as about.html: #################### <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/> <title>About</title> </head> <body lang="EN-US"> <h2>About This Content</h2> <p>January 2, 2014</p> <h3>License</h3> </body> </html> #################### Then placed it in my Downloads folder so it can be accessed by Epiphany Tech Preview. Then loaded in the address bar: file:///home/mcatanzaro/Downloads/about.html. It was displayed in the browser tab. (In reply to Michael Catanzaro from comment #9) > (In reply to Alexander Kurtakov from comment #8) > > I think we have an misunderstanding. It happens also if you download the > > file locally, name it e.g. about about.html and try to open it by typing > > file//... in location field. > > I saved this content as about.html: > > #################### > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> > <html xmlns="http://www.w3.org/1999/xhtml"> > <head> > <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/> > <title>About</title> > </head> > <body lang="EN-US"> > <h2>About This Content</h2> > > <p>January 2, 2014</p> > <h3>License</h3> > > </body> > </html> > #################### > > Then placed it in my Downloads folder so it can be accessed by Epiphany Tech > Preview. > > Then loaded in the address bar: > file:///home/mcatanzaro/Downloads/about.html. It was displayed in the > browser tab. +1. Fedora 27, webkit2 via webkitgk2.18. Tested with Epihany also, it loads as webpage. @Andrey, maybe the mime types are broken on your system and test/html is not being recognized by your system properly. Btw, what happens if you change your default system browser to something else? |
Created attachment 1423110 [details] file to open When trying to open the attached html file epiphany only downloads it but doesn't open it.