Bug 85447
| Summary: | Prevent Encrypted Media Extensions events from being reported when !encryptedMediaEnabled() | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | David Dorwin <ddorwin> |
| Component: | Media | Assignee: | David Dorwin <ddorwin> |
| Status: | RESOLVED INVALID | ||
| Severity: | Normal | CC: | cturner, eric.carlson |
| Priority: | P2 | ||
| Version: | 528+ (Nightly build) | ||
| Hardware: | All | ||
| OS: | All | ||
| Bug Depends on: | |||
| Bug Blocks: | 82968 | ||
David Dorwin
The [V8EnabledAtRuntime=encryptedMedia] markup in the IDL prevents the Encrypted Media Extensions methods from being called because they are not available to JavaScript. However, at least one of the events and the new error could be reported by the port without the page initiating it. Specifically, a needkey event may be fired if the port detects and encrypted file. Also, it might report MEDIA_ERR_ENCRYPTED.
Rather than modify the behavior of the port, which require passing encryptedMediaEnabled() to various layers, we should prevent the new events and error from being reported. It should be safe to just drop the event and convert MEDIA_ERR_ENCRYPTED to MEDIA_ERR_DECODE since decode is where encrypted content would cause a failure.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Charlie Turner
This is from old versions of the spec, don't believe it's an issue today.