Closed Bug 233402 Opened 21 years ago Closed 6 years ago

search for file: urls if what i type starts with / or c:\

Categories

(Firefox :: Address Bar, defect)

defect
Not set
normal

Tracking

()

RESOLVED INACTIVE

People

(Reporter: patrick, Unassigned)

References

Details

(Whiteboard: wontfix?)

Attachments

(1 file, 1 obsolete file)

This is the Firebird version of bug 97031.  (Mozilla and Firebird have separate 
autocomplete systems.)

Steps to Reproduce:
1. Type in the url bar a local page:
==> file:///c:/boot.ini
2. Press "Enter"
3. Type "c:/boot"
==> nothing in dropdown
4. Type "file:///c:/boot"
==> file:///c:/boot.ini appears in dropdown

Expected Behavior:
In step 3, "file:///c:/boot.ini" should appear in the dropdown.

The ability to autocomplete on "http://", "https://", etc. was added in bug 
94870.  For whatever reason, file: didn't make the cut.
This patch has a platform-specific region:

#if defined(XP_WIN) || defined(XP_OS2)
// on windows we want "e:/foo" to match "file:///e:/foo"
#define FILE_SCHEME_PREFIX "file:///"
#else
// on unix we want "/e/foo" to match "file:///e/foo"
#define FILE_SCHEME_PREFIX "file://"
#endif

I dislike writing platform-specific code, but in this case it's the only way to
achieve "least surprise" UI.
Assignee: bugs → patrick
Status: NEW → ASSIGNED
Attachment #140848 - Flags: review?(bugs)
OS: Windows 2000 → All
Hardware: PC → All
Attachment #140848 - Flags: superreview?(blake)
Attachment #140848 - Flags: review?(bugs)
Attachment #140848 - Flags: review?(blake)
This is one of those spots where you do want some platform specific code,
because in Windows, people will be cutting and pasting dos style paths from
other programs.
Attachment #140848 - Flags: superreview?(firefox)
fixes some slip due to replacement of NS_QuickSort, also forgot to bump the
AUTOCOMPLETE_PREFIX_LIST_COUNT up to 7.
Attachment #140848 - Attachment is obsolete: true
Attachment #140848 - Flags: review?(firefox)
Attachment #149528 - Flags: review+
QA Contact: davidpjames → location.bar
Whiteboard: wontfix?
Assignee: patrick → nobody
Status: ASSIGNED → NEW
Per policy at https://wiki.mozilla.org/Bug_Triage/Projects/Bug_Handling/Bug_Husbandry#Inactive_Bugs. If this bug is not an enhancement request or a bug not present in a supported release of Firefox, then it may be reopened.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → INACTIVE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: