Giter Site home page Giter Site logo

Issues with Qt 6.8 about qutebrowser HOT 6 OPEN

The-Compiler avatar The-Compiler commented on July 18, 2024
Issues with Qt 6.8

from qutebrowser.

Comments (6)

The-Compiler avatar The-Compiler commented on July 18, 2024

Broken ABI

[QTBUG-126454] [REG 6.7 -> 6.8] Broken ABI due to missing QPageLayout::setBottomMargin(qreal) - Qt Bug Tracker

Edit: Ah, already fixed in Beta 2: [QTBUG-126374] ABI break in 6.8 beta 1: QPageLayout::setBottomMargin(double) - Qt Bug Tracker

from qutebrowser.

The-Compiler avatar The-Compiler commented on July 18, 2024

Missing security patch version in our dict

__________ TestWebEngineVersions.test_chromium_security_version_dict ___________

self = <test_version.TestWebEngineVersions object at 0x7ff5b9f9b8c0>
qapp = <PyQt6.QtWidgets.QApplication object at 0x7ff5c1759b30>

    def test_chromium_security_version_dict(self, qapp):
        """Check if we infer the QtWebEngine security version properly.
    
        Note this test mostly tests that our overview in version.py (also
        intended for human readers) is accurate. The code we call here is never
        going to be called in real-life situations, as the API is available.
        """
        try:
            from qutebrowser.qt.webenginecore import (
                qWebEngineVersion,
                qWebEngineChromiumSecurityPatchVersion,
            )
        except ImportError:
            pytest.skip("Requires QtWebEngine 6.3+")
    
        inferred = version.WebEngineVersions.from_webengine(
            qWebEngineVersion(), source="API")
>       assert inferred.chromium_security == qWebEngineChromiumSecurityPatchVersion()
Error: E       AssertionError: assert None == '122.0.6261.128'
E        +  where None = WebEngineVersions(webengine=VersionNumber(6, 8), chromium=None, source='API', chromium_security=None, chromium_major=None).chromium_security
E        +  and   '122.0.6261.128' = <built-in function qWebEngineChromiumSecurityPatchVersion>()

But QtWebEngine infos seem to be outdated, currently claiming the same as Qt 6.7 both in CHROMIUM_VERSION as well as in code:

QtWebEngine 6.8
  based on Chromium 118.0.5993.220
  with security patches up to 122.0.6261.128 (plus any distribution patches)
  (source: api)

from qutebrowser.

The-Compiler avatar The-Compiler commented on July 18, 2024

TestSavefileOpen.test_failing_flush failing

tests/unit/utils/test_qtutils.py:498: Failure: Qt messages with level WARNING or above emitted
----------------------------- Captured Qt messages -----------------------------
QtWarningMsg: QSaveFile::commit: File (/tmp/pytest-of-user/pytest-0/test_failing_flush0/foo) is not open

probably just a new warning from Qt we can suppress for that test?

from qutebrowser.

The-Compiler avatar The-Compiler commented on July 18, 2024

Permission caching/saving breaks tests

Error: FAILED tests/end2end/features/test_prompts_bdd.py::test_async_question_interrupted_by_async_one - end2end.fixtures.testprocess.WaitForTimeout: Timed out after 15000ms waiting for {'message': 'Asking question *'}.
Error: FAILED tests/end2end/features/test_prompts_bdd.py::test_async_question_interrupted_by_blocking_one - end2end.fixtures.testprocess.WaitForTimeout: Timed out after 15000ms waiting for {'message': 'Asking question *'}.
Error: FAILED tests/end2end/features/test_prompts_bdd.py::test_geolocation_with_ask__false - end2end.fixtures.testprocess.WaitForTimeout: Timed out after 15000ms waiting for {'message': 'Asking question *'}.
Error: FAILED tests/end2end/features/test_prompts_bdd.py::test_geolocation_with_ask__false_and_save - end2end.fixtures.testprocess.WaitForTimeout: Timed out after 15000ms waiting for {'message': 'Asking question *'}.
Error: FAILED tests/end2end/features/test_prompts_bdd.py::test_geolocation_with_ask__abort - end2end.fixtures.testprocess.WaitForTimeout: Timed out after 15000ms waiting for {'message': 'Asking question *'}.
Error: FAILED tests/end2end/features/test_prompts_bdd.py::test_always_rejecting_notifications - end2end.fixtures.testprocess.WaitForTimeout: Timed out after 15000ms waiting for {'category': 'js', 'message': '[*] notification permission denied'}.
Error: FAILED tests/end2end/features/test_prompts_bdd.py::test_always_accepting_notifications - end2end.fixtures.testprocess.WaitForTimeout: Timed out after 15000ms waiting for {'category': 'js', 'message': '[*] notification permission granted'}.
Error: FAILED tests/end2end/features/test_prompts_bdd.py::test_notifications_with_ask__false - end2end.fixtures.testprocess.WaitForTimeout: Timed out after 15000ms waiting for {'message': 'Asking question *'}.
Error: FAILED tests/end2end/features/test_prompts_bdd.py::test_notifications_with_ask__false_and_save - end2end.fixtures.testprocess.WaitForTimeout: Timed out after 15000ms waiting for {'message': 'Asking question *'}.
Error: FAILED tests/end2end/features/test_prompts_bdd.py::test_notifications_with_ask__true - end2end.fixtures.testprocess.WaitForTimeout: Timed out after 15000ms waiting for {'message': 'Asking question *'}.
Error: FAILED tests/end2end/features/test_prompts_bdd.py::test_notifications_with_ask__true_and_save - end2end.fixtures.testprocess.WaitForTimeout: Timed out after 15000ms waiting for {'message': 'Asking question *'}.
Error: FAILED tests/end2end/features/test_prompts_bdd.py::test_answering_notification_after_closing_tab - end2end.fixtures.testprocess.WaitForTimeout: Timed out after 15000ms waiting for {'message': 'Asking question *'}.
Error: FAILED tests/end2end/features/test_prompts_bdd.py::test_interrupting_ssl_prompt_during_a_notification_prompt - end2end.fixtures.testprocess.WaitForTimeout: Timed out after 15000ms waiting for {'message': 'Asking question *'}.

e.g.:

----> Waiting for 'Asking question *' in the log
[...]
  07:58:57.045 DEBUG    webelem    webelem:click:411 Clicking <qutebrowser.browser.webengine.webengineelem.WebEngineElement html='<input type="button" onclick="get_notification_permission()" value="Get notification permission" id="button">'> with click_target ClickTarget.normal, force_event False
[...]
  07:58:57.060 DEBUG    js         shared:javascript_log_message:190 [http://localhost:59211/data/prompt/notifications.html:28] [FAIL] unknown initial value for Notification.permission: granted

probably due to:

Added QWebEngineProfile::setPersistentPermissionsPolicy() to control how website permissions persist across browsing sessions. By default, incoming permissions are saved to disk.

I suppose we'll need at least a -D flag (or maybe even a setting?) to set that to NoPersistentPermissions (?) for tests.

from qutebrowser.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.