Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Double reloading when using :reload after enabling JS #3863

Open
The-Compiler opened this issue Apr 24, 2018 · 3 comments
Open

Double reloading when using :reload after enabling JS #3863

The-Compiler opened this issue Apr 24, 2018 · 3 comments
Labels
priority: 2 - low Issues which are currently not very important.

Comments

@The-Compiler
Copy link
Member

Just noticed that, haven't investigated at all yet:

  • Open two tabs (e.g. GitLab) which don't have JS allowed
  • Allow JS in tab 1 (reloads as expected)
  • Go to tab 2 and reload to enable JS there
  • qutebrowser reloads a second time when reloading finished, because it probably doesn't get that the first reload suffices.

Though that makes me wonder whether qutebrowser should just reload all affected tabs automatically when a setting changes...

@The-Compiler The-Compiler added the priority: 2 - low Issues which are currently not very important. label Apr 24, 2018
@toofar
Copy link
Member

toofar commented Apr 24, 2018

because it probably doesn't get that the first reload suffices.

Why does it even want to reload? I thought the reload when enabling JS was just from the binded command?

@The-Compiler
Copy link
Member Author

The problem is that qutebrowser needs to toggle those setting before a page gets loaded. In most cases, this is caused by a on_predicted_navigation signal which qutebrowser emits before a navigation - but in the cases where that doesn't work, it reloads the page.

@toofar
Copy link
Member

toofar commented Apr 25, 2018

Speaking of that workaround, I just had a crash (the first one in ... ages) at https://github.com/qutebrowser/qutebrowser/blob/bc9a8dd/qutebrowser/browser/webengine/webenginetab.py#L1030 saying "RuntimeError: wrapped C/C++ object of type WebEngineView has been deleted" (meaning self I guess). The last line of the trace was from self._widget.load(url) in openurl. I think I just closed a tab and switched workspaces but I wasn't paying attention.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: 2 - low Issues which are currently not very important.
Projects
None yet
Development

No branches or pull requests

2 participants