<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[189873] trunk</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/189873">189873</a></dd>
<dt>Author</dt> <dd>cdumez@apple.com</dd>
<dt>Date</dt> <dd>2015-09-16 10:46:24 -0700 (Wed, 16 Sep 2015)</dd>
</dl>

<h3>Log Message</h3>
<pre>Add initial support for [Unforgeable] IDL extended attribute
https://bugs.webkit.org/show_bug.cgi?id=149147

Reviewed by Darin Adler.

Source/WebCore:

Add initial support for [Unforgeable] IDL extended attribute:
https://heycam.github.io/webidl/#Unforgeable

In particular, attributes marked as unforgeable are now:
- on the instance rather than the prototype
- non-configurable. WebKit does not match the Web IDL specification
  and most properties are currently non-configurable already. However,
  I added an extra check for [Unforgeable] so that unforgeable
  attributes stay unconfigurable if we later decide to match the spec
  and mark properties as configurable.

Operation marked as unforgeable are now non-configurable. However, this
patch does not move them from the prototype to the instance yet. This
needs to be addressed in a follow-up patch as this is a larger change.

This patch also drops support for the undocumented
[OperationsNotDeletable] IDL extended attribute. It is no longer needed
now that we support [Unforgeable] and still support [NotDeletable] for
operations.

Test: fast/dom/unforgeable-attributes.html

* Modules/plugins/QuickTimePluginReplacement.idl:
Drop [OperationsNotDeletable] on the interface and mark the only
operation on this interface as [NotDeletable]. There is no behavior
change but this allows us to drop support for a non-standard and
undocumented IDL extended attribute.

* bindings/scripts/CodeGeneratorJS.pm:
(AttributeShouldBeOnInstance):
(GenerateAttributesHashTable):
(GenerateImplementation):
Add initial support for [Unforgeable] IDL extended attribute.

* bindings/scripts/IDLAttributes.txt:
Add [Unforgeable]. Drop [OperationsNotDeletable].

* crypto/CryptoKeyPair.idl:
Drop [OperationsNotDeletable] on the interface as this interface has
no operations.

* dom/Document.idl:
* page/DOMWindow.idl:
* page/Location.idl:
Mark attributes / interfaces as [Unforgeable] as per the latest HTML
specification:
https://html.spec.whatwg.org/multipage/dom.html#document
https://html.spec.whatwg.org/multipage/browsers.html#window
https://html.spec.whatwg.org/multipage/browsers.html#the-location-interface

LayoutTests:

New test that verifies that well-known [Unforgeable] attributes
are on the instance rather than the prototype and that they are
non-configurable.

