# HG changeset patch # User Philipp Kewisch # Date 1533294013 -7200 # Node ID 006d715f0cbbd6362ba4c5e75a4b58888d537297 # Parent 7574b8f37534c8cd4862fdc529e626305f6fdd6d Bug 1480458 - Add missing calUtils import for the gdata provider. r=MakeMyDay diff --git a/calendar/providers/gdata/content/gdata-calendar-creation.js b/calendar/providers/gdata/content/gdata-calendar-creation.js --- a/calendar/providers/gdata/content/gdata-calendar-creation.js +++ b/calendar/providers/gdata/content/gdata-calendar-creation.js @@ -1,12 +1,15 @@ /* 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/. */ +ChromeUtils.import("resource://calendar/modules/calUtils.jsm"); + +ChromeUtils.import("resource://gdata-provider/modules/calUtilsShim.jsm"); ChromeUtils.import("resource://gdata-provider/modules/gdataSession.jsm"); ChromeUtils.import("resource://gdata-provider/modules/gdataUtils.jsm"); (function() { function pageorder(anchor, ...pages) { let wizard = document.documentElement; let page = wizard.getPageById(anchor); for (let id of pages) { diff --git a/calendar/providers/gdata/content/gdata-event-dialog-reminder.js b/calendar/providers/gdata/content/gdata-event-dialog-reminder.js --- a/calendar/providers/gdata/content/gdata-event-dialog-reminder.js +++ b/calendar/providers/gdata/content/gdata-event-dialog-reminder.js @@ -1,14 +1,17 @@ /* 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/. */ (function() { const FOUR_WEEKS_BEFORE = -2419200; + ChromeUtils.import("resource://calendar/modules/calUtils.jsm"); + + ChromeUtils.import("resource://gdata-provider/modules/calUtilsShim.jsm"); ChromeUtils.import("resource://gdata-provider/modules/gdataUtils.jsm"); // NOTE: This function exits early if its not a gdata calendar let item = window.arguments[0].item; let calendar = window.arguments[0].calendar; if (calendar.type != "gdata") { return; }