Qutebrowser: Request for testing: Exotic per-URL settings

Created on 27 Feb 2018  路  4Comments  路  Source: qutebrowser/qutebrowser

With the initial round of per-URL settings merged recently, I enabled pattern support for various settings which are all internally set the same way:

  • [ ] content.cache.appcache (QtWebKit only)
  • [ ] content.dns_prefetch (QtWebKit only)
  • [ ] content.frame_flattening (QtWebKit only)
  • [ ] content.hyperlink_auditing
  • [x] content.images
  • [x] content.javascript.can_access_clipboard
  • [ ] content.javascript.can_close_tabs (QtWebKit only)
  • [x] content.javascript.can_open_tabs_automatically
  • [x] content.javascript.enabled
  • [ ] content.local_content_can_access_remote_urls
  • [ ] content.local_content_can_access_file_urls
  • [x] content.local_storage
  • [x] content.plugins
  • [x] content.print_element_backgrounds (needs Qt >= 5.8 if using QtWebEngine)
  • [x] content.webgl
  • [ ] content.xss_auditing
  • [x] input.links_included_in_focus_chain
  • [x] input.spatial_navigation
  • [x] scrolling.smooth
  • [x] zoom.text_only (QtWebKit only)

Most of those can't be easily tested automatically, but it'd be nice to at least verify that they work at all - that's where I'd like your help!

Here's what to do:

  • Pick some setting above which nobody looked at yet (I'll update the list periodically, but you might want to look at comments below as well).
  • Make sure you understand what it does (:help example.setting might help).
  • Find two demo pages for that functionality (or write your own).
  • Make sure it works when you change the setting globally. If it needs a refresh to be active, make a note of that.
  • Change the setting from the global/default value for one of those pages, e.g. by doing :set --pattern=*://example2.com/* content.images false or :set --pattern=file:///path/to/file2.html (though I'm not sure how well file:// works to be honest)
  • Visit the unchanged demo page. Make sure the setting is at its default value.
  • Visit the changed demo page. Make sure it behaves differently. If it requires a refresh to be active but didn't above, take a note of that.
  • Ideally, go back/forth between the two pages and make sure things behave correctly.
  • Make a comment here and report your findings. If possible, include URLs to the demo pages. If you couldn't test something for some reason, please let me know as well.

I'll pick the rest up before the release, but as usual, I have a lot on my plate - and this is a nice way to contribute to qutebrowser even for non-programmers! As usual, if you get stuck somewhere, please let me know and I'm happy to help! :smile:

config 2 - low

All 4 comments

webgl works fine, reload required.
Test page 1: https://scenery.flightgear.org/app.php?c=Models&a=view&id=7075
Test page 2: http://madebyevan.com/webgl-water/

content.images seems to work fine with patterns (without a refresh), however, if content.images is overrided to be 'off', when navigating to a page where it is enabled, the images pop up while the next page is loading:

peek 2018-03-05 12-37

Globally, turning images off needs a refresh, but turning it on does not (which is possibly why going from a imaged site to a non-imaged site does not cause the images to dissapear.

(also, I tested on reddit and qutebrowser.org, with idential results)

Javascript Clipboard

This was a bit tough to write an example for (and I was a bit lazy), so I cheated and I used document.execCommand('copy') in the inspector on pages after selecting text. The setting dosen't need a reload to take effect generally.

The setting seemed to work fine both ways without a refresh with patterns as well.

I'm not sure if it applies to all patterns, but this setting seemed to need a refresh if going to 'ddg.gg' (which redirects you to duckduckgo.com) and the pattern is set to duckduckgo.com. With the js setting, I think it forces a refresh properly, but I'm not sure if this applies to others.

Javsacript open tabs automatically

I used https://jsfiddle.net/vo07gf2d/ and https://codepen.io/anon/pen/ddBREX, which seemed to work fine without a refresh.

I looked at the ones which were easy to test. I think it's okay to release v1.2.0 and assume the others work too.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

The-Compiler picture The-Compiler  路  3Comments

martingabelmann picture martingabelmann  路  3Comments

Ambrevar picture Ambrevar  路  4Comments

Chinggis6 picture Chinggis6  路  4Comments

orangecms picture orangecms  路  3Comments