Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(337)

Issue 16831012: Fix a bug where an extension's icon was not being properly updated. (Closed)

Created:
7 years, 6 months ago by dhnishi (use Chromium)
Modified:
7 years, 5 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, arv+watch_chromium.org, extensions-reviews_chromium.org, not at google - send to devlin
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Fix a bug where an extension's icon was not being properly updated. A query string, generated when an extension is loaded or reloaded, is appended to the extension icon url to prevent it from using the cached image when it may have been changed. BUG=159302

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -1 line) Patch
M AUTHORS View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/resources/extensions/extension_list.js View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/extensions/extension_basic_info.cc View 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/common/extensions/extension.h View 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/common/extensions/extension.cc View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
dhnishi (use Chromium)
Hello! I am a new coder with the Extensions group at Cal Poly San Luis ...
7 years, 6 months ago (2013-06-19 22:41:57 UTC) #1
not at google - send to devlin
I'm going to divert this to Jeffrey actually, despite me reviewing the last one I ...
7 years, 6 months ago (2013-06-20 15:06:30 UTC) #2
dhnishi (use Chromium)
Hello Jeffrey, I was wondering if you could take a look at this. I couldn't ...
7 years, 6 months ago (2013-06-24 18:20:08 UTC) #3
Jeffrey Yasskin
On 2013/06/24 18:20:08, Daniel Nishi wrote: > Hello Jeffrey, > > I was wondering if ...
7 years, 6 months ago (2013-06-24 23:02:53 UTC) #4
dhnishi (use Chromium)
It looks like the URLDataSource's AllowCaching applies to all of the responses that come from ...
7 years, 6 months ago (2013-06-25 17:03:05 UTC) #5
Jeffrey Yasskin
Since extension icons can change at any time (in response to the user clicking 'reload'), ...
7 years, 6 months ago (2013-06-25 18:52:10 UTC) #6
dhnishi (use Chromium)
It looks like ExtensionIconSource's image fetching aspects only are run when it receives the GET ...
7 years, 6 months ago (2013-06-26 18:08:00 UTC) #7
Jeffrey Yasskin
7 years, 6 months ago (2013-06-27 00:04:30 UTC) #8
On Wed, Jun 26, 2013 at 11:08 AM,  <DHNishi@gmail.com> wrote:
> It looks like ExtensionIconSource's image fetching aspects only are run when
> it
> receives the GET request for the chrome://extension-icon and it parses that
> path. It seems like even if we changed how it loaded the image, it still
> would
> have the problem, because that changed serving code still wouldn't get run
> because the browser isn't requesting the image.

You're right; it looks like most techniques of loading an image don't
refresh from the server even if the server says not to cache the data.
I'd still rather not complicate the rest of the extensions code to fix
this bug. I've replied on the bug suggesting that we just take
cduvall's change, although it might make sense to use Date.now() as
the uniquifying value instead of maintaining a counter.

Powered by Google App Engine
This is Rietveld 408576698