Repository navigation
fix: backgroundThrottling rwh assignment - #21037
Conversation
bf7ed60 to
a535f05
Compare
|
hmm - looks like this is causing a CHECK failure now 🤔 |
|
Based on https://cs.chromium.org/chromium/src/content/browser/renderer_host/render_widget_host_impl.h?l=818-822 it would make sense that our version would crash given it doesn't check for a valid process when extracting the widget associated with the view. I think the solution here would be fix the underlying routing id issue by extracting the widget from |
|
This PR still does not fix #20974. It only fixes |
| return; | ||
| } | ||
|
|
||
| auto* render_process_host = render_view_host->GetProcess(); |
There was a problem hiding this comment.
render_process_host is not used anymore, please remove
| @@ -1286,31 +1286,26 @@ void WebContents::SetBackgroundThrottling(bool allowed) { | |||
| background_throttling_ = allowed; | |||
|
|
|||
| auto* contents = web_contents(); | |||
There was a problem hiding this comment.
this is also not necessary, we don't check the return value of web_contents() anywhere else
|
@miniak I think this PR needs to address #21037 (comment) before making any further changes. |
|
@deepak1556, @codebytere this issue is quite high priority for us |
|
@miniak I am working on this today. |
|
Update: The reason timers aren't affected by this change is because they are controlled separately on the blink end using I will update the disable_hidden.patch to account for this code path as well without impacting the value of |
a535f05 to
5b3db00
Compare
8047ae1 to
b7bd665
Compare
7a51884 to
117fa5f
Compare
117fa5f to
0764f45
Compare
|
Please merge this after merging #21343 for a clean backport on all tags listed here. |
|
failing tests are not related, merging. |
|
Release Notes Persisted
|
|
I have automatically backported this PR to "7-1-x", please check out #21357 |
|
I have automatically backported this PR to "8-x-y", please check out #21358 |
|
I have automatically backported this PR to "6-1-x", please check out #21359 |
Description of Change
Closes #20974.
Follow-up to #20239
Previously when a render view was created the corresponding
RenderWidgetHostwas fetched with the wrong routing ID which meant that thebackgroundThrottlingoption was not properly set for the RWH and thus the API had no effect.This PR fixes that.
cc @miniak
Checklist
npm testpassesRelease Notes
Notes: Fixed throttling in
webContents.setBackgroundThrottling.