Closed Bug 123186 Opened 23 years ago Closed 21 years ago

yahoo.com - page is blank if pop-ups blocked

Categories

(Tech Evangelism Graveyard :: English US, defect)

x86
Windows 98
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: jruderman, Unassigned)

References

(Blocks 1 open bug, )

Details

If you have pop-ups or window.focus() or both disabled, broadcast.yahoo.com appears blank. Here is the offending code, in an otherwise blank page: thiswin = window.open(Yahoo! Broadcast Media Helper); // makes sure you have all 3 media players (!) thiswin.focus(); window.location="http://broadcast.yahoo.com/home.html"; // page with content What Yahoo should do: 1. Short-term: * In the section of home.html that describes the Media Helper, provide a link that opens the helper instead of just saying "it appeared the first time you visited this site". Since this will be a link, it won't be subject to pop-up blocking. * Add some text to the front page so it isn't blank. * Remove the call to thiswin.focus(), which afaik doesn't do anything except cause problems for Mozilla users who have disabled the window.open (thiswin is null) or window.focus (the call throws an exception). 2. Long-term: * Make the Media Helper use the same browser window that I use to visit the site. * Don't require me to have three media players.
If thiswin.focus() can't be removed, it can be wrapped in if(thiswin) to prevent it from throwing an exception when thiswin is null.
Summary: broadcast.yahoo.com - blank with pop-ups blocked → yahoo.com - blank with pop-ups blocked
Keywords: evang500
reassigning to me. I will point them to this bug to see your feedback.
Assignee: aruner → susiew
revised summary
Summary: yahoo.com - blank with pop-ups blocked → yahoo.com - page is blank if pop-ups blocked
Is the problem that focus() throws an exception when blocked by the security manager? If so, that's bug 122866.
No, the problem Yahoo runs into is that foo.focus() throws an exception when foo is null. I think that's Yahoo's bug, not ours.
Blocks: 121228
Blocks: popups
tech evang june 2003 reorg
Assignee: susiew → english-us
Component: US Ecommerce → English US
QA Contact: bc → english-us
WFM Win2K Mozilla 1.3 Final It works when I block pop-ups, it works when I disallow window.focus(), it even works when I completely shut off JavaScript. Go Yahoo! -M
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → WORKSFORME
Product: Tech Evangelism → Tech Evangelism Graveyard
You need to log in before you can comment on or make changes to this bug.