Bug 1970615 - Register IMAP protocol early to avoid session restore issues. r=darktrojan,kaie
When we got rid of IMAP JS, that removed a call to the ModuleLoader which previously checked a pref to either register the JS version or the C++ version. We still need that early registration to avoid session restore situations like a PDF that was previously open in a tab. Maybe we should have kept that...
https://phabricator.services.mozilla.com/D237996#inline-1318902
Ah well, this should do it.
Differential Revision: https://phabricator.services.mozilla.com/D257039
<?xml version="1.0" encoding="UTF-8"?><!-- This Source Code Form is subject to the terms of the Mozilla Public - License, v. 2.0. If a copy of the MPL was not distributed with this - file, You can obtain one at http://mozilla.org/MPL/2.0/. --><!DOCTYPE html SYSTEM "chrome://calendar/locale/calendar-occurrence-prompt.dtd"><htmlid="calendar-occurrence-prompt"xmlns="http://www.w3.org/1999/xhtml"xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"xmlns:html="http://www.w3.org/1999/xhtml"lightweightthemes="true"scrolling="false"><head><title><!-- windowtitle.${itemType}.${action} --></title><metahttp-equiv="Content-Security-Policy"content="default-src chrome:; script-src chrome: 'unsafe-inline'"/><linkrel="stylesheet"href="chrome://messenger/skin/messenger.css"/><linkrel="stylesheet"href="chrome://messenger/skin/colors.css"/><linkrel="stylesheet"href="chrome://messenger/skin/themeableDialog.css"/><linkrel="stylesheet"href="chrome://calendar/skin/shared/calendar-occurrence-prompt.css"/><linkrel="localization"href="calendar/calendar.ftl"/><linkrel="localization"href="calendar/calendar-occurrence-prompt.ftl"/><scriptdefer="defer"src="chrome://messenger/content/dialogShadowDom.js"></script><scriptdefer="defer"src="chrome://calendar/content/calendar-occurrence-prompt.js"></script></head><html:bodyxmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"><dialogbuttons="accept,cancel"><vboxid="occurrence-prompt-header"pack="center"><labelid="title-label"crop="end"/><labelid="isrepeating-label"/></vbox><vboxid="accept-buttons-box"flex="1"pack="center"><buttonid="accept-occurrence-button"default="true"dlgtype="accept"class="occurrence-accept-buttons"accesskey="&buttons.occurrence.accesskey;"oncommand="exitOccurrenceDialog(1)"pack="start"/><!-- XXXphilipp Button is hidden until all following is implemented --><buttonid="accept-allfollowing-button"class="occurrence-accept-buttons"accesskey="&buttons.allfollowing.accesskey;"oncommand="exitOccurrenceDialog(2)"hidden="true"pack="start"/><buttonid="accept-parent-button"class="occurrence-accept-buttons"accesskey="&buttons.parent.accesskey;"oncommand="exitOccurrenceDialog(3)"pack="start"/></vbox></dialog></html:body></html>