Commit 2f9be35c authored by scottlynotlie's avatar scottlynotlie
Browse files

Bug 1788013 - changed hasModule to hasModuleClass r=jdescottes,webdriver-reviewers

parent 479cfff4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -186,7 +186,7 @@ export class ModuleCache {
   * @returns {boolean}
   *     True if the module exists.
   */
  hasModule(moduleName, destination) {
  hasModuleClass(moduleName, destination) {
    const classes = this.getAllModuleClasses(moduleName, destination);
    return !!classes.length;
  }
+1 −1
Original line number Diff line number Diff line
@@ -130,7 +130,7 @@ export class WindowGlobalMessageHandler extends MessageHandler {
      if (!structuredUpdates.has(moduleName)) {
        // Skip session data item if the module is not present
        // for the destination.
        if (!this.moduleCache.hasModule(moduleName, destination)) {
        if (!this.moduleCache.hasModuleClass(moduleName, destination)) {
          continue;
        }
        structuredUpdates.set(moduleName, new Map());