Closed Bug 1271121 Opened 8 years ago Closed 5 years ago

Firefox should not autocomplete URL's pasted in the location bar

Categories

(Firefox :: Address Bar, defect, P3)

45 Branch
x86_64
Linux
defect

Tracking

()

RESOLVED DUPLICATE of bug 776408

People

(Reporter: vincent-moz, Unassigned)

References

Details

(Whiteboard: [fxsearch])

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0
Build ID: 20160426232238

Steps to reproduce:

1. New Tab (Ctrl-T).
2. Paste the URL https://issues.apache.org/jira/browse/SVN in the location bar, either with middle click (specific to Linux) or Ctrl-V.


Actual results:

Firefox proposes to complete the URL to https://issues.apache.org/jira/browse/SVN-4585, which is automatically selected if I type [Enter].


Expected results:

Firefox should not propose to complete the URL, so that it is possible to open the URL with a paste then [Enter]. Autocompletion makes sense when typing, not much when pasting.
Change the browser.urlbar.autoFill.typed to true in about:config if it is not


https://dxr.mozilla.org/mozilla-central/source/toolkit/components/places/nsPlacesAutoComplete.js#84
// Whether to search only typed entries.
const kBrowserUrlbarAutofillTypedPref = "autoFill.typed";
Component: Untriaged → Location Bar
Flags: needinfo?(vincent-moz)
OS: Unspecified → Linux
Hardware: Unspecified → x86_64
It is already set to true. If I toggle it to false, I get the same behavior, and if I toggle it to true again, I still get the same behavior.
Flags: needinfo?(vincent-moz)
Also note that this problem is reproducible in safe mode (firefox -safe-mode).
This is also reproducible with a fresh profile:

1. firefox -no-remote -safe-mode -ProfileManager
2. Create a new profile.
3. Open https://issues.apache.org/jira/browse/SVN-525
4. New Tab.
5. Paste https://issues.apache.org/jira/browse/SVN
Makes sense, it's possible ends up being a dupe if this is already tracked.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Priority: -- → P3
Whiteboard: [fxsearch]
I've quickly looked at bugs blocking bug 1071461, and found the very similar bug 776408. However this bug mentions a paste delay, which would IMHO be a very bad idea (bug 776408 comment 8 agrees). I think that
1. Bug 776408 should be retitled so that the paste delay is no longer mentioned (and with more information so that it can more easily be found with a search).
2. This bug should be marked as a duplicate of bug 776408.
Blocks: 1071461
I am getting this to, on MacOS, latest production Firefox.
It's pretty annoying.

What makes it worse is there may be an autocomplete entry for the verbatim URL pasted - so even if someone would argue that it's nice to autocomplete pastes, at the very it should respect exact matches.

Imagine if the autocomplete URL does something. Yes, GET requests shouldn't do something, but in the real world they may, so accidentally going to the wrong URL could result in something nasty.
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.