[Webkit-unassigned] [Bug 34532] New: load-committed should be sent for frames in a page
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Feb 3 08:37:33 PST 2010
https://bugs.webkit.org/show_bug.cgi?id=34532
Summary: load-committed should be sent for frames in a page
Product: WebKit
Version: 528+ (Nightly build)
Platform: PC
OS/Version: Linux
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: WebKit Gtk
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: grant_gayed at ca.ibm.com
(I saw bug 17066, but wasn't sure if this fit in there or not. If it does then
this can be a duplicate, but please copy the description over so that it's not
lost).
- when navigating to a page with frames, the
navigation-policy-decision-requested signal is sent for the top frame and each
of the sub-frames, which seems good
-> however a load-committed signal is only received for the top frame, which
seems inconsistent
- FWIW, WebKit on OSX has callback didCommitLoadForFrame(...) which is called
for each frame in a page
To reproduce this, start with the GtkLauncher example and add two functions:
static int
policy_decision_cb (WebKitWebView *web_view, WebKitWebFrame *frame,
WebKitNetworkRequest *request, WebKitWebNavigationAction *navigation_action,
WebKitWebPolicyDecision *policy_decision, gpointer user_data)
{
const gchar* uri = webkit_network_request_get_uri (request);
fprintf(stdout, "navigation-policy-decision-requested for: %s\n", uri);
return 0;
}
static void
load_committed_cb (WebKitWebView *web_view, WebKitWebFrame *frame, gpointer
user_data)
{
const gchar* uri = webkit_web_view_get_uri (web_view);
fprintf(stdout, "load_committed_cb for: %s\n", uri);
}
and in create_browser() add two lines:
g_signal_connect (web_view, "navigation-policy-decision-requested",
G_CALLBACK (policy_decision_cb), web_view);
g_signal_connect (web_view, "load-committed", G_CALLBACK
(load_committed_cb), web_view);
--
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