New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 595513 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Closed: Apr 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 2
Type: Bug

Blocking:
issue 587484



Sign in to add a comment

WebKit/LayoutTests/http/tests/download/default-encoding.html does not work as it should

Project Member Reported by hush@chromium.org, Mar 17 2016

Issue description

There is no logic trying to verify the downloaded filename is what it is expected to be.
As a result, you can change this line:
    testRunner.overridePreference("WebKitDefaultTextEncodingName", "koi8-r");

to 
    testRunner.overridePreference("WebKitDefaultTextEncodingName", "utf-8");
or any other encoding, and the test will still pass.

The git history shows that this change seems to be the culprit:
https://src.chromium.org/viewvc/blink/trunk/LayoutTests/http/tests/download/default-encoding-expected.txt?r1=149692&r2=149691&pathrev=149692

To be specific, this removed line is supposed to verify the file name of the downloaded attachment from php.
Policy delegate: resource is an attachment, suggested file name 'SUССЕSS.txt'	

 

Comment 1 by ojan@chromium.org, Mar 17 2016

Cc: haraken@chromium.org esprehn@chromium.org e...@chromium.org
That patch of mine just rebaselined a bunch of tests encoding the behavior at the time. It didn't actually change the behavior of the code. I'm not sure who should own problems like this. eae, would this be your team? haraken/esprehn or architecture team?

Comment 2 by hush@chromium.org, Oct 21 2016

Blocking: 587484
Components: Blink>Loader

Comment 4 by ojan@chromium.org, Mar 7 2017

Cc: -ojan@chromium.org

Comment 5 by kouhei@chromium.org, Apr 12 2017

Cc: toyoshim@chromium.org clamy@chromium.org
Owner: toyoshim@chromium.org
Status: Assigned (was: Untriaged)
Looks like we don't have a "suggested file name" printer in Chromium codebase anymore.
+toyoshim and other nav experts for further triage

Comment 6 by kouhei@chromium.org, Apr 12 2017

Components: UI>Browser>Navigation
Status: WontFix (was: Assigned)
default-encoding-expected.txt contains the filename as the expectation of encoding conversion.

Character codes of "CCE" of "SUCCESS.txt" in the expectation are \u0421, \u0421, \u0415.

And what the test actually verifies is the filename provided by the php should not be affected by default encoding, or requester page encoding, but should respect the download page content charset.

So, it should be fine even if it passes after changing default encoding.
But it will fail if you add BOM or some other charset declaration to resources/literal-koi8-r.php.

Sign in to add a comment