[Webkit-unassigned] [Bug 10313] xsl:import and document() don't work in stylesheets loaded via XMLHttpRequest

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon May 24 04:57:23 PDT 2010


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





--- Comment #32 from Andreas Wictor <andreas.wictor at xcerion.com>  2010-05-24 04:57:20 PST ---
(In reply to comment #31)
> (From update of attachment 56707 [details])
> WebCore/bindings/js/JSDOMImplementationCustom.cpp:30
>  +  JSValue JSDOMImplementation::createDocument(ExecState* exec, const ArgList& args)
> Please don't create more custom bindings.  Instead, you should use the [CallWith=ScriptExecutionContext] IDL attribute.

I did not know about this IDL attribute, will look into it.

> WebCore/dom/Document.cpp:1285
>  +              ScriptExecutionContext::setSecurityOrigin(doc->securityOrigin());
> I don't understand why we do this.

If we do not copy the securityOrigin from the originFrame's document then it will be empty and that means calls to SecurityOrigin::canRequest(const KURL&) will return false.

-- 
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