[Webkit-unassigned] [Bug 23708] New: Would like to have a callback when an HTML element is first added to the DOM

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Feb 3 11:34:20 PST 2009


           Summary: Would like to have a callback when an HTML element is
                    first added to the DOM
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Macintosh
        OS/Version: Mac OS X 10.5
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebKit API
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: aa at chromium.org

It would be useful to have a callback (perhaps on FrameLoaderClient) for when
the HTML element is first added to the DOM. This would b fired around the same
time as the existing windowObjectCleared() callback, but the difference would
be that clients would be guaranteed there is a root HTML element available that
they can start using.

The specific use case I have in mind in user scripts in Chromium. In Firefox,
developers frequently asked for a way to run their user scripts before any HTML
or script had been run on the page. A typical reason would be so that they
could add CSS to the page before rendering started, or to setup event handlers.

In order to add CSS, we need a callback after there is an HTML element to
append new style elements to, and windowObjectCleared() happens before this
point currently.

Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

More information about the webkit-unassigned mailing list