| Index: chrome/browser/ui/webui/screenshot_source.cc
|
| diff --git a/chrome/browser/ui/webui/screenshot_source.cc b/chrome/browser/ui/webui/screenshot_source.cc
|
| index f4ba7ada5c43e78f74972f5fdf347a0f77a99ea9..c99bd870182d149c6f655adf1e173663c8deac15 100644
|
| --- a/chrome/browser/ui/webui/screenshot_source.cc
|
| +++ b/chrome/browser/ui/webui/screenshot_source.cc
|
| @@ -163,6 +163,9 @@ void ScreenshotSource::CacheAndSendScreenshot(
|
| const std::string& screenshot_path,
|
| int request_id,
|
| ScreenshotDataPtr bytes) {
|
| - cached_screenshots_[screenshot_path] = bytes;
|
| + // Strip the query from the screenshot path.
|
| + std::string path = screenshot_path.substr(
|
| + 0, screenshot_path.find_first_of("?"));
|
| + cached_screenshots_[path] = bytes;
|
| SendResponse(request_id, new base::RefCountedBytes(*bytes));
|
| }
|
|
|