RESOLVED FIXED 141993
[Attachment] Give <attachment> elements an underlying File
https://bugs.webkit.org/show_bug.cgi?id=141993
Summary [Attachment] Give <attachment> elements an underlying File
Sam Weinig
Reported 2015-02-24 17:15:04 PST
[Attachment] Give <attachment> elements an underlying File
Attachments
Patch (22.50 KB, patch)
2015-02-24 17:30 PST, Sam Weinig
thorton: review+
Sam Weinig
Comment 1 2015-02-24 17:30:01 PST
Tim Horton
Comment 2 2015-02-24 17:33:06 PST
Comment on attachment 247284 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=247284&action=review > Source/WebCore/DerivedSources.cpp:174 > +#if ENABLE(ATTACHMENT_ELEMENT) Shouldn't this be below in its own block? > LayoutTests/fast/attachment/attachment-dom.html:16 > +if (window.internals) { no braces
Simon Fraser (smfr)
Comment 3 2015-02-24 19:48:08 PST
This broke windows: 1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(607,5): error MSB6006: "link.exe" exited with code 1120. 1>WebCoreTestSupport.lib(Internals.obj) : error LNK2019: unresolved external symbol "public: class WTF::String __thiscall WebCore::URL::fileSystemPath(void)const " (?fileSystemPath@URL@WebCore@@QBE?AVString@WTF@@XZ) referenced in function "public: class WTF::RefPtr<class WebCore::File> __thiscall WebCore::Internals::createFile(class WTF::String const &)" (?createFile@Internals@WebCore@@QAE?AV?$RefPtr@VFile@WebCore@@@WTF@@ABVString@4@@Z) 1>WebCoreTestSupport.lib(Internals.obj) : error LNK2019: unresolved external symbol "public: bool __thiscall WebCore::URL::isLocalFile(void)const " (?isLocalFile@URL@WebCore@@QBE_NXZ) referenced in function "public: class WTF::RefPtr<class WebCore::File> __thiscall WebCore::Internals::createFile(class WTF::String const &)" (?createFile@Internals@WebCore@@QAE?AV?$RefPtr@VFile@WebCore@@@WTF@@ABVString@4@@Z) 1>WebCoreTestSupport.lib(Internals.obj) : error LNK2019: unresolved external symbol "private: __thiscall WebCore::File::File(class WTF::String const &)" (??0File@WebCore@@AAE@ABVString@WTF@@@Z) referenced in function "public: static class WTF::Ref<class WebCore::File> __cdecl WebCore::File::create(class WTF::String const &)" (?create@File@WebCore@@SA?AV?$Ref@VFile@WebCore@@@WTF@@ABVString@4@@Z) 1>WebCoreTestSupport.lib(JSInternals.obj) : error LNK2019: unresolved external symbol "class JSC::JSValue __cdecl WebCore::toJS(class JSC::ExecState *,class WebCore::JSDOMGlobalObject *,class WebCore::File *)" (?toJS@WebCore@@YA?AVJSValue@JSC@@PAVExecState@3@PAVJSDOMGlobalObject@1@PAVFile@1@@Z) referenced in function "public: float __thiscall <lambda_61e80db43a2fdfc51022831809c4282b>::operator()(class WebCore::LayoutUnit,class WebCore::LayoutUnit)const " (??R<lambda_61e80db43a2fdfc51022831809c4282b>@@QBEMVLayoutUnit@WebCore@@0@Z) 1>C:\cygwin\home\buildbot\slave\win-debug\build\WebKitBuild\Debug\bin32\DumpRenderTree.dll : fatal error LNK1120: 4 unresolved externals Should have waited for EWS!
Simon Fraser (smfr)
Comment 4 2015-02-24 20:32:08 PST
Brent tried to fix in https://trac.webkit.org/r180610.
Alexey Proskuryakov
Comment 5 2015-02-24 21:39:17 PST
This also broke js/dom/global-constructors-attributes.html on Mac. Updated the results in r180616. Should have waited for EWS!
Ryosuke Niwa
Comment 6 2015-02-24 21:39:44 PST
Comment on attachment 247284 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=247284&action=review > Source/WebCore/html/HTMLAttachmentElement.idl:27 > + Conditional=ATTACHMENT_ELEMENT We shoudln't be generating interface object in window. It's causing global-constructors-attributes.html to see this interface. See https://trac.webkit.org/r180616.
Ryosuke Niwa
Comment 7 2015-02-24 21:44:05 PST
Oh interesting, this feature is runtime-enabled by default.
Note You need to log in before you can comment on or make changes to this bug.