| Summary: | Add null pointer checkings in WebFullScreenManager | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Peng Liu <peng.liu6> | ||||||
| Component: | Media | Assignee: | Peng Liu <peng.liu6> | ||||||
| Status: | RESOLVED FIXED | ||||||||
| Severity: | Normal | CC: | eric.carlson, jer.noble, webkit-bug-importer | ||||||
| Priority: | P2 | Keywords: | InRadar | ||||||
| Version: | WebKit Nightly Build | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Attachments: |
|
||||||||
|
Description
Peng Liu
2020-04-09 11:05:53 PDT
Created attachment 395977 [details]
Patch
Comment on attachment 395977 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=395977&action=review Patch looks good. A better patch would explain why this is being done in the change log description. > Source/WebKit/WebProcess/FullScreen/WebFullScreenManager.cpp:54 > + if (!element) Ok as is. No change needed. Is the purpose of this change to workaround an unreproducible bug? Is so then the the optimal solution would include a FIXME comment explaining this/referencing the bug for the root cause fix. If not, then The optimal solution is to remove the assert. Same comment for all changes below. Comment on attachment 395977 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=395977&action=review >> Source/WebKit/WebProcess/FullScreen/WebFullScreenManager.cpp:54 >> + if (!element) > > Ok as is. No change needed. Is the purpose of this change to workaround an unreproducible bug? Is so then the the optimal solution would include a FIXME comment explaining this/referencing the bug for the root cause fix. If not, then The optimal solution is to remove the assert. > > Same comment for all changes below. Thanks for the review. Right, this patch is to fix a hard to reproduce crash. Created attachment 396047 [details]
Patch for landing
Committed r259874: <https://trac.webkit.org/changeset/259874> All reviewed patches have been landed. Closing bug and clearing flags on attachment 396047 [details]. |