RFE: more recognized surrogate replacement URL schemes

Bug reports and enhancement requests
Post Reply
barbaz
Senior Member
Posts: 11109
Joined: Sat Aug 03, 2013 5:45 pm

RFE: more recognized surrogate replacement URL schemes

Post by barbaz »

I have an add-on that adds a custom resource: URI that is just an alias for a folder in the profile directory, to enable portability of my profile between many different systems (different OSes) that don't have practical common file paths (if any at all) and anyway won't have the files I need. I tried to add a surrogate script to NS with a replacement that pointed to one such resource: URI, and it failed with a syntax error.

So I'd like to make an RFE for script surrogates to work with resource: URIs, in addition to file: URLs.

@Giorgio: if you would like the addon I'm talking about, let me know & I'll send it via PM
*Always* check the changelogs BEFORE updating that important software!
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:31.0) Gecko/20100101 SeaMonkey/2.28.2-unofficial-1
barbaz
Senior Member
Posts: 11109
Joined: Sat Aug 03, 2013 5:45 pm

Re: RFE: more recognized surrogate replacement URL schemes

Post by barbaz »

Bump.

atm I'm dumping the file: URL surrogates in a subdirectory of /srv... not convenient because I have to manually mirror the surrogate for every VM I want to sync my profile. Ugh.

Another possible idea: how about offering a placeholder for the portion of a file: URL that points to the profile directory, i.e. [ProfD]? It's easy enough to get that in Gecko 18+ with OS.File (like this: )

Code: Select all

Cu.import("resource://gre/modules/osfile.jsm");
let profd = "file://"+OS.Constants.Path.profileDir;
but I wouldn't know how to get it in a way that's compatible with older Gecko...
*Always* check the changelogs BEFORE updating that important software!
-
Post Reply