Skip to content
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

Fixed crash when searching from omnibox in tor window with search engine extension #8460

Merged
merged 2 commits into from
Apr 9, 2021

Conversation

simonhong
Copy link
Member

@simonhong simonhong commented Apr 7, 2021

fix brave/brave-browser#15140

Submitter Checklist:

  • I confirm that no security/privacy review is needed, or that I have requested one
  • There is a ticket for my issue
  • Used Github auto-closing keywords in the PR description above
  • Wrote a good PR/commit description
  • Added appropriate labels (QA/Yes or QA/No; release-notes/include or release-notes/exclude; OS/...) to the associated issue
  • Checked the PR locally: npm run test -- brave_browser_tests, npm run test -- brave_unit_tests, npm run lint, npm run gn_check, npm run tslint
  • Ran git rebase master (if needed)

Reviewer Checklist:

  • A security review is not needed, or a link to one is included in the PR description
  • New files have MPL-2.0 license header
  • Adequate test coverage exists to prevent regressions
  • Major classes, functions and non-trivial code blocks are well-commented
  • Changes in component dependencies are properly reflected in gn
  • Code follows the style guide
  • Test plan is specified in PR before merging

After-merge Checklist:

Test Plan:

@simonhong simonhong changed the title [WIP] Fixed search from omnibox issue with search engine extension Fixed crash when searching from omnibox in tor window with search engine extension Apr 7, 2021
@simonhong simonhong marked this pull request as ready for review April 7, 2021 10:59
@simonhong simonhong requested a review from a team as a code owner April 7, 2021 10:59
@simonhong simonhong requested review from bsclifton and iefremov April 7, 2021 11:00
@simonhong simonhong force-pushed the search_engine_extension_issues branch from 92f420d to 62b2a36 Compare April 7, 2021 11:00
Copy link
Collaborator

@bridiver bridiver left a comment

Choose a reason for hiding this comment

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

see comments

@simonhong simonhong force-pushed the search_engine_extension_issues branch from 62b2a36 to b78efe8 Compare April 8, 2021 00:24
@simonhong simonhong requested a review from bridiver April 8, 2021 00:24
@simonhong simonhong force-pushed the search_engine_extension_issues branch from b78efe8 to 16742b5 Compare April 8, 2021 01:02
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.

import("//components/gcm_driver/config.gni")
Copy link
Contributor

Choose a reason for hiding this comment

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

@simonhong simonhong force-pushed the search_engine_extension_issues branch from 16742b5 to ec557cb Compare April 8, 2021 22:37
@simonhong simonhong requested a review from bridiver April 8, 2021 22:38
fix brave/brave-browser#15140

When OnTemplateURLServiceChanged() is called, it tries to access default
search engine provider but it's null when search engine extension is installed
and that extension enabled to private window.
Those code is not valid now so just deleted because we can't change tor window's
search engine during the run time. It was possible ago but not now.
@simonhong simonhong force-pushed the search_engine_extension_issues branch from ec557cb to 461f70c Compare April 8, 2021 23:11
@simonhong simonhong merged commit 73828d2 into master Apr 9, 2021
@simonhong simonhong deleted the search_engine_extension_issues branch April 9, 2021 01:52
@simonhong simonhong added this to the 1.25.x - Nightly milestone Apr 9, 2021
simonhong added a commit that referenced this pull request Apr 9, 2021
Fixed crash when searching from omnibox in tor window with search engine extension
simonhong added a commit that referenced this pull request Apr 9, 2021
Fixed crash when searching from omnibox in tor window with search engine extension
@kjozwiak
Copy link
Member

@simonhong seems like this is still still crashing using 1.25.8 CR: 90.0.4430.61 which should have the above fix. Example of the crashes:

  • Uploaded crash report ID: 86180000-9cfd-2306-0000-000000000000
  • Uploaded crash report ID: 85180000-9cfd-2306-0000-000000000000
  • Uploaded crash report ID: 87180000-9cfd-2306-0000-000000000000

STR:

I can reproduce 100% of the time on my Win 10 x64 machine.

@kjozwiak
Copy link
Member

Created brave/brave-browser#15224 as the above is a different crash and requires actually searching. The above fixes the crash when a user sets focus in the URL.

simonhong added a commit that referenced this pull request Apr 12, 2021
Fixed crash when searching from omnibox in tor window with search engine extension
@kjozwiak
Copy link
Member

Verification PASSED on Win 10 x64 using the following build:

Brave | 1.25.10 Chromium: 90.0.4430.61 (Official Build) nightly (64-bit)
-- | --
Revision | dced74d4124b26b14126b611853d33512b60c7b6-refs/branch-heads/4430@{#1115}
OS | Windows 10 OS Version 2009 (Build 19042.906)

However, brave/brave-browser#15224 is still happening and will need to be fixed in a new PR.

kylehickinson pushed a commit that referenced this pull request Jan 4, 2024
…8460)

Fix for Accounts modals resetting if KeyringStore changes. Sheet(s) presented from Lists that are redrawn lose their state.
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.

Crash while using omnibox in Tor window with an enabled extension
4 participants