[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-panel-devel
Subject: Re: Review Request 109049: Fix favicon support for chrome bookmarks on krunner
From: Àlex_Fiestas <afiestas () kde ! org>
Date: 2013-02-20 11:12:25
Message-ID: 20130220111225.14117.10750 () vidsolbach ! de
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
> On Feb. 20, 2013, 1:06 a.m., Àlex Fiestas wrote:
> > I guess this will break compatibility with old versions then? if so, do you know \
> > from which version will it work? If this was not long ago, can we check the \
> > version and keep supporting the old and the new one?
>
> Àlex Fiestas wrote:
> Code-wise the patch looks fine.
>
> Marco Gulino wrote:
> You're right, there's a compatibility break, and we can't even know starting from \
> which version, since it's an internal database not documented (I might try looking \
> around, but I don't expect to find much). If it makes sense, I might conditionally \
> choose the right query depending on the schema found (assuming the new table didn't \
> exist in the previous version, which makes sense). I also noticed that the new \
> table is meant to support multiple icon sizes, so I might add an order by clause to \
> choose the wider one as default.
To be clear, personally I'd be fine if we drop support for some old Chromium version, \
thing is those guys bump versions like crazy (today we are at chromium 20 and \
tomorrow we are at 30), so we need to know how old is this change to be able to \
decide if we want to drop support for older versions.
- Àlex
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/109049/#review27760
-----------------------------------------------------------
On Feb. 19, 2013, 10:42 p.m., Marco Gulino wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/109049/
> -----------------------------------------------------------
>
> (Updated Feb. 19, 2013, 10:42 p.m.)
>
>
> Review request for kde-workspace and Plasma.
>
>
> Description
> -------
>
> As reported by an user ( https://bugs.kde.org/show_bug.cgi?id=305633 ), chrome \
> bookmarks database changed, and favicon wasn't shown anymore (not either the \
> default "star" icon). I added the functionality back, and added a safety guard for \
> displaying the default icon if something similar happens again. (note: I didn't set \
> the "bugs" field here, since that bug was already closed, and was about something \
> else).
>
> Diffs
> -----
>
> plasma/generic/runners/bookmarks/faviconfromblob.cpp 93c720c
>
> Diff: http://git.reviewboard.kde.org/r/109049/diff/
>
>
> Testing
> -------
>
> with chrome as default browser, install the plugin, restart krunner, type \
> "bookmarks" to view all bookmarks: proper favicon is shown. Removing the database \
> query fix, but leaving the safety guard, and cleaning favicon cache (to have again \
> a "broken" feature case), the default icon is shown.
>
> Thanks,
>
> Marco Gulino
>
>
[Attachment #5 (text/html)]
<html>
<body>
<div style="font-family: Verdana, Arial, Helvetica, Sans-Serif;">
<table bgcolor="#f9f3c9" width="100%" cellpadding="8" style="border: 1px #c9c399 \
solid;"> <tr>
<td>
This is an automatically generated e-mail. To reply, visit:
<a href="http://git.reviewboard.kde.org/r/109049/">http://git.reviewboard.kde.org/r/109049/</a>
</td>
</tr>
</table>
<br />
<blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: \
10px;"> <p style="margin-top: 0;">On February 20th, 2013, 1:06 a.m. UTC, <b>Àlex \
Fiestas</b> wrote:</p> <blockquote style="margin-left: 1em; border-left: 2px solid \
#d0d0d0; padding-left: 10px;"> <pre style="white-space: pre-wrap; white-space: \
-moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: \
break-word;">I guess this will break compatibility with old versions then? if so, do \
you know from which version will it work? If this was not long ago, can we check the \
version and keep supporting the old and the new one?</pre> </blockquote>
<p>On February 20th, 2013, 1:11 a.m. UTC, <b>Àlex Fiestas</b> wrote:</p>
<blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: \
10px;"> <pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: \
-pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">Code-wise the patch \
looks fine.</pre> </blockquote>
<p>On February 20th, 2013, 11:06 a.m. UTC, <b>Marco Gulino</b> wrote:</p>
<blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: \
10px;"> <pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: \
-pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">You're right, \
there's a compatibility break, and we can't even know starting from which \
version, since it's an internal database not documented (I might try looking \
around, but I don't expect to find much). If it makes sense, I might \
conditionally choose the right query depending on the schema found (assuming the new \
table didn't exist in the previous version, which makes sense). I also noticed \
that the new table is meant to support multiple icon sizes, so I might add an order \
by clause to choose the wider one as default.</pre> </blockquote>
</blockquote>
<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: \
-pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">To be clear, personally \
I'd be fine if we drop support for some old Chromium version, thing is those guys \
bump versions like crazy (today we are at chromium 20 and tomorrow we are at 30), so \
we need to know how old is this change to be able to decide if we want to drop \
support for older versions.</pre> <br />
<p>- Àlex</p>
<br />
<p>On February 19th, 2013, 10:42 p.m. UTC, Marco Gulino wrote:</p>
<table bgcolor="#fefadf" width="100%" cellspacing="0" cellpadding="8" \
style="background-image: \
url('http://git.reviewboard.kde.org/static/rb/images/review_request_box_top_bg.ab6f3b1072c9.png'); \
background-position: left top; background-repeat: repeat-x; border: 1px black \
solid;"> <tr>
<td>
<div>Review request for kde-workspace and Plasma.</div>
<div>By Marco Gulino.</div>
<p style="color: grey;"><i>Updated Feb. 19, 2013, 10:42 p.m.</i></p>
<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Description </h1>
<table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" \
style="border: 1px solid #b8b5a0"> <tr>
<td>
<pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: \
-moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: \
break-word;">As reported by an user ( https://bugs.kde.org/show_bug.cgi?id=305633 ), \
chrome bookmarks database changed, and favicon wasn't shown anymore (not either \
the default "star" icon). I added the functionality back, and added a \
safety guard for displaying the default icon if something similar happens again. \
(note: I didn't set the "bugs" field here, since that bug was already \
closed, and was about something else).</pre> </td>
</tr>
</table>
<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Testing </h1>
<table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" style="border: \
1px solid #b8b5a0"> <tr>
<td>
<pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: \
-moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: \
break-word;">with chrome as default browser, install the plugin, restart krunner, \
type "bookmarks" to view all bookmarks: proper favicon is shown. Removing \
the database query fix, but leaving the safety guard, and cleaning favicon cache (to \
have again a "broken" feature case), the default icon is shown.</pre> \
</td> </tr>
</table>
<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Diffs</b> </h1>
<ul style="margin-left: 3em; padding-left: 0;">
<li>plasma/generic/runners/bookmarks/faviconfromblob.cpp <span style="color: \
grey">(93c720c)</span></li>
</ul>
<p><a href="http://git.reviewboard.kde.org/r/109049/diff/" style="margin-left: \
3em;">View Diff</a></p>
</td>
</tr>
</table>
</div>
</body>
</html>
_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic