[Webkit-unassigned] [Bug 115643] Document should be constructable

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Feb 7 11:17:18 PST 2014


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





--- Comment #5 from Darin Adler <darin at apple.com>  2014-02-07 11:14:36 PST ---
(In reply to comment #4)
> (In reply to comment #3)
> > The things we need to test are the things that the standard requires:
> > 
> > - The document has an origin which is an alias to the origin of the global object's associated document. Need to test that either directly or indirectly.
> > 
> > - The document has an effective script origin which is an alias to the effective script origin of the global object's associated document. Need to test that either directly or indirectly.
> 
> Thanks for your comments. Can you help me a bit more with testing? I'm not sure how to test these correctly. Should we check these steps? http://www.whatwg.org/specs/web-apps/current-work/multipage/origin-0.html#sandboxOrigin

No, those steps are the algorithm the engine is supposed to follow. But a test needs to be based on the observable results of the algorithm, not the algorithm itself.

We need to figure out how to detect if a document has an incorrect origin or an incorrect effective script origin by the behavior of the engine.

I presume that the effect of the effective script origin is to restrict script execution, so that test would be about correct restricting script execution and not incorrectly restricting it.

The other test could perhaps be done simply by reading a property that indicates what a document’s origin is. I’m not really sure, because I’m not an expert on this part of the specification. I’d have to study it myself to figure that out.

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