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)
Core
DOM: Core & HTML
Tracking
()
NEW
People
(Reporter: ventnor.bugzilla, Unassigned)
References
()
Details
(Keywords: dev-doc-needed)
Attachments
(1 file)
(deleted),
patch
|
Details | Diff | Splinter Review |
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.
Reporter | ||
Comment 1•17 years ago
|
||
Huh, I thought I attached this patch...
Assignee: nobody → ventnor.bugzilla
Status: NEW → ASSIGNED
Attachment #275750 -
Flags: superreview?(jst)
Attachment #275750 -
Flags: review?(jst)
Comment 2•17 years ago
|
||
.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.
Reporter | ||
Comment 3•17 years ago
|
||
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)
Comment 4•13 years ago
|
||
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
Keywords: dev-doc-needed
Updated•13 years ago
|
Depends on: CVE-2012-0460
Comment 5•13 years ago
|
||
Is this bug still relevant now that that other bug has been fixed?
Assignee | ||
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
Comment 6•2 years ago
|
||
The bug assignee is inactive on Bugzilla, so the assignee is being reset.
Assignee: ventnor.bugzilla → nobody
Status: ASSIGNED → NEW
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•