Closed Bug 1239239 Opened 8 years ago Closed 6 years ago

Remove ftp/file tree view support from SeaMonkey

Categories

(SeaMonkey :: General, defect)

defect
Not set
normal

Tracking

(seamonkey2.56 fixed)

RESOLVED FIXED
seamonkey2.56
Tracking Status
seamonkey2.56 --- fixed

People

(Reporter: emk, Assigned: frg)

References

(Depends on 1 open bug)

Details

Attachments

(4 files, 1 obsolete file)

It will become a dead code once XUL directory viewer has been removed from m-c.
(In reply to Masatoshi Kimura [:emk] from comment #0)
> It will become a dead code once XUL directory viewer has been removed from
> m-c.

According to bug 1223272 comment #3, "this feature is disabled by default even in SeaMonkey with no UI to turn it back on." How come then, that browsing to a file: or ftp: directory gives me something like this? (This is with file:, ftp: is vey similar). Maybe there is a pref in about:config for it, but I don't know which one. I tried toggling a couple of prefs which I thought might be related but they didn't change anything.

UA:"Mozilla/5.0 (X11; Linux x86_64; rv:46.0) Gecko/20100101 Firefox/46.0 SeaMonkey/2.43a1"
ID:20160109003001 en-US
c-c:4f4f6a3674c9e16efacf62fd8963c8be5a31b07c
m-c:0f363ae95dc90d593394ef464aa500804c824962
(In reply to Tony Mechelynck [:tonymec] from comment #1)
> According to bug 1223272 comment #3, "this feature is disabled by default
> even in SeaMonkey with no UI to turn it back on." How come then, that
> browsing to a file: or ftp: directory gives me something like this? (This is
> with file:, ftp: is vey similar). Maybe there is a pref in about:config for
> it, but I don't know which one. I tried toggling a couple of prefs which I
> thought might be related but they didn't change anything.

Please change "network.dir.format" to 3 and then browse any ftp/local directories.
I confirmed it with SeaMonkey 2.39 release.
(In reply to Masatoshi Kimura [:emk] from comment #2)
> (In reply to Tony Mechelynck [:tonymec] from comment #1)
> > According to bug 1223272 comment #3, "this feature is disabled by default
> > even in SeaMonkey with no UI to turn it back on." How come then, that
> > browsing to a file: or ftp: directory gives me something like this? (This is
> > with file:, ftp: is vey similar). Maybe there is a pref in about:config for
> > it, but I don't know which one. I tried toggling a couple of prefs which I
> > thought might be related but they didn't change anything.
> 
> Please change "network.dir.format" to 3 and then browse any ftp/local
> directories.
> I confirmed it with SeaMonkey 2.39 release.

Oh, beeyootiful! With that value, the directory is displayed in tree format, like the Bookmarks Manager, also in 2.43a1 trunk.

Does it mean that if and when this bug gets "fixed", SeaMonkey won't have a (tree-like) Bookmarks Manager anymore?
(In reply to Tony Mechelynck [:tonymec] from comment #3)
> Does it mean that if and when this bug gets "fixed", SeaMonkey won't have a
> (tree-like) Bookmarks Manager anymore?

Probably no, although I didn't dig into the SeaMonkey source tree deeply. The XUL Directory Viewer uses a hard-coded URL, "chrome://communicator/content/directory/directory.xul". Removing this file will not affect Bookmarks Manager.
(In reply to Jonas Sicking (:sicking) from Bug 1223272 comment #2)
> It's not that I don't care about comm-central. But given that this is a
> seamonkey specific feature, it should live in the seamonkey tree. Especially
> given that this is quite a lot of code.
> 
> Looks like this code is using enough XPCOM that seamonkey can override the
> relevant contracts/categories and copy this code into there.

Neil, would you be opposed to copying the XPCOM component into comm-central/suite?
Flags: needinfo?(neil)
(In reply to Philip Chee from comment #5)
> Neil, would you be opposed to copying the XPCOM component into
> comm-central/suite?

No, but it probably wouldn't be a straight copy - the m-c component would have used the internal API but suite.dll uses the external API. (Maybe the code could be rewritten in JavaScript? I'd have to find time to look into that...)
Flags: needinfo?(neil)
Summary: Remove ftp/file tree view support from SeaMonkey → Fix or remove ftp/file tree view support from SeaMonkey
TODO: Find out how to override the XPFE directory viewer.
It occurs to me that once jcranmer gets a merged comm-central/mozilla-central we can just back out Bug 1223272 in merged-comm-central.
nsFileSystemDataSource is gone and we decided to remove it in bug 1412978. This would have otherwise needed a complete reimplemantation in comm-central code and all of rdf is on the way out.
Depends on: 1412978
Summary: Fix or remove ftp/file tree view support from SeaMonkey → Remove ftp/file tree view support from SeaMonkey
Assignee: nobody → frgrahl
Attachment #8716637 - Attachment is obsolete: true
Status: NEW → ASSIGNED
Attachment #8944258 - Flags: review?(stefanh)
Migration code
Attachment #8944259 - Flags: review?(stefanh)
debugQA preferences. I am just building now. Is this still valid after the latest round of xbl and other removals?
Attachment #8944260 - Flags: review?(stefanh)
Comment on attachment 8944258 [details] [diff] [review]
1239239-part1-Removedirectoryviewer.patch

Looks good to me, thanks.
Attachment #8944258 - Flags: review?(stefanh) → review+
Attachment #8944259 - Flags: review?(stefanh) → review+
Comment on attachment 8944260 [details] [diff] [review]
1239239-part3-Removedirectoryviewer.patch

-<!ENTITY httpVersion.label            "HTTP Version">

Nice - this was unused.
Attachment #8944260 - Flags: review?(stefanh) → review+
(In reply to Frank-Rainer Grahl (:frg) from comment #13)
> Created attachment 8944260 [details] [diff] [review]
> 1239239-part3-Removedirectoryviewer.patch
> 
> debugQA preferences. I am just building now. Is this still valid after the
> latest round of xbl and other removals?

Should work fine, but I haven't checked.
Pushed by frgrahl@gmx.net:
https://hg.mozilla.org/comm-central/rev/4f56e21c7e3a
Part 1. Remove ftp/file tree view support from SeaMonkey. r=stefanh
https://hg.mozilla.org/comm-central/rev/fd0fd7d28d8c
Part 2. Set network.dir.format to a valid value after removal of the XUL directory viewer. r=stefanh
https://hg.mozilla.org/comm-central/rev/54533507e7b2
Part 3. Pref network.dir.format should no longer be changeable. Option 3 has been removed. r=stefanh
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → Seamonkey2.56
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: