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

Unified Diff: chrome/renderer/resources/extensions/platform_app.js

Issue 16118002: Avoid cache when deprecating document.all (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 7 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/resources/extensions/platform_app.js
diff --git a/chrome/renderer/resources/extensions/platform_app.js b/chrome/renderer/resources/extensions/platform_app.js
index 28450e2a64f785cf16ee49669460f38a98e2007d..e4245afc35f67f6008bd3f5267af37fbb2c1d482 100644
--- a/chrome/renderer/resources/extensions/platform_app.js
+++ b/chrome/renderer/resources/extensions/platform_app.js
@@ -117,6 +117,10 @@ window.addEventListener('readystatechange', function(event) {
// Deprecated document properties from
// https://developer.mozilla.org/en/DOM/document.
+ // To deprecate document.all, simply changing its getter and setter would
+ // activate its cache mechanism, and degrade the performance. Here we assign
+ // it first to 'undefined' to avoid this.
+ document.all = undefined;
not at google - send to devlin 2013/05/29 15:58:05 is this the only property that will ever suffer fr
miket_OOO 2013/05/29 16:19:14 Ben, I'm probably misreading disableGetters (which
not at google - send to devlin 2013/05/29 16:24:31 I mean make disableGetters assign every property t
disableGetters(document, 'document',
['alinkColor', 'all', 'bgColor', 'fgColor', 'linkColor',
'vlinkColor']);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698