+18
−2
+65
−11
+14
−1
+7
−1
Loading
There are some crash reports crashed in TSF module which may be caused by passing invalid selection range (e.g., out of bounds of text). However, the cache is created in the child process and that causes the invalid cache creation does not appear in the crash reports. Therefore, let's try to crash as soon as possible if `ContentCache` has invalid data. Note that this does not detect all of the invalid cases because it's hard to (re-)understand the edge cases. Therefore, this tries to detect the cases checked in `ContentCacheInParent::HandleQueryContentEvent` (*1) and some other obvious odd cases. 1. https://searchfox.org/mozilla-central/rev/0ffaecaa075887ab07bf4c607c61ea2faa81b172/widget/ContentCache.cpp#776-778 Differential Revision: https://phabricator.services.mozilla.com/D176747