Closed
Bug 877623
Opened 12 years ago
Closed 12 years ago
javascript alert called from applet have focus problem
Categories
(Core Graveyard :: Plug-ins, defect)
Tracking
(firefox25 verified)
VERIFIED
WORKSFORME
Tracking | Status | |
---|---|---|
firefox25 | --- | verified |
People
(Reporter: zoffoli.luca, Unassigned)
Details
Attachments
(1 file)
5.79 KB,
application/octet-stream
|
Details |
User Agent: Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; Trident/6.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; MALC)
Steps to reproduce:
I have an applet button that call a javascript function that show an alert message.
Actual results:
I notice a strange focus problem in Firefox 21 (not in previous versions).
Alert appear only when I click Firefox icon in task bar.
I've made a very short video : https://vimeo.com/66647009
Here you can download a very simple example :
https://dl.dropboxusercontent.com/u/26132760/alert_applet_example.rar
I've put all files that I've used but you only need :
1) test.htm
2) JavaToJavaScript.jar
Expected results:
Should simply show alert message
Updated•12 years ago
|
Component: Untriaged → Plug-ins
Product: Firefox → Core
Updated•12 years ago
|
Component: Plug-ins → General
Comment 1•12 years ago
|
||
If i get this right from the video... the problem is that, when you try to show an alert from Java, it doesn't show until you refocus or hide/show the Firefox window?
Flags: needinfo?(zoffoli.luca)
(In reply to Georg Fritzsche [:gfritzsche] from comment #1)
> If i get this right from the video... the problem is that, when you try to
> show an alert from Java, it doesn't show until you refocus or hide/show the
> Firefox window?
Exactly. Call javascript function (that show an alert) by clicking an applet button.
You can download the Attachment to see a working example.
Thanks
Flags: needinfo?(zoffoli.luca)
Same behaviour here with another applet that calls javascript to show an alert. Alert is hidden and shows up when changing to another task and returning to firefox (Alt-Tab)
Comment 5•12 years ago
|
||
Same here.
The problem seems to be related with netscape.javascript.JSObject.
If the javascript protocol is used, there's no problem.
this works: http://www.rgagnon.com/examples/InJava4.html
this not: http://www.rgagnon.com/examples/InJava5.html
Comment 6•12 years ago
|
||
Is this still happening in current Firefox Nightly builds?
http://nightly.mozilla.org/
Component: General → Plug-ins
Comment 7•12 years ago
|
||
Nope.
With FF 25.0a1 (2013-08-04) the alert works as expected.
For tracking info: this bug was introduced in FF 18/19. FF 17 works fine.
Comment 8•12 years ago
|
||
Great, thanks for checking.
This makes it likely to be also caused by bug 785348, although i'm not sure which dependency is likely to have fixed this.
Status: UNCONFIRMED → RESOLVED
Closed: 12 years ago
status-firefox25:
--- → fixed
Resolution: --- → WORKSFORME
Comment 10•12 years ago
|
||
Mozilla/5.0 (Windows NT 6.1; rv:25.0) Gecko/20100101 Firefox/25.0
Build ID: 20130917123208
Verified as fixed on Firefox 25 beta 1.
Keywords: verifyme
Updated•12 years ago
|
Status: RESOLVED → VERIFIED
Updated•3 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•