Commit 13e4407
fix: don't re-parse URL unnecessarily when handling dialogs (#50400)
* fix: fallback to opaque URL when needed inside dialog callback
Co-authored-by: Noah Gregory <noahmgregory@gmail.com>
* refactor: remove additional URL parsing entirely when showing dialogs
Co-authored-by: Noah Gregory <noahmgregory@gmail.com>
* test: add crash test case for URL-less dialogs
Co-authored-by: Noah Gregory <noahmgregory@gmail.com>
* refactor: exit on events instead of on timeout for dialog crash test
Co-authored-by: Robo <hop2deep@gmail.com>
Co-authored-by: Noah Gregory <noahmgregory@gmail.com>
* style: make linter happy
Co-authored-by: Noah Gregory <noahmgregory@gmail.com>
* style: make linter actually happy
Co-authored-by: Noah Gregory <noahmgregory@gmail.com>
* fix: address failing `safeDialogs` tests
Co-authored-by: Noah Gregory <noahmgregory@gmail.com>
---------
Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Noah Gregory <noahmgregory@gmail.com>1 parent 16a0385 commit 13e4407
3 files changed
Lines changed: 30 additions & 2 deletions
File tree
- lib/browser/api
- spec/fixtures/crash-cases/dialog-on-invalid-url
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
777 | 777 | | |
778 | 778 | | |
779 | 779 | | |
780 | | - | |
781 | | - | |
| 780 | + | |
782 | 781 | | |
783 | 782 | | |
784 | 783 | | |
| |||
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
0 commit comments