Closed Bug 91979 Opened 23 years ago Closed 23 years ago

'Current Navigator Window' option in Open Web Location dialog is grayed out

Categories

(Core :: DOM: Editor, defect, P3)

defect

Tracking

()

VERIFIED FIXED
mozilla0.9.4

People

(Reporter: shrir, Assigned: cmanske)

Details

Attachments

(4 files)

today's branch 0723

steps:
launch composer
go to 'File|Open Web Location'
In the dialog that opens up, pull down the combobox labled "Open in"
select 'New Navigator window' and now retry selecting 'Current Navigator window'

Observe that the option is grayed out and you cannot select it anymore.
handing over to cmanske, charley -- is this us or someone else?
Assignee: beppe → cmanske
Severity: normal → minor
Priority: -- → P3
Target Milestone: --- → mozilla1.0
Is there a current navigator window?  You're in a Composer window...
I would think that, at least sometimes, this menu item *should* be disabled.
Hardware: PC → All
Kathy is right, but current code in openLocation.js disables the item all the
time. Technically not my bug, but it's clear how to fix it, so I'll take it.
Status: NEW → ASSIGNED
To verify:
1. Open Composer, close all browser windows.
2. Use Open Location dialog to open a URL into a "New Navigator window"
   ("Current Navigator window" menuitem should be disabled.)
3. Go back to composer window and use Open Location again, but "Current 
Navigator window" should be enabled - open another URL with that option.

I think Blake is the owner of this code now, so review is requested.
The only remaining problem I see is that focus is not shifted to browser 
window after the URL is loaded the second time (wheb "Current Navigator
window" was used.)
I tried this:
  setTimeout("browser.focus();", 100);
after the line:
  browser.loadURI(url);
but it didn't work
Keywords: patch, review
Whiteboard: FIXINHAND need r=, sr=
I think we need to change the string for that menu item/
To me, the "current window" is a Composer window, not a navigator window. 
 How about "Existing Navigator window"?  Other suggestions?
It already is "Current Navigator window". I think that's fine.
Noting that, one could argue that current behavior is correct -- when you are in
Composer, there is no "current navigator".
Robinf agrees with brade's suggested "Existing Navigator Window". 
That sounds good to me to avoid having to change the string only when 
launching the dialog from Composer.
Blake: This would change string for Navigator usage as well. Does this sound ok
to you?
Target Milestone: mozilla1.0 → mozilla0.9.4
I like the Composer-only fix. sr=blake
Right. Missed that.  Actually, .label should work for menuitems, but that's a
separate bug.
r=brade on the most recent patch (provided the *.properties file is also checked
in with it)
checked in.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Keywords: patch, review
Resolution: --- → FIXED
Whiteboard: FIXINHAND need r=, sr=
Verified on 8-30 build
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: