[Webkit-unassigned] [Bug 74757] New: XSLT-created HTML documents do not inherit first party for cookies from originally loaded XML.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Dec 16 15:01:46 PST 2011


https://bugs.webkit.org/show_bug.cgi?id=74757

           Summary: XSLT-created HTML documents do not inherit first party
                    for cookies from originally loaded XML.
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: XML
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: tsepez at chromium.org


This is causing problems downstream along the lines of: http://code.google.com/p/chromium/issues/detail?id=104715

I think the correct thing to do is to copy the original document's first party for cookies in WebCore/xml/XSLTProcessor.cpp's 
PassRefPtr<Document> XSLTProcessor::createDocumentFromSource():

       if (Document* oldDocument = frame->document()) {
            result->setTransformSourceDocument(oldDocument);
            result->setSecurityOrigin(oldDocument->securityOrigin());
            result->setCookieURL(oldDocument->cookieURL());
+           result->setFirstPartyForCookies(oldDocument->firstPartyForCookies());
        }

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list