Chromium Code Reviews| Index: chrome/browser/resources/password_manager_internals/password_manager_internals.js |
| diff --git a/chrome/browser/resources/password_manager_internals/password_manager_internals.js b/chrome/browser/resources/password_manager_internals/password_manager_internals.js |
| index 73aab6dde953deb86ee838ab4249b1c3f4a63bb2..4b7dd0abcd962d9d59099a7bc67b842a7441b3dc 100644 |
| --- a/chrome/browser/resources/password_manager_internals/password_manager_internals.js |
| +++ b/chrome/browser/resources/password_manager_internals/password_manager_internals.js |
| @@ -2,12 +2,13 @@ |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| +// |logText| is expected to be escaped for HTML. |
| function addSavePasswordProgressLog(logText) { |
| var logDiv = $('log-entries'); |
| if (!logDiv) |
| return; |
| logDiv.appendChild(document.createElement('hr')); |
| var textDiv = document.createElement('div'); |
| - textDiv.innerText = logText; |
| + textDiv.innerHTML = logText; |
|
Tom Sepez
2014/04/11 18:57:43
Oh, not so good. How can we avoid this?
vabr (Chromium)
2014/04/11 19:03:14
I can revert it to innerText without much troubles
|
| logDiv.appendChild(textDiv); |
| } |