Closed Bug 315225 Opened 19 years ago Closed 6 years ago

can't launch popups from feed articles

Categories

(MailNews Core :: Feed Reader, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: thunderbird-bugs, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7
Build Identifier: http://download.mozilla.org/?product=thunderbird-1.5rc1&os=win&lang=en-US

If you are subscribed to an NPR rss feed like <http://www.npr.org/rss/rss.php?id=7> you will see a "listen" button.  If you hover the cursor over the button you see "javascript:getMedia('WESAT','05-NOV-2005','1','RM,WM');" in the grey area at the very bottom of the Thunderbird window (I'm sure this area has a name, I just don't know what it is).  If you click on it, nothing happens.  No dialog box, no errors in the JavaScript console, nothing.

Reproducible: Always

Steps to Reproduce:
1. Subscribe to <http://www.npr.org/rss/rss.php?id=7>
2. View an article
3. Click on the "Listen" button

Actual Results:  
Nothing.  I describe this in the Details section.

Expected Results:  
It should play the audio clip or ask me what software to use to open the file. 

This has been the case in every version of Thunderbird I have used.
Are you sure you have JavaScript enabled?
Under Tools->Options->General Tab the Block JavaScript in mail messages unchecked.

Here are the options out of the config that I think might be relevant.

javascript.allow.mailnews                     user set  boolean  true
javascript.enabled                            default   boolean  true
javascript.options.showInConsole              default   boolean  true
javascript.options.strict                     default   boolean  false
network.protocol-handler.external.javascript  default   boolean  false

I tried changing the network.protocol-handler.external.javascript to true.  That popped up a dialog box titled "External Protocol Request"

-------------------------------------------------------------------------------
An external application must be launched to handle javascript: links.  Requested Link:

javascript:getMedia();
Application: javascript

If you were not expecting this request it may be an attempt to explot a weakness in that other program.  Cancel this request unless you are sure it is not malicious.
-------------------------------------------------------------------------------

There's a checkbox [ ] Remember my choice for all links of this type.

There are two buttons "Launch Application" and "Cancel".

When I click the "Launch Application" button a window pops up and disappears too quickly for me to read anything on it.

So now it doesn't fail silently, but it still fails.
Summary: javascript:getMedia silently fails in RSS feeds → javascript:getMedia fails in RSS feeds
Correction:  The dialog box titled "External Protocol Request" actually looks like this:

-------------------------------------------------------------------------------
An external application must be launched to handle javascript: links. 
Requested Link:

javascript:getMedia('WESAT','05-NOV-2005','1','RM,WM');
Application: javascript

If you were not expecting this request it may be an attempt to explot a
weakness in that other program.  Cancel this request unless you are sure it is
not malicious.
-------------------------------------------------------------------------------

I had neglected to fill in between the parenthesis on the javascript:getMedia call.
Seems that JavaScript would create a popup window, thats why it won't launch. Not sure what i'd expect in thunderbird, it's not a browser after all...
Summary: javascript:getMedia fails in RSS feeds → can't launch popups from feed articles
Is this still a problem in Thunderbird 2.x?
Whiteboard: closeme 2008-08-28
Pretty sure it does.
Assignee: mscott → nobody
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Windows XP → All
Hardware: PC → All
Whiteboard: closeme 2008-08-28
Component: RSS → Feed Reader
Product: Thunderbird → MailNews Core
If js is enabled for feed web pages, it should work. It may have not worked due to cookies disabled. In any event, it works now for that site, which was changed to play inline.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.