WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
194522
WebPage::close needs to remove all message receivers associated with that WebPage, not WebPage::~WebPage
https://bugs.webkit.org/show_bug.cgi?id=194522
Summary
WebPage::close needs to remove all message receivers associated with that Web...
Alex Christensen
Reported
2019-02-11 17:00:43 PST
WebPage::close needs to remove all message receivers associated with that WebPage, not WebPage::~WebPage
Attachments
Patch
(14.81 KB, patch)
2019-02-11 17:08 PST
,
Alex Christensen
cdumez
: review+
cdumez
: commit-queue-
Details
Formatted Diff
Diff
patch for the safari-607-branch
(14.71 KB, patch)
2019-02-12 11:59 PST
,
Alex Christensen
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Alex Christensen
Comment 1
2019-02-11 17:08:33 PST
Created
attachment 361735
[details]
Patch
Alex Christensen
Comment 2
2019-02-11 17:08:35 PST
<
rdar://problem/47789393
>
Chris Dumez
Comment 3
2019-02-11 18:55:43 PST
Comment on
attachment 361735
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=361735&action=review
r=me with nits.
> Tools/TestWebKitAPI/Tests/WebKitCocoa/BundleRetainPagePlugIn.mm:40 > + dispatch_after(dispatch_time(DISPATCH_TIME_NOW, 0.5*NSEC_PER_SEC), dispatch_get_main_queue(), [retainedPage = retainPtr(browserContextController)] { });
I think we usually have spaces around the *
> Tools/TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:2407 > +void testReuseSuspendedProcessForRegularNavigation(bool retainPageInBundle)
We usually use enum classes for such boolean parameters, see other tests in this file.
> Tools/TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:2456 > + testReuseSuspendedProcessForRegularNavigation(true);
Otherwise, call sites are not really readable.
Chris Dumez
Comment 4
2019-02-11 18:57:00 PST
Comment on
attachment 361735
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=361735&action=review
> Source/WebKit/WebProcess/WebPage/WebPage.cpp:1318 > + m_viewGestureGeometryCollector = nullptr;
This needs to be protected like so: #if PLATFORM(COCOA) || PLATFORM(GTK) m_viewGestureGeometryCollector = nullptr; #endif
Alex Christensen
Comment 5
2019-02-12 11:29:34 PST
http://trac.webkit.org/r241306
Alex Christensen
Comment 6
2019-02-12 11:59:59 PST
Created
attachment 361819
[details]
patch for the safari-607-branch
Chris Dumez
Comment 7
2019-02-12 19:45:31 PST
***
Bug 193701
has been marked as a duplicate of this bug. ***
Chris Dumez
Comment 8
2019-02-12 19:47:26 PST
Although this bug does not make it clear, this was causing WebProcess hangs with PSON enabled because the WebPage would stop responding to IPC.
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