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

Issue 56053: URL's not properly unescaping when displayed (Closed)

Created:
11 years, 9 months ago by Mohamed Mansour (USE mhm)
Modified:
9 years, 7 months ago
Reviewers:
brettw, M-A Ruel, Evan Stade
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Local text file with spaces in filename is urlencoded in tab title When viewing a local text file with spaces in filename, it is still urlencoded. Filename should be displayed with spaces, not with urlencoding. It would be more user-friendly. Since net::FormatURL is already implemented, using it would be great. But it doesn't escape SPACES, just NORMAL, it doesn't even escape unicode. I plumbed out a unescapeurl that could be used whether we allow conversion of spaces or not. BUG=8775 (http://crbug.com/8775) TEST=Tested whether the input is escaped in the navigational context and ran the net tests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=17462

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Total comments: 10

Patch Set 5 : '' #

Total comments: 4

Patch Set 6 : '' #

Patch Set 7 : '' #

Patch Set 8 : '' #

Patch Set 9 : '' #

Total comments: 2

Patch Set 10 : '' #

Total comments: 24

Patch Set 11 : '' #

Patch Set 12 : '' #

Patch Set 13 : '' #

Patch Set 14 : '' #

Patch Set 15 : '' #

Patch Set 16 : '' #

Total comments: 6

Patch Set 17 : '' #

Patch Set 18 : '' #

Total comments: 19

Patch Set 19 : '' #

Patch Set 20 : '' #

Patch Set 21 : '' #

Patch Set 22 : '' #

Patch Set 23 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+107 lines, -65 lines) Patch
M app/gfx/text_elider.cc View 14 15 16 17 18 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/bookmarks/bookmark_table_model.cc View 14 15 16 17 18 19 20 21 22 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/net/url_fixer_upper.cc View 4 5 6 7 8 9 10 11 12 13 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/tab_contents/navigation_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +7 lines, -1 line 0 comments Download
M chrome/browser/tab_contents/render_view_context_menu.cc View 18 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/views/bookmark_editor_view.cc View 14 15 16 17 18 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/views/shelf_item_dialog.cc View 18 1 chunk +1 line, -1 line 0 comments Download
M net/base/escape.h View 14 15 16 17 18 1 chunk +13 lines, -9 lines 0 comments Download
M net/base/escape.cc View 14 15 16 17 18 1 chunk +4 lines, -0 lines 0 comments Download
M net/base/escape_unittest.cc View 19 20 1 chunk +2 lines, -0 lines 0 comments Download
M net/base/net_util.h View 14 15 16 17 18 2 chunks +11 lines, -8 lines 0 comments Download
M net/base/net_util.cc View 14 15 16 17 18 5 chunks +23 lines, -16 lines 0 comments Download
M net/base/net_util_unittest.cc View 14 15 16 17 18 7 chunks +33 lines, -23 lines 0 comments Download

Messages

