Bug 743772

Summary: /tmp/mozilla-media-cache directory not multi-user safe
Product: [Fedora] Fedora Reporter: Iván Jiménez <icj>
Component: firefoxAssignee: Gecko Maintainer <gecko-bugs-nobody>
Status: CLOSED UPSTREAM QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 15CC: gecko-bugs-nobody, mcepl
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-10-13 00:29:27 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Iván Jiménez 2011-10-06 00:41:29 UTC
Description of problem:
html5 audio and video work only for the first user that plays audio or video in firefox.

It's upstream bug 612246, https://bugzilla.mozilla.org/show_bug.cgi?id=612246. From comment 5 there:

strace -fFeopen reveals whats going on here:

open("/tmp/mozilla-media-cache/media_cache", O_WRONLY|O_CREAT|O_EXCL|O_TRUNC, 0700) = -1 EACCES (Permission denied)

The reason for this failure is obvious: I have another FF instance running under a different user/group which created /tmp/mozilla-media-cache with permissions 0700. This precludes any new FF instance from opening the cache file.

There is a patch available there.

Version-Release number of selected component (if applicable):
firefox-7.0.1-1.fc15.x86_64 but f16beta has the same bug

How reproducible:
always

Steps to Reproduce:
1. create two user accounts
2. open firefox in one and play http://upload.wikimedia.org/wikipedia/commons/a/a9/Tromboon-sample.ogg
3. open the other account and play same url
  
Actual results:
no playback

Expected results:
play

Comment 1 Matěj Cepl 2011-10-13 00:29:27 UTC
We believe that it is more appropriate to let it be resolved upstream. We will continue to track the issue in the centralized upstream bug tracker, and will review any bug fixes that become available for consideration in future updates.

Thank you for helping to make free software better.