Setting document.title when there is no title and no head element should no nothing: https://html.spec.whatwg.org/multipage/dom.html#document.title Firefox and Chrome comply with the specification. However, WebKit returns the updated title when querying document.title after setting it.
rdar://problem/22567524
Created attachment 260865 [details] Patch
Comment on attachment 260865 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=260865&action=review > Source/WebCore/dom/Document.cpp:1541 > + m_titleElement = createElement(titleTag, false); This boolean argument sucks :( We should replace it with enum class in the future.
Comment on attachment 260865 [details] Patch Clearing flags on attachment: 260865 Committed r189555: <http://trac.webkit.org/changeset/189555>
All reviewed patches have been landed. Closing bug.