Closed Bug 1348629 Opened 7 years ago Closed 7 years ago

Zero sized Flash content does not load on 64 bit Firefox

Categories

(Core Graveyard :: Plug-ins, defect, P1)

x86_64
Windows 10
defect

Tracking

(firefox52 wontfix, firefox53 wontfix, firefox54 affected, firefox55 affected)

RESOLVED WORKSFORME
Tracking Status
firefox52 --- wontfix
firefox53 --- wontfix
firefox54 --- affected
firefox55 --- affected

People

(Reporter: alice0775, Assigned: jimm)

References

()

Details

(Keywords: 64bit)

Attachments

(3 files)

Affected : 64bit Firefox
Not affected : 32bit Firefox


Steps to reproduce:
1. Open https://fauux.neocities.org/Love.html
Keywords: 64bit
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:55.0) Gecko/20100101 Firefox/55.0
Flash Version: 25.0.0.127

I don't hear any sound when I open your linked page but there is no problem with other sites (e.g.: http://musicofnature.org/songsofinsects/flashtest/index.html). There was no issue in IE.

The affected flash file is located under https://fauux.neocities.org/BONPONT.swf and seems not to load properly.

Disabling e10s does not change anything.
Summary: Flash plugin audio does not play on 64 bit Firefox → Flash content does not load on 64 bit Firefox
Setting css |object,embed {height:1px; width:1px}| to the URL page fixes the problem.

So, On 64bit Firefo, zero sized Flash plugin fails to load.
Summary: Flash content does not load on 64 bit Firefox → Zero sized Flash content does not load on 64 bit Firefox
We've had issues with this before, but I can't find the bug. IIRC it was that we know we don't need to paint 0-size plugins, so we never send a NPP_SetWindow, and that causes Flash not to do some set of initialization. IIRC we have an "artificial" NPP_SetWindow call somewhere.

Stefan or alice, it's worth figuring out whether this also affects win32, whether sandboxing affects this, or whether async drawing affects this.

NI?cpeterson for tracking win64 and/or async drawing.
Flags: needinfo?(stefan.georgiev)
Flags: needinfo?(cpeterson)
Jim, this bug sounds like the cause of youngjump.jp bug 1323403 or Kongregate bug 1314491. We had attributed the youngjump.jp bug to a syntax error in the site's CSS, but fixing this bug would probably fix that site.

P1 because loading 0-sized Flash is important for sites that still use Flash for playing audio or accessing the clipboard.
Flags: needinfo?(cpeterson) → needinfo?(jmathies)
Priority: -- → P1
Flags: needinfo?(stefan.georgiev)
Flags: needinfo?(jmathies)
No longer blocks: 1314491, 1323403
tracy, could you please test the test case here to try to reproduce, and also check to see if this work around solves the issues with bug 1314491 and bug 1323403.
Flags: needinfo?(twalker)
also, please test for 32-bit vs. 64-bit differences.
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0

I was able to reproduce the issue on Latest Nightly build and Firefox Developer Edition at the initial link from Alice. 
However flipping the prefs for e10s or asyncdrawing does not make any difference. 

I did not encounter the issue on any 32 bits distributions.
All other links are working correctly for me (Flash loads and has sound).
Confirmed; setting css |object,embed {height:1px; width:1px}| works around the issue on latest 64bit Nightly for the reported site here and youngjump.jp of bug 1323403 

As far as https://fauux.neocities.org/BONPONT.swf goes, just reloading the page made the audio play there, without the css workaround.

