Skip to content

Commit

Permalink
Temporarily whitelist existing uses of innerHTML badness.
Browse files Browse the repository at this point in the history
  • Loading branch information
mozfreddyb committed Oct 10, 2019
1 parent ea7475c commit 8bcfa3a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/zapHomeFiles/hud/display.js
Original file line number Diff line number Diff line change
Expand Up @@ -1113,6 +1113,8 @@ navigator.serviceWorker.addEventListener('message', event => {

channel.port1.addEventListener('message', event => {
// Open window and inject the HTML report
// FIXME: remove after #620
// eslint-disable-next-line no-unsanitized/property
window.open('').document.body.innerHTML = event.data.response;
});

Expand Down

0 comments on commit 8bcfa3a

Please sign in to comment.