[Webkit-unassigned] [Bug 92793] New: [chromium] Add method to check if a document is visually empty
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Jul 31 14:49:55 PDT 2012
https://bugs.webkit.org/show_bug.cgi?id=92793
Summary: [chromium] Add method to check if a document is
visually empty
Product: WebKit
Version: 528+ (Nightly build)
Platform: All
OS/Version: All
Status: NEW
Severity: Normal
Priority: P2
Component: WebKit API
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: creis at chromium.org
CC: eric at webkit.org, fishd at chromium.org, abarth at webkit.org
For http://crbug.com/9682, we would like to make it possible to show the pending URL in a newly opened tab, as long as the contents of the initial about:blank document have not been modified by another window. In that case, a URL spoof is possible and the pending URL should not be shown. This behavior would be consistent with Opera.
However, there's currently no way in the Chromium WebKit API to determine if an about:blank document has been visually modified or not. (Bug 91766 investigated the didFirstVisuallyNonEmptyLayout() callback for this, but it turned out to not be appropriate.) I can listen to didUpdateLayout for potential changes to the render tree, as long as there's a way to check if the WebDocument's render tree is visually empty.
I'll start by proposing a WebDocument::isRenderTreeEmpty() method, which simply ensures that the RenderBody node of the render tree is empty. I'm not super familiar with the render tree, so suggestions to improve this are welcome.
--
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