Commit Graph

730 Commits

Author SHA1 Message Date
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
Raymond Hill 08495c42e9
complete "debian" as a target platform 2018-04-27 11:43:35 -04:00
Raymond Hill 3923520b87
remove no longer needed platform-dependent polyfill.js 2018-04-27 08:36:38 -04:00
Raymond Hill 9baf17fa2a
patch firefox/legacy for changes in e5f2e9701d 2018-04-26 12:01:31 -04:00
Raymond Hill e5f2e9701d
better manage platform-specific code for user-stylesheet support 2018-04-26 11:36:22 -04:00
Raymond Hill 6a0120340c
merge Firefox/webext-specific code into Chromium (see #3716) 2018-04-26 09:12:46 -04:00
Raymond Hill 50d5ab68c8
fix https://github.com/uBlockOrigin/uBlock-issues/issues/9 2018-04-22 14:50:40 -04:00
Raymond Hill 5386558e68
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
Raymond Hill e2af7c5c55
code review: simplfy devbuild detection using webextFlavor 2018-04-14 06:09:36 -04:00
Raymond Hill e40a66e294
code review of efcab145978b: fix collected errors; replace Promises with callbacks 2018-04-12 17:32:38 -04:00
Raymond Hill efcab14597
Squashed commit of the following:
commit ab2b328cf1360a751fa1c58b8521f907eeb1ec50
Author: Raymond Hill <rhill@raymondhill.net>
Date:   Thu Apr 12 12:08:30 2018 -0400

    fix #3588

commit c4ae7638dfa5a5c7ddec2f9dd2d2988450082542
Author: Raymond Hill <rhill@raymondhill.net>
Date:   Thu Apr 12 09:08:56 2018 -0400

    detect user stylesheets support from content scripts (#3588)
2018-04-12 12:17:38 -04:00
Raymond Hill 7ca6e8bfb3
code review: not a fan of deep indentation; detect Edge, Safari 2018-04-12 07:29:14 -04:00
Raymond Hill c34326cf4e
code review: further tuning filter list directives 2018-04-11 06:34:13 -04:00
Raymond Hill 79b4706746
code review: avoid special WebRTC test for non-Chromium browsers (#533) 2018-04-06 13:25:06 -04:00
Raymond Hill 93f49a61d7
add pre-processor directives to filter list compiler (https://github.com/AdguardTeam/AdguardBrowserExtension/issues/917) 2018-04-05 07:29:15 -04:00
Raymond Hill bf384e2bca
better evaluate vAPI.webextFlavor 2018-04-04 12:42:01 -04:00
Raymond Hill fe11ff61c8
mind whitelist directives for filterable behind-the-scene requests (#3654) 2018-04-02 09:10:38 -04:00
Raymond Hill d122b4a607
remove obsolete code 2018-03-31 10:20:44 -04:00
Raymond Hill b7e5c9af49
make use of Chromium 63's webRequest's new `initiator` property 2018-03-30 15:30:53 -04:00
Raymond Hill 2c901588c7
fix #3546, #3428 2018-02-26 13:59:16 -05:00
Raymond Hill 267f769da9
new revision for dev build 2018-02-21 07:19:38 -05:00
Raymond Hill c26d68405a
new revision for dev build 2018-02-18 07:27:32 -05:00
Raymond Hill 16a7ba8f6e
new revision for dev build 2018-02-16 16:55:52 -05:00
Raymond Hill f98cd53cdc
new revision for dev build 2018-02-16 09:32:49 -05:00
Raymond Hill 7e68061da0
new revision fro dev build 2018-02-15 17:38:24 -05:00
Raymond Hill e65d710f83
new revision for dev build 2018-02-15 17:28:30 -05:00
Raymond Hill 17930cc778
fix #3474, #2823 2018-02-15 17:25:38 -05:00
Raymond Hill baf939e2a4
new revision for dev build 2018-02-12 10:28:32 -05:00
Raymond Hill 99ca4ce88a
new revision for dev build 2018-02-05 12:06:24 -05:00
Raymond Hill d1d96ba30f
new revision for stable release 2018-02-03 12:06:52 -05:00
Raymond Hill ae4677c0c7
new revision for release candidate 2018-02-03 09:35:29 -05:00
Raymond Hill 026286977e
new revision for release 2018-02-03 07:04:04 -05:00
Raymond Hill fb4d412cf6
new revision for release 2018-01-31 12:32:07 -05:00
Raymond Hill 568c1d46e4
new revision for release candidate 2018-01-16 09:20:39 -05:00
Raymond Hill f7d7657293
new revision for release candidate 2018-01-13 09:45:44 -05:00
Raymond Hill 0b684bd419
new revision for release candidate 2018-01-11 11:09:15 -05:00
Raymond Hill 36b1eac88e
fix #3425 (regression from 6cdb20df) 2018-01-10 17:59:07 -05:00
Raymond Hill d706415890
new revision for dev build 2018-01-10 12:04:56 -05:00
Raymond Hill 6cdb20dffe
improve logger convenience following fix for #2854 2018-01-09 08:08:17 -05:00
Raymond Hill 225bab9550
new revision for dev build 2018-01-08 14:33:25 -05:00
Raymond Hill 689d18c54f
fix #2854 2018-01-08 14:29:39 -05:00
Raymond Hill 233afcdcac
new revision for dev build 2018-01-07 18:04:12 -05:00
Raymond Hill b7155a0e0f
fix #3408 2018-01-07 17:53:33 -05:00
Raymond Hill 7684bfde53
new revision for dev build 2018-01-05 13:24:53 -05:00
Raymond Hill fcd2124ad3
new revision for dev build 2018-01-04 18:30:23 -05:00
Raymond Hill 1c1fdde4d2
new revision for dev build 2018-01-03 14:07:57 -05:00
Raymond Hill 9049909d2d
new revision for dev build 2018-01-02 23:22:40 -05:00
Raymond Hill fc26b5d227
new revision for dev build 2017-12-31 21:15:22 -05:00
Raymond Hill d8d1fa5221
new revision for dev build 2017-12-31 16:06:45 -05:00
Raymond Hill 35eaf267e6
new revision for dev build 2017-12-31 08:46:58 -05:00
Raymond Hill 96576df1e4
new revision for dev build 2017-12-30 11:22:03 -05:00
Raymond Hill 93e76ecf5d
new revision for dev build 2017-12-29 20:36:31 -05:00
Raymond Hill ff67cf5ada
new revision for dev build 2017-12-29 15:56:53 -05:00
Raymond Hill a25166be92
new revision for dev build 2017-12-29 08:06:40 -05:00
Raymond Hill 8d4f2a2d11
new revision for dev build 2017-12-28 14:24:04 -05:00
Raymond Hill 11ccf8e2b9
new revision for dev build 2017-12-22 09:43:28 -05:00
Raymond Hill 904e550fc0
new revision for dev build 2017-12-17 08:15:24 -05:00
Raymond Hill f753952adc
new revision for dev build 2017-12-15 10:10:09 -05:00
Raymond Hill 2ef892c086
new revision for release candidate 2017-12-14 08:26:36 -05:00
gorhill 61a259013c
new revision for release candidate 2017-12-10 15:05:11 -05:00
gorhill 59b6243633
new revision for dev build 2017-12-08 07:15:13 -05:00
gorhill 4b70553263
new revision for dev build 2017-12-07 18:58:04 -05:00
gorhill 916cc3cf78
new revision for release candidate 2017-12-05 14:47:33 -05:00
gorhill 88ce17561f
fix #3321: make uBO the bigger person and walk away from a pointless fight 2017-12-05 14:37:12 -05:00
gorhill e7d5c836d9
new revision for release candidate 2017-12-05 08:43:17 -05:00
gorhill 4f28301736
import fix to https://github.com/gorhill/uMatrix/issues/840 2017-12-05 08:42:26 -05:00
gorhill 061444bfc6
new revision for dev build 2017-11-30 11:39:18 -05:00
gorhill de1768025c
new revision for stable release 2017-11-29 07:20:44 -05:00
gorhill de2ac0a4d2
new revision for release candidate 2017-11-27 14:53:03 -05:00
gorhill 0c2b715e61
new revision for dev build 2017-11-24 00:47:47 -05:00
gorhill 91de400a64
fix https://github.com/uBlockOrigin/uAssets/issues/859#issuecomment-346681469 2017-11-24 00:39:01 -05:00
gorhill 8c424c15b2
new revision for release candidate 2017-11-22 08:05:07 -05:00
gorhill 71e8983a5f
new revision for dev build 2017-11-21 18:09:43 -05:00
Kacper Michajłow ec70c75264 improve DOM inspector (#3254)
* dom-inspector: Improvments

- Fix race between userCSS injection and element highlight resulting in none or not all elements highlighted.
- Fix page being scanned twice resulting in unneeded slowdown.

* dom-inspector: Clear mutationTimer to allow more than one update.

* dom-inspector: Fix procedural filters shown as declarative with expando.
2017-11-21 18:08:32 -05:00
gorhill 1f7243ce55
new revision for dev build 2017-11-21 13:42:18 -05:00
gorhill 848ca6c351
new revision for dev build 2017-11-20 08:46:33 -05:00
gorhill 806032cdc4
improve DOM inspector
- Fix regressions reported in #3159
- Fix #2001
- Fix some item points in #407
2017-11-20 08:42:32 -05:00
gorhill 7e69a75fe8
new revision for dev build 2017-11-16 11:02:54 -05:00
gorhill 387eaa0b21
fix #3185 2017-11-16 10:55:28 -05:00
gorhill 8646b78306
new revision for dev build 2017-11-15 16:35:00 -05:00
gorhill 11cba7b1a7
new revision for dev build 2017-11-14 15:09:28 -05:00
gorhill 374e157b11
fix #3159 2017-11-14 15:03:20 -05:00
gorhill 9c23e4ab67
adjust minimum version to account for usage of Array.from 2017-11-14 08:44:59 -05:00
gorhill fdad94f98b
new revision for dev build 2017-11-13 09:06:32 -05:00
gorhill 77334bf380
new revision for dev build 2017-11-11 08:03:15 -05:00
gorhill 9e60432860
new revision for dev build 2017-11-10 08:02:36 -05:00
gorhill f7bfcff37a
new revision for dev build 2017-11-09 13:01:35 -05:00
gorhill 8b2c6a6280
new revision for dev build of next iteration 2017-11-05 12:34:58 -05:00
gorhill 6cecd2192e
new revision for dev build 2017-10-31 07:38:54 -04:00
gorhill 7accd6dda9
new revision for dev build 2017-10-29 16:59:22 -04:00
gorhill f639eb9dd7
new revision for dev build 2017-10-28 09:09:56 -04:00
gorhill bbda2a9086
code review: preemptively address https://bugzilla.mozilla.org/show_bug.cgi?id=1408996#c9 2017-10-27 14:22:45 -04:00
gorhill 198f72a912
new revision for dev build 2017-10-26 10:12:09 -04:00
gorhill 8624ba40d5
new revision for dev build 2017-10-25 11:54:54 -04:00
gorhill 2d5e3f38f3
code review: use Map instead of Object 2017-10-25 11:27:16 -04:00
gorhill 2274760275
new revision for dev build 2017-10-24 16:49:18 -04:00
gorhill 23487a643a
prepend vapi-usercss.js to contentscript.js in extension package 2017-10-24 12:40:58 -04:00
gorhill ed5dba432a
fix https://discourse.mozilla.org/t/support-ublock-origin/6746/606 2017-10-24 09:09:10 -04:00
gorhill c7fa91ffb6
new revision for dev build 2017-10-24 07:56:18 -04:00
gorhill 50f3369351
new revision for dev build 2017-10-23 12:54:43 -04:00