Closed
Bug 233229
Opened 21 years ago
Closed 20 years ago
Location Bar uses http when auto-completing https URLs
Categories
(SeaMonkey :: Location Bar, defect)
SeaMonkey
Location Bar
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: bmo, Assigned: ajschult784)
References
Details
(Keywords: fixed-seamonkey1.1a, fixed1.8.1)
Attachments
(3 files, 1 obsolete file)
|
16.19 KB,
image/gif
|
Details | |
|
1.40 KB,
patch
|
neil
:
review+
neil
:
superreview+
|
Details | Diff | Splinter Review |
|
1.45 KB,
patch
|
neil
:
approval-branch-1.8.1+
|
Details | Diff | Splinter Review |
When auto-completing an address like "paypal.com" [1], Mozilla's auto-completion
drop-down shows only https:// URLs, but if you just hit Return it goes to
http://paypal.com/
My settings are:
- Autocomplete enabled
- Autocomplete best match as you type
- Show list of matching results
- Show internet search engine (if that matters)
- Internet keywords and domain guessing are disabled
[1] This assumes that you've never been to http://www.paypal.com/, only to its
https counterpart.
Comment 1•21 years ago
|
||
If you just hit enter we assume you didn't want any of the urls in the dropdown
(if you had, you would have hit down to the one you wanted, then enter), so we
take the string you did type and perform fixups on it.....
| Reporter | ||
Comment 2•21 years ago
|
||
ah, but you can hit enter after mozilla has auto-completed the URL for you.
(hence, the importance of "Autocomplete best match as you type" being enabled.)
if mozilla is going to show a URL that you've been to previously, it should get
the protocol right, no?
| Reporter | ||
Comment 3•21 years ago
|
||
Comment 4•20 years ago
|
||
See also bug 305186, a similar problem that happens even when "autocomplete best
match as you type" is not enabled.
Updated•20 years ago
|
OS: MacOS X → All
Hardware: Macintosh → All
| Assignee | ||
Comment 6•20 years ago
|
||
This is a hack, but "best match" is already a hack in that it doesn't use >> (like addresses in composition). It should use the actual URI from history if the user hits return immeadiately after typing. If the user hits anything other than hitting enter, the old behavior should be maintained.
Attachment #204855 -
Flags: superreview?(neil.parkwaycc.co.uk)
Attachment #204855 -
Flags: review?(neil.parkwaycc.co.uk)
Comment 7•20 years ago
|
||
Hmm... it also loses the www. prefix too... not good :-/
Comment 8•20 years ago
|
||
Eww, and ftp: prefixes too :-(
Comment 9•20 years ago
|
||
Comment on attachment 204855 [details] [diff] [review]
hack
This is quite good but I spotted an optimization - this.mDefaultMatchFilled is equivalently almost always only set by autoFillInput.
| Assignee | ||
Comment 10•20 years ago
|
||
The best part was realizing that I didn't need to turn it off all over the place
This is somewhat unoptimized in that finishAutoComplete is be forced to re-find the "default" match again even when the default match is fully in the URL textbox (since we can't tell whether the front part has been chopped off or not). But it already does that for forceComplete anyway. The previous patch actually broke forceComplete if a user tabbed away from the textbox.
Attachment #204855 -
Attachment is obsolete: true
Attachment #205375 -
Flags: superreview?(neil.parkwaycc.co.uk)
Attachment #205375 -
Flags: review?(neil.parkwaycc.co.uk)
Attachment #204855 -
Flags: superreview?(neil.parkwaycc.co.uk)
Attachment #204855 -
Flags: review?(neil.parkwaycc.co.uk)
Comment 11•20 years ago
|
||
Comment on attachment 205375 [details] [diff] [review]
less of a hack
I've wasted my morning on this, and eventually come to the decision that this is the best we can do with the flags that we've got. The edge case I came up with which might not work was the case of (!this.forceComplete && !aForceComplete && this.mNeedToComplete && this.mDefaultMatchFilled && this.autoFillAfterMatch) which might need to complete but does not even after this patch.
>+ } else if (this.mTransientValue || !(this.forceComplete ||
>+ (this.mDefaultMatchFilled && aForceComplete)) ||
> !(this.mNeedToComplete || aForceComplete)) {
I'd prefer the slightly longer but hopefully clearer
this.mTransientValue ||
!(this.forceComplete || this.mDefaultMatchFilled) ||
!(this.forceComplete || aForceComplete) ||
!(this.mNeedToComplete || aForceComplete)
Attachment #205375 -
Flags: superreview?(neil.parkwaycc.co.uk)
Attachment #205375 -
Flags: superreview+
Attachment #205375 -
Flags: review?(neil.parkwaycc.co.uk)
Attachment #205375 -
Flags: review+
| Assignee | ||
Comment 12•20 years ago
|
||
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Attachment #205557 -
Attachment description: patch for checkin → patch for checkin (checked in on trunk)
| Assignee | ||
Comment 13•19 years ago
|
||
*** Bug 122862 has been marked as a duplicate of this bug. ***
| Assignee | ||
Comment 14•19 years ago
|
||
Comment on attachment 205557 [details] [diff] [review]
patch for checkin (checked in on trunk)
this should go into SM 1.1. This has baked on the trunk for a month with no known regressions. Code is shared with mailnews/tbird but shouldn't affect the code path there.
Attachment #205557 -
Flags: approval1.8.1?
Updated•19 years ago
|
Attachment #205557 -
Flags: approval1.8.1? → branch-1.8.1?(neil)
Updated•19 years ago
|
Attachment #205557 -
Flags: branch-1.8.1?(neil) → branch-1.8.1+
| Assignee | ||
Updated•19 years ago
|
Keywords: fixed-seamonkey1.1a,
fixed1.8.1
Updated•17 years ago
|
Product: Core → SeaMonkey
You need to log in
before you can comment on or make changes to this bug.
Description
•