HomePhabricator

resourceloader: Track state of page-style modules
a464d1d41d69Unpublished

Authored by Krinkle on May 10 2016, 7:00 PM.

Unpublished Commit · Learn More

Publishing Disabled: All publishing is disabled for this repository.

Description

resourceloader: Track state of page-style modules

This allows dynamically loaded modules to depend on page-style modules
without it causing the page-style module to be loaded a second time.

  • New method Module::getType() indicates whether a module is a page-style module or supposed to be dynamically loaded.
  • Emit warning from addModuleStyles() when given a module that is not a page-style module (to be enforced later)

Bug: T92459
Bug: T87871
Change-Id: I8b6c6a10d965e73965f877c42e995d04202524f3