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

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            agnieszka Agnieszka Jaworska
            Reporter:
            nagrohn Nahomi Gröhn
            Votes:
            3 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes