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

fix WebView value validation popover crash when WebView not in hierarchy #2108

Merged
merged 2 commits into from
Jan 24, 2024

Conversation

mallexxx
Copy link
Collaborator

Task/Issue URL: https://app.asana.com/0/1199230911884351/1206407295280737/f

Description:

  • Fixes a crash when WebView tries to present a Value Validation Popover when the WebView is not in view hierarchy

Steps to test this PR:

  1. Navigate to https://wpt.live/tools/runner/index.html
  2. Uncheck "Manual tests" and set "Timeout multiplier" to "0.1"
  3. Click "Start", validate there‘s no crash on a new empty Tab open
  4. Switch back to the original tab - validate the Validation Popover is shown
  5. Switch to the new tab and back to the original tab, validate the popover is not shown anymore

Internal references:

Pull Request Review Checklist
Software Engineering Expectations
Technical Design Template
Pull Request Documentation

@mallexxx mallexxx requested review from a team and alessandroboron and removed request for a team January 23, 2024 12:43
@mallexxx mallexxx changed the base branch from main to release/1.72.0 January 23, 2024 13:34
@mallexxx mallexxx force-pushed the alex/fix-webview-validation-popover-crash branch 2 times, most recently from 748a8a0 to b433781 Compare January 23, 2024 13:38
@mallexxx mallexxx changed the base branch from release/1.72.0 to main January 23, 2024 13:38
@mallexxx mallexxx removed the request for review from alessandroboron January 23, 2024 13:38
Copy link
Collaborator

@samsymons samsymons left a comment

Choose a reason for hiding this comment

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

There's no problem that swizzling can't solve 💪 Nice work, looks good!

@mallexxx mallexxx merged commit 76eb9a2 into main Jan 24, 2024
7 of 8 checks passed
@mallexxx mallexxx deleted the alex/fix-webview-validation-popover-crash branch January 24, 2024 07:28
samsymons added a commit that referenced this pull request Jan 25, 2024
# By Alexey Martemyanov (11) and others
# Via Dominik Kapusta (3) and others
* main: (56 commits)
  Adds info about whether the login items are actually running (#2122)
  Remove connection status awaiter. (#2121)
  Launch VPN Location screen from status view  (#2077)
  Display different copy in alerts when a flag is enabled in a newer version (#2114)
  Remove delayed webView attaching to main window (#2116)
  Always start onboarding from the beginning when shown (#2117)
  Update spacing between UI components in settings (#2109)
  Show history menu on cmd+y shortcut (#2112)
  Bump version to 1.72.0 (112)
  Update embedded files
  fix WebView value validation popover crash when WebView not in hierarchy (#2108)
  Fix agent startup (#2107)
  Support brand UA (#2085)
  fix Safari favicons import (#2106)
  Add page attributes to print settings (#2104)
  Bump version to 1.72.0 (111)
  Alex/disable onboarding existing users (#2105)
  Bump version to 1.71.2 (110)
  Fixes a multithreading issue in `NetworkConnectionTester` (BSK) (#2102)
  Avoid sending latency immediately after the monitor starts (#2103)
  ...

# Conflicts:
#	Configuration/BuildNumber.xcconfig
#	DuckDuckGo/VPNFeedbackForm/VPNMetadataCollector.swift
#	UnitTests/VPNFeedbackForm/VPNFeedbackFormViewModelTests.swift
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.

2 participants