Closed
Bug 535687
Opened 15 years ago
Closed 15 years ago
[OOPP] NPN_InvalidateRect not being forwarded
Categories
(Core Graveyard :: Plug-ins, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: cjones, Assigned: cjones)
References
()
Details
Attachments
(1 file)
2.76 KB,
patch
|
bent.mozilla
:
review+
|
Details | Diff | Splinter Review |
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.
Assignee | ||
Comment 1•15 years ago
|
||
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.
Comment 2•15 years ago
|
||
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).
Assignee | ||
Comment 3•15 years ago
|
||
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 | ||
Comment 4•15 years ago
|
||
Assignee: nobody → jones.chris.g
Attachment #418319 -
Flags: review?(bent.mozilla)
Assignee | ||
Updated•15 years ago
|
Summary: [OOPP] Windowless flash doesn't animate when visible, but animates when invisible → [OOPP] NPN_InvalidateRect not being forwarded
Updated•15 years ago
|
Comment 5•15 years ago
|
||
Added a mochitest:
http://hg.mozilla.org/mozilla-central/rev/b0e993f4f07e
http://hg.mozilla.org/releases/mozilla-1.9.2/rev/7f85397aa446
Flags: in-testsuite+
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+
Assignee | ||
Comment 7•15 years ago
|
||
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Assignee | ||
Updated•15 years ago
|
Keywords: testcase-wanted
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
•