Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-96204

[Qt WebView] Adding support functions to manage cookies (patch suggested)

    XMLWordPrintable

Details

    Description

      QtWebView lacks any support for managing cookies. Additionally, unlike platforms like Android, on iOS, the cookies are managed per view (in the case of iOS, WKWebView). This means that to be able to work with cookies you have to have a way of accessing the underlying component, which Qt WebView does not allow for.

      In the attached code ( qtwebview-with-cookies.zip ), QtWebEngine plugin was modified so it has an interface for modifying cookies. No implemented cookies in the webrt backend, but there is an implementation for the android, ios and webengine backends. The new interface is in src/webview/qquickwebview_p.h:

      Q_SLOTS:
      void setCookie(const QString & domain, const QString & name, const QString & value);
      void deleteCookie(const QString & domain, const QString & name);
      void deleteAllCookies();
      
      Q_SIGNALS:
      void cookieAdded(const QString & domain, const QString & name);
      void cookieRemoved(const QString & domain, const QString & name);
      

      Please consider adding this to Qt.

      Attachments

        For Gerrit Dashboard: QTBUG-96204
        # Subject Branch Project Status CR V

        Activity

          People

            agnieszka Agnieszka Jaworska
            nagrohn Nahomi Gröhn (Inactive)
            Votes:
            3 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes