Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-15195

KeypressJS blocked by UBlockOrigin Firefox adblocker addon

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 10.2
    • Fix Version/s: 9.11.5, 10.3
    • Labels:
      None
    • Environment:
      Firefox 59.0.2 (64-bit)
      uBlock Origin 1.15.24
      XWiki 10.3-SNAPSHOT (xwiki-platform-distribution-flavor-jetty-hsqldb-10.3-20180416.124646-31.zip)
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      Using the uBlock Origin Firefox adblocker addon, keyboard shortcuts do not work and you get the following in the JS console:

      Loading failed for the <script> with source "http://localhost:9090/xwiki/webjars/wiki%3Axwiki/Keypress/2.1.5/keypress.js?r=1".
      Sandbox:1
      Error: Script error for "/xwiki/webjars/wiki%3Axwiki/Keypress/2.1.5/keypress.js?r=1"
      http://requirejs.org/docs/errors.html#scripterror
      require.min.js:7:290
      

      Checking the adblocker's blocking log, I get:

      17:14:41		/keypress.js$script	--	script	http://localhost:9090/xwiki/webjars/wiki%3Axwiki/Keypress/2.1.5/keypress.js?r=1
      

      Getting more details, I get:

      Static filter /keypress.js$script found in:
          EasyPrivacy
      

      So the official EasyPrivacy (an optional list, part of the most popular adblocking rules, EasyList) blocks keypress.js.

      This means that it's not necessarily only about Firefox or about a particular adblocker (replicated on Chrome with AdBlock, once I enabled the EasyPrivacy list).

        Attachments

          Activity

            People

            • Assignee:
              caubin Clément Aubin
              Reporter:
              enygma Eduard Moraru
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Date of First Response: