Closed Bug 535687 Opened 15 years ago Closed 15 years ago

[OOPP] NPN_InvalidateRect not being forwarded

Categories

(Core Graveyard :: Plug-ins, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: cjones, Assigned: cjones)

References

()

Details

Attachments

(1 file)

This is on Ubuntu 9.04/e10s-latest/DEBUG/Flash 10.0 r32 64-bit. I can also repro in a m-c nightly from yesterday Ubuntu 8.04/latest 32-bit flash. STR: (0) Set dom.ipc.plugins.enabled=true (1) Visit the URL above. (2) The olive in the martini glass is supposed to bounce up and down, but does not. (3) Occlude part of the frame, e.g. by Alt-Tab'ing to another window. The frame can be seen to animate as it begins to be occluded. (4) Make the entire frame visible again. The olive can be seen to be in a different position than it was before occluded. This doesn't happen for a windowed version of this applet, and doesn't happen for in-process windowless. This is not only a regression from IPP, but also a regression for OOPP as this applet used to work just fine windowless/out-of-process.
According to https://developer.mozilla.org/en/NPP_HandleEvent, the browser should be invoking NPP_HandleEvent on the plugin in response to NPN_InvalidateRect. I see Invalidate coming from the plugin, but when the plugin's visible, I *don't* see HandleEvent going back across.
for the flash on maemo, we needed to explicitly send a activate event to flash: http://mxr.mozilla.org/mozilla-central/source/layout/generic/nsObjectFrame.cpp#5603 I am not claiming that this is the same problem in the version of flash you are using, but it might be worth a try? If this does work, be sure not to call UpdateVisibility() on maemo other than where it is now (We want the plugin to initially be not shown, and only when SetAbsoluteScreenPosition is called switch the visibility).
Oops! http://hg.mozilla.org/projects/electrolysis/rev/d5d054a09eb7 is the culprit. It'd be nice if we had a (ref?)test for this, but I don't know how to write it. bent seems to be afk so I'll into the fix for this.
Keywords: testcase-wanted
Assignee: nobody → jones.chris.g
Attachment #418319 - Flags: review?(bent.mozilla)
Summary: [OOPP] Windowless flash doesn't animate when visible, but animates when invisible → [OOPP] NPN_InvalidateRect not being forwarded
Blocks: OOPP, 531142
Comment on attachment 418319 [details] [diff] [review] fix InvalidateRect regression, simplify windows special-case code Looks fine to me.
Attachment #418319 - Flags: review?(bent.mozilla) → review+
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: