2011-03-10 Kris Jordan <krisjordan@gmail.com>

        Reviewed by Alexey Proskuryakov.

        Testing the improved Accept header as per bug 27267.
        https://bugs.webkit.org/show_bug.cgi?id=27267

        * http/tests/misc/xhtml-expected.txt: Tests against improved Accept header.
2011-03-10  Kris Jordan  <krisjordan@gmail.com>

        Reviewed by Alexey Proskuryakov.

        Improve default Accept header to give preference to HTML over XML.
        https://bugs.webkit.org/show_bug.cgi?id=27267

        * loader/FrameLoader.cpp:Changed default accept header to match
        FireFox' as per bug 27267.

git-svn-id: svn://svn.chromium.org/blink/trunk@80776 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent e0d9179a
2011-03-10 Kris Jordan <krisjordan@gmail.com>
Reviewed by Alexey Proskuryakov.
Testing the improved Accept header as per bug 27267.
https://bugs.webkit.org/show_bug.cgi?id=27267
* http/tests/misc/xhtml-expected.txt: Tests against improved Accept header.
2011-03-10 Kent Tamura <tkent@chromium.org> 2011-03-10 Kent Tamura <tkent@chromium.org>
Reviewed by Dimitri Glazkov. Reviewed by Dimitri Glazkov.
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
PASS: The browser asks for XHTML. PASS: The browser asks for XHTML.
2011-03-10 Kris Jordan <krisjordan@gmail.com>
Reviewed by Alexey Proskuryakov.
Improve default Accept header to give preference to HTML over XML.
https://bugs.webkit.org/show_bug.cgi?id=27267
* loader/FrameLoader.cpp:Changed default accept header to match
FireFox' as per bug 27267.
2011-03-10 Martin Robinson <mrobinson@igalia.com> 2011-03-10 Martin Robinson <mrobinson@igalia.com>
Reviewed by Xan Lopez. Reviewed by Xan Lopez.
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
* Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmobile.com/) * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmobile.com/)
* Copyright (C) 2008 Alp Toker <alp@atoker.com> * Copyright (C) 2008 Alp Toker <alp@atoker.com>
* Copyright (C) Research In Motion Limited 2009. All rights reserved. * Copyright (C) Research In Motion Limited 2009. All rights reserved.
* Copyright (C) 2011 Kris Jordan <krisjordan@gmail.com>
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions * modification, are permitted provided that the following conditions
...@@ -125,9 +126,9 @@ using namespace SVGNames; ...@@ -125,9 +126,9 @@ using namespace SVGNames;
#endif #endif
#if ENABLE(XHTMLMP) #if ENABLE(XHTMLMP)
static const char defaultAcceptHeader[] = "application/xml,application/vnd.wap.xhtml+xml,application/xhtml+xml;profile='http://www.wapforum.org/xhtml',text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5"; static const char defaultAcceptHeader[] = "application/vnd.wap.xhtml+xml,application/xhtml+xml;profile='http://www.wapforum.org/xhtml',text/html,application/xml;q=0.9,*/*;q=0.8";
#else #else
static const char defaultAcceptHeader[] = "application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5"; static const char defaultAcceptHeader[] = "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8";
#endif #endif
static double storedTimeOfLastCompletedLoad; static double storedTimeOfLastCompletedLoad;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment