From fa9d0b4ad49db970ba8707a4f6ab9ce17b5383b8 Mon Sep 17 00:00:00 2001 From: Masahiro FUJIMOTO Date: Fri, 25 Jun 2021 01:40:44 +0900 Subject: Web/JavaScript/Reference/Errors/P-V* を更新 (#1205) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Web/JavaScript/Reference/Errors/P-V* を更新 2021/06/14 時点の英語版に同期 * スラッグを修正 --- .../errors/property_access_denied/index.html | 102 ++++++++++----------- 1 file changed, 51 insertions(+), 51 deletions(-) (limited to 'files/ja/web/javascript/reference/errors/property_access_denied') diff --git a/files/ja/web/javascript/reference/errors/property_access_denied/index.html b/files/ja/web/javascript/reference/errors/property_access_denied/index.html index 30015bdc4f..0d3057702a 100644 --- a/files/ja/web/javascript/reference/errors/property_access_denied/index.html +++ b/files/ja/web/javascript/reference/errors/property_access_denied/index.html @@ -1,51 +1,51 @@ ---- -title: 'Error: Permission denied to access property "x"' -slug: Web/JavaScript/Reference/Errors/Property_access_denied -tags: - - Error - - Errors - - JavaScript - - Security -translation_of: Web/JavaScript/Reference/Errors/Property_access_denied ---- -
{{jsSidebar("Errors")}}
- -

JavaScript の例外 "Permission denied to access property" は、権限がない状態でオブジェクトへのアクセスの試行があった場合に発生します。

- -

メッセージ

- -
Error: Permission denied to access property "x"
-
- -

エラー種別

- -

{{jsxref("Error")}}

- -

原因

- -

権限がない状態でオブジェクトへのアクセスの試行がありました。これは異なるドメインから読み込んだ {{HTMLElement("iframe")}} 要素が同一オリジンポリシーに違反する場合などです。

- -

- -

文書にアクセスする権限がない

- -
<!DOCTYPE html>
-<html>
-  <head>
-    <iframe id="myframe" src="http://www1.w3c-test.org/common/blank.html"></iframe>
-    <script>
-      onload = function() {
-        console.log(frames[0].document);
-        // Error: Permission denied to access property "document"
-      }
-    </script>
-  </head>
-  <body></body>
-</html>
- -

関連情報

- - +--- +title: 'Error: Permission denied to access property "x"' +slug: Web/JavaScript/Reference/Errors/Property_access_denied +tags: +- Error +- Errors +- JavaScript +- Security +translation_of: Web/JavaScript/Reference/Errors/Property_access_denied +--- +
{{jsSidebar("Errors")}}
+ +

JavaScript の例外 "Permission denied to access property" は、権限がない状態でオブジェクトへのアクセスの試行があった場合に発生します。

+ +

エラーメッセージ

+ +
Error: Permission denied to access property "x"
+
+ +

エラーの種類

+ +

{{jsxref("Error")}}

+ +

エラーの原因

+ +

権限がない状態でオブジェクトへのアクセスの試行がありました。これは異なるドメインから読み込んだ {{HTMLElement("iframe")}} 要素が同一オリジンポリシーに違反する場合などです。

+ +

+ +

文書にアクセスする権限がない

+ +
<!DOCTYPE html>
+<html>
+  <head>
+    <iframe id="myframe" src="http://www1.w3c-test.org/common/blank.html"></iframe>
+    <script>
+      onload = function() {
+        console.log(frames[0].document);
+        // Error: Permission denied to access property "document"
+      }
+    </script>
+  </head>
+  <body></body>
+</html>
+ +

関連情報

+ + -- cgit v1.2.3-54-g00ecf