Drop cache of subframe count on the Page as it is error-prone to keep it up to date and it is not performance sensitive. We only need the subframe count when trying to load a new iframe to see if we reached the maximum number of subframes (1000). Calculating this count is also not very expensive since we merely need to iterate the frame tree, which is composed of at most 1000 frames.
<rdar://problem/65433615>
Created attachment 404265 [details] Patch
Created attachment 404267 [details] Patch
Comment on attachment 404267 [details] Patch r=me
I kinda wish FrameTree offered an iterator, so you could do a range-based for loop over all frames.
Committed r264372: <https://trac.webkit.org/changeset/264372> All reviewed patches have been landed. Closing bug and clearing flags on attachment 404267 [details].
REGRESSION(r3707) :-)