gecko-dev/dom/chrome-webidl/moz.build
Kris Maglione a71c8e64ff Bug 1588839 - Part 1 - Add helper to allow structured cloning Error/Exception objects. r=bzbarsky
In order to be able to reasonably debug error results from things like
JSWindowActor.sendQuery, we need to be able to clone errors across process
boundaries, so that they can be propagated to the caller that initiated a
query. The standard for the structured clone algorithm does not allow cloning
errors directly, so this patch instead adds a chrome-only wrapper object which
supports structured clone writing, and on reading, automatically decodes to
the error object it wraps. Callers who wish to clone an Error or Exception
object simply need to wrap it in a ClonedErrorHolder before sending.

Differential Revision: https://phabricator.services.mozilla.com/D50881

--HG--
extra : moz-landing-system : lando
2019-12-07 18:59:14 +00:00

84 lines
2.3 KiB
Python

# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
# vim: set filetype=python:
# 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/.
with Files("**"):
BUG_COMPONENT = ("Core", "DOM: Core & HTML")
with Files("ChannelWrapper.webidl"):
BUG_COMPONENT = ("WebExtensions", "Request Handling")
with Files("Flex.webidl"):
BUG_COMPONENT = ("Core", "CSS Parsing and Computation")
with Files("HeapSnapshot.webidl"):
BUG_COMPONENT = ("DevTools", "Memory")
with Files("InspectorUtils.webidl"):
BUG_COMPONENT = ("DevTools", "Inspector")
with Files("MatchGlob.webidl"):
BUG_COMPONENT = ("WebExtensions", "General")
with Files("MatchPattern.webidl"):
BUG_COMPONENT = ("WebExtensions", "General")
with Files("WebExtension*.webidl"):
BUG_COMPONENT = ("WebExtensions", "General")
PREPROCESSED_WEBIDL_FILES = [
'ChromeUtils.webidl',
]
WEBIDL_FILES = [
'BrowsingContext.webidl',
'ChannelWrapper.webidl',
'ClonedErrorHolder.webidl',
'DebuggerNotification.webidl',
'DebuggerNotificationObserver.webidl',
'DebuggerUtils.webidl',
'DocumentL10n.webidl',
'DOMCollectedFrames.webidl',
'DominatorTree.webidl',
'DOMLocalization.webidl',
'Flex.webidl',
'HeapSnapshot.webidl',
'InspectorUtils.webidl',
'IteratorResult.webidl',
'JSWindowActor.webidl',
'L10nOverlays.webidl',
'Localization.webidl',
'MatchGlob.webidl',
'MatchPattern.webidl',
'MessageManager.webidl',
'MozDocumentObserver.webidl',
'MozSharedMap.webidl',
'MozStorageAsyncStatementParams.webidl',
'MozStorageStatementParams.webidl',
'MozStorageStatementRow.webidl',
'PrecompiledScript.webidl',
'PromiseDebugging.webidl',
'SessionStoreUtils.webidl',
'StructuredCloneHolder.webidl',
'TelemetryStopwatch.webidl',
'WebExtensionContentScript.webidl',
'WebExtensionPolicy.webidl',
'WindowGlobalActors.webidl',
'XULFrameElement.webidl',
'XULMenuElement.webidl',
'XULTextElement.webidl',
'XULTreeElement.webidl'
]
if CONFIG['MOZ_PLACES']:
WEBIDL_FILES += [
'PlacesEvent.webidl',
'PlacesObservers.webidl',
]
WEBIDL_FILES += [
'PrioEncoder.webidl',
]