mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-20 08:45:46 +00:00
a71c8e64ff
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
84 lines
2.3 KiB
Python
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',
|
|
]
|