Total messages: 44 (0 generated)
Mohamed Mansour (USE mhm)
Added maruel for the text_edler.cc change, where changed Unescape rule from NORMAL to SPACE. Added ...
11 years, 9 months ago (2009-03-29 06:16:06 UTC) #1
brettw
NavigationController change LGTM
11 years, 8 months ago (2009-03-30 15:08:26 UTC) #2
M-A Ruel
I'm a bit surprised it stills passes the unit tests. You can check in as ...
11 years, 8 months ago (2009-03-30 15:15:27 UTC) #3
Mohamed Mansour (USE mhm)
On 2009/03/30 15:15:27, M-A wrote: > I'm a bit surprised it stills passes the unit ...
11 years, 8 months ago (2009-03-30 17:45:04 UTC) #4
Mohamed Mansour (USE mhm)
done, unittest updated with one more test. And passed.
11 years, 8 months ago (2009-03-31 00:47:51 UTC) #5
M-A Ruel
lgtm
11 years, 8 months ago (2009-03-31 01:19:38 UTC) #6
Mohamed Mansour (USE mhm)
On 2009/03/31 01:19:38, M-A wrote: > lgtm Could anyone commit this?
11 years, 8 months ago (2009-04-05 20:56:52 UTC) #7
M-A Ruel
On 2009/04/05 20:56:52, Mohamed Mansour wrote: > On 2009/03/31 01:19:38, M-A wrote: > > lgtm ...
11 years, 8 months ago (2009-04-06 16:23:27 UTC) #8
Mohamed Mansour (USE mhm)
On 2009/04/06 16:23:27, M-A wrote: > Have fun. :) Ah thanks, I was worried about ...
11 years, 8 months ago (2009-04-06 16:47:17 UTC) #9
Mohamed Mansour (USE mhm)
Please review, I changed it now. Since Maruel didn't accept filenames to be sorted, this ...
11 years, 8 months ago (2009-04-07 05:37:29 UTC) #10
M-A Ruel
No, you misunderstood what I wanted. I prefer to have the whitespace behavior configurable, with ...
11 years, 8 months ago (2009-04-08 20:16:49 UTC) #11
Mohamed Mansour (USE mhm)
Okay, done, I ran the tests and they all passed: [ PASSED ] 792 tests. ...
11 years, 8 months ago (2009-04-09 14:02:22 UTC) #12
Mohamed Mansour (USE mhm)
Hey guys, Since you guys touched this part of the code, I would like you ...
11 years, 8 months ago (2009-04-09 17:43:10 UTC) #13
Evan Stade
the files you assigned to me LG, and thanks for all the cleanup http://codereview.chromium.org/56053/diff/6001/4004 File ...
11 years, 8 months ago (2009-04-09 17:58:12 UTC) #14
Mohamed Mansour (USE mhm)
@estade: fixed your remarks! http://codereview.chromium.org/56053/diff/6001/4004 File chrome/browser/net/url_fixer_upper.cc (right): http://codereview.chromium.org/56053/diff/6001/4004#newcode228 Line 228: DCHECK(part); On 2009/04/09 17:58:12, ...
11 years, 8 months ago (2009-04-09 18:30:45 UTC) #15
Evan Stade
http://codereview.chromium.org/56053/diff/4014/6014 File chrome/browser/net/url_fixer_upper.cc (right): http://codereview.chromium.org/56053/diff/4014/6014#newcode30 Line 30: std::string text_utf8, tabbing off by 2 http://codereview.chromium.org/56053/diff/4014/6021 File ...
11 years, 8 months ago (2009-04-09 18:42:05 UTC) #16
Mohamed Mansour (USE mhm)
http://codereview.chromium.org/56053/diff/4014/6014 File chrome/browser/net/url_fixer_upper.cc (right): http://codereview.chromium.org/56053/diff/4014/6014#newcode30 Line 30: std::string text_utf8, On 2009/04/09 18:42:05, estade wrote: > ...
11 years, 8 months ago (2009-04-09 19:48:39 UTC) #17
Evan Stade
http://codereview.chromium.org/56053/diff/9029/9030 File chrome/browser/net/url_fixer_upper.cc (right): http://codereview.chromium.org/56053/diff/9029/9030#newcode508 Line 508: UnescapeRule::NORMAL)); is this backwards? Don't you want to ...
11 years, 8 months ago (2009-04-09 20:04:14 UTC) #18
Mohamed Mansour (USE mhm)
http://codereview.chromium.org/56053/diff/9029/9030 File chrome/browser/net/url_fixer_upper.cc (right): http://codereview.chromium.org/56053/diff/9029/9030#newcode508 Line 508: UnescapeRule::NORMAL)); On 2009/04/09 20:04:14, estade wrote: > is ...
11 years, 8 months ago (2009-04-09 20:36:01 UTC) #19
Evan Stade
I think my following comments are all right, but you should independently verify them. http://codereview.chromium.org/56053/diff/9039/9043 ...
11 years, 8 months ago (2009-04-09 20:43:00 UTC) #20
Mohamed Mansour (USE mhm)
@estade: the main reason for this CL is to properly display URLs that have %20 ...
11 years, 8 months ago (2009-04-13 18:51:12 UTC) #21
brettw
http://codereview.chromium.org/56053/diff/9039/9042 File chrome/browser/autocomplete/history_url_provider.cc (right): http://codereview.chromium.org/56053/diff/9039/9042#newcode1 Line 1: // Copyright (c) 2009 The Chromium Authors. All ...
11 years, 8 months ago (2009-04-13 20:35:43 UTC) #22
Evan Stade
http://codereview.chromium.org/56053/diff/9039/9045 File chrome/browser/tab_contents/navigation_entry.cc (right): http://codereview.chromium.org/56053/diff/9039/9045#newcode1 Line 1: // Copyright (c) 2009 The Chromium Authors. All ...
11 years, 8 months ago (2009-04-13 20:40:03 UTC) #23
Mohamed Mansour (USE mhm)
Please read http://codereview.chromium.org/56053/diff/9039/9040#newcode124 What do you recommend me to do? I changed the tests to ...
11 years, 8 months ago (2009-04-13 21:45:45 UTC) #24
Mohamed Mansour (USE mhm)
Beh, in net_util.cc FilePathToFileURL is failing from this test case: TEST(URLFixerUpperTest, FixupFile) because its doing ...
11 years, 8 months ago (2009-04-13 22:05:27 UTC) #25
Mohamed Mansour (USE mhm)
Reverted the change to NORMAL files, passes tests now, unless that should be changed/
11 years, 8 months ago (2009-04-13 22:25:41 UTC) #26
Mohamed Mansour (USE mhm)
Hi, if anyone could look into this before the source gets out of sync. Thanks ...
11 years, 8 months ago (2009-04-16 19:23:35 UTC) #27
Mohamed Mansour (USE mhm)
On 2009/04/16 19:23:35, Mohamed Mansour wrote: > Hi, if anyone could look into this before ...
11 years, 7 months ago (2009-05-27 01:23:16 UTC) #28
M-A Ruel
On 2009/05/27 01:23:16, Mohamed Mansour wrote: > I guess this is no longer needed ? ...
11 years, 7 months ago (2009-05-27 01:27:47 UTC) #29
M-A Ruel
On 2009/05/27 01:27:47, M-A wrote: > On 2009/05/27 01:23:16, Mohamed Mansour wrote: > > I ...
11 years, 7 months ago (2009-05-27 01:28:02 UTC) #30
brettw
Ah, sorry. For future reference, you don't need to wait so long before complaining. If ...
11 years, 7 months ago (2009-05-27 16:46:21 UTC) #31
Mohamed Mansour (USE mhm)
Its okay, I will close this CL and revisit this bug with a clean sync.
11 years, 7 months ago (2009-05-27 16:50:20 UTC) #32
brettw
Generally it's easier to see the history if you use this same CL, so reviewers ...
11 years, 7 months ago (2009-05-27 16:55:19 UTC) #33
Mohamed Mansour (USE mhm)
Correct, I will include the linkage. The reason why I will start a new CL ...
11 years, 7 months ago (2009-05-27 18:05:10 UTC) #34
Mohamed Mansour (USE mhm)
Alright here is the new CL (synced tree). I changed the net utils test and ...
11 years, 7 months ago (2009-05-28 04:34:32 UTC) #35
Mohamed Mansour (USE mhm)
Do you guys think this is a good approach?
11 years, 6 months ago (2009-05-29 16:41:06 UTC) #36
Evan Stade
Drive by review. General nit: many places you use the term "escape" when you mean ...
11 years, 6 months ago (2009-05-29 19:32:14 UTC) #37
Mohamed Mansour (USE mhm)
Alright, I have looked through the CL and fixed the clarity of "unescape". You guys ...
11 years, 6 months ago (2009-05-29 22:01:56 UTC) #38
Evan Stade
I think there are some uses of FormatUrl that you missed, for example in render_view_context_menu.cc. ...
11 years, 6 months ago (2009-05-29 22:11:31 UTC) #39
Mohamed Mansour (USE mhm)
On 2009/05/29 22:11:31, Evan Stade wrote: > I think there are some uses of FormatUrl ...
11 years, 6 months ago (2009-05-29 22:55:24 UTC) #40
brettw
This patch is looking pretty good! I have some hopefully minor comments. Sorry I took ...
11 years, 6 months ago (2009-06-01 17:47:08 UTC) #41
Evan Stade
noticed some spelling errors (that you didn't make) http://codereview.chromium.org/56053/diff/12077/12079 File net/base/escape.h (right): http://codereview.chromium.org/56053/diff/12077/12079#newcode49 Line 49: ...
11 years, 6 months ago (2009-06-01 17:53:21 UTC) #42
Mohamed Mansour (USE mhm)
Please review, I ran the test cases (unit_test and net_tests) and verified they are successful. ...
11 years, 6 months ago (2009-06-02 01:06:38 UTC) #43
brettw
11 years, 6 months ago (2009-06-02 20:37:27 UTC) #44
LGTM!

Powered by Google App Engine
This is Rietveld 408576698