[Webkit-unassigned] [Bug 25166] New: Add QWebFrame::requestCount() method for obtaining the number of associated resource requests.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Apr 13 15:56:19 PDT 2009


https://bugs.webkit.org/show_bug.cgi?id=25166

           Summary: Add QWebFrame::requestCount() method for obtaining the
                    number of associated resource requests.
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: Mac OS X 10.5
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: WebKit Qt
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: faw217 at gmail.com


Added QWebFrame::requestCount() method with following signature:

int requestCount(RequestStates state = RequestsAll, bool recursive = true)
const;

The function returns number of requests (of specified status) that have been
started along with creation of the frame.

RequestState enumerates following types of requests:

RequestsUnfinished = 1,
RequestsCompleted = 2,
RequestsFailed = 4,
RequestsAll = RequestsUnfinished | RequestsCompleted | RequestsFailed

recursive specifies whether the request count should be determined including
the child frames and its resources or not.

The recursive call on the main frame is also wrapped in
QWebPage::requestCount() method.

Patch with autotest attached.


-- 
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