Closed Bug 279582 Opened 20 years ago Closed 7 years ago

can't get mouse events and repaint if more iframes (zorder) with embedded java applets

Categories

(Core :: Web Painting, defect)

1.7 Branch
x86
All
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: igor.zore, Unassigned)

References

()

Details

(Keywords: testcase)

User-Agent:       Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.7) Gecko/20040707 Firefox/0.9.2
Build Identifier: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.7) Gecko/20040707 Firefox/0.9.2

If you simulate embedded windows with iframes and the content of the document
body is java applet, you can not get proper repaint and you can not get mouse
events. The iframe which is under is visible in java applet, but without content
(just background). The same is on Linux and Windows OS. When you put flash
(swf), the same is going on (unpredictable result). I tryed to avoid it with
moving dom nodes (different order in DOM), but no success

Reproducible: Always

Steps to Reproduce:
1.goto http://www.geabios.com/ and from Tools menu run Unit Converter and then
Map Projections
2. Move window one over the other and try to change z-order
3. Add another window (from Tools) Thesaurus of Geographic Names (pure HTML).

Actual Results:  
The content is unpredictable

Expected Results:  
Proper z-order repaint and mouse event handling
OS: Windows NT → All
Component: General → Layout
Product: Firefox → Core
Version: unspecified → 1.0 Branch
Are your java applets windowless plugins?  If not, they will interact poorly
with z-ordering, since they'll not be painting through the browser but painting
themselves directly..
Version: 1.0 Branch → 1.7 Branch
(In reply to comment #1)
Windowless or not it depends on implementation of the plugin (Applet is a 
panel!). But if the applet gets repaint from browser, but in wrong order, it 
seems that nothing is wrong with applets, but with zorder (java 1.1 applets - 
even in Netscape 4.7 was everything ok, IE with MS1.1 or Sun 1.3+ works OK, 
Opera has problem too). The problem is iframe and embedded applet in document 
that is in iframe, when part of other iframe covers the part of (or all) applet 
in another iframe. HTML stuff works OK (proper zorder and events).
(In reply to comment #2)
If applet is embedded in document in browser window and you add absolute 
positioned iframe (with applet or just pure html) - part or the whole iframe 
covers the applet, everything works ok (events and repaint)
(In reply to comment #1)
Here is the sample (2 HTML and I took Sun's sample - see code
Start with first one:
-----------------------------------------------
<html>
<head>
<style>
.body {background: white}
.iframe1
{border:0px;background:red;position:absolute;width:200px;height:200;top:100;left:100;z-index:1}
.iframe2
{border:0px;background:blue;position:absolute;width:200px;height:200;top:150;left:150;z-index:2}
</style>
<script>
var zPlane = 0;
  function changeZplane( ifrm ) {
    ifrm.style.zIndex = ++zPlane;
  }
</script>
</head>
<body>
<iframe id="ifrm1" src="applet.htm" class="iframe1"
onMouseOver="changeZplane(document.getElementById('ifrm1'))" name="ifrm1"
scrolling="no"></iframe>
<iframe id="ifrm2" src="applet.htm" class="iframe2"
onMouseOver="changeZplane(document.getElementById('ifrm2'))" name="ifrm2"
scrolling="no"></iframe>
</body>
</html>
--------------------------------------------------------------
<html>
<head>
<style>
.body {background: white;}
</style>
</head>
<body>
<applet codebase="http://java.sun.com/openstudio/applets/classes"
code="JavaClock.class" width="150" height="150">
<param  name="delay"   value="100">
<param  name="link"    value="/openstudio/applets/clock.html">
<param  name="border"  value="5">
<param  name="nradius" value="80">
<param  name="cfont"   value="TimesRoman|BOLD|18">
<param  name="bgcolor" value="ddddff">
<param  name="shcolor" value="ff0000">
<param  name="mhcolor" value="00ff00">
<param  name="hhcolor" value="0000ff">
<param  name="ccolor"  value="dddddd">
<param  name="ncolor"  value="000000">
</applet>
<br/><a href="http://java.sun.com/openstudio/index.html" target="_top">Link</a>
</body>
</html>
Could you please check with a nightly build from 2005-01-28 or later?  The fix
for bug 261238 may well have affected this.
(In reply to comment #5)
I took last nightly build 4 windows, the problem remains.
Here is the link to testcase http://www.academa.si/zff/zorder.htm
I put the original code before.
Assignee: firefox → roc
Component: Layout → Layout: View Rendering
QA Contact: general → ian
Severity: normal → blocker
Given that bug 261238 seems to not be fixed on windows yet, not entirely
unexpected.... :(
Depends on: 261238
For some reason the fix for 261238 doesn't seem to have fixed this even on GTK2.
(In reply to comment #7,#8)
I don't understand "Why the bug is unconfirmed, still?"

does not block development
Severity: blocker → critical
This is an automated message, with ID "auto-resolve01".

This bug has had no comments for a long time. Statistically, we have found that
bug reports that have not been confirmed by a second user after three months are
highly unlikely to be the source of a fix to the code.

While your input is very important to us, our resources are limited and so we
are asking for your help in focussing our efforts. If you can still reproduce
this problem in the latest version of the product (see below for how to obtain a
copy) or, for feature requests, if it's not present in the latest version and
you still believe we should implement it, please visit the URL of this bug
(given at the top of this mail) and add a comment to that effect, giving more
reproduction information if you have it.

If it is not a problem any longer, you need take no action. If this bug is not
changed in any way in the next two weeks, it will be automatically resolved.
Thank you for your help in this matter.

The latest beta releases can be obtained from:
Firefox:     http://www.mozilla.org/projects/firefox/
Thunderbird: http://www.mozilla.org/products/thunderbird/releases/1.5beta1.html
Seamonkey:   http://www.mozilla.org/projects/seamonkey/
Updating url. With the testcase it is easier to see the bug.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: testcase
Flags: blocking1.9a1?
Flags: blocking1.9a1? → blocking1.9-
QA Contact: ian → layout.view-rendering
Severity: critical → normal
The HTML <applet> element and related java functionality was removed from Gecko in Bug 1279218. Marking related bugs as invalid.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → INVALID
Component: Layout: View Rendering → Layout: Web Painting
You need to log in before you can comment on or make changes to this bug.