Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #8418 > unrolled thread

FAQ Topic - Why do I get permission denied when accessing a frame/window? (2011-11-19)

Started by"FAQ server" <javascript@dotinternet.be>
First post2011-11-19 00:00 +0000
Last post2011-11-20 20:11 +0000
Articles 2 — 2 participants

Back to article view | Back to comp.lang.javascript


Contents

  FAQ Topic - Why do I get permission denied when accessing a frame/window? (2011-11-19) "FAQ server" <javascript@dotinternet.be> - 2011-11-19 00:00 +0000
    Re: FAQ Topic - Why do I get permission denied when accessing a frame/window? (2011-11-19) Dr J R Stockton <reply1146@merlyn.demon.co.uk> - 2011-11-20 20:11 +0000

#8418 — FAQ Topic - Why do I get permission denied when accessing a frame/window? (2011-11-19)

From"FAQ server" <javascript@dotinternet.be>
Date2011-11-19 00:00 +0000
SubjectFAQ Topic - Why do I get permission denied when accessing a frame/window? (2011-11-19)
Message-ID<4ec6f18d$0$293$14726298@news.sunsite.dk>
-----------------------------------------------------------------------
FAQ Topic - Why do I get permission denied when accessing a
frame/window?
-----------------------------------------------------------------------

In the normal browser security model, a script may only access the
properties of documents served from the same domain or IP address,
protocol, and port.

Any attempt to access a property in such cases will result in a "Permission
Denied" error. Signed scripts or trusted ActiveX objects can
overcome this in limited situations.

<URL: http://msdn.microsoft.com/en-us/library/ms533028%28VS.85%29.aspx>
<URL: https://developer.mozilla.org/En/Same_origin_policy_for_JavaScript>


The complete comp.lang.javascript FAQ is at
http://jibbering.com/faq/

-- 

The sendings of these daily posts are proficiently hosted
by http://www.pair.com.

[toc] | [next] | [standalone]


#8498

FromDr J R Stockton <reply1146@merlyn.demon.co.uk>
Date2011-11-20 20:11 +0000
Message-ID<9kvgApOP8VyOFwGK@invalid.uk.co.demon.merlyn.invalid>
In reply to#8418
In comp.lang.javascript message <4ec6f18d$0$293$14726298@news.sunsite.dk
>, Sat, 19 Nov 2011 00:00:03, FAQ server <javascript@dotinternet.be>
posted:

>In the normal browser security model, a script may only access the
>properties of documents served from the same domain or IP address,
>protocol, and port.
>
>Any attempt to access a property in such cases will result in a "Permission
>Denied" error. Signed scripts or trusted ActiveX objects can
>overcome this in limited situations.

<FAQENTRY>

The second paragraph makes no sense, since "such cases" can only refer
to the cases of the previous paragraph, which are the cases in which it
CAN be done.

However, the FAQ should also be saying that Chrome does not allow such
access by a local page to other local material.  Versions before 5.0 did
allow it.

-- 
 (c) John Stockton, nr London, UK. ?@merlyn.demon.co.uk  Turnpike 6.05  WinXP.
 Web  <http://www.merlyn.demon.co.uk/> - FAQ-type topics, acronyms, and links.
 Command-prompt MiniTrue is useful for viewing/searching/altering files. Free,
 DOS/Win/UNIX now 2.0.6; see <URL:http://www.merlyn.demon.co.uk/pc-links.htm>.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.javascript


csiph-web