Closed Bug 87969 Opened 23 years ago Closed 19 years ago

pasting in URL to document window should add URL to urlbar history

Categories

(Core Graveyard :: History: Global, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Future

People

(Reporter: jmd, Assigned: wolfiR)

Details

Attachments

(4 files, 4 obsolete files)

A very handy Nav feature on UNIX, middleclicking to paste a URL into the
document part of the window, but this should add the URL to the location bar
history, since the middle click is really just a short cut for going to the
location bar, clearing it, and then pasting.

In netscape 4 I *OFTEN* found myself trying to find a site in the location bar
history, only to remember that I had used the middle-click method to access it,
and I had to dig through 1000s of pages in the generic History to find it again.
a good idea... eventually we'll be merging global and urlbar history, and
flagging certain global history entries as "entered on the url bar"
Status: NEW → ASSIGNED
Summary: pasting in URL to document window should add URL to location dropdown → pasting in URL to document window should add URL to urlbar history
Target Milestone: --- → Future
reassigning history bugs to new owner - send this bug back to me if it looks
like something I should fix (such as embedding-related architecture issues),
rather than the actual history owner...
Assignee: alecf → blakeross
Status: ASSIGNED → NEW
Target Milestone: Future → ---
3-month ping.

Did they get merged yet? Still keep losing stuff I pasted in... annoying.
Target Milestone: --- → mozilla1.2
Status: NEW → ASSIGNED
Target Milestone: mozilla1.2 → Future
Attached patch patch (untested)Splinter Review
Patch doesn't seem to do anything. No JS error, no history entry.
Attached patch FF patch (obsolete) — Splinter Review
Assignee: firefox → mozilla
Status: ASSIGNED → NEW
Attachment #187770 - Attachment is obsolete: true
Attachment #187919 - Flags: review?(mconnor)
Comment on attachment 187919 [details] [diff] [review]
improved FF patch

>+# vim:set ts=2 sw=2 sts=2 et:

we don't add vim modelines, its evil or something

>-function addToUrlbarHistory()
>+function addToUrlbarHistory( aUrlToAdd )

drop the spaces around the arg, please.

>+  try {
>+    addToUrlbarHistory(url);
>+  } catch (ex) {
>+    // Things may go wrong when adding url to session history,
>+    // but don't let that interfere with the loading of the url.
>+  }
>+

the try/catch bits in addToUrlbarHistory() should already catch the likely
failures, but the other caller wraps the call too.  Seems like overkill, but
I'm not going to worry about it at this point.
Attachment #187919 - Flags: review?(mconnor) → review+
Attachment #187920 - Flags: approval-aviary1.1a2?
Attached patch seamonkey patch (obsolete) — Splinter Review
Attached patch seamonkey patch #2 (obsolete) — Splinter Review
urlbar history handling is rather different from FF.
Attachment #187921 - Attachment is obsolete: true
Comment on attachment 187923 [details] [diff] [review]
seamonkey patch #2

Unfortunately you can't make contentAreaClick.js depend on sessionHistoryUI.js
because it's used by components other than navigator.
Attached patch seamonkey #3 (obsolete) — Splinter Review
then I think this is the only possible way?
Attachment #187923 - Attachment is obsolete: true
Attachment #188099 - Flags: review?(neil.parkwaycc.co.uk)
Comment on attachment 188099 [details] [diff] [review]
seamonkey #3

OK, but you should remove the sessionHistoryUI.js version and fix up its
callers. Also you should add the url before the call to getShortcutOrURI
because that's the way the other callers do it.
Attachment #188099 - Flags: review?(neil.parkwaycc.co.uk) → review-
Attached patch seamonkey #4Splinter Review
this patch moves the addToUrlbarHistory() function to
communicator/contentAreaClick.js and use the URL as argument.
Attachment #188099 - Attachment is obsolete: true
Attachment #188218 - Flags: review?(neil.parkwaycc.co.uk)
Attachment #187920 - Flags: approval-aviary1.1a2? → approval-aviary1.1a2+
Attachment #188218 - Flags: review?(neil.parkwaycc.co.uk) → review+
Comment on attachment 188218 [details] [diff] [review]
seamonkey #4

not really sure if sr is needed but Neil is an sr for the case.
This patch is seamonkey only stuff.
Attachment #188218 - Flags: approval1.8b3?
Attachment #188218 - Flags: approval1.8b3? → approval1.8b4+
Checking in browser/resources/content/navigator.js;
/cvsroot/mozilla/xpfe/browser/resources/content/navigator.js,v  <--  navigator.js
new revision: 1.573; previous revision: 1.572
done
Checking in browser/resources/content/navigator.xul;
/cvsroot/mozilla/xpfe/browser/resources/content/navigator.xul,v  <--  navigator.xul
new revision: 1.431; previous revision: 1.430
done
Checking in browser/resources/content/sessionHistoryUI.js;
/cvsroot/mozilla/xpfe/browser/resources/content/sessionHistoryUI.js,v  <-- 
sessionHistoryUI.js
new revision: 1.54; previous revision: 1.53
done
Checking in communicator/resources/content/contentAreaClick.js;
/cvsroot/mozilla/xpfe/communicator/resources/content/contentAreaClick.js,v  <--
 contentAreaClick.js
new revision: 1.48; previous revision: 1.47
done
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: