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

Issue 66061: Disable view-source if the page source is not viewable as text.... (Closed)

Created:
11 years, 8 months ago by yuzo
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Disable view-source if the page source is not viewable as text. For example, a page of content type application/x-shockwave-flash is not viewable. BUG=9562

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 2

Patch Set 4 : '' #

Patch Set 5 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -2 lines) Patch
M chrome/browser/browser.cc View 1 2 3 4 3 chunks +9 lines, -2 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
yuzo
Hi, Ben, Can you review this? Yuzo
11 years, 8 months ago (2009-04-11 00:34:51 UTC) #1
yuzo
Ping?
11 years, 8 months ago (2009-04-14 16:55:30 UTC) #2
Ben Goodger (Google)
Sorry for my tardiness. http://codereview.chromium.org/66061/diff/1003/4 File chrome/browser/browser.cc (right): http://codereview.chromium.org/66061/diff/1003/4#newcode2183 Line 2183: net::IsSupportedNonImageMimeType( why not call ...
11 years, 8 months ago (2009-04-14 18:13:15 UTC) #3
yuzo
Thank you for the review. Can you take another look? http://codereview.chromium.org/66061/diff/1003/4 File chrome/browser/browser.cc (right): http://codereview.chromium.org/66061/diff/1003/4#newcode2183 ...
11 years, 8 months ago (2009-04-14 18:26:26 UTC) #4
Ben Goodger (Google)
LGTM
11 years, 8 months ago (2009-04-14 18:27:38 UTC) #5
yuzo
On 2009/04/14 18:27:38, Ben Goodger wrote: > LGTM Can you hold on a second? I ...
11 years, 8 months ago (2009-04-14 18:55:45 UTC) #6
yuzo
11 years, 8 months ago (2009-04-14 19:15:56 UTC) #7
Sorry, I have been totally confused.

Can you take yet another look, and commit the change if appropriate?

I changed the code to call
  net::IsSupportedNonImageMimeType
again.

Rationale:
- net::IsViewSourceMimeType returns true for the mime types
  that itself (i.e., rather than its source) should be presented
  in view-source mode. Hence it returns false for text/html or
  text/plain, for example.
- net::IsSupportedNonImageMimeType returns true for the mime types
  whose source is text. Hence this fits the purpose of this change.

Yuzo

On 2009/04/14 18:55:45, yuzo wrote:
> On 2009/04/14 18:27:38, Ben Goodger wrote:
> > LGTM
> 
> Can you hold on a second? I found a bug in mime_util.cc.
> I'll ask for review shortly.

Powered by Google App Engine
This is Rietveld 408576698