Solving “This extension may have been corrupted” in Chrome version 59

78903edf564c-Screen_Shot_2017_06_16_at_17.23.16

Background

I found our extensions being detected as corrupted in the Chrome stable release version 59. After some research, I found a related bug report.

Basically, if the extension contains files with file size with is the multiple of 4096, the extension will be marked as corrupted.

Printing all files’ name and size

This following python code will print all the files’ name and size:


The following result showing there is a file having 8192 bytes.

2

Solution

By just adding a lot of comments, I solve the issue:

/*more*//*more*//*more*//*more*//*more*//*more*//*more*//*more*//*more*//*more*//*more*//*more*//*more*//*more*//*more*//*more*/

3

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s