Closed Bug 448600 Opened 16 years ago Closed 16 years ago

should have a pref to disable audio/video support

Categories

(Core :: Audio/Video, defect, P1)

defect

Tracking

()

VERIFIED FIXED
mozilla1.9.1b3

People

(Reporter: ted, Assigned: roc)

Details

(Keywords: verified1.9.1)

Attachments

(1 file)

dveditz expressed concern that we should have a way to disable audio/video support via a pref, to allow users to protect themselves in case of known exploits in video backends.
Component: DOM: HTML → DOM: Core & HTML
Component: DOM: Core & HTML → Video/Audio
QA Contact: general → video.audio
Version: unspecified → Trunk
Flags: wanted1.9.1?
Flags: blocking1.9.1?
This really needs to be per-decoder.
I guess it could be per-backend.
Flags: wanted1.9.1?
Flags: blocking1.9.1?
Flags: blocking1.9.1+
Assignee: nobody → roc
Let's call the prefs "media.ogg.enabled" and "media.wave.enabled".
Attached patch fixSplinter Review
Attachment #352653 - Flags: superreview?(bzbarsky)
Attachment #352653 - Flags: review?(chris.double)
Whiteboard: [needs review]
Attachment #352653 - Attachment is patch: true
Attachment #352653 - Attachment mime type: application/text → text/plain
Attachment #352653 - Flags: superreview?(bzbarsky) → superreview+
Comment on attachment 352653 [details] [diff] [review]
fix

>+    if (IsWaveEnabled()) {
>+      for (PRUint32 i = 0; i < NS_ARRAY_LENGTH(gWaveTypes); i++) {
>+        catMan->AddCategoryEntry("Gecko-Content-Viewers", gWaveTypes[i],
>+                                  "@mozilla.org/content/document-loader-factory;1",
>+                                 PR_FALSE, PR_TRUE, nsnull);

The indentation there is off.

sr=bzbarsky with that fixed
Attachment #352653 - Flags: review?(chris.double) → review+
Whiteboard: [needs review] → [needs landing]
Pushed 85e9faa23436 to trunk
Status: NEW → RESOLVED
Closed: 16 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Whiteboard: [needs landing] → [needs 191 landing]
http://hg.mozilla.org/releases/mozilla-1.9.1/rev/316971d9da18
Keywords: fixed1.9.1
Whiteboard: [needs 191 landing]
Target Milestone: --- → mozilla1.9.1b3
Verified fix on Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1b5pre) Gecko/20090512 Shiretoko/3.5b5pre 
and Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.2a1pre) Gecko/20090512 Minefield/3.6a1pre
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: