Bug 91220

Summary: [GTK] WebKit2 crash when going back/forward
Product: WebKit Reporter: Carlos Garcia Campos <cgarcia>
Component: WebKit2Assignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Critical CC: gustavo, mrobinson, webkit.review.bot, xan.lopez
Priority: P2 Keywords: Gtk
Version: 528+ (Nightly build)   
Hardware: PC   
OS: Linux   
Bug Depends on:    
Bug Blocks: 91482    
Attachments:
Description Flags
Patch xan.lopez: review+

Description Carlos Garcia Campos 2012-07-13 04:32:29 PDT
I assumed that when load-committed signal is emitted for the main frame, the signals for the main resource had already been fired. That's indeed what happens when the page is normally loaded, but when the page is loaded from the backforward list, we don't even have a main resource when the loadcommitted signal is emitted.
Comment 1 Carlos Garcia Campos 2012-07-13 04:41:11 PDT
Created attachment 152219 [details]
Patch

Patch to fix the crash, I'll file a new bug for the callbacks emisson order issue.
Comment 2 WebKit Review Bot 2012-07-13 04:44:03 PDT
Thanks for the patch. If this patch contains new public API please make sure it follows the guidelines for new WebKit2 GTK+ API. See http://trac.webkit.org/wiki/WebKitGTK/AddingNewWebKit2API
Comment 3 Xan Lopez 2012-07-13 05:00:36 PDT
Comment on attachment 152219 [details]
Patch

OK.
Comment 4 Carlos Garcia Campos 2012-07-13 05:08:19 PDT
Committed r122567: <http://trac.webkit.org/changeset/122567>