mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
6dad8fe2be
Bound EXPORTED_SYMBOLS to `this` in WebManifest.jsm Reduced number of iterations on random tests --- dom/ipc/manifestMessages.js | 17 +--- ...ObjectProcessor.jsm => ImageObjectProcessor.js} | 35 ++++--- .../{ManifestObtainer.jsm => ManifestObtainer.js} | 4 +- ...{ManifestProcessor.jsm => ManifestProcessor.js} | 109 ++++++++++----------- ...anifestValueExtractor.jsm => ValueExtractor.js} | 25 +++-- dom/manifest/WebManifest.jsm | 19 ++++ dom/manifest/moz.build | 9 +- .../test/browser_ManifestObtainer_obtain.js | 9 +- dom/manifest/test/common.js | 32 +++--- 9 files changed, 135 insertions(+), 124 deletions(-) rename dom/manifest/{ManifestImageObjectProcessor.jsm => ImageObjectProcessor.js} (81%) rename dom/manifest/{ManifestObtainer.jsm => ManifestObtainer.js} (95%) rename dom/manifest/{ManifestProcessor.jsm => ManifestProcessor.js} (69%) rename dom/manifest/{ManifestValueExtractor.jsm => ValueExtractor.js} (77%) create mode 100644 dom/manifest/WebManifest.jsm
20 lines
541 B
JavaScript
20 lines
541 B
JavaScript
/* 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 https://mozilla.org/MPL/2.0/. */
|
|
/*exported EXPORTED_SYMBOLS, ManifestProcessor, ManifestObtainer*/
|
|
/*globals Components */
|
|
'use strict';
|
|
const {
|
|
utils: Cu
|
|
} = Components;
|
|
|
|
this.EXPORTED_SYMBOLS = [
|
|
'ManifestObtainer',
|
|
'ManifestProcessor'
|
|
];
|
|
|
|
// Export public interfaces
|
|
for (let symbl of EXPORTED_SYMBOLS) {
|
|
Cu.import(`resource://gre/modules/${symbl}.js`);
|
|
}
|