-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash in BraveShieldsDataController::OnFaviconUpdated when toggling Brave Shields status between two same-site windows #22224
Comments
fix brave/brave-browser#22224 ShieldsPanelDataHandler should keep observed data controller instead of getting data controller from active web contents of current active window because active window could be different on it's created or destroyed. Crash happened because ShieldsPanelDataHandler tried to remove itself from wrong data controller due to above reason.
@simonhong Tested |
fix brave/brave-browser#22224 ShieldsPanelDataHandler should keep observed data controller instead of getting data controller from active web contents of current active window because active window could be different on it's created or destroyed. Crash happened because ShieldsPanelDataHandler tried to remove itself from wrong data controller due to above reason.
fix brave/brave-browser#22224 ShieldsPanelDataHandler should keep observed data controller instead of getting data controller from active web contents of current active window because active window could be different on it's created or destroyed. Crash happened because ShieldsPanelDataHandler tried to remove itself from wrong data controller due to above reason.
fix brave/brave-browser#22224 ShieldsPanelDataHandler should keep observed data controller instead of getting data controller from active web contents of current active window because active window could be different on it's created or destroyed. Crash happened because ShieldsPanelDataHandler tried to remove itself from wrong data controller due to above reason.
Above requires |
Verified
Followed my original steps to reproduce, as well as exploratory testing, and didn't crash. |
Verification passed on
Followed the original steps to reproduce, as well as exploratory testing, and didn't crash. |
Verification
Followed the original steps to reproduce, as well as exploratory testing, and didn't crash. |
Description
Crash in
BraveShieldsDataController::OnFaviconUpdated
when toggling Brave Shields status between two same-site windowsSteps to Reproduce
1.39.88
twitch.tv
in two windows; Shields are defaultUP
for bothDOWN
UP
(whether or not the icon reflects that state accurately -- separate issue), trigger resources blocked by clicking on the<
and>
arrows in the middle content pane/carouselDOWN
Actual result:
Crashes here:
Expected result:
No crash; Brave Shields icon/state should update accurately without crashing, among tabs/windows, etc.
Reproduces how often:
100%
Brave version (brave://version info)
Version/Channel Information:
no
not sure
yes
cc @nullhook @rebron @bridiver @MadhaviSeelam @GeetaSarvadnya @LaurenWags @kjozwiak
The text was updated successfully, but these errors were encountered: