Open Bug 1112576 Opened 9 years ago Updated 1 year ago

Accessing IndexedDB within a blank tab throws "Illegal value" Exception

Categories

(Core :: Storage: IndexedDB, defect, P5)

35 Branch
x86
Windows 8.1
defect

Tracking

()

UNCONFIRMED

People

(Reporter: jakobmaier42, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2243.0 Safari/537.36

Steps to reproduce:

1. Open a new tab and go to "about:blank", or open private browsing mode (about:blang is the default page)
2. Open the JS console
3. Access indededDB

(function isIndexedDBavailable(){
      return indexedDB && typeof(indexedDB.open) === "function";    
})();


Actual results:

An Expection is thrown:

[Exception... "Illegal value"  nsresult: "0x80070057 (NS_ERROR_ILLEGAL_VALUE)"  location: "JS frame :: debugger eval code :: isIndexedDBavailable :: line 2"  data: no]


Expected results:

The function should return false, since indexedDB must be undefined.
Component: Untriaged → DOM: IndexedDB
Product: Firefox → Core
Priority: -- → P5
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.