WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
157388
Remove unnecessary PageOverlay client function pageOverlayDestroyed
https://bugs.webkit.org/show_bug.cgi?id=157388
Summary
Remove unnecessary PageOverlay client function pageOverlayDestroyed
John Wilander
Reported
2016-05-05 14:23:16 PDT
PageOverlay's destructor should call WebPageOverlay::pageOverlayDestroyed() and WebPageOverlay::pageOverlayDestroyed() should remove the PageOverlay from its hash map.
Attachments
Patch
(2.92 KB, patch)
2016-05-05 14:34 PDT
,
John Wilander
no flags
Details
Formatted Diff
Diff
Patch
(15.33 KB, patch)
2016-05-05 17:58 PDT
,
John Wilander
no flags
Details
Formatted Diff
Diff
Patch
(16.83 KB, patch)
2016-05-06 11:07 PDT
,
John Wilander
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
John Wilander
Comment 1
2016-05-05 14:24:58 PDT
rdar://problem/25471523
John Wilander
Comment 2
2016-05-05 14:34:27 PDT
Created
attachment 278191
[details]
Patch
Tim Horton
Comment 3
2016-05-05 14:39:34 PDT
Comment on
attachment 278191
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=278191&action=review
> Source/WebKit2/ChangeLog:11 > + Now revoes the given PageOverlay from its overlay HashMap.
revoes?
> Source/WebKit2/WebProcess/WebPage/WebPageOverlay.cpp:-94 > - m_client->pageOverlayDestroyed(*this);
Why did you stop calling WebPageOverlay::Client's pageOverlayDestroyed callback? Seems like you're introducing a new version of the same bug you're fixing at a different level :) (or perhaps just leaking API::PageOverlayClientImpl?)
John Wilander
Comment 4
2016-05-05 17:18:51 PDT
Changed the title to reflect what we intend to do.
John Wilander
Comment 5
2016-05-05 17:58:21 PDT
Created
attachment 278212
[details]
Patch
Brent Fulgham
Comment 6
2016-05-05 21:41:33 PDT
Comment on
attachment 278212
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=278212&action=review
> Source/WebCore/ChangeLog:8 > +
You should explain what's happening: "Remove dead PageOverlay code. All uses of the WebPageOverlay are handled through unique pointers that automatically deleted when the WebPageOverlay object itself is deleted. Thus, there is no need to call pageOverlayDestroyed as objects are guaranteed to be completely cleaned up." ... or something along those lines.
John Wilander
Comment 7
2016-05-06 11:07:21 PDT
Created
attachment 278254
[details]
Patch
WebKit Commit Bot
Comment 8
2016-05-20 14:16:33 PDT
Comment on
attachment 278254
[details]
Patch Clearing flags on attachment: 278254 Committed
r201224
: <
http://trac.webkit.org/changeset/201224
>
WebKit Commit Bot
Comment 9
2016-05-20 14:16:37 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug