[Webkit-unassigned] [Bug 105276] New: [EFL][WK2] Writing immediately to created windows (open) fails
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Dec 18 03:42:37 PST 2012
https://bugs.webkit.org/show_bug.cgi?id=105276
Summary: [EFL][WK2] Writing immediately to created windows
(open) fails
Product: WebKit
Version: 528+ (Nightly build)
Platform: Unspecified
OS/Version: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: WebKit EFL
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: kenneth at webkit.org
CC: demarchi at webkit.org
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);
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list