From 1b6824d2962b534b34b2d3ec6ba3ab5f77bc68b5 Mon Sep 17 00:00:00 2001 From: Tobias Christiansen Date: Mon, 19 Apr 2021 14:30:08 +0200 Subject: [PATCH] LibWeb: Make frames nesting-aware and disallow deep nesting A Frame now knows about its nesting-level. The FrameLoader checks whether the recursion level of the current frame allows it to be displayed and if not doesn't even load the requested resource. The nesting-check is done on a per-URL-basis, so there can be many many nested Frames as long as they have different URLs. If there are however Frames with the same URL nested inside each other we only allow this to happen 3 times. This mitigates infinetely recursing