Bug 25749 - Add a test for non-same origin appcache manifest URL
Summary: Add a test for non-same origin appcache manifest URL
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Alexey Proskuryakov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-13 07:52 PDT by Alexey Proskuryakov
Modified: 2009-05-13 09:08 PDT (History)
0 users

See Also:


Attachments
proposed patch (3.26 KB, patch)
2009-05-13 07:55 PDT, Alexey Proskuryakov
darin: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.