Closed
Bug 293187
Opened 20 years ago
Closed 12 years ago
Need global getSpecialFolderKey
Categories
(Firefox :: General, defect)
Firefox
General
Tracking
()
RESOLVED
INVALID
People
(Reporter: bugzilla, Unassigned)
References
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2) Gecko/20050402 Firefox/1.0+ Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2) Gecko/20050402 Firefox/1.0+ The function getSpecialFolderKey is defined several times in Firefox (the download manager and download pref related code to name but two uses). The problem is that it is defined within other functions and is not directly accessible without overlaying lots of core code that I have no intention of using. It would be preferable (at least to me) and probably logical to have getSpecialFolderKey or an equivalent as a global Firefox function so that it can be used by functions other than those intended. Normally I would simply replicate the code in cases like this, but ifdefs are used to select the appropriate OS for the return value, so I either have to implement OS checking code or overlay code that I don't want. Reproducible: Always Steps to Reproduce:
| Reporter | ||
Comment 1•20 years ago
|
||
If API changes aren't meant to occur after Firefox 1.1a or 1.8b2, would this need to be fixed sooner rather than later? Nominating for both, but apologies in advance if either (or both) aren't appropriate blocking targets.
Flags: blocking1.8b2?
Flags: blocking-aviary1.1?
Comment 2•20 years ago
|
||
Here's where the function is declared: http://lxr.mozilla.org/seamonkey/source/toolkit/mozapps/downloads/content/downloads.js#750 http://lxr.mozilla.org/seamonkey/source/browser/components/preferences/downloads.js#93 http://lxr.mozilla.org/seamonkey/source/mail/components/preferences/downloads.js#93 Interestingly enough, it differs a little (in mozapps variant, there's also a ifdef XP_BEOS). You generally don't get far by setting blocking? flags on a milestone like 1.8b2m which is going to be released soon on such a non-critical bug. I'd try to catch someone on IRC instead.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Version: unspecified → Trunk
Comment 3•20 years ago
|
||
this isn't a blocker. the problem first off is "where do you put this" since it basically has to live in toolkit. It can go into the next alpha if there's an answer.
Flags: blocking-aviary1.1? → blocking-aviary1.1-
| Reporter | ||
Comment 4•20 years ago
|
||
(In reply to comment #3) > this isn't a blocker. I thought as much (since it's nowhere near that level of importance) but wanted to clarify, since it's API-related. blocking1.1 was a silly nomination, not sure what I was thinking. > the problem first off is "where do you put this" since it basically has to live > in toolkit. It can go into the next alpha if there's an answer. Perhals globalOverlay.js?
Updated•20 years ago
|
Flags: blocking1.8b2? → blocking1.8b2-
| Reporter | ||
Comment 5•19 years ago
|
||
Mike, will you consider this for 2.0 as part of your "make useful toolkit functions" scheme?
Comment 6•19 years ago
|
||
*** Bug 325460 has been marked as a duplicate of this bug. ***
Comment 7•12 years ago
|
||
getSpecialFolderKey appears to be basically useless in mozilla-central, according to dxr: http://dxr.mozilla.org/search?tree=mozilla-central&q=getSpecialFolderKey&redirect=true Filing 860998 to get that removed.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•