Bug 1690340 - Part 4: Insert the "Page Source" before the "Extensions for Developers" menu item. r=mconley,jdescottes

Differential Revision: https://phabricator.services.mozilla.com/D104871
This commit is contained in:
Gabriel Luong 2021-02-16 22:37:23 +00:00
Родитель 5238d1af94
Коммит 23021a139b
1 изменённых файлов: 5 добавлений и 3 удалений

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

@ -269,9 +269,11 @@ function addTopLevelItems(doc) {
// There is still "Page Source" menuitem hardcoded into browser.xhtml. Instead // There is still "Page Source" menuitem hardcoded into browser.xhtml. Instead
// of manually inserting everything around it, move it to the expected // of manually inserting everything around it, move it to the expected
// position. // position.
const pageSource = doc.getElementById("menu_pageSource"); const pageSourceMenu = doc.getElementById("menu_pageSource");
const endSeparator = doc.getElementById("devToolsEndSeparator"); const extensionsForDevelopersMenu = doc.getElementById(
menu.insertBefore(pageSource, endSeparator); "menu_extensionsForDevelopers"
);
menu.insertBefore(pageSourceMenu, extensionsForDevelopersMenu);
} }
/** /**