obs-browser: flush panel cookie store on exit #155

Open
zavitax wants to merge 1 commit from StreamElements/flush_cookies_on_exit into master
zavitax commented 2019-03-06 08:12:56 -06:00 (Migrated from github.com)

If cookie store is not flushed, state might become inconsistent:
reading from the cookies file will become impossible.
No errors will be returned, yet no information will be available,
and no information will be stored: the cookie manager will appear to be
empty at all times and the Cookies file modified date will not update
moving forward.

This will result, for example, in Twitch chat window re-opening for
users which connected their Twitch account, but not having the
auth-token cookie available: once the user will try to send a
message to the chat, they will be redirected to Twitch login screen.

If cookie store is not flushed, state might become inconsistent: reading from the cookies file will become impossible. No errors will be returned, yet no information will be available, and no information will be stored: the cookie manager will appear to be empty at all times and the `Cookies` file modified date will not update moving forward. This will result, for example, in Twitch chat window re-opening for users which connected their Twitch account, but not having the `auth-token` cookie available: once the user will try to send a message to the chat, they will be redirected to Twitch login screen.
PatTheMav commented 2025-11-07 08:45:04 -06:00 (Migrated from github.com)

@zavitax Is this still an issue with the current version of OBS Studio?

@zavitax Is this still an issue with the current version of OBS Studio?
zavitax commented 2025-11-12 05:00:32 -06:00 (Migrated from github.com)

@zavitax Is this still an issue with the current version of OBS Studio?

We still see occasional reports which resemble this case, yes.

> @zavitax Is this still an issue with the current version of OBS Studio? We still see occasional reports which resemble this case, yes.
This pull request has changes conflicting with the target branch.
  • obs-browser-plugin.cpp
  • panel/browser-panel.cpp
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'StreamElements/flush_cookies_on_exit:StreamElements/flush_cookies_on_exit'
git switch 'StreamElements/flush_cookies_on_exit'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'master'
git merge --no-ff 'StreamElements/flush_cookies_on_exit'
git switch 'StreamElements/flush_cookies_on_exit'
git rebase 'master'
git switch 'master'
git merge --ff-only 'StreamElements/flush_cookies_on_exit'
git switch 'StreamElements/flush_cookies_on_exit'
git rebase 'master'
git switch 'master'
git merge --no-ff 'StreamElements/flush_cookies_on_exit'
git switch 'master'
git merge --squash 'StreamElements/flush_cookies_on_exit'
git switch 'master'
git merge --ff-only 'StreamElements/flush_cookies_on_exit'
git switch 'master'
git merge 'StreamElements/flush_cookies_on_exit'
git push origin 'master'
Sign in to join this conversation.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gh-obsproject/obs-browser!155
No description provided.