summaryrefslogtreecommitdiffstats
path: root/app/gfx/font_win.cc
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-19 01:58:01 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-19 01:58:01 +0000
commitdaa3ec58dfea5331e57c829303e993159b0478b5 (patch)
tree80a14d92c17833684886b21512352c828ade7266 /app/gfx/font_win.cc
parente1928c97a69d0cb03792e3b6e4c8a14121889f83 (diff)
downloadchromium_src-daa3ec58dfea5331e57c829303e993159b0478b5.zip
chromium_src-daa3ec58dfea5331e57c829303e993159b0478b5.tar.gz
chromium_src-daa3ec58dfea5331e57c829303e993159b0478b5.tar.bz2
Ensure proper extension when saving an HTML page.
When an HTML page has a title, it is used as the suggested file name in saving the page. Then the file extension is guessed from the suggested file name. This results in a wrong extension if the title contains a period ".". This the source of Bug 10581. Merely setting ignore_suggested_ext to true in win_util::SaveFileAsWithFilter is not a good fix, because then we have an issue in saving a page without a title, where the extension can be correctly derived from the suggested file name. This change solves the issue by appending ".htm" to the suggested file name if the page content type is HTML and the suggested file name doesn't have a proper extension. BUG=10581 -------- patch by yuzo@google.com review here: <http://codereview.chromium.org/115235> git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16355 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'app/gfx/font_win.cc')
0 files changed, 0 insertions, 0 deletions