Version 2.16.0-150.0.dev
Merge commit '26f5c2ae8411faba5efdc2fe335d52af0d6a1890' into 'dev'
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 0e43ad5..67b4b8f 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -12,6 +12,11 @@
error with an existing stack trace, instead of creating
a new stack trace.
+#### `dart:indexed_db`
+
+- `IdbFactory.supportsDatabaseNames` has been deprecated. It will always return
+ `false`.
+
#### `dart:io`
- **Breaking Change** [#47769](https://github.com/dart-lang/sdk/issues/47769):
diff --git a/sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart b/sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart
index e26356c..1df1cc9 100644
--- a/sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart
+++ b/sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart
@@ -507,14 +507,10 @@
}
/**
- * Checks to see if getDatabaseNames is supported by the current platform.
- * TODO(terry): Should be able to always return false?
+ * Deprecated. Always returns `false`.
*/
- bool get supportsDatabaseNames {
- return supported &&
- JS('bool', '!!(#.getDatabaseNames || #.webkitGetDatabaseNames)', this,
- this);
- }
+ @Deprecated('No longer supported on modern browsers. Always returns false.')
+ bool get supportsDatabaseNames => false;
// To suppress missing implicit constructor warnings.
factory IdbFactory._() {
diff --git a/tools/VERSION b/tools/VERSION
index 40a0483..38b9c41 100644
--- a/tools/VERSION
+++ b/tools/VERSION
@@ -27,5 +27,5 @@
MAJOR 2
MINOR 16
PATCH 0
-PRERELEASE 149
+PRERELEASE 150
PRERELEASE_PATCH 0
\ No newline at end of file
diff --git a/tools/dom/templates/html/impl/impl_IDBFactory.darttemplate b/tools/dom/templates/html/impl/impl_IDBFactory.darttemplate
index b046771..112e19a 100644
--- a/tools/dom/templates/html/impl/impl_IDBFactory.darttemplate
+++ b/tools/dom/templates/html/impl/impl_IDBFactory.darttemplate
@@ -63,13 +63,10 @@
}
/**
- * Checks to see if getDatabaseNames is supported by the current platform.
- * TODO(terry): Should be able to always return false?
+ * Deprecated. Always returns `false`.
*/
- bool get supportsDatabaseNames {
- return supported && JS('bool',
- '!!(#.getDatabaseNames || #.webkitGetDatabaseNames)', this, this);
- }
+ @Deprecated('No longer supported on modern browsers. Always returns false.')
+ bool get supportsDatabaseNames => false;
$!MEMBERS
}