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

Issue 16118002: Avoid cache when deprecating document.all (Closed)

Created:
7 years, 7 months ago by Yang Gu
Modified:
7 years, 6 months ago
CC:
chromium-reviews, Aaron Boodman, chromium-apps-reviews_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Avoid cache when deprecating document.all 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. BUG=https://code.google.com/p/chromium/issues/detail?id=239756 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=204493

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -0 lines) Patch
M chrome/renderer/resources/extensions/platform_app.js View 1 chunk +4 lines, -0 lines 3 comments Download

Messages

Total messages: 14 (0 generated)
Yang Gu
7 years, 6 months ago (2013-05-29 09:14:46 UTC) #1
Mihai Parparita -not on Chrome
Removing myself as a reviewer, I'm no longer working on Chrome.
7 years, 6 months ago (2013-05-29 15:53:09 UTC) #2
not at google - send to devlin
Mihai you appear to have re-added yourself, but may I humbly suggest that you change ...
7 years, 6 months ago (2013-05-29 15:58:04 UTC) #3
miket_OOO
Waiting for answer from Ben on my question before I approve; I don't think I ...
7 years, 6 months ago (2013-05-29 16:19:14 UTC) #4
not at google - send to devlin
https://codereview.chromium.org/16118002/diff/1/chrome/renderer/resources/extensions/platform_app.js File chrome/renderer/resources/extensions/platform_app.js (right): https://codereview.chromium.org/16118002/diff/1/chrome/renderer/resources/extensions/platform_app.js#newcode123 chrome/renderer/resources/extensions/platform_app.js:123: document.all = undefined; On 2013/05/29 16:19:14, miket wrote: > ...
7 years, 6 months ago (2013-05-29 16:24:30 UTC) #5
miket_OOO
> I mean make disableGetters assign every property to undefined ('document', > 'aLinkColor', 'all', etc) ...
7 years, 6 months ago (2013-05-29 16:56:19 UTC) #6
Yang Gu
On 2013/05/29 15:58:04, kalman wrote: > Mihai you appear to have re-added yourself, but may ...
7 years, 6 months ago (2013-05-30 16:46:57 UTC) #7
not at google - send to devlin
On 2013/05/30 16:46:57, Yang Gu wrote: > On 2013/05/29 15:58:04, kalman wrote: > > Mihai ...
7 years, 6 months ago (2013-05-31 15:41:25 UTC) #8
Yang Gu
I just dig into code of V8 binding, and the whole thing is clear for ...
7 years, 6 months ago (2013-06-04 07:46:32 UTC) #9
not at google - send to devlin
sounds good, let's just do it for document.all then.
7 years, 6 months ago (2013-06-04 15:57:46 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yang.gu@intel.com/16118002/1
7 years, 6 months ago (2013-06-06 02:39:27 UTC) #11
Yang Gu
On 2013/06/04 15:57:46, kalman wrote: > sounds good, let's just do it for document.all then. ...
7 years, 6 months ago (2013-06-06 02:40:18 UTC) #12
not at google - send to devlin
lgtm, commit queue is fine
7 years, 6 months ago (2013-06-06 02:43:06 UTC) #13
commit-bot: I haz the power
7 years, 6 months ago (2013-06-06 13:49:26 UTC) #14
Message was sent while issue was closed.
Change committed as 204493

Powered by Google App Engine
This is Rietveld 408576698