static open(name) {
    /** @type {!shaka.util.PublicPromise} */
    const p = new shaka.util.PublicPromise();

    const open = window.indexedDB.open(name);
    open.onerror = (e) => {
      p.reject();
    };
    open.onsuccess = (e) => {
      p.resolve(open.result);
    };

    return p;
  }
If the database exists, open the current version. If the database does
not exist, the returned promise will be rejected.

@param {string} name
@return {!Promise<IDBDatabase>}