Index: sdk/lib/html/dart2js/html_dart2js.dart |
diff --git a/sdk/lib/html/dart2js/html_dart2js.dart b/sdk/lib/html/dart2js/html_dart2js.dart |
index 8aed50844f2e9a4ed809bff2d8a82191bd8960cb..f30166d3df040eae664e38cee1a30582e16d7d73 100644 |
--- a/sdk/lib/html/dart2js/html_dart2js.dart |
+++ b/sdk/lib/html/dart2js/html_dart2js.dart |
@@ -6133,6 +6133,10 @@ class Document extends Node native "*Document" |
@DocsEditable |
final String $dom_referrer; |
+ @DomName('Document.securityPolicy') |
+ @DocsEditable |
+ final DomSecurityPolicy securityPolicy; |
+ |
@JSName('selectedStylesheetSet') |
@DomName('Document.selectedStylesheetSet') |
@DocsEditable |
@@ -7315,6 +7319,77 @@ class DomPluginArray implements JavaScriptIndexingBehavior, List<DomPlugin> nati |
@DocsEditable |
+@DomName('SecurityPolicy') |
+class DomSecurityPolicy native "*SecurityPolicy" { |
+ |
+ @DomName('DOMSecurityPolicy.allowsEval') |
+ @DocsEditable |
+ final bool allowsEval; |
+ |
+ @DomName('DOMSecurityPolicy.allowsInlineScript') |
+ @DocsEditable |
+ final bool allowsInlineScript; |
+ |
+ @DomName('DOMSecurityPolicy.allowsInlineStyle') |
+ @DocsEditable |
+ final bool allowsInlineStyle; |
+ |
+ @DomName('DOMSecurityPolicy.isActive') |
+ @DocsEditable |
+ final bool isActive; |
+ |
+ @DomName('DOMSecurityPolicy.reportURIs') |
+ @DocsEditable |
+ @Returns('DomStringList') |
+ @Creates('DomStringList') |
+ final List<String> reportURIs; |
+ |
+ @DomName('DOMSecurityPolicy.allowsConnectionTo') |
+ @DocsEditable |
+ bool allowsConnectionTo(String url) native; |
+ |
+ @DomName('DOMSecurityPolicy.allowsFontFrom') |
+ @DocsEditable |
+ bool allowsFontFrom(String url) native; |
+ |
+ @DomName('DOMSecurityPolicy.allowsFormAction') |
+ @DocsEditable |
+ bool allowsFormAction(String url) native; |
+ |
+ @DomName('DOMSecurityPolicy.allowsFrameFrom') |
+ @DocsEditable |
+ bool allowsFrameFrom(String url) native; |
+ |
+ @DomName('DOMSecurityPolicy.allowsImageFrom') |
+ @DocsEditable |
+ bool allowsImageFrom(String url) native; |
+ |
+ @DomName('DOMSecurityPolicy.allowsMediaFrom') |
+ @DocsEditable |
+ bool allowsMediaFrom(String url) native; |
+ |
+ @DomName('DOMSecurityPolicy.allowsObjectFrom') |
+ @DocsEditable |
+ bool allowsObjectFrom(String url) native; |
+ |
+ @DomName('DOMSecurityPolicy.allowsPluginType') |
+ @DocsEditable |
+ bool allowsPluginType(String type) native; |
+ |
+ @DomName('DOMSecurityPolicy.allowsScriptFrom') |
+ @DocsEditable |
+ bool allowsScriptFrom(String url) native; |
+ |
+ @DomName('DOMSecurityPolicy.allowsStyleFrom') |
+ @DocsEditable |
+ bool allowsStyleFrom(String url) native; |
+} |
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
+// for details. All rights reserved. Use of this source code is governed by a |
+// BSD-style license that can be found in the LICENSE file. |
+ |
+ |
+@DocsEditable |
@DomName('Selection') |
class DomSelection native "*Selection" { |
@@ -12879,6 +12954,10 @@ class IFrameElement extends Element native "*HTMLIFrameElement" { |
@DocsEditable |
String sandbox; |
+ @DomName('HTMLIFrameElement.seamless') |
+ @DocsEditable |
+ bool seamless; |
+ |
@DomName('HTMLIFrameElement.src') |
@DocsEditable |
String src; |
@@ -19393,6 +19472,10 @@ class ScriptElement extends Element native "*HTMLScriptElement" { |
@DocsEditable |
String htmlFor; |
+ @DomName('HTMLScriptElement.nonce') |
+ @DocsEditable |
+ String nonce; |
+ |
@DomName('HTMLScriptElement.src') |
@DocsEditable |
String src; |
@@ -19477,6 +19560,49 @@ class ScriptProfileNode native "*ScriptProfileNode" { |
// BSD-style license that can be found in the LICENSE file. |
+@DocsEditable |
+@DomName('SecurityPolicyViolationEvent') |
+class SecurityPolicyViolationEvent extends Event native "*SecurityPolicyViolationEvent" { |
+ |
+ @JSName('blockedURI') |
+ @DomName('SecurityPolicyViolationEvent.blockedURI') |
+ @DocsEditable |
+ final String blockedUri; |
+ |
+ @JSName('documentURI') |
+ @DomName('SecurityPolicyViolationEvent.documentURI') |
+ @DocsEditable |
+ final String documentUri; |
+ |
+ @DomName('SecurityPolicyViolationEvent.effectiveDirective') |
+ @DocsEditable |
+ final String effectiveDirective; |
+ |
+ @DomName('SecurityPolicyViolationEvent.lineNumber') |
+ @DocsEditable |
+ final int lineNumber; |
+ |
+ @DomName('SecurityPolicyViolationEvent.originalPolicy') |
+ @DocsEditable |
+ final String originalPolicy; |
+ |
+ @DomName('SecurityPolicyViolationEvent.referrer') |
+ @DocsEditable |
+ final String referrer; |
+ |
+ @DomName('SecurityPolicyViolationEvent.sourceFile') |
+ @DocsEditable |
+ final String sourceFile; |
+ |
+ @DomName('SecurityPolicyViolationEvent.violatedDirective') |
+ @DocsEditable |
+ final String violatedDirective; |
+} |
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
+// for details. All rights reserved. Use of this source code is governed by a |
+// BSD-style license that can be found in the LICENSE file. |
+ |
+ |
@DomName('HTMLSelectElement') |
class SelectElement extends Element native "*HTMLSelectElement" { |