Closed Bug 64129 Opened 24 years ago Closed 24 years ago

If file already open in Composer, browser's Open location in new composer window does not find it

Categories

(Core :: DOM: Editor, defect)

All
Mac System 8.5
defect
Not set
normal

Tracking

()

VERIFIED FIXED
mozilla0.8

People

(Reporter: sfraser_bugs, Assigned: cmanske)

Details

Attachments

(1 file)

Normally in Composer, opening a file which is already open for editing just 
brings the relevant window to the front, to avoid opening the file twice.

However, this does not work if, when the file is already open in Composer, you 
use the 'Open location dialog' in the browser window (and pick open in new 
composer window). We need to go through the logic to look for an open window with 
that file in this case also.
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla0.8
sr=sfraser
All non-editor windows that want to create an editor with a particular url should
now use "editPage()" method in utilityOverlay.js. It will search for
Opening an editor via File | Edit Page, File | Open Location, and "Edit Link" on
the context menu now use editPage().
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Reopening, this broke Edit Page and Edit Link in Composer in navigator.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
JavaScript error:
chrome://communicator/content/utilityOverlay.js line 441: launchWindow has no pr
operties

Maybe you need to update the calls from nsContextMenu.js and 
navigatorOverlay.xul?  Although you have that launchWindow check.
This seems to be an unrelated problem in
nsEditorShell.cpp::CheckOpenWindowForURLMatch(), which changed recently.
It's chocking when one of the editors hasn't saved to file yet.
Sorry, I realize my testing always used existing files, given the nature of the
bug, that made sense!
It makes better sense to open a new bug for this.

Status: REOPENED → RESOLVED
Closed: 24 years ago24 years ago
Resolution: --- → FIXED
Note that problem found here is now bug 65610
Hmm...really? I can't imagine this not being a problem with the fix, given the 
launchWindow JS error...
verified in 1/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: