WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
132252
[GTK] Crash in debug build with removing windowed plugin child widgets from the view
https://bugs.webkit.org/show_bug.cgi?id=132252
Summary
[GTK] Crash in debug build with removing windowed plugin child widgets from t...
Carlos Garcia Campos
Reported
2014-04-28 03:37:20 PDT
It crashes due to an assert in HashTable that checks the iterators validity. The problem is that we are iterating the children map and the callback called on every iterator might modify the map, making the iterators invalid. This happens when the web view is destroyed, GtkContainer calls gtk_container_foreach() with gtk_widget_destroy as callback. When a widget inside a container is destroyed, it's removed from the container, and in our case, the child widget is removed from the map. This is causing several crashes when running layout tests in debug bot.
Attachments
Patch
(2.45 KB, patch)
2014-04-28 03:40 PDT
,
Carlos Garcia Campos
no flags
Details
Formatted Diff
Diff
Fix coding style
(2.46 KB, patch)
2014-04-28 03:46 PDT
,
Carlos Garcia Campos
pnormand
: review+
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Carlos Garcia Campos
Comment 1
2014-04-28 03:40:59 PDT
Created
attachment 230289
[details]
Patch
WebKit Commit Bot
Comment 2
2014-04-28 03:43:00 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
WebKit Commit Bot
Comment 3
2014-04-28 03:43:11 PDT
Attachment 230289
[details]
did not pass style-queue: ERROR: Source/WebKit2/UIProcess/API/gtk/WebKitWebViewBase.cpp:368: Multi line control clauses should use braces. [whitespace/braces] [4] Total errors found: 1 in 2 files If any of these errors are false positives, please file a bug against check-webkit-style.
Carlos Garcia Campos
Comment 4
2014-04-28 03:46:35 PDT
Created
attachment 230290
[details]
Fix coding style
Carlos Garcia Campos
Comment 5
2014-04-28 04:11:06 PDT
Committed
r167883
: <
http://trac.webkit.org/changeset/167883
>
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