Closed Bug 196626 Opened 21 years ago Closed 16 years ago

don't replace "keyword %s" with url immediately if url is javascript:*

Categories

(Firefox :: Address Bar, enhancement)

x86
All
enhancement
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 224408
Future

People

(Reporter: jruderman, Unassigned)

References

Details

Attachments

(1 file)

%s-keywords are replaced immediately in Phoenix, which is nice for most keyword
bookmarks but bad for javascript: keyword bookmarks ("keyword bookmarklets"?)

One keyword bookmarklet I use a lot is
ja: javascript:try{alert(eval(unescape("%s")))}catch(er){alert(er)}

In Mozilla (02/24), typing "ja document.links[0]" puts up a dialog without
changing the URL, so it's easy for me to edit the address bar again to do "ja
document.links[0].innerHTML".

In Phoenix (02/01 and 03/04), the address is replaced with
javascript:try{alert(eval(unescape("document.links.length")))}catch(er){alert(er)}
before the dialog appears.  This makes it harder to do several ja's in a row.
OS: Windows XP → All
taking QA contact, sorry about the bugspam
QA Contact: asa → mconnor
The other special case for js bookmarklets is bug 184269. Not completely related
but someone looking at one might be interested in the other.
*** Bug 233859 has been marked as a duplicate of this bug. ***
Because this problem is very unpleasant for me, I have created quick patch for
the Forefox 0.8 version.
I am not Mozilla coder - this in only quick (and may be not correct solution)
but it is working for me and it is very short (changes about 4 lines :-).
If anyone want it - here it is.
Flags: blocking1.0?
-ing will take patch. 
Flags: blocking1.0? → blocking1.0-
erk. didn't see the patch. +ing to provoke review. 
Flags: blocking1.0- → blocking1.0+
p4 priority - not a blocker. if a fully reviewed patch materializes, please
nominate for aviary approval. 
Flags: blocking-aviary1.0+ → blocking-aviary1.0-
sorry for bugspam, long-overdue mass reassign of ancient QA contact bugs, filter on "beltznerLovesGoats" to get rid of this mass change
QA Contact: mconnor → bookmarks
Maybe useful, probably not harmful, so Future.
Assignee: p_ch → nobody
Component: Bookmarks → Places
Priority: P4 → --
QA Contact: bookmarks → places
Target Milestone: --- → Future
Component: Places → Location Bar and Autocomplete
QA Contact: places → location.bar
I don't think special casing things is a good idea, and this is essentially bug 224408 (but with specialization)
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: