uBlock/platform
Rob Wu b27f23d520 Clear return value of vapi.js content script (#3721)
Upon start-up, uBlock runs all content scripts in manifest.json using
`chrome.tabs.executeScript`. When this API is used, the value of the
last expression is automatically cloned and transferred to the
callback of `chrome.tabs.executeScript`. This is convenient if needed,
and a performance burden otherwise (the latter is the case for uBlock).

There are three content scripts that need to be checked:

- vapi.js
  The last expression is often the vAPI object, and it is relatively
  expensive to clone this object. This commit sets the value of the
  last expression to `void 0` to solve this inefficiency.

- vapi-client.js
  No action needed yet; The last expression is `vAPI.shutdown.add(...)`,
  which has a void return value.

- contentscript.js
  No action needed yet; The last expression is an immediately-invoked
  function expression without return value.
2018-05-01 07:28:21 -04:00
..
chromium Clear return value of vapi.js content script (#3721) 2018-05-01 07:28:21 -04:00
firefox rename "webext" target to more accurate "firefox" 2018-04-27 12:37:33 -04:00
opera complete "debian" as a target platform 2018-04-27 11:43:35 -04:00
safari Compress the icon PNGs with zopflipng (#3458) 2018-04-15 06:30:40 -04:00
webext typo 2018-04-27 12:49:34 -04:00