[Webkit-unassigned] [Bug 34382] When a live iframe element is moved between pages, it still depends on the old page.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Feb 11 12:40:20 PST 2010


https://bugs.webkit.org/show_bug.cgi?id=34382





--- Comment #17 from Kenneth Rohde Christiansen <kenneth at webkit.org>  2010-02-11 12:40:17 PST ---
(From update of attachment 48547)

>  /*!
> +  The frame is moved between pages - replace the page.
> + 
> +  \note This can not be done on a main frame of the page.
> +*/

Needs \since 4.7 and it needs to block the Qt 4.7 API tracker:
https://bugs.webkit.org/show_bug.cgi?id=31552

> +void QWebFrame::setPage(QWebPage* newPage)
> +{
> +    Q_ASSERT(d->page);
> +    Q_ASSERT(newPage);
> +    Q_ASSERT(page()->mainFrame() != this);
> +    if (d->page != newPage) {
> +        d->page = newPage;
> +        // The QWebFrame is created as a child of QWebPage. That adds it to QObject's internal childrent list and
> +        // ensures it will be deleted when parent QWebPage is deleted. Re-parent.
> +        setParent(newPage);
> +    }
> +}

What is the use case? Can this only happen through the public Qt C++ API, or
can it happen in any other way? IF so we might need a signal.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list