Skip to content
  • dgrogan@chromium.org's avatar
    Unprefix IndexedDB · f5571a27
    dgrogan@chromium.org authored
    https://bugs.webkit.org/show_bug.cgi?id=96548
    
    Reviewed by Adam Barth.
    
    Source/WebCore:
    
    We are largely compatible with the FF implementation and the w3c test
    suite submitted by MS. The w3c test suite doesn't yet check
    for lack of prefix; this is mostly to signal to devs that we think our
    implementation is stable.
    
    This patch uses the new FeatureObserver to get data about prefixed
    vs unprefixed usage.
    
    Tests: storage/indexeddb/unprefix-workers.html
           storage/indexeddb/unprefix.html
    
    * Modules/indexeddb/DOMWindowIndexedDatabase.cpp:
    (WebCore::DOMWindowIndexedDatabase::indexedDB):
    * Modules/indexeddb/DOMWindowIndexedDatabase.h:
    (DOMWindowIndexedDatabase):
    * Modules/indexeddb/DOMWindowIndexedDatabase.idl:
    * Modules/indexeddb/WorkerContextIndexedDatabase.cpp:
    (WebCore::WorkerContextIndexedDatabase::indexedDB):
    * Modules/indexeddb/WorkerContextIndexedDatabase.h:
    (WorkerContextIndexedDatabase):
    * Modules/indexeddb/WorkerContextIndexedDatabase.idl:
    * bindings/generic/RuntimeEnabledFeatures.h:
    Making the auxiliary objects RuntimeEnabled didn't make much sense as
    they are useless without the factory, so always enable them.
    
    (WebCore::RuntimeEnabledFeatures::indexedDBEnabled):
    * bindings/scripts/CodeGeneratorGObject.pm:
    (SkipAttribute):
    * page/FeatureObserver.h:
    
    LayoutTests:
    
    * storage/indexeddb/resources/unprefix.js: Added.
    (test):
    * storage/indexeddb/unprefix-expected.txt: Added.
    * storage/indexeddb/unprefix-workers-expected.txt: Added.
    * storage/indexeddb/unprefix-workers.html: Added.
    * storage/indexeddb/unprefix.html: Added.
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@129385 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    f5571a27