On the other hand using setTimeout(..., 0) makes it work. Output: run-launcher --efl -2 -r 1 ManualTests/window-geometry.html Starting webkit launcher. HTML5 local storage is enabled for this view. did commit load for frame efl informLoadCommitted HTML5 local storage is enabled for this view. minibrowser: location(0,0) size=(1,1) url=about:blank did commit load for frame efl informLoadCommitted write! <style>body { margin: 0 }</style><body></body> <- printed at end of function HTML5 local storage is enabled for this view. minibrowser: location(0,0) size=(1,1) url=about:blank did commit load for frame efl informLoadCommitted write! <style>body { margin: 0 }</style><body></body> did commit load for frame efl informLoadCommitted did commit load for frame efl informLoadCommitted The following patch to the test makes the write work: - win = window.open("about:blank", "", "location=no, resizable=no, scrollbars=no, status=no, titlebar=no, toolbar=no, left=0, top=0, width=1, height=1"); - win.document.write("<style>body { margin: 0 }</style><body></body>"); - win.document.getElementsByTagName('body')[0].innerHTML = div.outerHTML; - setWindowRect(win, div.getClientRects()[0], fromWindow); + var win = window.open("about:blank", "", "location=no, resizable=no, scrollbars=no, status=no, titlebar=no, toolbar=no, left=0, top=0, width=1, height=1"); + + setTimeout(function() { + win.document.write("<style>body { margin: 0 }</style><body></body>"); + win.document.getElementsByTagName('body')[0].innerHTML = div.outerHTML; + setWindowRect(win, div.getClientRects()[0], fromWindow); + }, 0);
Just checked it does get fine into HTMLDocumentParser::insert
Created attachment 181293 [details] patch
Comment on attachment 181293 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=181293&action=review > Tools/MiniBrowser/efl/main.c:1225 > - if (url) > + if (url && strcmp(url, "about:blank")) this needs a comment
Created attachment 181895 [details] to be landed
Comment on attachment 181895 [details] to be landed Rejecting attachment 181895 [details] from commit-queue. New failing tests: inspector-protocol/debugger-terminate-dedicated-worker-while-paused.html Full output: http://queues.webkit.org/results/15755555
(In reply to comment #5) > (From update of attachment 181895 [details]) > Rejecting attachment 181895 [details] from commit-queue. > > New failing tests: > inspector-protocol/debugger-terminate-dedicated-worker-while-paused.html > Full output: http://queues.webkit.org/results/15755555 Unrelated
Comment on attachment 181895 [details] to be landed Attachment 181895 [details] did not pass chromium-ews (chromium-xvfb): Output: http://queues.webkit.org/results/15763511 New failing tests: inspector-protocol/debugger-terminate-dedicated-worker-while-paused.html
Committed in r139303.