Like Philip pointed out, feature detection (typically by means of Modernizr) often triggers our UseCounters even when the feature isn't being used. We've worked around this in a few instances, however luckily IDB
IndexedDB is in the default set of tests that shipped in the major releases of Modernizr, and Modernizr is the 2nd most common JS library out there,
I used Philip's query on the
HTTP Archive data as a start and expanded it.
SELECT
url,
mimeType,
IF (body CONTAINS "indexedDB", "standard", "") AS standard,
IF (body CONTAINS "webkitIndexedDB", "prefixed", "") AS prefixed,
FROM
[httparchive:runs.2014_08_15_requests_body]
WHERE
body CONTAINS "ndexedDB";
I wanted to see if there are folks that are only using the prefix and not the standard in their code.
I'm presuming that people are normally testing for all variants but sometimes end up using prefixed because they don't know better.
Starting with 3,400,000 scripts (~200GB JS & HTML),
Filtered down to
18,000 JS files that have "ndexedDB" in them.
I then looked at the cases where only the prefixed is in the source and not the unprefixed.
Just 28 of those.
27 of which is a JS library that has the prefixed version in myGlobalVarBlacklist array,
The remaining
1 result is a mis-capitalization asking for window.IndexedDB.
That's it.
As Joshua pointed out earlier, JS has been probing for the prefix status for IDB for a while.
Given that and the above results, I don't expect problems with nuking the prefixed APIs now.