This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 10952 - Content served with non-identity content-encoding should trigger a clear failure
Summary: Content served with non-identity content-encoding should trigger a clear failure
Status: NEW
Alias: None
Product: mobileOK Basic checker
Classification: Unclassified
Component: Java Library (show other bugs)
Version: unspecified
Hardware: PC Linux
: P2 normal
Target Milestone: ---
Assignee: fd
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 10947
  Show dependency treegraph
 
Reported: 2010-10-01 09:17 UTC by fd
Modified: 2010-10-01 09:17 UTC (History)
0 users

See Also:


Attachments

Description fd 2010-10-01 09:17:04 UTC
The mobileOK Basic spec is silent about content-encoding.

The mobileOK Checker does not support compressed content at all, i.e.:
- it does not send an Accept-Encoding HTTP header field in HTTP requests
- it does not parse any received Content-Encoding HTTP header field
- it does attempt to parse compressed content as HTML content, and obviously stops with an error right after having read the first few bytes.

In short, when the page under test uses compression, the report of the mobileOK Checker will look like "The document is not an HTML document and is not valid UTF-8" (also see Bug 10947). That is highly misleading.

The HTTP RFC advises servers against using compression when the request does not contain an Accept-Encoding HTTP header field, but it's a SHOULD, not a MUST:
http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.3

At the very least, the mobileOK Checker should add a warning that it cannot process compressed content. It should also warn that it is not a good practice to use compression when the device has not been explicit about compression support.

Since using compressed content is actually a "good thing", the mobileOK Checker should probably also support common compression algorithms (deflate, gzip).

(Side note to keep in mind: PAGE_SIZE_LIMIT applies to decompressed content)