mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +00:00
Bug 727826 - Use JSON.parse instead of eval to parse JSON. r=mak
This commit is contained in:
parent
bb57488be4
commit
61d3b82ba7
@ -562,7 +562,7 @@ HistoryMenu.prototype = {
|
||||
undoMenu.removeAttribute("disabled");
|
||||
|
||||
// populate menu
|
||||
var undoItems = eval("(" + this._ss.getClosedTabData(window) + ")");
|
||||
var undoItems = JSON.parse(this._ss.getClosedTabData(window));
|
||||
for (var i = 0; i < undoItems.length; i++) {
|
||||
var m = document.createElement("menuitem");
|
||||
m.setAttribute("label", undoItems[i].title);
|
||||
|
Loading…
Reference in New Issue
Block a user