Description[dom_distiller] Fix crash for invalid chrome-distiller:// requests
When the DomDistillerViewerSource got a request for chrome-distiller://foobar/
it would crash if there was an empty path argument. This CL adds a safety check
for the length of the path, to ensure to not take a substring of an empty
string.
In addition, this adds regression tests for the crash it fixes. It also fixes
the rest of the disabled browser tests for the DomDistillerViewerSource.
BUG=356866
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=271178
Patch Set 1 #Patch Set 2 : Remove unnecessary changes #Patch Set 3 : Rebaseed #Patch Set 4 : Fixed crash and updated tests #Patch Set 5 : Moar simple #Patch Set 6 : Change to use ASSERT_TRUE instead of DCHECK #
Total comments: 2
Patch Set 7 : Added expect_distiller_page_ #
Messages
Total messages: 9 (0 generated)
|