Bug 32443 - Whether to send XHTMLMP ACCEPT header for network requests should be configurable
Summary: Whether to send XHTMLMP ACCEPT header for network requests should be configur...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Page Loading (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-11 12:50 PST by Adam Treat
Modified: 2010-06-11 10:44 PDT (History)
5 users (show)

See Also:


Attachments
Adds a new setting (4.53 KB, patch)
2009-12-11 13:07 PST, Adam Treat
levin: review-
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Treat 2009-12-11 12:50:04 PST
Currently, if ENABLE(XHTMLMP) == true, then the ACCEPT header for network request is hardcoded to include mobile content types.  This should be runtime configurable as just because WebKit has support for XHTMLMP in a particular build does not mean that it should always be used.
Comment 1 Adam Treat 2009-12-11 13:07:09 PST
Created attachment 44705 [details]
Adds a new setting

Adds a new runtime setting for enable/disable of xhtmlmp content.
Comment 2 WebKit Review Bot 2009-12-11 13:12:28 PST
style-queue ran check-webkit-style on attachment 44705 [details] without any errors.
Comment 3 Eric Seidel (no email) 2009-12-11 15:37:05 PST
Comment on attachment 44705 [details]
Adds a new setting

This should have a test, no?  We could test this with things like layoutTestController.overridePreference()
Comment 4 Adam Treat 2009-12-11 15:51:57 PST
You'd need a server configured to respond to the ACCEPT header.  We don't have that.
Comment 5 Eric Seidel (no email) 2009-12-11 15:58:41 PST
Hum... I take it our Apache2 setup doesn't do that?
Comment 6 Adam Treat 2009-12-11 16:04:59 PST
(In reply to comment #5)
> Hum... I take it our Apache2 setup doesn't do that?

I'll take a look and see.
Comment 7 Eric Seidel (no email) 2009-12-11 16:09:26 PST
Thank you.
Comment 8 Alexey Proskuryakov 2009-12-11 16:43:17 PST
Comment on attachment 44705 [details]
Adds a new setting

There seems to be some confusion (not sure if it's in the bug, in the patch, or just in my head) about what this change does.

If it's only about changing Accept header, then the setting should not be called XHTMLMPEnabled. And if it disables XHTMLMP support as a whole, then bug and description should say so.

Style nit - setXHTMLMPEnabled is fine, but XHTMLMPEnabled should be xhtmlmpEnabled, or maybe xhtmlMPEnabled.
Comment 9 David Levin 2009-12-17 15:53:28 PST
Comment on attachment 44705 [details]
Adds a new setting

It sounds like there a number of issues in the bug that need to be addressed (or responded to) before this can be reviewed, so I'm marking this as r- for now to move this out of the review queue.

Also, please add a link to the bug in the changelog.