2017-10-30 20:35:08 +03:00
|
|
|
# -*- 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/.
|
|
|
|
|
|
|
|
EXPORTS.mozilla.dom += [
|
2017-11-21 23:13:04 +03:00
|
|
|
"ClientChannelHelper.h",
|
2017-11-09 08:20:00 +03:00
|
|
|
"ClientHandle.h",
|
2017-10-30 20:35:08 +03:00
|
|
|
"ClientInfo.h",
|
|
|
|
"ClientIPCUtils.h",
|
2017-11-09 08:19:59 +03:00
|
|
|
"ClientManager.h",
|
2017-11-01 20:19:38 +03:00
|
|
|
"ClientManagerActors.h",
|
2019-02-08 23:02:06 +03:00
|
|
|
"ClientManagerService.h",
|
Bug 1630323 - Do not override user preferences when clicking on a service worker notification to open a new document, r=Gijs,nika,geckoview-reviewers,snorp
In Bug 1622749 a user preference for where to open new documents (from a
service worker notification) was temporarily overriden in order to quickly fix
a crash that was happening in mozilla::dom::ClientOpenWindow. The crash was
ocurring when the pref "browser.link.open_newwindow" was set to 2, meaning new
documents are opened in a new window, instead of a new tab. The reason the
browser crashed is because the path for opening a new document is different
depending on the current user setting, and in NEWWINDOW case we did not get a
browsing context returned when calling mozilla::dom::OpenWindow which resulted
in a failed assertion.
The solution is to pass in a callback to mozilla::dom::OpenWindow as part of
nsOpenWindowInfo object, and invoke that callback with a corresponding
BrowsingContext in nsFrameLoader when that browsing context is ready.
After we call mozilla::dom::OpenWindow, we wait on a promise, that will be
resolved when the callback is invoked, before executing the rest of the code
that depends on the browsing context for a newly opened document being
available.
Differential Revision: https://phabricator.services.mozilla.com/D72745
2020-05-27 21:15:36 +03:00
|
|
|
"ClientOpenWindowUtils.h",
|
2017-11-01 20:19:38 +03:00
|
|
|
"ClientOpPromise.h",
|
2017-11-09 08:19:59 +03:00
|
|
|
"ClientSource.h",
|
2017-10-30 20:35:08 +03:00
|
|
|
"ClientState.h",
|
2017-11-01 20:19:37 +03:00
|
|
|
"ClientThing.h",
|
2017-10-30 20:35:08 +03:00
|
|
|
]
|
|
|
|
|
|
|
|
UNIFIED_SOURCES += [
|
2017-11-21 23:13:04 +03:00
|
|
|
"ClientChannelHelper.cpp",
|
2017-11-09 08:20:00 +03:00
|
|
|
"ClientHandle.cpp",
|
2017-11-01 20:19:38 +03:00
|
|
|
"ClientHandleChild.cpp",
|
|
|
|
"ClientHandleOpChild.cpp",
|
|
|
|
"ClientHandleOpParent.cpp",
|
|
|
|
"ClientHandleParent.cpp",
|
2017-10-30 20:35:08 +03:00
|
|
|
"ClientInfo.cpp",
|
2017-11-09 08:19:59 +03:00
|
|
|
"ClientManager.cpp",
|
2017-11-01 20:19:38 +03:00
|
|
|
"ClientManagerActors.cpp",
|
|
|
|
"ClientManagerChild.cpp",
|
|
|
|
"ClientManagerOpChild.cpp",
|
|
|
|
"ClientManagerOpParent.cpp",
|
|
|
|
"ClientManagerParent.cpp",
|
2017-11-09 08:19:59 +03:00
|
|
|
"ClientManagerService.cpp",
|
2017-11-01 20:19:38 +03:00
|
|
|
"ClientNavigateOpChild.cpp",
|
|
|
|
"ClientNavigateOpParent.cpp",
|
2017-12-08 22:46:43 +03:00
|
|
|
"ClientOpenWindowUtils.cpp",
|
2018-02-28 21:32:50 +03:00
|
|
|
"ClientPrincipalUtils.cpp",
|
2017-11-09 08:19:59 +03:00
|
|
|
"ClientSource.cpp",
|
2017-11-01 20:19:38 +03:00
|
|
|
"ClientSourceChild.cpp",
|
|
|
|
"ClientSourceOpChild.cpp",
|
|
|
|
"ClientSourceOpParent.cpp",
|
|
|
|
"ClientSourceParent.cpp",
|
2017-10-30 20:35:08 +03:00
|
|
|
"ClientState.cpp",
|
2017-11-14 22:36:45 +03:00
|
|
|
"ClientValidation.cpp",
|
2017-10-30 20:35:08 +03:00
|
|
|
]
|
|
|
|
|
|
|
|
IPDL_SOURCES += [
|
|
|
|
"ClientIPCTypes.ipdlh",
|
2017-11-01 20:19:38 +03:00
|
|
|
"PClientHandle.ipdl",
|
|
|
|
"PClientHandleOp.ipdl",
|
|
|
|
"PClientManager.ipdl",
|
|
|
|
"PClientManagerOp.ipdl",
|
|
|
|
"PClientNavigateOp.ipdl",
|
|
|
|
"PClientSource.ipdl",
|
|
|
|
"PClientSourceOp.ipdl",
|
2017-10-30 20:35:08 +03:00
|
|
|
]
|
|
|
|
|
|
|
|
include("/ipc/chromium/chromium-config.mozbuild")
|
|
|
|
|
|
|
|
FINAL_LIBRARY = "xul"
|
|
|
|
|
|
|
|
MOCHITEST_MANIFESTS += []
|
|
|
|
|
|
|
|
BROWSER_CHROME_MANIFESTS += []
|
|
|
|
|
|
|
|
XPCSHELL_TESTS_MANIFESTS += []
|