mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-02 22:37:50 +00:00

This patch adds an attribute UnstrippedURI in the nsDocShellLoadState. The attribute will be set if the query stripping was happening. Otherwise, it will stay a nullptr. This attribute will be propagated to the loadInfo, so that we can revert the query stripping in the parent process if the loading URI is in the content blocking allow list. We can only revert the query stripping in the parent process because we cannot access the permission of the content blocking allow list of a cross-origin domain. So, we can only carry the unstripped URI in the loadInfo and perform a interal redirect to revert the query stripping. Differential Revision: https://phabricator.services.mozilla.com/D116109