Closed Bug 427813 Opened 17 years ago Closed 4 years ago

percent sized plugin problems

Categories

(Firefox :: General, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: toshok, Unassigned)

Details

http://ptstuido.512j.com/obj/Default.html uses a percent-sized plugin (100% x 100%), which currently shows nothing using moonlight.

the moonlight plugin's SetWindow method is never called due to logic from an ancient (2001) bug report in ns4xPluginPeer.cpp (around line 1153) which keeps SetWindow from being called when the plugin is windowed (and !java, for some corner case reason) and either width and height are <= 0.

Causing the plugin to be windowless gets us into moonlight's SetWindow method, but with incorrect args.  Width is correctly computed and non-zero, but height is still zero.  SetWindow is not called again with the properly computed height.

The structure of the page is as follows:

<body>
  <div id="container" style="width: 100%; height: 100%" ... >
    <object ... width="100%" height="100%">
  </div>
</body>

If I make a local copy and add "position:absolute;" to the container div's style, the plugin is properly sized (in both windowed or windowless modes).

We're in the process of removing support for plugins (bug 1677160) and bug 1687239 has removed the relevant Layout code, so I think this bug is irrelevant now. Please file a new bug if it's still a problem for non-plugin <object>.

Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.