Closed Bug 24533 Opened 25 years ago Closed 24 years ago

`View image' in Navigator should open in the same window

Categories

(SeaMonkey :: UI Design, defect, P3)

defect

Tracking

(Not tracked)

VERIFIED FIXED
mozilla0.9

People

(Reporter: jelwell, Assigned: doronr)

Details

Attachments

(3 files)

on build 2000012008 winNT, if I right click on an image and select View Image it should not open a new window. In N4.x View Image opens in the current window which is much friendlier. This might be a new enhancement - or it might be an overlooked bug.
Good question. This is either a [4.xP] bug, or a new specification. File>Open File also uses a new window. Eli, who would know if there is a spec for this other than [4.xP]?
QA Contact: nobody → elig
QA Assigning directly to sairuh to investigate, and assigning to German. (The only menu spec I see on mozilla.org --- http://www.mozilla.org/projects/ui/ netscape/menu_framework/ --- lacks browser-specific contextual menus. Sairuh probably knows offhand where the internal spec that isn't yet posted lives.)
Assignee: nobody → german
QA Contact: elig → sairuh
Summary: view image should not open a new window. → Should view image open in a new window?
*** Bug 22936 has been marked as a duplicate of this bug. ***
Just wondering; What does a rendering error in linux (22936) have to do with showing images in a seperate window under NT (this bug)!?
Bug 22936 was a DUP of bug 24553, not 24533, just a typo, fixed up now. Surely this bug is XP. Setting Platform/OS to All/All.
OS: Windows NT → All
Hardware: PC → All
German has stated in another bug (I've tried, but I can't find it) that when doing File > Open, the new file should open in a new window. I strongly disagree with that decision (this is a Web browser, after all), but View Image also happening in a different window would be consistent with that.
Keywords: 4xp
Who is this German guy and how might I go about offing him? :P Seriously though,I'll be hunting for that bug, because it isn't consistent within Mozilla. There are at least two ways to open a file and neither do the same thing.
it's bug 14945, and it seems to have been resolved as verified fixed. Anyways, I notice that this bug is assigned to german. :) Hello there! I like the new File Open Web Location that allows you to pick whether or not a new window should be used - Although I think it's not needed. Just opening in the same window all the time would be nice. Or at least consistent, currently the "File ... Open File" opens in a new window. Although the default for "File ... Open Web Location ... Choose File" opens in the same window... I like consistency, and I like browsing in one window. my preferences are my own - take em as you will.
Image should be opened and viewed in a new window so current content won't be distructed. So current behavior is correct. Mark as WON'TFIX.
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → INVALID
> Image should be opened and viewed in a new window so current content won't be > distructed. So current behavior is correct. Mark as WON'TFIX. Therefore, all links on Web pages should always be opened and viewed in new windows too, so that current content won't be destroyed. So who's going to report the bug about links opening in the same window?
QA Contact: sairuh → jelwell
Sorry for the spam. New QA Contact for Browser General. Thanks for your help Joseph (good luck with the new job) and welcome aboard Doron Rosenberg
QA Contact: jelwell → doronr
verify
Status: RESOLVED → VERIFIED
Reopening for reconsideration, now that the spec for `File' > `Open' has been changed to open the file in the existing window (bug 22342). I see no reason for treating View Image differently from Open File, Open Location, or following a link. They should all open in the same window by default.
Status: VERIFIED → REOPENED
Component: Browser-General → User Interface: Design Feedback
Resolution: INVALID → ---
yes. I agree, the hassle of closing the new window after inspecting or saving the image to disk is more than simply hitting Alt+<- or clicking back.
I also agree.
possible preference setting perhaps?
A preference setting would introduce non-obvious modality, and would therefore surprise and disconcert users as long as we live in the real world where people share Mozilla profiles. The annoyance of opening in a new window is exacerbated by (but by no means solely attributable to) the fact that Mozilla is very slow at opening new windows at the moment (compared with 4.x).
setting mpt@mailandnews.com as qa contact, as it should be.
QA Contact: doronr → mpt
I find the current 'open image in a new window' behaviour annoying, and none of the arguments for doing it this way seem compelling enough to break with the Nav4x implementation. This is a one-line JS change in nsContextMenu.js. Adding nsbeta3, with little expectation that this meets the criteria for checkins at this point, but maybe this will get some attention in the next point release after NS6 (and in mozilla, perhaps even earlier).
I agree with the consistency argument, actually! It should be the same as opening a file, and since that was decided to be in the same window so should open image be. this is a good fix for the NS6.5 timeframe Re-assigning to Ben for consideration...
Assignee: german → ben
Status: REOPENED → NEW
Attached patch patchSplinter Review
review, anyone?
Assignee: ben → blakeross
Hmm, nevermind. That won't work in the sidebar in editor or the addressbook.
Status: NEW → ASSIGNED
Attached patch proposed patchSplinter Review
attached new proposed patch, any comments?
--> XP Apps: GUI
Component: User Interface: Design Feedback → XP Apps: GUI Features
Keywords: helpwantedpatch, review
QA Contact: mpt → sairuh
Summary: Should view image open in a new window? → `View image' in Navigator should open in the same window
either use [w/ appropriate line wrapping] if (cond) { statement; } else { statement; } or if (cond) statement; else statement; I'd suggest: if (windowType.split(":")[0]=="navigator") // if navigator, open in current window window._content.location.href = this.imageURL; else //else open a new navigator window openNewWindowWith(this.imageURL); but using braces would be fine too. patch content looks good r=timeless. cc alecf for sr=
Assignee: blakeross → doronr
Status: ASSIGNED → NEW
Keywords: reviewapproval
This is another case where we should probably be going through the URI loader or something in order to load the URL in an appropriate window. Another option is to try to look at the target window of the Body - I believe that the target of sidebar panels is in fact the currently connected browser, no?
> Another option is to try to look at the target window of the Body Wouldn't that give the wrong result for an HTML page which had <base target="_new"/> in its code? Even for a page which specified that, `View Image' should still open in the same window.
true enough. damn.
Target Milestone: --- → mozilla0.9
0.9 moving spam
alecf: Can you sr this patch? Or does it need more work? Gerv
Nope.. I just discovered recently that the best way is to use openTopWin() from utilityOverlay.js
Attached patch trivial patchSplinter Review
I was about to ask alecf if he had found anything about URI loader and js... trivial patch (really alecf's) attached. I tested this and it works in sidebar, navigator mailnews and composer.
sr=alecf - easy enough!
anyone with cvs access want to check this in?
Sure, I will.
marking fixed, thanks to morse for checking it in.
Status: NEW → RESOLVED
Closed: 25 years ago24 years ago
Resolution: --- → FIXED
vrfy fixed: linux comm 2001.05.02.08 mac comm 2001.05.02.09 winnt moz 2001.05.02.12
Status: RESOLVED → VERIFIED
Product: Core → Mozilla Application Suite
Component: XP Apps: GUI Features → UI Design
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: