mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-24 10:45:42 +00:00
c0dffd8c52
When showing view source of a srcdoc frame in a tab, we load the frame content via a page descriptor and use the URI "view-source:about:srcdoc". Since we are creating a browser tab, the docshell's `InternalLoad` triggers the browser's `shouldLoadURI` machinery that checks if we are in the correct process for the given URI. This machinery will unwrap "view-source:" to "about:srcdoc" and check if such an about page can be loaded in the child. Marking "about:srcdoc" as safe for the child to load allows the view source content of the frame to be displayed as expected. |
||
---|---|---|
.. | ||
base | ||
build | ||
resources/content | ||
shistory | ||
test | ||
moz.build |