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

Issue 1266273006: Don't crash the browser if something tries to inject JavaScript (Closed)

Created:
5 years, 4 months ago by jochen (gone - plz use gerrit)
Modified:
5 years, 4 months ago
Reviewers:
Charlie Reis
CC:
chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, Evan Stade, jam, nasko+codewatch_chromium.org, nasko
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Don't crash the browser if something tries to inject JavaScript Instead, just trigger a report for users that have opted in, and DCHECK() for developers. We still don't execute the script.. Developers that hit this DCHECK should either fix their code if they didn't intend to inject into a random page, consider using one of our many C++ APIs, or inject into an isolated world. There is a separate API for tests that can run on any page. For tests only. BUG=516690 R=creis@chromium.org

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -12 lines) Patch
M content/browser/frame_host/render_frame_host_impl.cc View 4 chunks +21 lines, -12 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
jochen (gone - plz use gerrit)
5 years, 4 months ago (2015-08-04 18:52:42 UTC) #1
Charlie Reis
Yes, this should get us the same reports without crashing the user's browser (and without ...
5 years, 4 months ago (2015-08-04 19:59:56 UTC) #2
jochen (gone - plz use gerrit)
5 years, 4 months ago (2015-08-04 20:03:42 UTC) #3
sgtm

Powered by Google App Engine
This is Rietveld 408576698