MantisBT - NetSurf
View Issue Details
0002636NetSurfAmiga-specificpublic2019-02-16 16:512019-03-02 23:31
ReporterGeorge Sokianos 
Assigned ToChris Young 
PrioritynormalSeverityminorReproducibilityalways
StatusresolvedResolutionno change required 
PlatformOSAmigaOS 4.1OS Version4.1 FE
Product Version3.8 
Target VersionFixed in Version3.9 
Fixed in CI build #4553
Reported in CI build #
URL of problem page
Summary0002636: Not all html files are read right locally
DescriptionI am trying to setup the NetSurf to work with YAM for HTML files, which is something I managed to have it working. Now, when I double click the HTML attachment file, opens NetSurf, showing the email content.

Yam saves those HTML files under Ram:T/ folder.
The problem is that other files are working just fine and others do not. Even if I open them from NetSurf Project menu.

Attached you can find a couple of these files as an example. The one is working just fine and the other doesn't.
Steps To Reproduce1. Unarchive the attached file
2. Open NetSurf
3. Select from the Project menu the option "Open local file" and open first the one and then the second file.
TagsNo tags attached.
Attached Files? 1-YAMm0000004e-p2.lha (6,644) 2019-02-16 16:51
https://bugs.netsurf-browser.org/mantis/file_download.php?file_id=576&type=bug

Notes
(0001891)
Chris Young   
2019-02-18 19:00   
If you either remove the closing bracket from <html> in DefIcons, or add a new "MATCH 0 <!doctype html" entry to the HTML filetype, DefIcons will recognise the file correctly if it is re-saved. There's something weird in the file causing it to not be identified as text (most likely the UTF-8 characters near the start of the file) until it is saved from a native text editor.
This is a DefIcons/OS issue, not a NetSurf one.
(0001892)
George Sokianos   
2019-02-18 19:28   
The problem happens from the NeSurf, and not by double clicking the html file. NetSurf asks the system if the file is a html or not, or it uses it's own recognition functions?
(0001894)
Chris Young   
2019-03-02 23:27   
It asks the system for local files. Or, more accurately, it checks for a MIMETYPE tooltype in the icon, which will be the default icon assigned by DefIcons. If not found, it tries DataTypes and the resources/mimetypes file.

Issue History
2019-02-16 16:51George SokianosNew Issue
2019-02-16 16:51George SokianosFile Added: 1-YAMm0000004e-p2.lha
2019-02-16 17:36Vincent SandersAssigned To => Chris Young
2019-02-16 17:36Vincent SandersStatusnew => acknowledged
2019-02-18 19:00Chris YoungStatusacknowledged => resolved
2019-02-18 19:00Chris YoungResolutionopen => no change required
2019-02-18 19:00Chris YoungFixed in Version => 3.9
2019-02-18 19:00Chris YoungFixed in CI build # => 4553
2019-02-18 19:00Chris YoungNote Added: 0001891
2019-02-18 19:28George SokianosStatusresolved => feedback
2019-02-18 19:28George SokianosResolutionno change required => reopened
2019-02-18 19:28George SokianosNote Added: 0001892
2019-03-02 23:27Chris YoungNote Added: 0001894
2019-03-02 23:31Chris YoungStatusfeedback => resolved
2019-03-02 23:31Chris YoungResolutionreopened => no change required