Bug 163873 - REGRESSION (r207424): ERROR: Unhandled web process message 'WebPage:SetPageSuppressed'
Summary: REGRESSION (r207424): ERROR: Unhandled web process message 'WebPage:SetPageSu...
Status: RESOLVED DUPLICATE of bug 165158
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit2 (show other bugs)
Version: Other
Hardware: PC Linux
: P2 Normal
Assignee: Michael Catanzaro
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-23 12:10 PDT by Michael Catanzaro
Modified: 2016-11-30 09:35 PST (History)
7 users (show)

See Also:


Attachments
Patch (2.27 KB, patch)
2016-11-19 14:24 PST, Michael Catanzaro
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Catanzaro 2016-10-23 12:10:51 PDT
This error prints once when opening every page:

ERROR: Unhandled web process message 'WebPage:SetPageSuppressed'
../../Source/WebKit2/WebProcess/WebProcess.cpp(654) : virtual void WebKit::WebProcess::didReceiveMessage(IPC::Connection&, IPC::Decoder&)

Not sure why the message isn't being handled by WebPage. Maybe it's being received before the WebPage object is created.
Comment 1 Michael Catanzaro 2016-10-23 12:11:06 PDT
(In reply to comment #0)
> This error prints once when opening every page:

(when opening a new browser tab)
Comment 2 Carlos Garcia Campos 2016-10-24 01:52:19 PDT
I don't think this is specific to GTK+, the updateThrottleState() can be called too early. Actually, I think the problem is that is called right after the web process is launched, but before the WebPage has registered its message receiver.
Comment 3 Tim Horton 2016-11-04 14:18:41 PDT
Yeah, this is a regression from r207424 I believe.
Comment 4 Tim Horton 2016-11-04 14:39:03 PDT
Gavin, we can't send messages (like updateThrottleState does) before WebPageProxy::initializeWebPage(). Do you think it's safe to move it?
Comment 5 Michael Catanzaro 2016-11-19 14:23:43 PST
(In reply to comment #4)
> Do you think it's safe to move it?

Well we should either move it or roll it out. Here's an attempt at the former. It avoids the warning and it *looks* like it's right, but I'm not sure.
Comment 6 Michael Catanzaro 2016-11-19 14:24:50 PST
Created attachment 295270 [details]
Patch
Comment 7 Darin Adler 2016-11-20 16:10:25 PST
Comment on attachment 295270 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=295270&action=review

> Source/WebKit2/UIProcess/WebPageProxy.cpp:-468
> -    updateThrottleState();

What’s the reasoning behind removing this one?
Comment 8 Darin Adler 2016-11-20 16:11:19 PST
Gavin should look!
Comment 9 Michael Catanzaro 2016-11-20 16:36:38 PST
(In reply to comment #7)
> > Source/WebKit2/UIProcess/WebPageProxy.cpp:-468
> > -    updateThrottleState();
> 
> What’s the reasoning behind removing this one?

That's in the constructor before the first call to WebPageProxy::initializeWebPage, which only ever occurs in reattachToWebProcess. I moved the calls in that function to be right after initializeWebPage to ensure it's called ASAP. Is it right? I don't know; we don't have an implementation of throttling to test. :(
Comment 10 Darin Adler 2016-11-20 16:45:55 PST
Seems likely we’d want to do the same thing with updateActivityState. Ultimately I do want Gavin to look at this. Should we land some kind of change in the mean time?
Comment 11 Michael Catanzaro 2016-11-20 17:43:48 PST
If Gavin's not available to look at it soon, then we should roll out r207699 and r207424.
Comment 12 Michael Catanzaro 2016-11-28 06:34:46 PST
(In reply to comment #11)
> If Gavin's not available to look at it soon, then we should roll out r207699
> and r207424.

I looked into this. There are a few more quite significant commits that would need to be rolled out, including bringing back the PageThrottler class. I'll roll them out if Gavin doesn't respond soon (he's been CCed on this for a month now) but it'd certainly be better to avoid doing that.
Comment 13 Gavin Barraclough 2016-11-29 14:29:57 PST
We should just remove SetPageSuppressed – we've got to the point we can do so.

*** This bug has been marked as a duplicate of bug 165158 ***
Comment 14 Michael Catanzaro 2016-11-29 15:12:08 PST
Super, thanks for handling this properly Gavin!