WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
228227
[GTK][WPE] Add API to pass WebKitMemoryPressureHandler parameters to the network processes
https://bugs.webkit.org/show_bug.cgi?id=228227
Summary
[GTK][WPE] Add API to pass WebKitMemoryPressureHandler parameters to the netw...
Miguel Gomez
Reported
2021-07-23 02:52:19 PDT
Now that WebKitMemoryPressureSettings have been added to WebKitGTK and WPE in
bug 222738
, we need a way to pass these settings to the network processes as well.
Attachments
Patch
(23.24 KB, patch)
2021-07-23 05:09 PDT
,
Miguel Gomez
no flags
Details
Formatted Diff
Diff
Patch
(23.49 KB, patch)
2021-08-13 07:59 PDT
,
Miguel Gomez
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Miguel Gomez
Comment 1
2021-07-23 05:09:10 PDT
Created
attachment 434081
[details]
Patch
EWS Watchlist
Comment 2
2021-07-23 05:10:19 PDT
Thanks for the patch. If this patch contains new public API please make sure it follows the guidelines for new WebKit2 GTK+ API. See
https://trac.webkit.org/wiki/WebKitGTK/AddingNewWebKit2API
Carlos Garcia Campos
Comment 3
2021-08-13 01:42:34 PDT
Comment on
attachment 434081
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=434081&action=review
> Source/WebKit/UIProcess/soup/WebProcessPoolSoup.cpp:42 > + static const char* disableMemoryPressureMonitor = getenv("WEBKIT_DISABLE_MEMORY_PRESSURE_MONITOR");
Since this is static, you should check if we already have a value before getting it again.
> Tools/TestWebKitAPI/Tests/WebKitGLib/TestWebsiteData.cpp:823 > + WebKitMemoryPressureSettings* settings = webkit_memory_pressure_settings_new(); > + webkit_website_data_manager_set_memory_pressure_settings(settings); > + webkit_memory_pressure_settings_free(settings);
Since the config is std::optional, I think we can allow to pass NULL and pass std::optional to the process pool
Miguel Gomez
Comment 4
2021-08-13 07:59:18 PDT
Created
attachment 435483
[details]
Patch
EWS
Comment 5
2021-08-15 23:56:08 PDT
Committed
r281070
(
240531@main
): <
https://commits.webkit.org/240531@main
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 435483
[details]
.
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