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

Issue 7038046: Insert meta tag turning on content-security-protection for chrome://settings, history, downloads ... (Closed)

Created:
9 years, 7 months ago by Tom Sepez
Modified:
9 years, 7 months ago
CC:
chromium-reviews, arv (Not doing code reviews)
Visibility:
Public.

Description

Insert meta tag turning on content-security-protection for chrome://settings, history, downloads pages now that the webkit inspector has been revised to stop calling JS eval(). Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=86708

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 1

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Total comments: 1

Patch Set 7 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -15 lines) Patch
M chrome/browser/resources/downloads.html View 1 2 3 4 5 6 3 chunks +10 lines, -7 lines 0 comments Download
M chrome/browser/resources/downloads.js View 1 2 3 4 5 6 1 chunk +12 lines, -0 lines 0 comments Download
M chrome/browser/resources/history.html View 1 2 3 4 5 6 3 chunks +9 lines, -6 lines 0 comments Download
M chrome/browser/resources/history.js View 1 2 3 4 5 6 1 chunk +11 lines, -0 lines 0 comments Download
M chrome/browser/resources/options/options.html View 1 2 3 4 5 6 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/test/data/webui/test_api.js View 1 2 3 4 5 6 1 chunk +7 lines, -2 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
Tom Sepez
9 years, 7 months ago (2011-05-20 22:20:41 UTC) #1
abarth-chromium
This is fantastic! LGTM
9 years, 7 months ago (2011-05-20 22:22:01 UTC) #2
Tom Sepez
Heh. Missed a few in downloads and history: <body onload="load();" i18n-values=".style.fontFamily:fontfamily;.style.fontSize:fontsize"> <a href="" onclick="setSearch(''); return ...
9 years, 7 months ago (2011-05-20 22:48:06 UTC) #3
abarth-chromium
Silly inline event handlers.
9 years, 7 months ago (2011-05-20 22:59:59 UTC) #4
Tom Sepez
Please review changes to JS. Also, I moved the inclusion of the new script down ...
9 years, 7 months ago (2011-05-23 18:16:14 UTC) #5
abarth-chromium
http://codereview.chromium.org/7038046/diff/5001/chrome/browser/resources/downloads.js File chrome/browser/resources/downloads.js (right): http://codereview.chromium.org/7038046/diff/5001/chrome/browser/resources/downloads.js#newcode597 chrome/browser/resources/downloads.js:597: $('search-form').onclick = function () { Shouldn't one of these ...
9 years, 7 months ago (2011-05-23 18:22:07 UTC) #6
Tom Sepez
D'oh.
9 years, 7 months ago (2011-05-23 18:26:14 UTC) #7
Tom Sepez
Current hangup is chrome/test/data/webui/test_api.js ... function runTest(currentTest, testArguments) { try { currentTest = eval(currentTest); console.log('Running ...
9 years, 7 months ago (2011-05-23 20:37:15 UTC) #8
abarth-chromium
Maybe add 'unsafe-eval' as a script-src for now and then iterate? Adam On Mon, May ...
9 years, 7 months ago (2011-05-23 20:56:45 UTC) #9
Tom Sepez
Can probably replace the eval(currentTest) with this[currentTest], for the cases where we're passing a string ...
9 years, 7 months ago (2011-05-23 21:00:35 UTC) #10
abarth-chromium
That could work. maybe try it and see what the trybot thinks. Adam On Mon, ...
9 years, 7 months ago (2011-05-23 21:05:11 UTC) #11
Tom Sepez
Suspect the RTL failures are caused by third_party/bidichecker/bidichecker_packaged.js: ...if(b)try{return eval("("+a+")")}catch(c){}...
9 years, 7 months ago (2011-05-23 22:48:36 UTC) #12
abarth-chromium
> ...if(b)try{return eval("("+a+")")}catch(c){}... ^^^ That looks suspiciously like an attempt at JSON.parse.
9 years, 7 months ago (2011-05-23 22:58:59 UTC) #13
Tom Sepez
Interestingly, that eval didn't get hit. Time to look for other -- oh: var Mb=new ...
9 years, 7 months ago (2011-05-23 23:43:19 UTC) #14
abarth-chromium
That's easily fixable by using a real function: var Mb = function(a) { return a; ...
9 years, 7 months ago (2011-05-23 23:46:06 UTC) #15
Tom Sepez
and ... window.execScript() for good measure, too.
9 years, 7 months ago (2011-05-24 00:01:48 UTC) #16
abarth-chromium
On 2011/05/24 00:01:48, Tom Sepez wrote: > and ... window.execScript() for good measure, too. execScript ...
9 years, 7 months ago (2011-05-24 00:04:25 UTC) #17
Tom Sepez
closure/goog/json/json.js: /** * Parses a JSON string and returns the result. This throws an exception ...
9 years, 7 months ago (2011-05-24 00:33:38 UTC) #18
Tom Sepez
Latest patch takes the easy way out with unsafe-eval. We still move the inline handlers ...
9 years, 7 months ago (2011-05-24 21:38:00 UTC) #19
abarth-chromium
LGTM. (Not sure if someone else should review this patch also.) http://codereview.chromium.org/7038046/diff/10002/chrome/test/data/webui/test_api.js File chrome/test/data/webui/test_api.js (right): ...
9 years, 7 months ago (2011-05-24 21:41:17 UTC) #20
Tom Sepez
Ok, lets have arv or estade take a look too.
9 years, 7 months ago (2011-05-25 18:20:33 UTC) #21
Tom Sepez
9 years, 7 months ago (2011-05-25 18:20:59 UTC) #22
erv, evan -- could you take a look at this?

Powered by Google App Engine
This is Rietveld 408576698