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

Issue 1675133002: inject_script_tags no longer crashes when there is no body tag. (Closed)

Created:
4 years, 10 months ago by Matthew Alger
Modified:
4 years, 10 months ago
Reviewers:
Matt Giuca
CC:
raymes
Base URL:
https://github.com/chromium/caterpillar.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

inject_script_tags no longer crashes when there is no body tag. Previously, inject_script_tags would raise an AttributeError when given HTML with no body tag. This CL fixes the function so that it works regardless of whether there is a body tag. Resolves https://github.com/chromium/caterpillar/issues/44 . R=mgiuca@chromium.org Committed: b59e08ac4c29309b9695b19451a8f454784b20ff

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -2 lines) Patch
M src/caterpillar.py View 1 chunk +7 lines, -1 line 3 comments Download
M src/caterpillar_test.py View 1 chunk +45 lines, -1 line 0 comments Download

Messages

Total messages: 7 (2 generated)
Matthew Alger
4 years, 10 months ago (2016-02-08 03:08:46 UTC) #2
Matt Giuca
https://codereview.chromium.org/1675133002/diff/1/src/caterpillar.py File src/caterpillar.py (right): https://codereview.chromium.org/1675133002/diff/1/src/caterpillar.py#newcode279 src/caterpillar.py:279: target = soup I'm confused; I thought you did ...
4 years, 10 months ago (2016-02-08 04:28:39 UTC) #3
Matthew Alger
https://codereview.chromium.org/1675133002/diff/1/src/caterpillar.py File src/caterpillar.py (right): https://codereview.chromium.org/1675133002/diff/1/src/caterpillar.py#newcode279 src/caterpillar.py:279: target = soup On 2016/02/08 04:28:39, Matt Giuca wrote: ...
4 years, 10 months ago (2016-02-08 04:29:57 UTC) #4
Matt Giuca
lgtm https://codereview.chromium.org/1675133002/diff/1/src/caterpillar.py File src/caterpillar.py (right): https://codereview.chromium.org/1675133002/diff/1/src/caterpillar.py#newcode279 src/caterpillar.py:279: target = soup On 2016/02/08 04:29:57, Matthew Alger ...
4 years, 10 months ago (2016-02-08 05:59:52 UTC) #5
Matthew Alger
4 years, 10 months ago (2016-02-08 06:03:13 UTC) #7
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
b59e08ac4c29309b9695b19451a8f454784b20ff (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698