Closed Bug 355657 Opened 18 years ago Closed 18 years ago

window.open()ed links fail in a new tab, same window

Categories

(SeaMonkey :: UI Design, defect)

defect
Not set
major

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: stephend, Assigned: csthomas)

References

Details

(Keywords: regression)

Attachments

(1 file, 2 obsolete files)

Summary: window.open()ed links fail in a new tab, same window

Build: The morning trunk build from the 4th of October works, but 2006-10-05-08 fails.

Steps to Reproduce:

1. Have links set up to open in a new tab in the same window
2. Load http://squeedlyspooch.com/blog/free-toshok.html
3. Click on any of the image links, which do window.open()
4. Close the newly opened window
5. Click on another link

Expected Results:
New tab opens from that window.open() call

Actual Results:
The pointer does the busy cursor for a little bit, then goes back to being a pointer, but the new tab doesn't load

WORKAROUND: Switching between tabs and then coming back seems to help
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20061005 Minefield/3.0a1
WFM with default settings + browser.link.open_newwindow.restriction to 0
Stephend: could you explain why you put this on the dependency list of bug 349465? That patch didn't change anything for regular web pages.
(In reply to comment #2)
> Stephend: could you explain why you put this on the dependency list of bug
> 349465? That patch didn't change anything for regular web pages.

Sure, smaug asked me to. 

(In reply to comment #3)
> Sure, smaug asked me to. 
> 
I asked to do that if bug 349465 actually caused this ;)
(I thought you tested it.)

(In reply to comment #4)
> (In reply to comment #3)
> > Sure, smaug asked me to. 
> > 
> I asked to do that if bug 349465 actually caused this ;)
> (I thought you tested it.)

All I can confirm is the regression time frame; I'm happy not to have this on a dependency list, I thought you were more sure of this than I am/was.  Feel free to remove it. 

I cannot reproduce this using 2006-10-06-03-mozilla1.8 win32.
No longer blocks: 349465
OK, this regressed between 2006-09-29-01 and 2006-09-30-01.  Looks like bug 350416 to me.
Assignee: general → guifeatures
Blocks: 349465
Component: DOM: Core → XP Apps: GUI Features
Product: Core → Mozilla Application Suite
QA Contact: ian
So the basic problem is that this is a named window.  The patch in bug 350416 leaves it invisible, but still findable in the docshell tree, looks like, so the new loads go into the invisible window.
Assignee: guifeatures → cst
Blocks: 350416
No longer blocks: 349465
Flags: blocking-seamonkey1.1b?
Keywords: regression
OS: Windows XP → All
Hardware: PC → All
So the point is you probably want to change the browser type or something.  Not sure what.  The idea is that you do NOT want the content tree owner finding that browser.
(In reply to comment #9)
> So the point is you probably want to change the browser type or something.  Not
> sure what.  The idea is that you do NOT want the content tree owner finding
> that browser.
> 

content-targetable? content-primary? just unset it?
No, neither of those will work.  If you want to do the type thing you need a new type and hacking in the nsContentTreeOwner.

biesi suggested maybe resetting the name to "" and then back.  You might be able to do that... for now.
Attached patch untested patch (obsolete) — Splinter Review
Can't test this.  tabbrowser.xml changes don't get picked up in my build.
Attachment #241578 - Flags: superreview?(neil)
Attachment #241578 - Flags: review?(neil)
bz, at this point it doesn't look like undo close tab is going on branch.
Flags: blocking-seamonkey1.1b? → blocking-seamonkey1.1b-
(In reply to comment #11)
>(In reply to comment #10)
>>content-targetable? content-primary? just unset it?
>No, neither of those will work.
On the other hand plain type="content" seems to work fine.
Attached patch tested patch (obsolete) — Splinter Review
Neil seemed to think this might be a better way to do it.  This works, and does reasonable things even after undoing the close.
Attachment #241578 - Attachment is obsolete: true
Attachment #241641 - Flags: superreview?(neil)
Attachment #241641 - Flags: review?(neil)
Attachment #241578 - Flags: superreview?(neil)
Attachment #241578 - Flags: review?(neil)
Comment on attachment 241641 [details] [diff] [review]
tested patch

As per IRC comments.
Attachment #241641 - Flags: superreview?(neil)
Attachment #241641 - Flags: superreview-
Attachment #241641 - Flags: review?(neil)
Attachment #241641 - Flags: review+
Attachment #241641 - Attachment is obsolete: true
Attachment #242120 - Flags: superreview?(neil)
Comment on attachment 242120 [details] [diff] [review]
address review comments

I'd prefer if the lines didn't move.
Attachment #242120 - Flags: superreview?(neil) → superreview+
Landed with the new lines where the old lines were.
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Verified FIXED for me using build 2006-10-14-13 of SeaMonkey trunk under Windows XP.
Status: RESOLVED → VERIFIED
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

Created:
Updated:
Size: