+2015-09-18 Chris Dumez <cdumez@apple.com>
+
+ Drop support for Entity Node type
+ https://bugs.webkit.org/show_bug.cgi?id=149239
+
+ Reviewed by Darin Adler.
+
+ Rebaseline / update layout tests now that we no longer expose the
+ Entity type to the Web.
+
+ * fast/dom/Window/get-set-properties-expected.txt:
+ * fast/dom/Window/get-set-properties.html:
+ * fast/dom/Window/resources/window-properties.js:
+ * fast/dom/Window/window-lookup-precedence-expected.txt:
+ * fast/dom/dom-constructors-expected.txt:
+ * fast/dom/dom-constructors.html:
+ * platform/gtk/fast/dom/Window/window-lookup-precedence-expected.txt:
+ * platform/mac/fast/dom/Window/window-lookup-precedence-expected.txt:
+
2015-09-18 Chris Dumez <cdumez@apple.com>
classList.toggle(name, force) treats undefined `force` argument as false
PASS: canSet('DocumentType') should be 'true' and is.
PASS: canGet('Element') should be 'true' and is.
PASS: canSet('Element') should be 'true' and is.
-PASS: canGet('Entity') should be 'true' and is.
-PASS: canSet('Entity') should be 'true' and is.
PASS: canGet('EntityReference') should be 'true' and is.
PASS: canSet('EntityReference') should be 'true' and is.
PASS: canGet('EvalError') should be 'true' and is.
"DocumentFragment",
"DocumentType",
"Element",
- "Entity",
"EntityReference",
"EvalError",
"Event",
["DocumentFragment", "object"],
["DocumentType", "object"],
["Element", "object"],
- ["Entity", "object"],
["EntityReference", "object"],
["Event", "object"],
["EventException", "object"],
PASS win['DocumentType'] == '[object DocumentTypeConstructor]' is true
PASS win['Element'] == '[object ElementConstructor]' is true
PASS win['Element'] == '[object ElementConstructor]' is true
-PASS win['Entity'] == '[object EntityConstructor]' is true
-PASS win['Entity'] == '[object EntityConstructor]' is true
PASS win['EntityReference'] == '[object EntityReferenceConstructor]' is true
PASS win['EntityReference'] == '[object EntityReferenceConstructor]' is true
PASS win['Event'] == '[object EventConstructor]' is true
PASS TryAllocate('CDATASection') is 'exception'
PASS TryAllocate('DocumentType') is 'exception'
PASS TryAllocate('Element') is 'exception'
-PASS TryAllocate('Entity') is 'exception'
PASS TryAllocate('EntityReference') is 'exception'
PASS TryAllocate('EventTarget') is 'exception'
PASS TryAllocate('HTMLDocument') is 'exception'
'CDATASection',
'DocumentType',
'Element',
- 'Entity',
'EntityReference',
'EventTarget',
'HTMLDocument',
PASS: canGetDescriptor(targetWindow, 'DocumentFragment') should be 'false' and is.
PASS: canGetDescriptor(targetWindow, 'DocumentType') should be 'false' and is.
PASS: canGetDescriptor(targetWindow, 'Element') should be 'false' and is.
-PASS: canGetDescriptor(targetWindow, 'Entity') should be 'false' and is.
PASS: canGetDescriptor(targetWindow, 'EntityReference') should be 'false' and is.
PASS: canGetDescriptor(targetWindow, 'EvalError') should be 'false' and is.
PASS: canGetDescriptor(targetWindow, 'Event') should be 'false' and is.
"DocumentFragment",
"DocumentType",
"Element",
- "Entity",
"EntityReference",
"EvalError",
"Event",
ALERT: PASS: window.DOMImplementation should be '[object DOMImplementationConstructor]' and is.
ALERT: PASS: window.DOMParser should be '[object DOMParserConstructor]' and is.
ALERT: PASS: window.Element should be '[object ElementConstructor]' and is.
-ALERT: PASS: window.Entity should be '[object EntityConstructor]' and is.
+ALERT: PASS: window.Entity should be 'undefined' and is.
ALERT: PASS: window.EntityReference should be '[object EntityReferenceConstructor]' and is.
ALERT: PASS: window.EvalError should be 'function EvalError() { [native code]}' and is.
ALERT: PASS: window.Event should be '[object EventConstructor]' and is.
CONSOLE MESSAGE: line 122: Blocked a frame with origin "http://127.0.0.1:8000" from accessing a frame with origin "http://localhost:8000". Protocols, domains, and ports must match.
CONSOLE MESSAGE: line 123: Blocked a frame with origin "http://127.0.0.1:8000" from accessing a frame with origin "http://localhost:8000". Protocols, domains, and ports must match.
CONSOLE MESSAGE: line 124: Blocked a frame with origin "http://127.0.0.1:8000" from accessing a frame with origin "http://localhost:8000". Protocols, domains, and ports must match.
-CONSOLE MESSAGE: line 125: Blocked a frame with origin "http://127.0.0.1:8000" from accessing a frame with origin "http://localhost:8000". Protocols, domains, and ports must match.
-CONSOLE MESSAGE: line 134: Blocked a frame with origin "http://127.0.0.1:8000" from accessing a frame with origin "http://localhost:8000". Protocols, domains, and ports must match.
-CONSOLE MESSAGE: line 136: Blocked a frame with origin "http://127.0.0.1:8000" from accessing a frame with origin "http://localhost:8000". Protocols, domains, and ports must match.
+CONSOLE MESSAGE: line 133: Blocked a frame with origin "http://127.0.0.1:8000" from accessing a frame with origin "http://localhost:8000". Protocols, domains, and ports must match.
+CONSOLE MESSAGE: line 135: Blocked a frame with origin "http://127.0.0.1:8000" from accessing a frame with origin "http://localhost:8000". Protocols, domains, and ports must match.
+CONSOLE MESSAGE: line 137: Blocked a frame with origin "http://127.0.0.1:8000" from accessing a frame with origin "http://localhost:8000". Protocols, domains, and ports must match.
CONSOLE MESSAGE: line 138: Blocked a frame with origin "http://127.0.0.1:8000" from accessing a frame with origin "http://localhost:8000". Protocols, domains, and ports must match.
CONSOLE MESSAGE: line 139: Blocked a frame with origin "http://127.0.0.1:8000" from accessing a frame with origin "http://localhost:8000". Protocols, domains, and ports must match.
CONSOLE MESSAGE: line 140: Blocked a frame with origin "http://127.0.0.1:8000" from accessing a frame with origin "http://localhost:8000". Protocols, domains, and ports must match.
CONSOLE MESSAGE: line 141: Blocked a frame with origin "http://127.0.0.1:8000" from accessing a frame with origin "http://localhost:8000". Protocols, domains, and ports must match.
CONSOLE MESSAGE: line 142: Blocked a frame with origin "http://127.0.0.1:8000" from accessing a frame with origin "http://localhost:8000". Protocols, domains, and ports must match.
-CONSOLE MESSAGE: line 143: Blocked a frame with origin "http://127.0.0.1:8000" from accessing a frame with origin "http://localhost:8000". Protocols, domains, and ports must match.
+CONSOLE MESSAGE: line 144: Blocked a frame with origin "http://127.0.0.1:8000" from accessing a frame with origin "http://localhost:8000". Protocols, domains, and ports must match.
CONSOLE MESSAGE: line 145: Blocked a frame with origin "http://127.0.0.1:8000" from accessing a frame with origin "http://localhost:8000". Protocols, domains, and ports must match.
CONSOLE MESSAGE: line 146: Blocked a frame with origin "http://127.0.0.1:8000" from accessing a frame with origin "http://localhost:8000". Protocols, domains, and ports must match.
CONSOLE MESSAGE: line 147: Blocked a frame with origin "http://127.0.0.1:8000" from accessing a frame with origin "http://localhost:8000". Protocols, domains, and ports must match.
CONSOLE MESSAGE: line 180: Blocked a frame with origin "http://127.0.0.1:8000" from accessing a frame with origin "http://localhost:8000". Protocols, domains, and ports must match.
CONSOLE MESSAGE: line 181: Blocked a frame with origin "http://127.0.0.1:8000" from accessing a frame with origin "http://localhost:8000". Protocols, domains, and ports must match.
CONSOLE MESSAGE: line 182: Blocked a frame with origin "http://127.0.0.1:8000" from accessing a frame with origin "http://localhost:8000". Protocols, domains, and ports must match.
-CONSOLE MESSAGE: line 183: Blocked a frame with origin "http://127.0.0.1:8000" from accessing a frame with origin "http://localhost:8000". Protocols, domains, and ports must match.
+CONSOLE MESSAGE: line 185: Blocked a frame with origin "http://127.0.0.1:8000" from accessing a frame with origin "http://localhost:8000". Protocols, domains, and ports must match.
CONSOLE MESSAGE: line 186: Blocked a frame with origin "http://127.0.0.1:8000" from accessing a frame with origin "http://localhost:8000". Protocols, domains, and ports must match.
CONSOLE MESSAGE: line 187: Blocked a frame with origin "http://127.0.0.1:8000" from accessing a frame with origin "http://localhost:8000". Protocols, domains, and ports must match.
CONSOLE MESSAGE: line 188: Blocked a frame with origin "http://127.0.0.1:8000" from accessing a frame with origin "http://localhost:8000". Protocols, domains, and ports must match.
CONSOLE MESSAGE: line 198: Blocked a frame with origin "http://127.0.0.1:8000" from accessing a frame with origin "http://localhost:8000". Protocols, domains, and ports must match.
CONSOLE MESSAGE: line 199: Blocked a frame with origin "http://127.0.0.1:8000" from accessing a frame with origin "http://localhost:8000". Protocols, domains, and ports must match.
CONSOLE MESSAGE: line 200: Blocked a frame with origin "http://127.0.0.1:8000" from accessing a frame with origin "http://localhost:8000". Protocols, domains, and ports must match.
-CONSOLE MESSAGE: line 201: Blocked a frame with origin "http://127.0.0.1:8000" from accessing a frame with origin "http://localhost:8000". Protocols, domains, and ports must match.
+CONSOLE MESSAGE: line 203: Blocked a frame with origin "http://127.0.0.1:8000" from accessing a frame with origin "http://localhost:8000". Protocols, domains, and ports must match.
CONSOLE MESSAGE: line 204: Blocked a frame with origin "http://127.0.0.1:8000" from accessing a frame with origin "http://localhost:8000". Protocols, domains, and ports must match.
CONSOLE MESSAGE: line 205: Blocked a frame with origin "http://127.0.0.1:8000" from accessing a frame with origin "http://localhost:8000". Protocols, domains, and ports must match.
CONSOLE MESSAGE: line 206: Blocked a frame with origin "http://127.0.0.1:8000" from accessing a frame with origin "http://localhost:8000". Protocols, domains, and ports must match.
CONSOLE MESSAGE: line 233: Blocked a frame with origin "http://127.0.0.1:8000" from accessing a frame with origin "http://localhost:8000". Protocols, domains, and ports must match.
CONSOLE MESSAGE: line 234: Blocked a frame with origin "http://127.0.0.1:8000" from accessing a frame with origin "http://localhost:8000". Protocols, domains, and ports must match.
CONSOLE MESSAGE: line 235: Blocked a frame with origin "http://127.0.0.1:8000" from accessing a frame with origin "http://localhost:8000". Protocols, domains, and ports must match.
-CONSOLE MESSAGE: line 236: Blocked a frame with origin "http://127.0.0.1:8000" from accessing a frame with origin "http://localhost:8000". Protocols, domains, and ports must match.
This test checks cross-frame access security of window attribute setters (rdar://problem/5326791).
setForbiddenProperty(targetWindow, "DOMImplementation");
setForbiddenProperty(targetWindow, "DOMParser");
setForbiddenProperty(targetWindow, "Element");
- setForbiddenProperty(targetWindow, "Entity");
setForbiddenProperty(targetWindow, "EntityReference");
setForbiddenProperty(targetWindow, "EvalError");
setForbiddenProperty(targetWindow, "Event");
+2015-09-18 Chris Dumez <cdumez@apple.com>
+
+ Drop support for Entity Node type
+ https://bugs.webkit.org/show_bug.cgi?id=149239
+
+ Reviewed by Darin Adler.
+
+ Rebaseline W3C DOM test now that a new check is passing.
+
+ * web-platform-tests/dom/historical-expected.txt:
+
2015-09-17 Chris Dumez <cdumez@apple.com>
[WebIDL] Add support for default parameter values
PASS Historical DOM features must be removed: DOMLocator
PASS Historical DOM features must be removed: DOMObject
PASS Historical DOM features must be removed: DOMUserData
-FAIL Historical DOM features must be removed: Entity assert_equals: expected (undefined) undefined but got (object) object "[object EntityConstructor]"
+PASS Historical DOM features must be removed: Entity
FAIL Historical DOM features must be removed: EntityReference assert_equals: expected (undefined) undefined but got (object) object "[object EntityReferenceConstructor]"
FAIL Historical DOM features must be removed: EventException assert_equals: expected (undefined) undefined but got (object) object "[object EventExceptionConstructor]"
PASS Historical DOM features must be removed: NameList
PASS Object.getOwnPropertyDescriptor(global, 'Element').hasOwnProperty('set') is false
PASS Object.getOwnPropertyDescriptor(global, 'Element').enumerable is false
PASS Object.getOwnPropertyDescriptor(global, 'Element').configurable is true
-PASS Object.getOwnPropertyDescriptor(global, 'Entity').value is Entity
-PASS Object.getOwnPropertyDescriptor(global, 'Entity').hasOwnProperty('get') is false
-PASS Object.getOwnPropertyDescriptor(global, 'Entity').hasOwnProperty('set') is false
-PASS Object.getOwnPropertyDescriptor(global, 'Entity').enumerable is false
-PASS Object.getOwnPropertyDescriptor(global, 'Entity').configurable is true
PASS Object.getOwnPropertyDescriptor(global, 'EntityReference').value is EntityReference
PASS Object.getOwnPropertyDescriptor(global, 'EntityReference').hasOwnProperty('get') is false
PASS Object.getOwnPropertyDescriptor(global, 'EntityReference').hasOwnProperty('set') is false
PASS Object.getOwnPropertyDescriptor(global, 'Element').hasOwnProperty('set') is false
PASS Object.getOwnPropertyDescriptor(global, 'Element').enumerable is false
PASS Object.getOwnPropertyDescriptor(global, 'Element').configurable is true
-PASS Object.getOwnPropertyDescriptor(global, 'Entity').value is Entity
-PASS Object.getOwnPropertyDescriptor(global, 'Entity').hasOwnProperty('get') is false
-PASS Object.getOwnPropertyDescriptor(global, 'Entity').hasOwnProperty('set') is false
-PASS Object.getOwnPropertyDescriptor(global, 'Entity').enumerable is false
-PASS Object.getOwnPropertyDescriptor(global, 'Entity').configurable is true
PASS Object.getOwnPropertyDescriptor(global, 'EntityReference').value is EntityReference
PASS Object.getOwnPropertyDescriptor(global, 'EntityReference').hasOwnProperty('get') is false
PASS Object.getOwnPropertyDescriptor(global, 'EntityReference').hasOwnProperty('set') is false
PASS win['DocumentType'] == '[object DocumentTypeConstructor]' is true
PASS win['Element'] == '[object ElementConstructor]' is true
PASS win['Element'] == '[object ElementConstructor]' is true
-PASS win['Entity'] == '[object EntityConstructor]' is true
-PASS win['Entity'] == '[object EntityConstructor]' is true
PASS win['EntityReference'] == '[object EntityReferenceConstructor]' is true
PASS win['EntityReference'] == '[object EntityReferenceConstructor]' is true
PASS win['Event'] == '[object EventConstructor]' is true
PASS Object.getOwnPropertyDescriptor(global, 'Element').hasOwnProperty('set') is false
PASS Object.getOwnPropertyDescriptor(global, 'Element').enumerable is false
PASS Object.getOwnPropertyDescriptor(global, 'Element').configurable is true
-PASS Object.getOwnPropertyDescriptor(global, 'Entity').value is Entity
-PASS Object.getOwnPropertyDescriptor(global, 'Entity').hasOwnProperty('get') is false
-PASS Object.getOwnPropertyDescriptor(global, 'Entity').hasOwnProperty('set') is false
-PASS Object.getOwnPropertyDescriptor(global, 'Entity').enumerable is false
-PASS Object.getOwnPropertyDescriptor(global, 'Entity').configurable is true
PASS Object.getOwnPropertyDescriptor(global, 'EntityReference').value is EntityReference
PASS Object.getOwnPropertyDescriptor(global, 'EntityReference').hasOwnProperty('get') is false
PASS Object.getOwnPropertyDescriptor(global, 'EntityReference').hasOwnProperty('set') is false
PASS Object.getOwnPropertyDescriptor(global, 'Element').hasOwnProperty('set') is false
PASS Object.getOwnPropertyDescriptor(global, 'Element').enumerable is false
PASS Object.getOwnPropertyDescriptor(global, 'Element').configurable is true
-PASS Object.getOwnPropertyDescriptor(global, 'Entity').value is Entity
-PASS Object.getOwnPropertyDescriptor(global, 'Entity').hasOwnProperty('get') is false
-PASS Object.getOwnPropertyDescriptor(global, 'Entity').hasOwnProperty('set') is false
-PASS Object.getOwnPropertyDescriptor(global, 'Entity').enumerable is false
-PASS Object.getOwnPropertyDescriptor(global, 'Entity').configurable is true
PASS Object.getOwnPropertyDescriptor(global, 'EntityReference').value is EntityReference
PASS Object.getOwnPropertyDescriptor(global, 'EntityReference').hasOwnProperty('get') is false
PASS Object.getOwnPropertyDescriptor(global, 'EntityReference').hasOwnProperty('set') is false
PASS Object.getOwnPropertyDescriptor(global, 'Element').hasOwnProperty('set') is false
PASS Object.getOwnPropertyDescriptor(global, 'Element').enumerable is false
PASS Object.getOwnPropertyDescriptor(global, 'Element').configurable is true
-PASS Object.getOwnPropertyDescriptor(global, 'Entity').value is Entity
-PASS Object.getOwnPropertyDescriptor(global, 'Entity').hasOwnProperty('get') is false
-PASS Object.getOwnPropertyDescriptor(global, 'Entity').hasOwnProperty('set') is false
-PASS Object.getOwnPropertyDescriptor(global, 'Entity').enumerable is false
-PASS Object.getOwnPropertyDescriptor(global, 'Entity').configurable is true
PASS Object.getOwnPropertyDescriptor(global, 'EntityReference').value is EntityReference
PASS Object.getOwnPropertyDescriptor(global, 'EntityReference').hasOwnProperty('get') is false
PASS Object.getOwnPropertyDescriptor(global, 'EntityReference').hasOwnProperty('set') is false
PASS win['DocumentType'] == '[object DocumentTypeConstructor]' is true
PASS win['Element'] == '[object ElementConstructor]' is true
PASS win['Element'] == '[object ElementConstructor]' is true
-PASS win['Entity'] == '[object EntityConstructor]' is true
-PASS win['Entity'] == '[object EntityConstructor]' is true
PASS win['EntityReference'] == '[object EntityReferenceConstructor]' is true
PASS win['EntityReference'] == '[object EntityReferenceConstructor]' is true
PASS win['Event'] == '[object EventConstructor]' is true
PASS Object.getOwnPropertyDescriptor(global, 'Element').hasOwnProperty('set') is false
PASS Object.getOwnPropertyDescriptor(global, 'Element').enumerable is false
PASS Object.getOwnPropertyDescriptor(global, 'Element').configurable is true
-PASS Object.getOwnPropertyDescriptor(global, 'Entity').value is Entity
-PASS Object.getOwnPropertyDescriptor(global, 'Entity').hasOwnProperty('get') is false
-PASS Object.getOwnPropertyDescriptor(global, 'Entity').hasOwnProperty('set') is false
-PASS Object.getOwnPropertyDescriptor(global, 'Entity').enumerable is false
-PASS Object.getOwnPropertyDescriptor(global, 'Entity').configurable is true
PASS Object.getOwnPropertyDescriptor(global, 'EntityReference').value is EntityReference
PASS Object.getOwnPropertyDescriptor(global, 'EntityReference').hasOwnProperty('get') is false
PASS Object.getOwnPropertyDescriptor(global, 'EntityReference').hasOwnProperty('set') is false
PASS Object.getOwnPropertyDescriptor(global, 'Element').hasOwnProperty('set') is false
PASS Object.getOwnPropertyDescriptor(global, 'Element').enumerable is false
PASS Object.getOwnPropertyDescriptor(global, 'Element').configurable is true
-PASS Object.getOwnPropertyDescriptor(global, 'Entity').value is Entity
-PASS Object.getOwnPropertyDescriptor(global, 'Entity').hasOwnProperty('get') is false
-PASS Object.getOwnPropertyDescriptor(global, 'Entity').hasOwnProperty('set') is false
-PASS Object.getOwnPropertyDescriptor(global, 'Entity').enumerable is false
-PASS Object.getOwnPropertyDescriptor(global, 'Entity').configurable is true
PASS Object.getOwnPropertyDescriptor(global, 'EntityReference').value is EntityReference
PASS Object.getOwnPropertyDescriptor(global, 'EntityReference').hasOwnProperty('get') is false
PASS Object.getOwnPropertyDescriptor(global, 'EntityReference').hasOwnProperty('set') is false
+2015-09-18 Chris Dumez <cdumez@apple.com>
+
+ Drop support for Entity Node type
+ https://bugs.webkit.org/show_bug.cgi?id=149239
+
+ Reviewed by Darin Adler.
+
+ Drop support for Entity DOM type. This legacy type has been dropped in
+ DOM4:
+ - https://dom.spec.whatwg.org/#dom-core-changes
+
+ Chrome [1] and Firefox [2] already dropped it. There is currently no
+ way to construct an Entity Node in WebKit.
+
+ [1] https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/k3tZGP2EANc
+ [2] https://developer.mozilla.org/en-US/docs/Web/API/Entity
+
+ No new tests, already covered by existing W3C test.
+
+ * DerivedSources.cpp:
+ * WebCore.xcodeproj/project.pbxproj:
+ * bindings/gobject/WebKitDOMPrivate.cpp:
+ (WebKit::wrap): Deleted.
+ * bindings/js/JSNodeCustom.cpp:
+ (WebCore::createWrapperInline): Deleted.
+ * bindings/objc/DOM.mm:
+ (kitClass): Deleted.
+ * dom/Document.cpp:
+ (WebCore::Document::importNode): Deleted.
+ (WebCore::Document::adoptNode): Deleted.
+ (WebCore::Document::childTypeAllowed): Deleted.
+ (WebCore::Document::canAcceptChild): Deleted.
+ * dom/Entity.h:
+ * dom/Entity.idl:
+ * dom/Node.cpp:
+ (WebCore::Node::isDefaultNamespace): Deleted.
+ (WebCore::Node::lookupPrefix): Deleted.
+ (WebCore::Node::lookupNamespaceURI): Deleted.
+ (WebCore::appendTextContent): Deleted.
+ (WebCore::Node::setTextContent): Deleted.
+ * dom/Node.h:
+ * dom/Range.cpp:
+ (WebCore::lengthOfContentsInNode): Deleted.
+ (WebCore::Range::processContentsBetweenOffsets): Deleted.
+ (WebCore::Range::insertNode): Deleted.
+ (WebCore::Range::checkNodeWOffset): Deleted.
+ (WebCore::Range::checkNodeBA): Deleted.
+ (WebCore::Range::selectNode): Deleted.
+ (WebCore::Range::selectNodeContents): Deleted.
+ (WebCore::Range::surroundContents): Deleted.
+ * editing/MarkupAccumulator.cpp:
+ (WebCore::MarkupAccumulator::appendStartMarkup): Deleted.
+ * xml/XPathUtil.cpp:
+ (WebCore::XPath::isValidContextNode): Deleted.
+
2015-09-17 Brian Burg <bburg@apple.com>
ASSERT(!m_frontendRouter->hasLocalFrontend()) when running Web Inspector tests
#include "JSDOMWindow.cpp"
#include "JSDOMWindowCSS.cpp"
#include "JSElement.cpp"
-#include "JSEntity.cpp"
#include "JSEntityReference.cpp"
#include "JSErrorEvent.cpp"
#include "JSEvent.cpp"
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Production|Win32'">true</ExcludedFromBuild>
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Production|x64'">true</ExcludedFromBuild>
</ClCompile>
- <ClCompile Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\JSEntity.cpp">
- <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
- <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
- <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug_WinCairo|Win32'">true</ExcludedFromBuild>
- <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug_WinCairo|x64'">true</ExcludedFromBuild>
- <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='DebugSuffix|Win32'">true</ExcludedFromBuild>
- <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='DebugSuffix|x64'">true</ExcludedFromBuild>
- <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
- <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
- <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release_WinCairo|Win32'">true</ExcludedFromBuild>
- <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release_WinCairo|x64'">true</ExcludedFromBuild>
- <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Production|Win32'">true</ExcludedFromBuild>
- <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Production|x64'">true</ExcludedFromBuild>
- </ClCompile>
<ClCompile Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\JSEntityReference.cpp">
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
<ClInclude Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\JSDOMURL.h" />
<ClInclude Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\JSDOMWindow.h" />
<ClInclude Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\JSElement.h" />
- <ClInclude Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\JSEntity.h" />
<ClInclude Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\JSEntityReference.h" />
<ClInclude Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\JSErrorEvent.h" />
<ClInclude Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\JSEvent.h" />
<ClCompile Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\JSElement.cpp">
<Filter>DerivedSources</Filter>
</ClCompile>
- <ClCompile Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\JSEntity.cpp">
- <Filter>DerivedSources</Filter>
- </ClCompile>
<ClCompile Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\JSEntityReference.cpp">
<Filter>DerivedSources</Filter>
</ClCompile>
<ClInclude Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\JSElement.h">
<Filter>DerivedSources</Filter>
</ClInclude>
- <ClInclude Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\JSEntity.h">
- <Filter>DerivedSources</Filter>
- </ClInclude>
<ClInclude Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\JSEntityReference.h">
<Filter>DerivedSources</Filter>
</ClInclude>
65DF320409D1CC60000BE325 /* JSText.h in Headers */ = {isa = PBXBuildFile; fileRef = 65DF31F009D1CC60000BE325 /* JSText.h */; };
65DF320509D1CC60000BE325 /* JSWheelEvent.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 65DF31F109D1CC60000BE325 /* JSWheelEvent.cpp */; };
65DF320609D1CC60000BE325 /* JSWheelEvent.h in Headers */ = {isa = PBXBuildFile; fileRef = 65DF31F209D1CC60000BE325 /* JSWheelEvent.h */; };
- 65DF322F09D1DDBC000BE325 /* JSEntity.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 65DF322D09D1DDBC000BE325 /* JSEntity.cpp */; };
- 65DF323009D1DDBC000BE325 /* JSEntity.h in Headers */ = {isa = PBXBuildFile; fileRef = 65DF322E09D1DDBC000BE325 /* JSEntity.h */; };
65DF323909D1DE65000BE325 /* JSCanvasGradient.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 65DF323309D1DE65000BE325 /* JSCanvasGradient.cpp */; };
65DF323A09D1DE65000BE325 /* JSCanvasGradient.h in Headers */ = {isa = PBXBuildFile; fileRef = 65DF323409D1DE65000BE325 /* JSCanvasGradient.h */; };
65DF323B09D1DE65000BE325 /* JSCanvasPattern.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 65DF323509D1DE65000BE325 /* JSCanvasPattern.cpp */; };
65DF31F009D1CC60000BE325 /* JSText.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = JSText.h; sourceTree = "<group>"; };
65DF31F109D1CC60000BE325 /* JSWheelEvent.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = JSWheelEvent.cpp; sourceTree = "<group>"; };
65DF31F209D1CC60000BE325 /* JSWheelEvent.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = JSWheelEvent.h; sourceTree = "<group>"; };
- 65DF322D09D1DDBC000BE325 /* JSEntity.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = JSEntity.cpp; sourceTree = "<group>"; };
- 65DF322E09D1DDBC000BE325 /* JSEntity.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = JSEntity.h; sourceTree = "<group>"; };
65DF323309D1DE65000BE325 /* JSCanvasGradient.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = JSCanvasGradient.cpp; sourceTree = "<group>"; };
65DF323409D1DE65000BE325 /* JSCanvasGradient.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = JSCanvasGradient.h; sourceTree = "<group>"; };
65DF323509D1DE65000BE325 /* JSCanvasPattern.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = JSCanvasPattern.cpp; sourceTree = "<group>"; };
BC64649611D82349006455B0 /* JSDOMStringMap.h */,
65DF31E509D1CC60000BE325 /* JSElement.cpp */,
65DF31E609D1CC60000BE325 /* JSElement.h */,
- 65DF322D09D1DDBC000BE325 /* JSEntity.cpp */,
- 65DF322E09D1DDBC000BE325 /* JSEntity.h */,
93F9B7720BA5FDDC00854064 /* JSEntityReference.cpp */,
93F9B7730BA5FDDC00854064 /* JSEntityReference.h */,
FE80DA5F0E9C4703000D6F75 /* JSGeolocation.cpp */,
FD7868BA136B999200D403DF /* JSDynamicsCompressorNode.h in Headers */,
65DF31FA09D1CC60000BE325 /* JSElement.h in Headers */,
ADEC78F818EE5308001315C2 /* JSElementCustom.h in Headers */,
- 65DF323009D1DDBC000BE325 /* JSEntity.h in Headers */,
93F9B7750BA5FDDD00854064 /* JSEntityReference.h in Headers */,
2ECF7ADD10162B3800427DE7 /* JSErrorEvent.h in Headers */,
F3D461491161D53200CA0D09 /* JSErrorHandler.h in Headers */,
FD7868B9136B999200D403DF /* JSDynamicsCompressorNode.cpp in Sources */,
65DF31F909D1CC60000BE325 /* JSElement.cpp in Sources */,
BC2ED5550C6B9BD300920BFF /* JSElementCustom.cpp in Sources */,
- 65DF322F09D1DDBC000BE325 /* JSEntity.cpp in Sources */,
93F9B7740BA5FDDC00854064 /* JSEntityReference.cpp in Sources */,
2ECF7ADC10162B3800427DE7 /* JSErrorEvent.cpp in Sources */,
F3D461481161D53200CA0D09 /* JSErrorHandler.cpp in Sources */,
return WEBKIT_DOM_NODE(wrapDocumentType(static_cast<DocumentType*>(node)));
case Node::DOCUMENT_FRAGMENT_NODE:
return WEBKIT_DOM_NODE(wrapDocumentFragment(static_cast<DocumentFragment*>(node)));
- case Node::ENTITY_NODE:
case Node::XPATH_NAMESPACE_NODE:
break;
}
#include "JSDocument.h"
#include "JSDocumentFragment.h"
#include "JSDocumentType.h"
-#include "JSEntity.h"
#include "JSEntityReference.h"
#include "JSEventListener.h"
#include "JSHTMLElement.h"
case Node::CDATA_SECTION_NODE:
wrapper = CREATE_DOM_WRAPPER(globalObject, CDATASection, node);
break;
- case Node::ENTITY_NODE:
- wrapper = CREATE_DOM_WRAPPER(globalObject, Entity, node);
- break;
case Node::PROCESSING_INSTRUCTION_NODE:
wrapper = CREATE_DOM_WRAPPER(globalObject, ProcessingInstruction, node);
break;
return [DOMCDATASection class];
case WebCore::Node::ENTITY_REFERENCE_NODE:
return [DOMEntityReference class];
- case WebCore::Node::ENTITY_NODE:
- return [DOMEntity class];
case WebCore::Node::PROCESSING_INSTRUCTION_NODE:
return [DOMProcessingInstruction class];
case WebCore::Node::COMMENT_NODE:
case DOCUMENT_TYPE_NODE: // FIXME: Support cloning a DocumentType node per DOM4.
break;
- case ENTITY_NODE:
case XPATH_NAMESPACE_NODE:
ASSERT_NOT_REACHED(); // These two types of DOM nodes are not implemented.
break;
EventQueueScope scope;
switch (source->nodeType()) {
- case ENTITY_NODE:
case DOCUMENT_NODE:
case XPATH_NAMESPACE_NODE:
ec = NOT_SUPPORTED_ERR;
case CDATA_SECTION_NODE:
case DOCUMENT_FRAGMENT_NODE:
case DOCUMENT_NODE:
- case ENTITY_NODE:
case ENTITY_REFERENCE_NODE:
case TEXT_NODE:
case XPATH_NAMESPACE_NODE:
case ATTRIBUTE_NODE:
case CDATA_SECTION_NODE:
case DOCUMENT_NODE:
- case ENTITY_NODE:
case ENTITY_REFERENCE_NODE:
case TEXT_NODE:
case XPATH_NAMESPACE_NODE:
namespace WebCore {
-// FIXME: This abstract class is only here so that the JavaScript and Objective-C bindings
-// can continue to be compiled.
+// FIXME: This abstract class is only here so that the Objective-C bindings can continue to be compiled.
class Entity : public ContainerNode {
public:
String publicId() const { ASSERT_NOT_REACHED(); return String(); }
* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*/
+
+#if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C
+
[
+ NoInterfaceObject,
ImplementationLacksVTable
] interface Entity : Node {
[TreatReturnedNullStringAs=Null] readonly attribute DOMString publicId;
[TreatReturnedNullStringAs=Null] readonly attribute DOMString notationName;
};
+#endif
if (Element* documentElement = downcast<Document>(*this).documentElement())
return documentElement->isDefaultNamespace(namespaceURI);
return false;
- case ENTITY_NODE:
case DOCUMENT_TYPE_NODE:
case DOCUMENT_FRAGMENT_NODE:
return false;
if (Element* documentElement = downcast<Document>(*this).documentElement())
return documentElement->lookupPrefix(namespaceURI);
return String();
- case ENTITY_NODE:
case DOCUMENT_FRAGMENT_NODE:
case DOCUMENT_TYPE_NODE:
return String();
if (Element* documentElement = downcast<Document>(*this).documentElement())
return documentElement->lookupNamespaceURI(prefix);
return String();
- case ENTITY_NODE:
case DOCUMENT_TYPE_NODE:
case DOCUMENT_FRAGMENT_NODE:
return String();
}
FALLTHROUGH;
case Node::ATTRIBUTE_NODE:
- case Node::ENTITY_NODE:
case Node::ENTITY_REFERENCE_NODE:
case Node::DOCUMENT_FRAGMENT_NODE:
isNullString = false;
return;
case ELEMENT_NODE:
case ATTRIBUTE_NODE:
- case ENTITY_NODE:
case ENTITY_REFERENCE_NODE:
case DOCUMENT_FRAGMENT_NODE: {
Ref<ContainerNode> container(downcast<ContainerNode>(*this));
TEXT_NODE = 3,
CDATA_SECTION_NODE = 4,
ENTITY_REFERENCE_NODE = 5,
- ENTITY_NODE = 6,
PROCESSING_INSTRUCTION_NODE = 7,
COMMENT_NODE = 8,
DOCUMENT_NODE = 9,
XPATH_NAMESPACE_NODE = 13,
};
enum DeprecatedNodeType {
+ ENTITY_NODE = 6,
NOTATION_NODE = 12,
};
enum DocumentPosition {
case Node::ELEMENT_NODE:
case Node::ATTRIBUTE_NODE:
case Node::ENTITY_REFERENCE_NODE:
- case Node::ENTITY_NODE:
case Node::DOCUMENT_NODE:
case Node::DOCUMENT_TYPE_NODE:
case Node::DOCUMENT_FRAGMENT_NODE:
case Node::ELEMENT_NODE:
case Node::ATTRIBUTE_NODE:
case Node::ENTITY_REFERENCE_NODE:
- case Node::ENTITY_NODE:
case Node::DOCUMENT_NODE:
case Node::DOCUMENT_TYPE_NODE:
case Node::DOCUMENT_FRAGMENT_NODE:
// INVALID_NODE_TYPE_ERR: Raised if newNode is an Attr, Entity, ShadowRoot or Document node.
switch (newNodeType) {
case Node::ATTRIBUTE_NODE:
- case Node::ENTITY_NODE:
case Node::DOCUMENT_NODE:
ec = INVALID_NODE_TYPE_ERR;
return;
{
switch (n->nodeType()) {
case Node::DOCUMENT_TYPE_NODE:
- case Node::ENTITY_NODE:
ec = INVALID_NODE_TYPE_ERR;
return nullptr;
case Node::CDATA_SECTION_NODE:
case Node::ATTRIBUTE_NODE:
case Node::DOCUMENT_FRAGMENT_NODE:
case Node::DOCUMENT_NODE:
- case Node::ENTITY_NODE:
ec = INVALID_NODE_TYPE_ERR;
return;
case Node::CDATA_SECTION_NODE:
case Node::COMMENT_NODE:
case Node::DOCUMENT_TYPE_NODE:
case Node::ELEMENT_NODE:
- case Node::ENTITY_NODE:
case Node::ENTITY_REFERENCE_NODE:
case Node::PROCESSING_INSTRUCTION_NODE:
case Node::TEXT_NODE:
case Node::XPATH_NAMESPACE_NODE:
break;
case Node::DOCUMENT_TYPE_NODE:
- case Node::ENTITY_NODE:
ec = INVALID_NODE_TYPE_ERR;
return;
}
case Node::ATTRIBUTE_NODE:
case Node::DOCUMENT_FRAGMENT_NODE:
case Node::DOCUMENT_NODE:
- case Node::ENTITY_NODE:
ec = INVALID_NODE_TYPE_ERR;
return;
}
case Node::XPATH_NAMESPACE_NODE:
break;
case Node::DOCUMENT_TYPE_NODE:
- case Node::ENTITY_NODE:
ec = INVALID_NODE_TYPE_ERR;
return;
}
case Node::DOCUMENT_FRAGMENT_NODE:
case Node::DOCUMENT_NODE:
case Node::DOCUMENT_TYPE_NODE:
- case Node::ENTITY_NODE:
ec = INVALID_NODE_TYPE_ERR;
return;
case Node::CDATA_SECTION_NODE:
appendCDATASection(result, downcast<CDATASection>(node).data());
break;
case Node::ATTRIBUTE_NODE:
- case Node::ENTITY_NODE:
case Node::ENTITY_REFERENCE_NODE:
case Node::XPATH_NAMESPACE_NODE:
ASSERT_NOT_REACHED();
return true;
case Node::DOCUMENT_FRAGMENT_NODE:
case Node::DOCUMENT_TYPE_NODE:
- case Node::ENTITY_NODE:
case Node::ENTITY_REFERENCE_NODE:
return false;
case Node::TEXT_NODE:
+2015-09-18 Chris Dumez <cdumez@apple.com>
+
+ Drop support for Entity Node type
+ https://bugs.webkit.org/show_bug.cgi?id=149239
+
+ Reviewed by Darin Adler.
+
+ Stop handling the Entity node type.
+
+ * WebProcess/InjectedBundle/API/mac/WKDOMInternals.mm:
+
2015-09-17 Brian Burg <bburg@apple.com>
ASSERT(!m_frontendRouter->hasLocalFrontend()) when running Web Inspector tests
case WebCore::Node::ATTRIBUTE_NODE:
case WebCore::Node::CDATA_SECTION_NODE:
case WebCore::Node::ENTITY_REFERENCE_NODE:
- case WebCore::Node::ENTITY_NODE:
case WebCore::Node::PROCESSING_INSTRUCTION_NODE:
case WebCore::Node::COMMENT_NODE:
case WebCore::Node::DOCUMENT_TYPE_NODE: