Closed Bug 116839 Opened 23 years ago Closed 23 years ago

zero disk cache capacity brokes flush plugin

Categories

(Core Graveyard :: Plug-ins, defect)

Sun
SunOS
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED DUPLICATE of bug 116562

People

(Reporter: km, Assigned: srgchrpv)

References

()

Details

From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:0.9.7) Gecko/20011221
BuildID:    200112204

The Sparc/Solaris shockwave flash plugin (5.0r52) fails on
Milestone 0.97. According to about:plugins it loads correctly.
However when it executes it just shows the white background with
no sign of graphics or sound. On exposure event you can briefly
see the grey background which is quickly filled with empty white.

This does not occur on Milestone 0.96 Sparc/Solaris with the
same plugin.

It does not occur on Linux or Windows Milestone 0.97.

I manually copy libflashplayer.so to plugins directory before
starting mozilla

The URL cited is the macromedia test page.

Ignore the popup for Shockwave player (none for Solaris).
Its the box below it for Shockwave Flash that is of concern.
There is no error popup for flash, just no output.

Reproducible: Always
Steps to Reproduce:
1.As above
2.
3.
Over to serge for investigation.
Assignee: av → serge
ccing sep@sparc.spb.su
Sergi, you are done a lot of moziila debugging/coding on solaris,
would you please take a look on this. Thanks.
Mozilla: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:0.9.7) Gecko/20020125
Workstation: SunOS shiva 5.8 Generic_108528-03 sun4u sparc SUNW,Ultra-1

Works for me. Page contains two plugin's areas, one for
application/x-director mime type and second for application/x-shockwave-flash
mime type. First shows 'default plugin' window (to download plugin for
x-director), second shows flash normally.

Propose to close bug as WFM.
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → WORKSFORME
thank you,verified !
Status: RESOLVED → VERIFIED
I'm still having the problem. Just to be clear I just downloaded

mozilla-sparc-sun-solaris2.8-0.9.7.tar.gz

untarred it, and stuck libflashplayer.so in the plugins directory.
My libflashplayer.so sums as 

     38312 2237 libflashplayer.so

about:plugins shows it as Shockwave Flash 5.0 r52

I then visit http://www.macromedia.com/shockwave/welcome/
and get the same problem results I reported originally

This is on

     SunOS flare 5.8 Generic_108528-11 sun4u sparc SUNW,Ultra-4

I have gotten the same results on several other Sun's and with the
dailys.

Any suggestions about why I have the problem and you don't?
Do you have ShockwaveFlash.class file in same directory as libflashplayer.so?
It's necessary to run flashes. If copying of this file fix your problem,
I'll close bug.
km@mathcs.emory.edu, could you try mv ~/.mozilla/appreg ~/.mozilla/appreg.OLD?
Removing the appreg solved the problem.

Was there something about shockwave that it was caching
from 0.96 that broke 0.97?
I was wrong when I said the appreg solved my problem. It happened that when I
deleted the appreg I got a different profile with a different prefs.js.
It was one of my prefs that caused the problem.

Specifically it was

    user_pref("browser.dom.window.dump.enabled", false);

In 0.96 this didn't affect shockwave, and in 0.97 it did.
Sorry, one (hopefully last) correction. It was not the 
browser.dom.window.dump.enabled preference that caused
the problem. It was

     user_pref("browser.cache.disk.capacity", 0); 

I normally use this to disable disk caching, but apparently that causes
trouble for shockwave in 0.97
Thank you, I can see it now on linux.
Reopening and investigating...
Status: VERIFIED → UNCONFIRMED
Resolution: WORKSFORME → ---
Looks like we never have OnDataAvailable event in case of zero disk cache
capacity :(
Anyway, bug can be reproduced, switch status to NEW.

Propose to change summary something like this:
"zero disk cache capacity brokes old plugins"
Status: UNCONFIRMED → NEW
Ever confirmed: true
Summary: Shockwave Flash fails on Solaris → zero disk cache capacity brokes flush plugin
Now I know what the reason of this bug.

Look at file mozilla/netwerk/cache/src/nsCacheService.cpp

Difference between 0.9.6 and 0.9.7 in method
nsCacheService::EnsureEntryHasDevice(nsCacheEntry * entry)

lines of 0.9.6:

---
      if (!device && mEnableMemoryDevice) {
         NS_ASSERTION(entry->IsAllowedInMemory(), "oops.. bad flags");
---

was changed to line of 0.9.7:

---
    if (!device && mEnableMemoryDevice && entry->IsAllowedInMemory()) {
---

But entry->IsAllowedInMemory() still returns false.

Return to 0.9.6 code, and you'll see flash working :)

Reassign to me, please, I'll provide fix soon.
Thx for the finding....this is dup of 116562, i think

*** This bug has been marked as a duplicate of 116562 ***
Status: NEW → RESOLVED
Closed: 23 years ago23 years ago
Resolution: --- → DUPLICATE
v
Status: RESOLVED → VERIFIED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.