RESOLVED FIXED 38989
[Qt] Remove the unneeded check for QWidgetPageClient @QGraphicsWebView::detachCurrentPage
https://bugs.webkit.org/show_bug.cgi?id=38989
Summary [Qt] Remove the unneeded check for QWidgetPageClient @QGraphicsWebView::detac...
Antonio Gomes
Reported 2010-05-12 06:52:22 PDT
Bug title says it all. Reasons: - There is no need to check for a QWidgetPageClient-based in QGraphicsWebView. - The client has always to be deleted anyways. patch coming ...
Attachments
patch v1 (2.47 KB, patch)
2010-05-12 06:54 PDT, Antonio Gomes
kenneth: review-
patch v2 (2.61 KB, patch)
2010-05-12 07:21 PDT, Antonio Gomes
kenneth: review+
Antonio Gomes
Comment 1 2010-05-12 06:54:57 PDT
Created attachment 55840 [details] patch v1
Jesus Sanchez-Palencia
Comment 2 2010-05-12 07:04:40 PDT
(In reply to comment #1) > Created an attachment (id=55840) [details] > patch v1 I missed that on my PageClient patches. =/ Thanks! LGTM, just remember to add the bug number to the Changelog. :)
Jesus Sanchez-Palencia
Comment 3 2010-05-12 07:09:59 PDT
If we want this to go into the 2.0 release we would need to cherry-pick the PageClient refactor first. https://bugs.webkit.org/show_bug.cgi?id=37856
Antonio Gomes
Comment 4 2010-05-12 07:11:55 PDT
(In reply to comment #2) > (In reply to comment #1) > > Created an attachment (id=55840) [details] [details] > > patch v1 > > I missed that on my PageClient patches. =/ > Thanks! LGTM, just remember to add the bug number to the Changelog. :) I can fix that while landing (it is done locally already). Thank you. (In reply to comment #3) > If we want this to go into the 2.0 release we would need to cherry-pick the PageClient refactor first. > https://bugs.webkit.org/show_bug.cgi?id=37856 Sure, removing the block for now.
Kenneth Rohde Christiansen
Comment 5 2010-05-12 07:17:09 PDT
Comment on attachment 55840 [details] patch v1 WebKit/qt/Api/qgraphicswebview.cpp:451 + delete page->d->client; No need to use an if, delete'ing a null pointer does nothing.
Antonio Gomes
Comment 6 2010-05-12 07:21:26 PDT
Created attachment 55843 [details] patch v2 as requested: - Adds the bugzilla entry to the ChangeLog - Removes the "if" wrapping the delete
Antonio Gomes
Comment 7 2010-05-12 08:08:35 PDT
Note You need to log in before you can comment on or make changes to this bug.