WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED DUPLICATE of
bug 60361
59238
[EFL] Eliminate error when setting icon database path for open database.
https://bugs.webkit.org/show_bug.cgi?id=59238
Summary
[EFL] Eliminate error when setting icon database path for open database.
Lukasz Slachciak
Reported
2011-04-22 14:48:31 PDT
When running EWebLauncher on debug build there is an error: ERROR: Attempt to reopen the IconDatabase which is already open. Must close it first. /home/lukasz/sources/WebKit/WebKit/Source/WebCore/loader/icon/IconDatabase.cpp(127) : virtual bool WebCore::IconDatabase::open(const WTF::String&, const WTF::String&) This is because ewk_settings_icon_database_path_set i called twice. To eliminate such problems I modified ewk_settings_icon_database_path_set to close already open icon db if new path is given. Please review attached patch.
Attachments
icon database error fix
(1.60 KB, patch)
2011-04-22 14:53 PDT
,
Lukasz Slachciak
eric
: review-
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Lukasz Slachciak
Comment 1
2011-04-22 14:53:26 PDT
Created
attachment 90769
[details]
icon database error fix
Eric Seidel (no email)
Comment 2
2011-04-26 16:23:40 PDT
Comment on
attachment 90769
[details]
icon database error fix Looks OK.
Eric Seidel (no email)
Comment 3
2011-04-26 16:23:58 PDT
Bradee is the icon database expert, but I think this is EFL specific.
Brady Eidson
Comment 4
2011-04-26 16:26:20 PDT
The error is valid. It is extremely wasteful and problematic for the client to manage icon retain counts properly if the database is closed/reopened/moved after initial launch. This does, indeed, seem EFL specific, so they can fix it however they'd like. I would recommend not wastefully calling this method twice. :)
Eric Seidel (no email)
Comment 5
2011-04-26 18:15:58 PDT
Comment on
attachment 90769
[details]
icon database error fix Seems like Bradee thinks this is a bad idea.
Tomasz Morawski
Comment 6
2011-05-07 09:04:54 PDT
***
Bug 60148
has been marked as a duplicate of this bug. ***
Raphael Kubo da Costa (:rakuco)
Comment 7
2011-05-11 11:06:33 PDT
The proposed patch in
bug 60361
also stops calling the method twice, as recommended by
comment #4
, so it would also fix this bug.
Lukasz Slachciak
Comment 8
2011-05-12 02:34:36 PDT
I agree that Tomasz's
bug 60361
fixes this issue and this is ok for me. But according to
comment #4
- if we can't call ewk_settings_icon_database_path_set twice, we should remove this function from API. What do you think?
Lukasz Slachciak
Comment 9
2011-05-12 02:49:36 PDT
*** This bug has been marked as a duplicate of
bug 60361
***
Raphael Kubo da Costa (:rakuco)
Comment 10
2011-05-12 10:35:12 PDT
(In reply to
comment #8
)
> But according to
comment #4
- if we can't call ewk_settings_icon_database_path_set twice, we should remove this function from API. What do you think?
I'd recommend going this way only after some discussion with people more acquainted with this part of the code in WebCore -- at least the GTK+ and Qt ports do almost the same thing in their code, for example.
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