summaryrefslogtreecommitdiff
path: root/qutebrowser/browser
AgeCommit message (Collapse)Author
2022-03-04Avoid confusion by static method forPage()JingMatrix
Follow the advice in #7049
2022-03-03Qt6 WebEnginePage creatWindow api changeJingMatrix
When double-clicking a network resource in the devtools, one get AttributeError: 'WebEnginePage' object has no attribute 'view'.
2022-01-06FIXME: Rely on QtWebEngine for mouse back/forward for nowFlorian Bruhin
2022-01-05Fix clicking downloads with new enumsFlorian Bruhin
2021-12-14enum: fix search previousJimmy
FindFlags -> FindFlag int() argument must be a string, a bytes-like object or a number, not 'FindFlag' I didn't look for other occurances
2021-12-04Let inspector know about on-the-record profiles.Jimmy
The developer tools only saves preferences to disk, and reads them from disk, if the profile of the page they are drawing to isn't off-the-record. So if you want it to remember your dark mode preference the page hosting the inspector needs to be linked to an on-the-record profile. So we need to create a new page linked to a specific profile and then set that on the view. Options at this point: 1. (in `__init__()` always make a new page linked to the qute default profile and add that to the view 2. delay creating the view and page until `inspect()` is called and get a pointer to the profile of the page being inspected (1) is actually what we have done on previous Qt versions because there the inspector was started with WebEngine's default, global, profile, which used to be on-the-record. I'm not sure if there are any specific ramifications to having the inspector data persistent when the page it is attached to isn't, but there might be stuff like per-domain preferences saved in that case which would be an information leak. So I've went with (2) even though it is probably going to be more disruptive to the tests. In the future if we re-use inspectors across different tabs/windows again we can make a new page on demand if the profile of the inspected page differs form the initial one. For now I've put an assert there because I am lazy. It's a bit awkward having most of the setup in `inspect()` and not `__init__()`. `_init_inspector()` and `inspect()` are only ever called once right beside each other though (now) so we could just pass the page to `__init__()` and get rid of `inspect()`.
2021-11-28More QUrl problemsFlorian Bruhin
2021-11-28Another overloaded signalFlorian Bruhin
2021-11-28download fixupFlorian Bruhin
2021-11-28Fix jseval JS worldFlorian Bruhin
2021-11-28More download APIFlorian Bruhin
2021-11-28QPointF needs to be explicit - PyQt bug?Florian Bruhin
2021-11-28Fix castFlorian Bruhin
2021-11-28Fix download APIFlorian Bruhin
2021-11-28Make default webengineprofile persistent again.Jimmy
Qt6 has switched to the global default profile being off-the-record, which is not the default for qutebrowser. Restore the previous default object name (although we always point it elsewhere anyway so that name should appear in any file paths). ref https://bugreports.qt.io/browse/QTBUG-66068
2021-11-28Switch back to JS WorldId Enums with .valueJimmy
ba6055d5d38a3f3 included some hasty fixups that caused a couple of places to the from ApplicationWorld to 1, instead of 2. This change mostly reverts that can calls .value in a couple of places since the WebEngine APIs wants ints for some reason.
2021-11-26Fix URL formatting issueFlorian Bruhin
2021-10-04Use new signal name for QNetworkReply::errorFlorian Bruhin
2021-10-03Make notifications mostly work.Jimmy
`QVariant.Type` has moved to `QMetaType.Type`[1][] and QMeta.Type doesn't work with int(). `QImage(':/icons/qutebrowser-64x64.png')` yields and empty QImage. This is not fixed but things don't crash because of it anymore. For instance the "Title & Body" test on https://web-push-book.gauntface.com/demos/notification-examples/ `QtWebEngineCore.QWebEnginePage.Feature` doesn't work with int(), so add it to the maps twice. `for s in scripts` was from a previous hack [1]: https://www.qt.io/blog/whats-new-in-qmetatype-qvariant
2021-10-03Make :search workJimmy
FindFlag doesn't work with int() either, use .value. FindTextResult doesn't act like a bool, call `numberOfMatches()`. Undo some disabled stuff that has been fixed upstream Emit a bool, not the FindTextResult object.
2021-08-26FIXME QMouseEvent weirdnessFlorian Bruhin
2021-08-26QUrl hacksFlorian Bruhin
2021-08-26Fix findingFlorian Bruhin
2021-08-26Adjust importsFlorian Bruhin
2021-08-26QUrl issue?Florian Bruhin
2021-08-26Work around world id issueFlorian Bruhin
2021-08-26More random API changesFlorian Bruhin
2021-08-26ImportsFlorian Bruhin
2021-08-26Automatically rewrite enumsFlorian Bruhin
See #5904
2021-08-26Blanket PyQt5 -> PyQt6Florian Bruhin
2021-08-25Remove unused var/importFlorian Bruhin
2021-08-25Move download origin handling to DownloadItemFlorian Bruhin
2021-08-25Prevent mixed content downloading by defaultFlorian Bruhin
https://blog.chromium.org/2020/02/protecting-users-from-insecure.html https://therecord.media/firefox-follows-chrome-and-prepares-to-block-insecure-downloads/
2021-08-21Don't try to hide deleted systray iconFlorian Bruhin
2021-08-17Update changelogFlorian Bruhin
2021-08-17Further simplify rapid hint target checkFlorian Bruhin
2021-08-17Clean up target list for hintingFlorian Bruhin
2021-07-28Switch back to Firefox UA for Google Account quirkFlorian Bruhin
Looks like the Edge one doesn't work anymore. Reverts db13e5283e2d20e83d348f15ea0f46c92e9f3e29 and reintroduces the Firefox UA removed in e010afd3a20a86639396a9c844abfea7b23cc67a (but updated). Closes #5182.
2021-07-13Fixed infinite loop (tested it too)Jason Rosenzweig
2021-07-13Took suggestionsJason Rosenzweig
2021-07-13Added back question code which was accidentally removedJason Rosenzweig
2021-07-13Made implementation simpler, removed unrelated changeJason Rosenzweig
2021-07-13Removed code that I put in a comment to save it and fixed the styles of that ↵Jason Rosenzweig
comment
2021-07-13Initial commit of fix for issue 6549Jason Rosenzweig
2021-07-12Revert "Fix enum stringification for Python 3.10 a7+"Florian Bruhin
This reverts commit e2c5fe6262564d9d85806bfa9d4486a411cf5045. See https://mail.python.org/archives/list/python-dev@python.org/thread/ZMC67QA2JVQJSWSFWRS6IM6ZX4EK277G/#LSTMFAPSPD3BGZ4D6HQFODXZVB3PLYKF
2021-07-09Merge pull request #6567 from lufte/issue6039Florian Bruhin
Database class
2021-07-03Cosmetic changeslufte
2021-07-02The database of a table shouldn't be privatelufte
2021-06-30Pave the way for pathlib migrationlufte
2021-06-27Avoid running migrations partiallylufte