Skip to content

fix: backgroundThrottling to throttle render view - #20239

Merged
zcbenz merged 1 commit into
electron:masterfrom
gerhardberger:fix-background-throttling-issue
Sep 19, 2019
Merged

zcbenz merged 1 commit into
electron:masterfrom
gerhardberger:fix-background-throttling-issue

Conversation

@gerhardberger

@gerhardberger gerhardberger commented Sep 15, 2019 •

Copy link
Copy Markdown
Contributor

Description of Change

  • Previously when a render view was created the corresponding RenderWidgetHost was fetched with the wrong routing ID which caused that the backgroundThrottling option could not be set for the RWH, which meant that various throttle mechanisms, could not be disabled (e.g. throttling a video stream being sent through WebRTC). This PR fixes this fetching therefore making the backgroundThrottling option having an effect.

Checklist

Release Notes

Notes: Fixed backgroundThrottling: false not having an effect.

@electron-cation electron-cation Bot added new-pr 🌱 PR opened recently and removed new-pr 🌱 PR opened recently labels Sep 15, 2019

@deepak1556 deepak1556 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, nice catch. Thanks!

@deepak1556
deepak1556 requested review from a team and zcbenz September 17, 2019 15:25
@deepak1556

Copy link
Copy Markdown
Member

Is it possible to add a test for this regression ?

@miniak

miniak commented Sep 17, 2019 •

Copy link
Copy Markdown
Contributor

@gerhardberger which Electron versions are affected?

@zcbenz
zcbenz merged commit 3f5833c into electron:master Sep 19, 2019
@release-clerk

release-clerk Bot commented Sep 19, 2019 •

Copy link
Copy Markdown

Release Notes Persisted

Fixed backgroundThrottling: false not having an effect.

@codebytere

Copy link
Copy Markdown
Member

/trop run backport-to 7-1-x,6-1-x

@trop

trop Bot commented Nov 6, 2019

Copy link
Copy Markdown
Contributor

The backport process for this PR has been manually initiated,
sending your 1's and 0's to "7-1-x" here we go! :D

@trop

trop Bot commented Nov 6, 2019

Copy link
Copy Markdown
Contributor

The backport process for this PR has been manually initiated,
sending your 1's and 0's to "6-1-x" here we go! :D

@trop

trop Bot commented Nov 6, 2019

Copy link
Copy Markdown
Contributor

I have automatically backported this PR to "7-1-x", please check out #21013

@trop

trop Bot commented Nov 6, 2019

Copy link
Copy Markdown
Contributor

I have automatically backported this PR to "6-1-x", please check out #21014

@miniak

miniak commented Nov 7, 2019

Copy link
Copy Markdown
Contributor

You forgot to also fix WebContents::SetBackgroundThrottling()

@miniak

miniak commented Nov 7, 2019

Copy link
Copy Markdown
Contributor

Is this supposed to also fix the issue with timers? #20974 still reproduces after this fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants