Bug 1577289 - reorder imports in viewSource.xul to properly initialize SAVEMODE_FILEONLY in contentAreaUtils.js and save the message source using system principal. r=jorgk

This commit is contained in:
aceman 2019-08-28 14:09:00 +02:00
Родитель d485fbd40a
Коммит 96e4fa0cf0
2 изменённых файлов: 4 добавлений и 3 удалений

Просмотреть файл

@ -762,7 +762,8 @@ function ViewSourceSavePage() {
internalSave(gBrowser.currentURI.spec.replace(/^view-source:/i, ""),
null, null, null, null, null, "SaveLinkTitle",
null, null, gBrowser.contentDocument, null,
gPageLoader);
gPageLoader, null,
Services.scriptSecurityManager.getSystemPrincipal());
}
// Below are old deprecated functions and variables left behind for

Просмотреть файл

@ -40,12 +40,12 @@
<script src="chrome://global/content/globalOverlay.js"/>
<script src="chrome://global/content/printUtils.js"/>
<script src="chrome://global/content/contentAreaUtils.js"/>
#ifndef MOZ_SUITE
<script src="chrome://messenger/content/mailCore.js"/>
<script src="chrome://messenger/content/mailCore.js"/>
#endif
<script src="chrome://messenger/content/viewSource.js"/>
<script src="chrome://messenger/content/viewZoomOverlay.js"/>
<script src="chrome://global/content/contentAreaUtils.js"/>
<script src="chrome://global/content/editMenuOverlay.js"/>
<stringbundle id="viewSourceBundle" src="chrome://messenger/locale/viewSource.properties"/>