I can't get the kongregate game to successfully load in the first steps of the STR's in bug 1314491.
Flags: needinfo?(twalker)
This impacts older 64-bit releases due to our forcing windowless in those builds. It's not tied directly to the async drawing work but will impact it, and as cpeterson points out fixing this may help address other async drawing bugs. So we should block on it.
Assignee: nobody → jmathies
Attached file BONPONT.swf
Attached file test case
Attachment #8851809 - Attachment is patch: false
Attachment #8851809 - Attachment mime type: text/plain → text/html
This looks like a bug on adobe's side unfortunately. We appear to be handling things the same for both 32 and 64 bit.
Yes, we are sending a NPP_SetWindow call with the proper 0x0 boundaries. Jim are you going to follow up with Adobe?
Flags: needinfo?(jmathies)
intersectionObserver work was my initial thought too, when this came across my desk last week.  Trying with dom.IntersectionObserver.enabled set to 'false' (default for 90%) was the first thing I checked.  Double checking this morning, the minimized test case in comment 14 failed to load audio (in 0x0) with the config enabled and with it disabled.
Flags: needinfo?(jmathies)
(In reply to Benjamin Smedberg [:bsmedberg] from comment #17)
> Yes, we are sending a NPP_SetWindow call with the proper 0x0 boundaries. Jim
> are you going to follow up with Adobe?

yep, fired off an email this morning.
Blocks: 1314491
Mass wontfix for bugs affecting firefox 52.
Current status here -

32-bit builds leverage the flash security sandbox, 64-bit builds use the Firefox plugin sandbox. The Flash sandbox does parameter checking/touchup work on SetWindow calls. This parameter touch up work facilitates successful SetWindow call handling in 32-bit flash, where as in 64-bit without the touch up work SetWindow calls apparently fail. This is what prevents Flash from fully loading, which is the reason why the test case here fails to play any music. Note this 'bug' only impacts 0x0 pixel flash.

for testing, you can reproduce the 64-bit behavior in 32-bit builds by disabling the flash sandbox.  

Still discussing with Adobe about who should fix this.
(In reply to Paul Goldberg from comment #22)
> This is a Flash related issue with Firefox 64 bit accessing Comcast Xfinity
> recorded content and also for me severe performance issues using Flash on my
> laptop with 8GB of ram. Please refer to this:
> https://bugzilla.mozilla.org/show_bug.cgi?id=1334803

I don't think this zero-sized Flash bug is related to the Xfinity video problems. I added some notes in bug 1334803 comment 10.
Hey Tracy, could you please test this using the Adobe York beta and see if they have the fix in that release.

"beta release of Flash Player 26, code named York."
http://labs.adobe.com/technologies/flashruntimes/flashplayer/
Flags: needinfo?(twalker)
Adobe's fix for the zero-sized Flash pixels won't be available until their June release of Flash 26.
Hopefully Adobe's fix will resolve the problem.  But I assume a similar version of Flash is in Chrome and Edge and they work without any problems.  Also in Firefox 64 bit as I previously stated on my lower end laptop (which still well exceeds Flash requirements) the playback of Flash content uses considerably more of my CPU and on Xfinity TV in is about 100% CPU usage with consistent stuttering and freezing of the content. Using Chrome 64 bit or Edge the CPU usage is in the 50 to 60 percent range with no playback problems.
(In reply to Paul Goldberg from comment #27)
> Hopefully Adobe's fix will resolve the problem.  But I assume a similar
> version of Flash is in Chrome and Edge and they work without any problems. 
> Also in Firefox 64 bit as I previously stated on my lower end laptop (which
> still well exceeds Flash requirements) the playback of Flash content uses
> considerably more of my CPU and on Xfinity TV in is about 100% CPU usage
> with consistent stuttering and freezing of the content. Using Chrome 64 bit
> or Edge the CPU usage is in the 50 to 60 percent range with no playback
> problems.

FYI, this particular bug is unrelated to the playback problem with the Xfinity service.
(In reply to Chris Peterson [:cpeterson] from comment #26)
> Adobe's fix for the zero-sized Flash pixels won't be available until their
> June release of Flash 26.

I'd like tracy to confirm it's not in the upcoming may point release just to be sure.
With latest 64bit Nightly (20170508030204) on Win 10 Surface Pro using Shockwave Flash 26.0.0.94 (their latest beta) 0x0 flash content plays as expected.  Confirmed using attach test cases in comment 13 and 14.
Flags: needinfo?(twalker)
WFM is Flash beta "York" version 26.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WORKSFORME
Depends on: 1363611
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: