Bug 25749

Summary: Add a test for non-same origin appcache manifest URL
Product: WebKit Reporter: Alexey Proskuryakov <ap>
Component: Tools / TestsAssignee: Alexey Proskuryakov <ap>
Status: RESOLVED FIXED    
Severity: Normal    
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
proposed patch darin: review+

Description Alexey Proskuryakov 2009-05-13 07:52:19 PDT
If manifest URL has a different origin than a document, it must be ignored, see HTML5 paragraph 6.9.6 The application cache selection algorithm.
Comment 1 Alexey Proskuryakov 2009-05-13 07:55:03 PDT
Created attachment 30276 [details]
proposed patch

Note that Firefox 3.1b3 fails this test - it creates an appcache, and even associates window.applicationCache with it, but then raises a security exception when trying to access the object.
Comment 2 Darin Adler 2009-05-13 08:53:54 PDT
Comment on attachment 30276 [details]
proposed patch

> +<p>Test that a different URL manifest is completely ignored.</p>

You probably want the word "origin" here instead of URL.

r=me
Comment 3 Alexey Proskuryakov 2009-05-13 09:08:42 PDT
Committed revision 43631.