Commit 010e2b2
Gracefully handle null pending item inside webView:didCommitNavigation:.
webView:didCommitNavigation: used to assume that pending item is
always valid and crashed on dereferencing null pointer. Pending item
should never be null inside webView:didCommitNavigation: but existing
ownership model is incorrect, so pending item could be distroyed before
committing.
This CL adds checks before dereferencing pending item to avoid the
crash. The real fix could be implemented by storing pending item in
NavigationContext object (crbug.com/925304).
Bug: 676458
Change-Id: Idf60e60cbe98111e8fed5d2903ae8bc8b8df3d90
Reviewed-on: https://chromium-review.googlesource.com/c/1444953
Reviewed-by: Justin Cohen <[email protected]>
Commit-Queue: Eugene But <[email protected]>
Cr-Commit-Position: refs/heads/master@{#627509}1 parent 357f9dd commit 010e2b2
1 file changed
+25
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1718 | 1718 | | |
1719 | 1719 | | |
1720 | 1720 | | |
| 1721 | + | |
| 1722 | + | |
| 1723 | + | |
| 1724 | + | |
| 1725 | + | |
| 1726 | + | |
1721 | 1727 | | |
1722 | 1728 | | |
1723 | 1729 | | |
| |||
2933 | 2939 | | |
2934 | 2940 | | |
2935 | 2941 | | |
2936 | | - | |
| 2942 | + | |
| 2943 | + | |
| 2944 | + | |
| 2945 | + | |
2937 | 2946 | | |
2938 | 2947 | | |
2939 | 2948 | | |
| |||
4935 | 4944 | | |
4936 | 4945 | | |
4937 | 4946 | | |
4938 | | - | |
4939 | | - | |
4940 | | - | |
4941 | | - | |
4942 | | - | |
4943 | | - | |
4944 | | - | |
4945 | | - | |
4946 | | - | |
| 4947 | + | |
| 4948 | + | |
| 4949 | + | |
| 4950 | + | |
| 4951 | + | |
| 4952 | + | |
| 4953 | + | |
| 4954 | + | |
| 4955 | + | |
| 4956 | + | |
| 4957 | + | |
| 4958 | + | |
| 4959 | + | |
| 4960 | + | |
| 4961 | + | |
4947 | 4962 | | |
4948 | 4963 | | |
4949 | 4964 | | |
| |||
0 commit comments