uBlock/platform/chromium
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
..
img/browsericons "meatier" icon to improve rendering at low-res 2015-04-16 09:07:00 -04:00
is-webrtc-supported.html fix warnings in browser console 2017-07-25 11:59:52 -04:00
is-webrtc-supported.js this fixes https://github.com/gorhill/uBlock/issues/533#issuecomment-167931681 2015-12-31 09:24:55 -05:00
managed_storage.json #985: might be the missing trailing `#` 2015-11-27 14:30:17 -05:00
manifest.json complete "debian" as a target platform 2018-04-27 11:43:35 -04:00
options_ui.html code review: preemptively address https://bugzilla.mozilla.org/show_bug.cgi?id=1408996#c9 2017-10-27 14:22:45 -04:00
options_ui.js #1443: forgot to revisit this instance of vAPI.messaging 2016-03-16 09:47:10 -04:00
vapi-background.js fix https://github.com/uBlockOrigin/uBlock-issues/issues/9 2018-04-22 14:50:40 -04:00
vapi-cachestorage.js better manage platform-specific code for user-stylesheet support 2018-04-26 11:36:22 -04:00
vapi-client.js improve DOM inspector 2017-11-20 08:42:32 -05:00
vapi-common.js fix https://www.reddit.com/r/uBlockOrigin/comments/8dkvqn/116_broken_loading_custom_filters_from_my_filters/ 2018-04-21 12:34:54 -04:00
vapi-usercss.js patch firefox/legacy for changes in e5f2e9701d 2018-04-26 12:01:31 -04:00
vapi-usercss.pseudo.js better manage platform-specific code for user-stylesheet support 2018-04-26 11:36:22 -04:00
vapi-usercss.real.js better manage platform-specific code for user-stylesheet support 2018-04-26 11:36:22 -04:00
vapi-webrequest.js mind whitelist directives for filterable behind-the-scene requests (#3654) 2018-04-02 09:10:38 -04:00
vapi.js Clear return value of vapi.js content script (#3721) 2018-05-01 07:28:21 -04:00