Chromium Code Reviews
DescriptionRefactor extension bindings to share code, avoid exposing hidden variables
globally, and avoid using the DOM load/unload events.
- moved callback handling into event_bindings.js (ports will use it).
- added chromeHidden, a V8 hidden value, to keep all internal variables that
need to be accessible to native code.
- changed context registration to occur always at extension load, instead of
DOM load.
- added an internal unload event that doesn't disable SuddenTermination.
This is a rework of my earlier CL http://codereview.chromium.org/125280 which was reverted because of a perf regression. I believe the perf problem was caused by the call into javascript I did on page load to handle context registration - this CL avoids that.
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=19634
Patch Set 1 #
Total comments: 13
Patch Set 2 : comments; chromeHidden assumed #Patch Set 3 : fix crashes and failures #Patch Set 4 : domwindow, not frame #Patch Set 5 : rework after webkit change #
Total comments: 6
Patch Set 6 : comment fix #Patch Set 7 : from linux #Patch Set 8 : at head #Messages
Total messages: 11 (0 generated)
|