Flash object inside sdk/Panel content is created as a child the browser window

RESOLVED INCOMPLETE

Status

defect
P2
normal
RESOLVED INCOMPLETE
6 years ago
2 years ago

People

(Reporter: sankiromero, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

409 bytes, application/x-javascript
Details
Reporter

Description

6 years ago
Posted file main.js
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:26.0) Gecko/20100101 Firefox/26.0 (Beta/Release)
Build ID: 20131205075310

Steps to reproduce:

1. Run attached main.js in Add-on Builder

2. It tries to show YouTube video in panel


Actual results:

YouTube video does not play. Not only flash videos but any flash element does not work.


Expected results:

Flash video must play.
I'd guess this has something to do with click-to-play?
Priority: -- → P2
i can confirm this bug, and that it's *not* related to click-to-play, nor hardware acceleration, and that it manifests in both pre-australis and australis branches, and both on osx and windows.

also, youtube player makes it a bit harder to understand what is happening. use this url instead for the panel contentURL to get a better feeling:

http://www.smartwebby.com/Flash/flash_animations.asp

it looks like a platform bug, because the plugin window seems to be attached to (a child of) the parent browser window, and not the panel window (try resizing the browser window to be smaller than the panel).
Status: UNCONFIRMED → NEW
Ever confirmed: true
this should probably be escalated to the platform team, but i don't know who to ping.

Wes, can you please find the right person?
Flags: needinfo?(kwierso)
Summary: Flash in Addon Builder Panel has bugs → Flash object inside sdk/Panel content is created as a child the browser window
Dave, Gabor, do either of you know who to talk to about this? 

Is this at all related to bug 768651? (Doubt it since Builder probably doesn't use cfx)
Flags: needinfo?(kwierso)
Flags: needinfo?(gkrizsanits)
Flags: needinfo?(dtownsend+bugmail)
Probably I should take a look at this, but right now I'm quite flooded... The person who knows the most about all this is probably Benjamin Smedberg but I expect him to be even more flooded. Anyway let's see if he has any thoughts/ideas about what might be going here, Comment 2 is a great description I think to start from. I'm kind of afraid that the problem is that plugins need/expect a browser window, and since the panel is not a browser window, it tries to go up on the chain and finds the window the panel is attached to and uses that one. And then ofc not getting the right events from the browser window since it's not focused but the panel is. Or, panel is using the browser window to create the plugin instance, and that's why does it belong to that window.
Flags: needinfo?(gkrizsanits)
Flags: needinfo?(dtownsend+bugmail)
Flags: needinfo?(dtownsend+bugmail)
Flags: needinfo?(benjamin)

Comment 6

5 years ago
Is this windowed or windowless Flash? If you don't know, try adding wmode="opaque" to your <object> to see whether that fixes the problem.

Widget parenting for windowed-mode plugins is fragile in general.
Flags: needinfo?(benjamin)
Waiting to see if that solves the problem
Flags: needinfo?(dtownsend+bugmail) → needinfo?(sankiromero)
Reporter

Comment 8

5 years ago
Dave sorry but I do not have control over YouTube videos so I can not change wmode. If you have suggestion let me know. Also would not it be better Firefox detect and switch accordingly to wmode="opaque" when needed in Panels?
Flags: needinfo?(sankiromero)
Reporter

Comment 9

5 years ago
Any progress on this please? It is really critical for my projects.

@Benjamin, I tested all possible wmode values, none helped.
http://helpx.adobe.com/flash/kb/flash-object-embed-tag-attributes.html#main_Browser_support_for_Window_Mode__wmode__values

It can be also tested by simply changing wmode URL parameter:
http://www.youtube.com/embed/0Z9rP7CBs_Y?wmode=opaque
http://www.youtube.com/embed/0Z9rP7CBs_Y?wmode=transparent
http://www.youtube.com/embed/0Z9rP7CBs_Y?wmode=direct
http://www.youtube.com/embed/0Z9rP7CBs_Y?wmode=window
http://www.youtube.com/embed/0Z9rP7CBs_Y?wmode=gpu

I think something preventing clicks to enter Flash area in Panels.
There is no progress on this problem, nobody is assigned to look at it, and as far as I know it's not a high priority.
Firefox Team C'om ...
https://bugzilla.mozilla.org/show_bug.cgi?id=1399562
Status: NEW → RESOLVED
Last Resolved: 2 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.