declaring cache.manifest dynamically MUST raise INVALID_STATE_ERR

UNCONFIRMED
Unassigned

Status

()

Core
DOM
P5
normal
UNCONFIRMED
7 years ago
24 days ago

People

(Reporter: Karl Dubost, Unassigned)

Tracking

6 Branch
x86
Mac OS X
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

7 years ago
Created attachment 560773 [details]
Test case for dynamic cache.manifest

User Agent: Opera/9.80 (Macintosh; Intel Mac OS X 10.7.1; U; fr) Presto/2.9.168 Version/11.51

Steps to reproduce:

Declaring a cache.manifest through Javascript

<!DOCTYPE html><html>
<head><meta charset=utf8><title>TEST offline</title></head>
<body><script>
document.documentElement.setAttribute("manifest", "cache.manifest") ;
window.applicationCache.update() ;
</script><body>
</html>



Actual results:

In Firefox
Error: uncaught exception: [Exception... "Security error"  code: "1000" nsresult: "0x805303e8 (NS_ERROR_DOM_SECURITY_ERR)"  location: "http://www.la-grange.net/2011/09/16/test-manifest.html Line: 5"]



Expected results:

The browser should return in the errors log

INVALID_STATE_ERR

FYI

In Opera 12

[2011-09-16 13:00:25 UTC-04:00] JavaScript - http://www.la-grange.net/2011/09/16/test-manifest.html
Inline script thread
Uncaught exception: DOMException: INVALID_STATE_ERR
Error thrown at line 3, column 0 in http://www.la-grange.net/2011/09/16/test-manifest.html:
   window.applicationCache.update() ;


In Safari
INVALID_STATE_ERR: DOM Exception 11: An attempt was made to use an object that is not, or is no longer, usable.

Updated

7 years ago
Component: General → DOM
Product: Firefox → Core
QA Contact: general → general
https://bugzilla.mozilla.org/show_bug.cgi?id=1472046

Move all DOM bugs that haven’t been updated in more than 3 years and has no one currently assigned to P5.

If you have questions, please contact :mdaly.
Priority: -- → P5
You need to log in before you can comment on or make changes to this bug.