http/tests/loading/authentication-after-redirect-stores-wrong-credentials/resources/wrong-credential-2-auth-then-redirect-to-finish.php returns a malformed authentication header
https://bugs.webkit.org/show_bug.cgi?id=104052

Patch by Martin Robinson <mrobinson@igalia.com> on 2012-12-05
Reviewed by Alexey Proskuryakov.

Add an authentication realm to the WWW-Authenticate header of the PHP script. Some networking
libraries do not cope well with WWW-Authenticate headers that do not include realms. Additionally
RFC2617 specifies that this part of the header is not-optional.

This test will be unskipped once the rest of the authentication support is complete in the
libsoup backend and GTK+ DRT/WTR.

* http/tests/loading/authentication-after-redirect-stores-wrong-credentials/resources/wrong-credential-2-auth-then-redirect-to-finish.php:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@136737 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Encapsulate ElementRareData for possible future sharing
https://bugs.webkit.org/show_bug.cgi?id=103948

Patch by Elliott Sprehn <esprehn@gmail.com> on 2012-12-05
Reviewed by Eric Seidel.

Encapsulate ElementRareData and make all access go through getters and
setters. This is already true for NodeRareData, but ElementRareData
had many places where people directly access it.

This the first step in possible future sharing of ElementRareData
instances across nodes. All nodes in a shadow tree have rare data to
store the TreeScope, but in most cases all they have is the TreeScope!
Instead of making every node in a shadow subtree have rare data
and use lots of memory we could just share a single instance of rare data
and only allocate a unique one on modification. Encapsulation lets us
assert about mutations on shared instances.

* dom/Element.cpp:
(WebCore::Element::~Element):
(WebCore::Element::attributes):
(WebCore::Element::shadow):
(WebCore::Element::ensureShadow):
(WebCore::Element::minimumSizeForResizing):
(WebCore::Element::setMinimumSizeForResizing):
(WebCore::Element::computedStyle):
(WebCore::Element::classList):
(WebCore::Element::optionalClassList):
(WebCore::Element::dataset):
(WebCore::Element::hasNamedNodeMap):
(WebCore::Element::savedLayerScrollOffset):
(WebCore::Element::setSavedLayerScrollOffset):
* dom/ElementRareData.cpp:
(WebCore::ElementRareData::reportMemoryUsage):
* dom/ElementRareData.h:
(WebCore::ElementRareData::needsFocusAppearanceUpdateSoonAfterAttach):
(WebCore::ElementRareData::setNeedsFocusAppearanceUpdateSoonAfterAttach):
(ElementRareData):
(WebCore::ElementRareData::styleAffectedByEmpty):
(WebCore::ElementRareData::setStyleAffectedByEmpty):
(WebCore::ElementRareData::isInCanvasSubtree):
(WebCore::ElementRareData::setIsInCanvasSubtree):
(WebCore::ElementRareData::containsFullScreenElement):
(WebCore::ElementRareData::setContainsFullScreenElement):
(WebCore::ElementRareData::isInTopLayer):
(WebCore::ElementRareData::setIsInTopLayer):
(WebCore::ElementRareData::childrenAffectedByHover):
(WebCore::ElementRareData::setChildrenAffectedByHover):
(WebCore::ElementRareData::childrenAffectedByActive):
(WebCore::ElementRareData::setChildrenAffectedByActive):
(WebCore::ElementRareData::childrenAffectedByDrag):
(WebCore::ElementRareData::setChildrenAffectedByDrag):
(WebCore::ElementRareData::childrenAffectedByFirstChildRules):
(WebCore::ElementRareData::setChildrenAffectedByFirstChildRules):
(WebCore::ElementRareData::childrenAffectedByLastChildRules):
(WebCore::ElementRareData::setChildrenAffectedByLastChildRules):
(WebCore::ElementRareData::childrenAffectedByDirectAdjacentRules):
(WebCore::ElementRareData::setChildrenAffectedByDirectAdjacentRules):
(WebCore::ElementRareData::childrenAffectedByForwardPositionalRules):
(WebCore::ElementRareData::setChildrenAffectedByForwardPositionalRules):
(WebCore::ElementRareData::childrenAffectedByBackwardPositionalRules):
(WebCore::ElementRareData::setChildrenAffectedByBackwardPositionalRules):
(WebCore::ElementRareData::childIndex):
(WebCore::ElementRareData::setChildIndex):
(WebCore::ElementRareData::shadow):
(WebCore::ElementRareData::setShadow):
(WebCore::ElementRareData::attributeMap):
(WebCore::ElementRareData::setAttributeMap):
(WebCore::ElementRareData::computedStyle):
(WebCore::ElementRareData::setComputedStyle):
(WebCore::ElementRareData::classList):
(WebCore::ElementRareData::setClassList):
(WebCore::ElementRareData::dataset):
(WebCore::ElementRareData::setDataset):
(WebCore::ElementRareData::minimumSizeForResizing):
(WebCore::ElementRareData::setMinimumSizeForResizing):
(WebCore::ElementRareData::savedLayerScrollOffset):
(WebCore::ElementRareData::setSavedLayerScrollOffset):
(WebCore::ElementRareData::resetComputedStyle):
* dom/NodeRareData.h:
(NodeRareData):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@136738 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Chromium] Re-enabling encrypted-media tests now that the issues are fixed.
https://bugs.webkit.org/show_bug.cgi?id=104137

Unreviewed revert of r136312.
The issues were fixed in Chromium r171039 & r171081.

Patch by David Dorwin <ddorwin@chromium.org> on 2012-12-05

* platform/chromium/TestExpectations:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@136740 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Chromium] Move WorkerContextProxy::create out of PlatformSupport
https://bugs.webkit.org/show_bug.cgi?id=104151

Reviewed by Adam Barth.

Doesn't really solve the layering violation as much as kick it
down the road a bit. Part of a refactoring series; see tracking
bug 82948.

* WebKit.gyp:
* src/PlatformSupport.cpp:
(WebCore):
* src/WorkerContextProxy.cpp: Added.
(WebCore):
(WebCore::WebCore::WorkerContextProxy::create):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@136741 268f45cc-cd09-0410-ab3c-d52691b4dbfc