mirror of
https://github.com/servo/servo.git
synced 2025-08-11 16:35:33 +01:00
script: Support creating a DOMStringList for any global. (#37567)
There were a lot of crashing IndexedDB tests caused by code in DOMStringList that required a Window object despite being exposed to non-Window globals. Testing: Lots of existing tests no longer crash. Fixes: part of #6963 Signed-off-by: Josh Matthews <josh@joshmatthews.net>
This commit is contained in:
parent
b331cb4603
commit
52dc1fa88d
81 changed files with 1324 additions and 313 deletions
|
@ -79,7 +79,7 @@ impl IDBObjectStore {
|
|||
name: DomRefCell::new(name),
|
||||
key_path,
|
||||
|
||||
index_names: DOMStringList::new(global.as_window(), Vec::new(), can_gc),
|
||||
index_names: DOMStringList::new(global, Vec::new(), can_gc),
|
||||
transaction: Default::default(),
|
||||
// FIXME:(arihant2math)
|
||||
auto_increment: false,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue