WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
139611
Simplify tracking of process suppression disabled for PluginProcessManager
https://bugs.webkit.org/show_bug.cgi?id=139611
Summary
Simplify tracking of process suppression disabled for PluginProcessManager
Gavin Barraclough
Reported
2014-12-12 18:13:55 PST
Shouldn't need to iterate contexts; just keep a count.
Attachments
Preliminary patch, needs Changelog
(6.38 KB, patch)
2014-12-12 18:15 PST
,
Gavin Barraclough
no flags
Details
Formatted Diff
Diff
Fix
(10.07 KB, patch)
2014-12-13 22:55 PST
,
Gavin Barraclough
darin
: review+
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Gavin Barraclough
Comment 1
2014-12-12 18:15:19 PST
Created
attachment 243239
[details]
Preliminary patch, needs Changelog
WebKit Commit Bot
Comment 2
2014-12-12 18:17:57 PST
Attachment 243239
[details]
did not pass style-queue: ERROR: Source/WebKit2/UIProcess/Plugins/PluginProcessManager.cpp:48: Code inside a namespace should not be indented. [whitespace/indent] [4] Total errors found: 1 in 6 files If any of these errors are false positives, please file a bug against check-webkit-style.
Gavin Barraclough
Comment 3
2014-12-13 22:55:51 PST
Created
attachment 243265
[details]
Fix
WebKit Commit Bot
Comment 4
2014-12-13 22:57:06 PST
Attachment 243265
[details]
did not pass style-queue: ERROR: Source/WebKit2/UIProcess/Plugins/PluginProcessManager.cpp:48: Code inside a namespace should not be indented. [whitespace/indent] [4] Total errors found: 1 in 7 files If any of these errors are false positives, please file a bug against check-webkit-style.
Darin Adler
Comment 5
2014-12-15 09:15:14 PST
Comment on
attachment 243265
[details]
Fix View in context:
https://bugs.webkit.org/attachment.cgi?id=243265&action=review
> Source/WebKit2/UIProcess/Plugins/PluginProcessManager.h:71 > + { > + return m_processSuppressionDisabledForPageCounter.count(); > + }
I suggest putting this inline function body outside the class definition. Keeps the class definition more readable.
> Source/WebKit2/UIProcess/Plugins/PluginProcessManager.h:78 > + { > + return m_processSuppressionEnabled; > + };
Same suggestion here. Also, the stray semicolon here is not needed.
> Source/WebKit2/UIProcess/Plugins/PluginProcessManager.h:93 > + bool m_processSuppressionEnabled;
I suggest using modern initialization syntax here: bool m_processSuppressionEnabled { true }; Then this data member doesn’t have to be mentioned in the constructor.
Gavin Barraclough
Comment 6
2014-12-15 11:41:59 PST
http://trac.webkit.org/changeset/177291
Carlos Alberto Lopez Perez
Comment 7
2014-12-15 12:24:37 PST
(In reply to
comment #6
)
>
http://trac.webkit.org/changeset/177291
This has broken both the GTK and EFL builds. The EWS bots are green on the patch attached to this bug, so maybe you did some last-minute change before landing it that broke the build? The build log are here: * GTK build failure:
https://build.webkit.org/builders/GTK%20Linux%2064-bit%20Release%20%28Build%29/builds/53626/steps/compile-webkit/logs/stdio
* EFL build failure:
https://build.webkit.org/builders/EFL%20Linux%20ARMv7%20Thumb2%20Release%20%28Build%29/builds/9261/steps/compile-webkit/logs/stdio
Gavin Barraclough
Comment 8
2014-12-15 12:42:33 PST
(In reply to
comment #7
)
> (In reply to
comment #6
) > >
http://trac.webkit.org/changeset/177291
> > This has broken both the GTK and EFL builds. > > The EWS bots are green on the patch attached to this bug, so maybe you did > some last-minute change before landing it that broke the build? > > The build log are here: > > * GTK build failure: >
https://build.webkit.org/builders/GTK%20Linux%2064
- > bit%20Release%20%28Build%29/builds/53626/steps/compile-webkit/logs/stdio > * EFL build failure: >
https://build.webkit.org/builders/
> EFL%20Linux%20ARMv7%20Thumb2%20Release%20%28Build%29/builds/9261/steps/ > compile-webkit/logs/stdio
Ooops, yes – in addressing review comments moved inline functions out the the class declarations, I should have #ifdef'ed. Fix incoming.
Gavin Barraclough
Comment 9
2014-12-15 12:45:33 PST
gtk/efl should be fixed in: Transmitting file data .. Committed revision 177307.
Carlos Alberto Lopez Perez
Comment 10
2014-12-15 13:03:54 PST
(In reply to
comment #9
)
> gtk/efl should be fixed in: > > Transmitting file data .. > Committed revision 177307.
That worked, thanks :) (The EFL build is still broken, but don't seems related with this)
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