* fast/dom/unforgeable-attributes-expected.txt: Added.
* fast/dom/unforgeable-attributes.html: Added.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsChangeLog">trunk/LayoutTests/ChangeLog</a></li>
<li><a href="#trunkLayoutTestshttptestssecuritycrossframeaccessenumerationexpectedtxt">trunk/LayoutTests/http/tests/security/cross-frame-access-enumeration-expected.txt</a></li>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCoreModulespluginsQuickTimePluginReplacementidl">trunk/Source/WebCore/Modules/plugins/QuickTimePluginReplacement.idl</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptsCodeGeneratorJSpm">trunk/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptsIDLAttributestxt">trunk/Source/WebCore/bindings/scripts/IDLAttributes.txt</a></li>
<li><a href="#trunkSourceWebCorecryptoCryptoKeyPairidl">trunk/Source/WebCore/crypto/CryptoKeyPair.idl</a></li>
<li><a href="#trunkSourceWebCoredomDocumentidl">trunk/Source/WebCore/dom/Document.idl</a></li>
<li><a href="#trunkSourceWebCorepageDOMWindowidl">trunk/Source/WebCore/page/DOMWindow.idl</a></li>
<li><a href="#trunkSourceWebCorepageLocationidl">trunk/Source/WebCore/page/Location.idl</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsfastdomunforgeableattributesexpectedtxt">trunk/LayoutTests/fast/dom/unforgeable-attributes-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfastdomunforgeableattributeshtml">trunk/LayoutTests/fast/dom/unforgeable-attributes.html</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkLayoutTestsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/ChangeLog (189872 => 189873)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/ChangeLog        2015-09-16 17:38:30 UTC (rev 189872)
+++ trunk/LayoutTests/ChangeLog        2015-09-16 17:46:24 UTC (rev 189873)
</span><span class="lines">@@ -1,3 +1,17 @@
</span><ins>+2015-09-16  Chris Dumez  &lt;cdumez@apple.com&gt;
+
+        Add initial support for [Unforgeable] IDL extended attribute
+        https://bugs.webkit.org/show_bug.cgi?id=149147
+
+        Reviewed by Darin Adler.
+
+        New test that verifies that well-known [Unforgeable] attributes
+        are on the instance rather than the prototype and that they are
+        non-configurable.
+
+        * fast/dom/unforgeable-attributes-expected.txt: Added.
+        * fast/dom/unforgeable-attributes.html: Added.
+
</ins><span class="cx"> 2015-09-16  Zalan Bujtas  &lt;zalan@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Simple line layout: Glitch selecting long text.
</span></span></pre></div>
<a id="trunkLayoutTestsfastdomunforgeableattributesexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/dom/unforgeable-attributes-expected.txt (0 => 189873)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/dom/unforgeable-attributes-expected.txt                                (rev 0)
+++ trunk/LayoutTests/fast/dom/unforgeable-attributes-expected.txt        2015-09-16 17:46:24 UTC (rev 189873)
</span><span class="lines">@@ -0,0 +1,107 @@
</span><ins>+Checks that [Unforgeable] attributes are non-configurable and on the instance rather than the prototype.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+Event.isTrusted
+FAIL Unsupported property.
+
+Document.location
+PASS testObject.hasOwnProperty(testPropertyName) is true
+PASS testObject.__proto__.hasOwnProperty(testPropertyName) is false
+PASS Object.defineProperty(testObject, testPropertyName, { value: 'test' }) threw exception TypeError: Attempting to change access mechanism for an unconfigurable property..
+PASS Object.getOwnPropertyDescriptor(testObject, testPropertyName).configurable is false
+
+Window.window
+PASS testObject.hasOwnProperty(testPropertyName) is true
+PASS testObject.__proto__.hasOwnProperty(testPropertyName) is false
+PASS Object.defineProperty(testObject, testPropertyName, { value: 'test' }) threw exception TypeError: Attempting to change value of a readonly property..
+PASS Object.getOwnPropertyDescriptor(testObject, testPropertyName).configurable is false
+
+Window.document
+PASS testObject.hasOwnProperty(testPropertyName) is true
+PASS testObject.__proto__.hasOwnProperty(testPropertyName) is false
+PASS Object.defineProperty(testObject, testPropertyName, { value: 'test' }) threw exception TypeError: Attempting to change value of a readonly property..
+PASS Object.getOwnPropertyDescriptor(testObject, testPropertyName).configurable is false
+
+Window.location
+PASS testObject.hasOwnProperty(testPropertyName) is true
+PASS testObject.__proto__.hasOwnProperty(testPropertyName) is false
+PASS Object.defineProperty(testObject, testPropertyName, { value: 'test' }) threw exception TypeError: Attempting to change access mechanism for an unconfigurable property..
+PASS Object.getOwnPropertyDescriptor(testObject, testPropertyName).configurable is false
+
+Window.top
+PASS testObject.hasOwnProperty(testPropertyName) is true
+PASS testObject.__proto__.hasOwnProperty(testPropertyName) is false
+PASS Object.defineProperty(testObject, testPropertyName, { value: 'test' }) threw exception TypeError: Attempting to change access mechanism for an unconfigurable property..
+PASS Object.getOwnPropertyDescriptor(testObject, testPropertyName).configurable is false
+
+Location.ancestorOrigins
+PASS testObject.hasOwnProperty(testPropertyName) is true
+PASS testObject.__proto__.hasOwnProperty(testPropertyName) is false
+PASS Object.defineProperty(testObject, testPropertyName, { value: 'test' }) threw exception TypeError: Attempting to change access mechanism for an unconfigurable property..
+PASS Object.getOwnPropertyDescriptor(testObject, testPropertyName).configurable is false
+
+Location.href
+PASS testObject.hasOwnProperty(testPropertyName) is true
+PASS testObject.__proto__.hasOwnProperty(testPropertyName) is false
+PASS Object.defineProperty(testObject, testPropertyName, { value: 'test' }) threw exception TypeError: Attempting to change access mechanism for an unconfigurable property..
+PASS Object.getOwnPropertyDescriptor(testObject, testPropertyName).configurable is false
+
+Location.origin
+PASS testObject.hasOwnProperty(testPropertyName) is true
+PASS testObject.__proto__.hasOwnProperty(testPropertyName) is false
+PASS Object.defineProperty(testObject, testPropertyName, { value: 'test' }) threw exception TypeError: Attempting to change access mechanism for an unconfigurable property..
+PASS Object.getOwnPropertyDescriptor(testObject, testPropertyName).configurable is false
+
+Location.protocol
+PASS testObject.hasOwnProperty(testPropertyName) is true
+PASS testObject.__proto__.hasOwnProperty(testPropertyName) is false
+PASS Object.defineProperty(testObject, testPropertyName, { value: 'test' }) threw exception TypeError: Attempting to change access mechanism for an unconfigurable property..
+PASS Object.getOwnPropertyDescriptor(testObject, testPropertyName).configurable is false
+
+Location.username
+FAIL Unsupported property.
+
+Location.password
+FAIL Unsupported property.
+
+Location.host
+PASS testObject.hasOwnProperty(testPropertyName) is true
+PASS testObject.__proto__.hasOwnProperty(testPropertyName) is false
+PASS Object.defineProperty(testObject, testPropertyName, { value: 'test' }) threw exception TypeError: Attempting to change access mechanism for an unconfigurable property..
+PASS Object.getOwnPropertyDescriptor(testObject, testPropertyName).configurable is false
+
+Location.hostname
+PASS testObject.hasOwnProperty(testPropertyName) is true
+PASS testObject.__proto__.hasOwnProperty(testPropertyName) is false
+PASS Object.defineProperty(testObject, testPropertyName, { value: 'test' }) threw exception TypeError: Attempting to change access mechanism for an unconfigurable property..
+PASS Object.getOwnPropertyDescriptor(testObject, testPropertyName).configurable is false
+
+Location.port
+PASS testObject.hasOwnProperty(testPropertyName) is true
+PASS testObject.__proto__.hasOwnProperty(testPropertyName) is false
+PASS Object.defineProperty(testObject, testPropertyName, { value: 'test' }) threw exception TypeError: Attempting to change access mechanism for an unconfigurable property..
+PASS Object.getOwnPropertyDescriptor(testObject, testPropertyName).configurable is false
+
+Location.pathname
+PASS testObject.hasOwnProperty(testPropertyName) is true
+PASS testObject.__proto__.hasOwnProperty(testPropertyName) is false
+PASS Object.defineProperty(testObject, testPropertyName, { value: 'test' }) threw exception TypeError: Attempting to change access mechanism for an unconfigurable property..
+PASS Object.getOwnPropertyDescriptor(testObject, testPropertyName).configurable is false
+
+Location.search
+PASS testObject.hasOwnProperty(testPropertyName) is true
+PASS testObject.__proto__.hasOwnProperty(testPropertyName) is false
+PASS Object.defineProperty(testObject, testPropertyName, { value: 'test' }) threw exception TypeError: Attempting to change access mechanism for an unconfigurable property..
+PASS Object.getOwnPropertyDescriptor(testObject, testPropertyName).configurable is false
+
+Location.hash
+PASS testObject.hasOwnProperty(testPropertyName) is true
+PASS testObject.__proto__.hasOwnProperty(testPropertyName) is false
+PASS Object.defineProperty(testObject, testPropertyName, { value: 'test' }) threw exception TypeError: Attempting to change access mechanism for an unconfigurable property..
+PASS Object.getOwnPropertyDescriptor(testObject, testPropertyName).configurable is false
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsfastdomunforgeableattributeshtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/dom/unforgeable-attributes.html (0 => 189873)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/dom/unforgeable-attributes.html                                (rev 0)
+++ trunk/LayoutTests/fast/dom/unforgeable-attributes.html        2015-09-16 17:46:24 UTC (rev 189873)
</span><span class="lines">@@ -0,0 +1,49 @@
</span><ins>+&lt;!DOCTYPE html&gt;
+&lt;html&gt;
+&lt;body&gt;
+&lt;script src=&quot;../../resources/js-test-pre.js&quot;&gt;&lt;/script&gt;
+&lt;script&gt;
+description(&quot;Checks that [Unforgeable] attributes are non-configurable and on the instance rather than the prototype.&quot;);
+
+function testProperty(object, propertyName)
+{
+    testObject = object;
+    testPropertyName = propertyName;
+
+    if (testObject[propertyName] === undefined) {
+        testFailed(&quot;Unsupported property.&quot;);
+        return;
+    }
+
+    shouldBeTrue(&quot;testObject.hasOwnProperty(testPropertyName)&quot;);
+    shouldBeFalse(&quot;testObject.__proto__.hasOwnProperty(testPropertyName)&quot;);
+    shouldThrow(&quot;Object.defineProperty(testObject, testPropertyName, { value: 'test' })&quot;);
+    shouldBeFalse(&quot;Object.getOwnPropertyDescriptor(testObject, testPropertyName).configurable&quot;);
+}
+
+// DOM specification.
+debug(&quot;Event.isTrusted&quot;);
+var event = new Event(&quot;test&quot;);
+testProperty(event, &quot;isTrusted&quot;);
+
+// HTML specification.
+debug(&quot;&quot;);
+debug(&quot;Document.location&quot;);
+testProperty(document, &quot;location&quot;);
+
+for (var property of [&quot;window&quot;, &quot;document&quot;, &quot;location&quot;, &quot;top&quot;]) {
+    debug(&quot;&quot;);
+    debug(&quot;Window.&quot; + property);
+    testProperty(window, property);
+}
+
+for (var property of [&quot;ancestorOrigins&quot;, &quot;href&quot;, &quot;origin&quot;, &quot;protocol&quot;, &quot;username&quot;, &quot;password&quot;, &quot;host&quot;, &quot;hostname&quot;, &quot;port&quot;, &quot;pathname&quot;, &quot;search&quot;, &quot;hash&quot;]) {
+    debug(&quot;&quot;);
+    debug(&quot;Location.&quot; + property);
+    testProperty(window.location, property);
+}
+
+&lt;/script&gt;
+&lt;script src=&quot;../../resources/js-test-post.js&quot;&gt;&lt;/script&gt;
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestshttptestssecuritycrossframeaccessenumerationexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/security/cross-frame-access-enumeration-expected.txt (189872 => 189873)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/security/cross-frame-access-enumeration-expected.txt        2015-09-16 17:38:30 UTC (rev 189872)
+++ trunk/LayoutTests/http/tests/security/cross-frame-access-enumeration-expected.txt        2015-09-16 17:46:24 UTC (rev 189873)
</span><span class="lines">@@ -8,8 +8,6 @@
</span><span class="cx"> CONSOLE MESSAGE: line 75: Blocked a frame with origin &quot;http://127.0.0.1:8000&quot; from accessing a frame with origin &quot;http://localhost:8000&quot;. Protocols, domains, and ports must match.
</span><span class="cx"> CONSOLE MESSAGE: line 82: Blocked a frame with origin &quot;http://127.0.0.1:8000&quot; from accessing a frame with origin &quot;http://localhost:8000&quot;. Protocols, domains, and ports must match.
</span><span class="cx"> CONSOLE MESSAGE: line 29: Blocked a frame with origin &quot;http://127.0.0.1:8000&quot; from accessing a frame with origin &quot;http://localhost:8000&quot;. Protocols, domains, and ports must match.
</span><del>-CONSOLE MESSAGE: line 29: Blocked a frame with origin &quot;http://127.0.0.1:8000&quot; from accessing a frame with origin &quot;http://localhost:8000&quot;. Protocols, domains, and ports must match.
-CONSOLE MESSAGE: line 29: Blocked a frame with origin &quot;http://127.0.0.1:8000&quot; from accessing a frame with origin &quot;http://localhost:8000&quot;. Protocols, domains, and ports must match.
</del><span class="cx"> CONSOLE MESSAGE: line 102: Blocked a frame with origin &quot;http://127.0.0.1:8000&quot; from accessing a frame with origin &quot;http://localhost:8000&quot;. Protocols, domains, and ports must match.
</span><span class="cx"> CONSOLE MESSAGE: line 109: Blocked a frame with origin &quot;http://127.0.0.1:8000&quot; from accessing a frame with origin &quot;http://localhost:8000&quot;. Protocols, domains, and ports must match.
</span><span class="cx"> This tests that variable names can't be enumerated cross domain (see http://bugs.webkit.org/show_bug.cgi?id=16387)
</span></span></pre></div>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (189872 => 189873)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2015-09-16 17:38:30 UTC (rev 189872)
+++ trunk/Source/WebCore/ChangeLog        2015-09-16 17:46:24 UTC (rev 189873)
</span><span class="lines">@@ -1,3 +1,60 @@
</span><ins>+2015-09-16  Chris Dumez  &lt;cdumez@apple.com&gt;
+
+        Add initial support for [Unforgeable] IDL extended attribute
+        https://bugs.webkit.org/show_bug.cgi?id=149147
+
+        Reviewed by Darin Adler.
+
+        Add initial support for [Unforgeable] IDL extended attribute:
+        https://heycam.github.io/webidl/#Unforgeable
+
+        In particular, attributes marked as unforgeable are now:
+        - on the instance rather than the prototype
+        - non-configurable. WebKit does not match the Web IDL specification
+          and most properties are currently non-configurable already. However,
+          I added an extra check for [Unforgeable] so that unforgeable
+          attributes stay unconfigurable if we later decide to match the spec
+          and mark properties as configurable.
+
+        Operation marked as unforgeable are now non-configurable. However, this
+        patch does not move them from the prototype to the instance yet. This
+        needs to be addressed in a follow-up patch as this is a larger change.
+
+        This patch also drops support for the undocumented
+        [OperationsNotDeletable] IDL extended attribute. It is no longer needed
+        now that we support [Unforgeable] and still support [NotDeletable] for
+        operations.
+
+        Test: fast/dom/unforgeable-attributes.html
+
+        * Modules/plugins/QuickTimePluginReplacement.idl:
+        Drop [OperationsNotDeletable] on the interface and mark the only
+        operation on this interface as [NotDeletable]. There is no behavior
+        change but this allows us to drop support for a non-standard and
+        undocumented IDL extended attribute.
+
+        * bindings/scripts/CodeGeneratorJS.pm:
+        (AttributeShouldBeOnInstance):
+        (GenerateAttributesHashTable):
+        (GenerateImplementation):
+        Add initial support for [Unforgeable] IDL extended attribute.
+
+        * bindings/scripts/IDLAttributes.txt:
+        Add [Unforgeable]. Drop [OperationsNotDeletable].
+
+        * crypto/CryptoKeyPair.idl:
+        Drop [OperationsNotDeletable] on the interface as this interface has
+        no operations.
+
+        * dom/Document.idl:
+        * page/DOMWindow.idl:
+        * page/Location.idl:
+        Mark attributes / interfaces as [Unforgeable] as per the latest HTML
+        specification:
+        https://html.spec.whatwg.org/multipage/dom.html#document
+        https://html.spec.whatwg.org/multipage/browsers.html#window
+        https://html.spec.whatwg.org/multipage/browsers.html#the-location-interface
+
</ins><span class="cx"> 2015-09-16  Zalan Bujtas  &lt;zalan@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Simple line layout: Glitch selecting long text.
</span></span></pre></div>
<a id="trunkSourceWebCoreModulespluginsQuickTimePluginReplacementidl"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/plugins/QuickTimePluginReplacement.idl (189872 => 189873)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/plugins/QuickTimePluginReplacement.idl        2015-09-16 17:38:30 UTC (rev 189872)
+++ trunk/Source/WebCore/Modules/plugins/QuickTimePluginReplacement.idl        2015-09-16 17:46:24 UTC (rev 189873)
</span><span class="lines">@@ -25,12 +25,11 @@
</span><span class="cx"> 
</span><span class="cx"> [
</span><span class="cx">     NoInterfaceObject,
</span><del>-    OperationsNotDeletable,
</del><span class="cx">     JSGenerateToJSObject,
</span><span class="cx"> ] interface QuickTimePluginReplacement {
</span><span class="cx">     readonly attribute unsigned long long movieSize;
</span><span class="cx">     [CustomGetter] readonly attribute any timedMetaData;
</span><span class="cx">     [CustomGetter] readonly attribute any accessLog;
</span><span class="cx">     [CustomGetter] readonly attribute any errorLog;
</span><del>-    void postEvent(DOMString eventName);
</del><ins>+    [NotDeletable] void postEvent(DOMString eventName);
</ins><span class="cx"> };
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptsCodeGeneratorJSpm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm (189872 => 189873)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm        2015-09-16 17:38:30 UTC (rev 189872)
+++ trunk/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm        2015-09-16 17:46:24 UTC (rev 189873)
</span><span class="lines">@@ -673,6 +673,10 @@
</span><span class="cx">     return 1 if HasCustomGetter($attribute-&gt;signature-&gt;extendedAttributes);
</span><span class="cx">     return 1 if HasCustomSetter($attribute-&gt;signature-&gt;extendedAttributes);
</span><span class="cx"> 
</span><ins>+    # [Unforgeable] attributes should be on the instance.
+    # https://heycam.github.io/webidl/#Unforgeable
+    return 1 if $attribute-&gt;signature-&gt;extendedAttributes-&gt;{&quot;Unforgeable&quot;} || $interface-&gt;extendedAttributes-&gt;{&quot;Unforgeable&quot;};
+
</ins><span class="cx">     # FIXME: Length is a tricky attribute to handle correctly as it is frequently tied to
</span><span class="cx">     # objects which also have magic named attributes that can end up being named &quot;length&quot;
</span><span class="cx">     # and so interfere with lookup ordering.  I'm not sure what the correct solution is
</span><span class="lines">@@ -1335,7 +1339,13 @@
</span><span class="cx">         # As per Web IDL specification, constructor properties on the ECMAScript global object should be
</span><span class="cx">         # configurable and should not be enumerable.
</span><span class="cx">         my $is_global_constructor = $attribute-&gt;signature-&gt;type =~ /Constructor$/;
</span><del>-        push(@specials, &quot;DontDelete&quot;) unless ($attribute-&gt;signature-&gt;extendedAttributes-&gt;{&quot;Deletable&quot;} || $is_global_constructor);
</del><ins>+
+        # FIXME: Attributes should be configurable unless [Unforgeable] is specified.
+        # https://heycam.github.io/webidl/#es-attributes
+        push(@specials, &quot;DontDelete&quot;) if (!$attribute-&gt;signature-&gt;extendedAttributes-&gt;{&quot;Deletable&quot;} &amp;&amp; !$is_global_constructor)
+            || $attribute-&gt;signature-&gt;extendedAttributes-&gt;{&quot;Unforgeable&quot;}
+            || $interface-&gt;extendedAttributes-&gt;{&quot;Unforgeable&quot;};
+
</ins><span class="cx">         push(@specials, &quot;DontEnum&quot;) if ($attribute-&gt;signature-&gt;extendedAttributes-&gt;{&quot;NotEnumerable&quot;} || $is_global_constructor);
</span><span class="cx">         push(@specials, &quot;ReadOnly&quot;) if IsReadonly($attribute);
</span><span class="cx">         push(@specials, &quot;CustomAccessor&quot;) unless $is_global_constructor;
</span><span class="lines">@@ -1911,8 +1921,7 @@
</span><span class="cx">             push(@hashValue2, $functionLength);
</span><span class="cx"> 
</span><span class="cx">             my @specials = ();
</span><del>-            push(@specials, &quot;DontDelete&quot;) if $interface-&gt;extendedAttributes-&gt;{&quot;OperationsNotDeletable&quot;}
-                || $function-&gt;signature-&gt;extendedAttributes-&gt;{&quot;NotDeletable&quot;};
</del><ins>+            push(@specials, &quot;DontDelete&quot;) if $function-&gt;signature-&gt;extendedAttributes-&gt;{&quot;NotDeletable&quot;};
</ins><span class="cx">             push(@specials, &quot;DontEnum&quot;) if $function-&gt;signature-&gt;extendedAttributes-&gt;{&quot;NotEnumerable&quot;};
</span><span class="cx">             push(@specials, &quot;JSC::Function&quot;);
</span><span class="cx">             my $special = (@specials &gt; 0) ? join(&quot; | &quot;, @specials) : &quot;0&quot;;
</span><span class="lines">@@ -1988,8 +1997,9 @@
</span><span class="cx">         push(@hashValue2, $functionLength);
</span><span class="cx"> 
</span><span class="cx">         my @specials = ();
</span><del>-        push(@specials, &quot;DontDelete&quot;) if $interface-&gt;extendedAttributes-&gt;{&quot;OperationsNotDeletable&quot;}
-            || $function-&gt;signature-&gt;extendedAttributes-&gt;{&quot;NotDeletable&quot;};
</del><ins>+        push(@specials, &quot;DontDelete&quot;) if $function-&gt;signature-&gt;extendedAttributes-&gt;{&quot;NotDeletable&quot;}
+           || $function-&gt;signature-&gt;extendedAttributes-&gt;{&quot;Unforgeable&quot;}
+           || $interface-&gt;extendedAttributes-&gt;{&quot;Unforgeable&quot;};
</ins><span class="cx">         push(@specials, &quot;DontEnum&quot;) if $function-&gt;signature-&gt;extendedAttributes-&gt;{&quot;NotEnumerable&quot;};
</span><span class="cx">         push(@specials, &quot;JSC::Function&quot;);
</span><span class="cx">         my $special = (@specials &gt; 0) ? join(&quot; | &quot;, @specials) : &quot;0&quot;;
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptsIDLAttributestxt"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/IDLAttributes.txt (189872 => 189873)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/IDLAttributes.txt        2015-09-16 17:38:30 UTC (rev 189872)
+++ trunk/Source/WebCore/bindings/scripts/IDLAttributes.txt        2015-09-16 17:46:24 UTC (rev 189873)
</span><span class="lines">@@ -99,7 +99,6 @@
</span><span class="cx"> ObjCPolymorphic
</span><span class="cx"> ObjCProtocol
</span><span class="cx"> ObjCUseDefaultView
</span><del>-OperationsNotDeletable
</del><span class="cx"> OverrideBuiltins
</span><span class="cx"> PassContext
</span><span class="cx"> RaisesException
</span><span class="lines">@@ -119,6 +118,7 @@
</span><span class="cx"> TreatUndefinedAs=NullString
</span><span class="cx"> TypedArray=*
</span><span class="cx"> URL
</span><ins>+Unforgeable
</ins><span class="cx"> WindowEventHandler
</span><span class="cx"> 
</span><span class="cx"> # PLATFORM(IOS)
</span></span></pre></div>
<a id="trunkSourceWebCorecryptoCryptoKeyPairidl"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/crypto/CryptoKeyPair.idl (189872 => 189873)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/crypto/CryptoKeyPair.idl        2015-09-16 17:38:30 UTC (rev 189872)
+++ trunk/Source/WebCore/crypto/CryptoKeyPair.idl        2015-09-16 17:46:24 UTC (rev 189873)
</span><span class="lines">@@ -28,8 +28,7 @@
</span><span class="cx">     ImplementationLacksVTable,
</span><span class="cx">     InterfaceName=KeyPair,
</span><span class="cx">     JSCustomMarkFunction,
</span><del>-    NoInterfaceObject,
-    OperationsNotDeletable
</del><ins>+    NoInterfaceObject
</ins><span class="cx"> ] interface CryptoKeyPair {
</span><span class="cx">     readonly attribute CryptoKey publicKey;
</span><span class="cx">     readonly attribute CryptoKey privateKey;
</span></span></pre></div>
<a id="trunkSourceWebCoredomDocumentidl"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/Document.idl (189872 => 189873)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/Document.idl        2015-09-16 17:38:30 UTC (rev 189872)
+++ trunk/Source/WebCore/dom/Document.idl        2015-09-16 17:46:24 UTC (rev 189873)
</span><span class="lines">@@ -170,7 +170,7 @@
</span><span class="cx">     NodeList getElementsByName([Default=Undefined,AtomicString] optional DOMString elementName);
</span><span class="cx"> 
</span><span class="cx"> #if defined(LANGUAGE_JAVASCRIPT) &amp;&amp; LANGUAGE_JAVASCRIPT
</span><del>-             [Custom] attribute Location location;
</del><ins>+    [Custom, Unforgeable] attribute Location location;
</ins><span class="cx"> #endif
</span><span class="cx"> 
</span><span class="cx">     // IE extensions
</span></span></pre></div>
<a id="trunkSourceWebCorepageDOMWindowidl"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/DOMWindow.idl (189872 => 189873)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/DOMWindow.idl        2015-09-16 17:38:30 UTC (rev 189872)
+++ trunk/Source/WebCore/page/DOMWindow.idl        2015-09-16 17:46:24 UTC (rev 189873)
</span><span class="lines">@@ -52,7 +52,7 @@
</span><span class="cx">     [Replaceable] readonly attribute Navigator navigator;
</span><span class="cx">     [Replaceable] readonly attribute Navigator clientInformation;
</span><span class="cx">     readonly attribute Crypto crypto;
</span><del>-    [DoNotCheckSecurity, CustomSetter] attribute Location location;
</del><ins>+    [DoNotCheckSecurity, CustomSetter, Unforgeable] attribute Location location;
</ins><span class="cx">     [Replaceable, CustomGetter] readonly attribute Event event;
</span><span class="cx"> 
</span><span class="cx">     DOMSelection getSelection();
</span><span class="lines">@@ -125,15 +125,15 @@
</span><span class="cx"> 
</span><span class="cx">     // Self referential attributes
</span><span class="cx">     [Replaceable, DoNotCheckSecurityOnGetter] readonly attribute DOMWindow self;
</span><del>-    [DoNotCheckSecurity] readonly attribute DOMWindow window;
</del><ins>+    [DoNotCheckSecurity, Unforgeable] readonly attribute DOMWindow window;
</ins><span class="cx">     [Replaceable, DoNotCheckSecurityOnGetter] readonly attribute  DOMWindow frames;
</span><span class="cx"> 
</span><span class="cx">     [Replaceable, DoNotCheckSecurityOnGetter] readonly attribute DOMWindow opener;
</span><span class="cx">     [Replaceable, DoNotCheckSecurityOnGetter] readonly attribute DOMWindow parent;
</span><del>-    [DoNotCheckSecurityOnGetter] readonly attribute DOMWindow top;
</del><ins>+    [DoNotCheckSecurityOnGetter, Unforgeable] readonly attribute DOMWindow top;
</ins><span class="cx"> 
</span><span class="cx">     // DOM Level 2 AbstractView Interface
</span><del>-    readonly attribute Document document;
</del><ins>+    [Unforgeable] readonly attribute Document document;
</ins><span class="cx"> 
</span><span class="cx">     // CSSOM View Module
</span><span class="cx">     MediaQueryList matchMedia(DOMString query);
</span></span></pre></div>
<a id="trunkSourceWebCorepageLocationidl"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/Location.idl (189872 => 189873)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/Location.idl        2015-09-16 17:38:30 UTC (rev 189872)
+++ trunk/Source/WebCore/page/Location.idl        2015-09-16 17:46:24 UTC (rev 189873)
</span><span class="lines">@@ -35,7 +35,7 @@
</span><span class="cx">     JSCustomDefineOwnProperty,
</span><span class="cx">     JSCustomNamedGetterOnPrototype,
</span><span class="cx">     JSCustomDefineOwnPropertyOnPrototype,
</span><del>-    OperationsNotDeletable
</del><ins>+    Unforgeable
</ins><span class="cx"> ] interface Location {
</span><span class="cx">     [DoNotCheckSecurityOnSetter, CustomSetter] attribute DOMString href;
</span><span class="cx"> 
</span></span></pre>
</div>
</div>

</body>
</html>