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

Issue 2800063003: Force a python_only rjsmin version in devtools build

Created:
3 years, 8 months ago by tsniatowski
Modified:
3 years, 8 months ago
Reviewers:
lushnikov, allada
CC:
chromium-reviews, caseq+blink_chromium.org, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org, apavlov+blink_chromium.org, devtools-reviews_chromium.org, blink-reviews, pfeldman, kozyatinskiy+blink_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Force a python_only rjsmin version in devtools build Avoid accidentally picking up a system native _rjsmin module which can be an incompatible version that will silently corrupt the generated devtools JS files. As we do not bundle a native _rjsmin module, use python_only=True to avoid "import _rjsmin". Or in other words, if the python version has been fixed to do something extra the plain version doesn't (https://codereview.chromium.org/2229683002/ https://codereview.chromium.org/2553843002) then it better not try to load an unpatched native module. BUG=709025

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M third_party/WebKit/Source/devtools/scripts/build/rjsmin.py View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 8 (4 generated)
tsniatowski
PTAL
3 years, 8 months ago (2017-04-07 07:13:58 UTC) #3
lushnikov
Thank you for the patch! It's unclear why rjsmin has this "python_only" flag. AFAIR the ...
3 years, 8 months ago (2017-04-07 22:15:37 UTC) #6
kailoran
On 2017/04/07 22:15:37, lushnikov wrote: > Thank you for the patch! It's unclear why rjsmin ...
3 years, 8 months ago (2017-04-08 12:32:55 UTC) #7
allada
3 years, 8 months ago (2017-04-10 19:03:10 UTC) #8
On 2017/04/08 12:32:55, kailoran wrote:
> For the record, upstreaming by itself won't fix everything, someone may still
> have an old version which could get picked up and secretly break things. I
guess
> ideally there should be some kind of version check in the python code that'll
> avoid using an older (or maybe simply mismatched) native module. Probably not
> worth the effort in a forked copy.

I have submitted a request to the maintainer of rjsmin for consideration.
If/when
a solution is found we will pull rjsmin and do any rebinding needed.

See: https://github.com/ndparker/rjsmin/issues/11

Powered by Google App Engine
This is Rietveld 408576698