WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
29890
lxp149
[GTK] page transition may crash webkit
https://bugs.webkit.org/show_bug.cgi?id=29890
Summary
[GTK] page transition may crash webkit
luying.pan
Reported
2009-09-29 11:47:21 PDT
I've tried this from both epiphany and seed. I'm trying to extend a webkit-based browser to do some automatic browsing. A simple scenario would be to wait for the current page to finish loading and then browse to some other page. So I added a signal handler for WebKitWebView's load-finished signal inside which webkit_web_view_load_uri is called. However this crashes webkit. See attachment for more details.
Attachments
bug report
(17.51 KB, text/plain)
2009-09-30 10:09 PDT
,
luying.pan
no flags
Details
proposed fix
(3.18 KB, patch)
2009-10-09 13:15 PDT
,
Gustavo Noronha (kov)
xan.lopez
: review+
gustavo
: commit-queue-
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
luying.pan
Comment 1
2009-09-30 10:09:19 PDT
Created
attachment 40380
[details]
bug report
Xan Lopez
Comment 2
2009-10-06 23:32:56 PDT
---- Critical and fatal warnings logged during execution ---- ** epiphany **: WebKitWebResource* webkit_web_view_get_resource(WebKitWebView*, char*): assertion `resourceFound || g_str_equal(identifier, priv->mainResourceIdentifier)' failed ** epiphany **: const gchar* webkit_web_resource_get_uri(WebKitWebResource*): assertion `WEBKIT_IS_WEB_RESOURCE(webResource)' failed CCing Gustavo because of these warnings.
Gustavo Noronha (kov)
Comment 3
2009-10-09 13:07:56 PDT
Same thing that is making fast/loader/unload-hyperlink-targeted.html crash. Patch incoming.
Gustavo Noronha (kov)
Comment 4
2009-10-09 13:15:31 PDT
Created
attachment 40962
[details]
proposed fix
Xan Lopez
Comment 5
2009-10-09 13:27:54 PDT
(In reply to
comment #4
)
> Created an attachment (id=40962) [details] > proposed fix
You seem to give different reasons for this patch in the commit message and in the comments? Can this only happen when a load is cancelled or are there situations where a resource can be requested when a new load has already started? Is it really OK to clean all resources in the place we do it?
Gustavo Noronha (kov)
Comment 6
2009-10-09 14:17:16 PDT
(In reply to
comment #5
)
> (In reply to
comment #4
) > > Created an attachment (id=40962) [details] [details] > > proposed fix > > You seem to give different reasons for this patch in the commit message and in > the comments? Can this only happen when a load is cancelled or are there > situations where a resource can be requested when a new load has already > started? Is it really OK to clean all resources in the place we do it?
The reason is the same, I just explained different aspects of it, maybe I can rephrase one of them to make it better? Suggestions? So what happens is that another provisional load has already been started, but one or more resource loads didn't hit didFinishLoading yet. This doesn't happen if you simple cancel a load, because the hash table is not cleared by cancelling. This seems to happen mainly when the transition is caused by an unload handler or inside the load-finished handler. I think we're clearing the hash table at the correct spot - when the provisional load starts.
Xan Lopez
Comment 7
2009-10-15 06:59:59 PDT
Comment on
attachment 40962
[details]
proposed fix OK, r=me
Gustavo Noronha (kov)
Comment 8
2009-10-15 08:02:38 PDT
Landed as
r49627
.
Gustavo Noronha (kov)
Comment 9
2009-10-19 04:33:35 PDT
***
Bug 30125
has been marked as a duplicate of this bug. ***
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug