Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(151)

Unified Diff: third_party/WebKit/Source/devtools/front_end/devtools.js

Issue 2040563002: Remove FileError interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fe-dep
Patch Set: handleEvent -> invoke and other review nits Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/devtools/front_end/devtools.js
diff --git a/third_party/WebKit/Source/devtools/front_end/devtools.js b/third_party/WebKit/Source/devtools/front_end/devtools.js
index 9618a143177a3da3b31421b99f5ad11022257fa9..f2a132556cfd033ba6ff65681edfb7a9ba723bb1 100644
--- a/third_party/WebKit/Source/devtools/front_end/devtools.js
+++ b/third_party/WebKit/Source/devtools/front_end/devtools.js
@@ -1077,6 +1077,7 @@ function keyCodeToKeyIdentifier(keyCode)
/**
* @suppressGlobalPropertiesCheck
+ * @suppress {checkTypes}
*/
function installBackwardsCompatibility()
{
@@ -1140,6 +1141,14 @@ function installBackwardsCompatibility()
// Support for legacy (<M49) frontends.
Event.prototype.deepPath = undefined;
+
+ // Support for legacy (<53) frontends.
+ window.FileError = {
+ NOT_FOUND_ERR: DOMException.NOT_FOUND_ERR,
+ ABORT_ERR: DOMException.ABORT_ERR,
+ INVALID_MODIFICATION_ERR: DOMException.INVALID_MODIFICATION_ERR,
+ NOT_READABLE_ERR: 0 // No matching DOMException, so code will be 0.
+ };
}
function windowLoaded()

Powered by Google App Engine
This is Rietveld 408576698