Open Bug 391340 Opened 17 years ago Updated 2 years ago

SetFullScreen doesn't throw when set by untrusted caller

Categories

(Core :: DOM: Core & HTML, defect)

defect

Tracking

()

People

(Reporter: ventnor.bugzilla, Unassigned)

References

()

Details

(Keywords: dev-doc-needed)

Attachments

(1 file)

Under SetFullScreen(), if IsCallerTrustedForWrite returns false, we still return NS_OK. This is wrong, we should return a security error so callers know that they don't have the right to set it.
Attached patch Patch (deleted) — Splinter Review
Huh, I thought I attached this patch...
Assignee: nobody → ventnor.bugzilla
Status: NEW → ASSIGNED
Attachment #275750 - Flags: superreview?(jst)
Attachment #275750 - Flags: review?(jst)
.fullscreen is supported by IE too, right? Does it throw something when web pages try to set it? If it doesn't, I think we shouldn't either.
Comment on attachment 275750 [details] [diff] [review] Patch (In reply to comment #2) > .fullscreen is supported by IE too, right? Does it throw something when web > pages > try to set it? If it doesn't, I think we shouldn't either. I don't think its supported is modern IE's, but now that you mentioned it I guess that is an obstacle. If we ultimately don't take this patch then current behaviour should probably be documented.
Attachment #275750 - Flags: superreview?(jst)
Attachment #275750 - Flags: review?(jst)
This is still working: http://people.mozilla.com/~mwargers/tests/dom/fullscreenyes.htm So this document is currently completely wrong: https://developer.mozilla.org/en/DOM/window.fullScreen I guess it should also be described here then that you can use the fullScreen property: https://developer.mozilla.org/en/DOM/Using_full-screen_mode
Depends on: CVE-2012-0460
Is this bug still relevant now that that other bug has been fixed?
Component: DOM → DOM: Core & HTML

The bug assignee is inactive on Bugzilla, so the assignee is being reset.

Assignee: ventnor.bugzilla → nobody
Status: ASSIGNED → NEW
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: