Skip to content

Commit ef98547

Browse files
committed
Backed out 2 changesets (bug 1632794) for build bustages on ChromeUtils.cpp . CLOSED TREE
Backed out changeset 28f67adaba65 (bug 1632794) Backed out changeset e3c323874e2e (bug 1632794)
1 parent 7ab3b0b commit ef98547

File tree

16 files changed

+19
-1109
lines changed

16 files changed

+19
-1109
lines changed

docshell/base/nsAboutRedirector.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,6 @@ static const RedirEntry kRedirMap[] = {
101101
nsIAboutModule::ALLOW_SCRIPT},
102102
{"plugins", "chrome://global/content/plugins.html",
103103
nsIAboutModule::URI_MUST_LOAD_IN_CHILD},
104-
{"processes", "chrome://global/content/aboutProcesses.html",
105-
nsIAboutModule::ALLOW_SCRIPT},
106104
// about:serviceworkers always wants to load in the parent process because
107105
// when dom.serviceWorkers.parent_intercept is set to true (the new default)
108106
// then the only place nsIServiceWorkerManager has any data is in the

docshell/build/components.conf

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ if defined('MOZ_CRASHREPORTER'):
3636
about_pages.append('crashes')
3737
if buildconfig.substs['MOZ_WIDGET_TOOLKIT'] != 'android':
3838
about_pages.append('profiles')
39-
if defined('NIGHTLY_BUILD'):
40-
about_pages.append('processes')
4139

4240
Headers = ['/docshell/build/nsDocShellModule.h']
4341

dom/base/ChromeUtils.cpp

Lines changed: 12 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -741,12 +741,9 @@ static WebIDLProcType ProcTypeToWebIDL(mozilla::ProcType aType) {
741741

742742
switch (aType) {
743743
PROCTYPE_TO_WEBIDL_CASE(Web, Web);
744-
PROCTYPE_TO_WEBIDL_CASE(WebIsolated, WebIsolated);
745744
PROCTYPE_TO_WEBIDL_CASE(File, File);
746745
PROCTYPE_TO_WEBIDL_CASE(Extension, Extension);
747746
PROCTYPE_TO_WEBIDL_CASE(PrivilegedAbout, Privilegedabout);
748-
PROCTYPE_TO_WEBIDL_CASE(PrivilegedMozilla, Privilegedmozilla);
749-
PROCTYPE_TO_WEBIDL_CASE(WebCOOPCOEP, WithCoopCoep);
750747
PROCTYPE_TO_WEBIDL_CASE(WebLargeAllocation, WebLargeAllocation);
751748
PROCTYPE_TO_WEBIDL_CASE(Browser, Browser);
752749
PROCTYPE_TO_WEBIDL_CASE(Plugin, Plugin);
@@ -792,7 +789,7 @@ already_AddRefed<Promise> ChromeUtils::RequestProcInfo(GlobalObject& aGlobal,
792789
global->EventTargetFor(TaskCategory::Performance);
793790

794791
// Getting the parent proc info
795-
mozilla::GetProcInfo(parentPid, 0, mozilla::ProcType::Browser, NS_LITERAL_STRING(""))
792+
mozilla::GetProcInfo(parentPid, 0, mozilla::ProcType::Browser)
796793
->Then(
797794
target, __func__,
798795
[target, domPromise, parentPid](ProcInfo aParentInfo) {
@@ -806,7 +803,7 @@ already_AddRefed<Promise> ChromeUtils::RequestProcInfo(GlobalObject& aGlobal,
806803
if (!aGeckoProcess->GetChildProcessHandle()) {
807804
return;
808805
}
809-
nsAutoString origin;
806+
810807
base::ProcessId childPid =
811808
base::GetProcId(aGeckoProcess->GetChildProcessHandle());
812809
int32_t childId = 0;
@@ -826,51 +823,22 @@ already_AddRefed<Promise> ChromeUtils::RequestProcInfo(GlobalObject& aGlobal,
826823
if (!contentParent) {
827824
return;
828825
}
829-
// Converting the remoteType into a ProcType.
830-
// Ideally, the remoteType should be strongly typed
831-
// upstream, this would make the conversion less brittle.
832-
nsAutoString remoteType(contentParent->GetRemoteType());
833-
if (StringBeginsWith(
834-
remoteType,
835-
NS_LITERAL_STRING(FISSION_WEB_REMOTE_TYPE))) {
836-
// WARNING: Do not change the order, as
837-
// `DEFAULT_REMOTE_TYPE` is a prefix of
838-
// `FISSION_WEB_REMOTE_TYPE`.
839-
type = mozilla::ProcType::WebIsolated;
840-
} else if (StringBeginsWith(
841-
remoteType,
842-
NS_LITERAL_STRING(DEFAULT_REMOTE_TYPE))) {
826+
// Converting the Content Type into a ProcType
827+
nsAutoString processType;
828+
processType.Assign(contentParent->GetRemoteType());
829+
if (IsWebRemoteType(processType)) {
843830
type = mozilla::ProcType::Web;
844-
} else if (remoteType.EqualsLiteral(FILE_REMOTE_TYPE)) {
831+
} else if (processType.EqualsLiteral(FILE_REMOTE_TYPE)) {
845832
type = mozilla::ProcType::File;
846-
} else if (remoteType.EqualsLiteral(
833+
} else if (processType.EqualsLiteral(
847834
EXTENSION_REMOTE_TYPE)) {
848835
type = mozilla::ProcType::Extension;
849-
} else if (remoteType.EqualsLiteral(
836+
} else if (processType.EqualsLiteral(
850837
PRIVILEGEDABOUT_REMOTE_TYPE)) {
851838
type = mozilla::ProcType::PrivilegedAbout;
852-
} else if (remoteType.EqualsLiteral(
853-
PRIVILEGEDMOZILLA_REMOTE_TYPE)) {
854-
type = mozilla::ProcType::PrivilegedMozilla;
855-
} else if (StringBeginsWith(
856-
remoteType,
857-
NS_LITERAL_STRING(
858-
WITH_COOP_COEP_REMOTE_TYPE_PREFIX))) {
859-
type = mozilla::ProcType::WebCOOPCOEP;
860-
} else if (remoteType.EqualsLiteral(
839+
} else if (processType.EqualsLiteral(
861840
LARGE_ALLOCATION_REMOTE_TYPE)) {
862841
type = mozilla::ProcType::WebLargeAllocation;
863-
} else {
864-
MOZ_CRASH("Unknown remoteType");
865-
}
866-
867-
// By convention, everything after '=' is the origin.
868-
nsAString::const_iterator cursor;
869-
nsAString::const_iterator end;
870-
remoteType.BeginReading(cursor);
871-
remoteType.EndReading(end);
872-
if (FindCharInReadable(u'=', cursor, end)) {
873-
origin = Substring(++cursor, end);
874842
}
875843
childId = contentParent->ChildID();
876844
break;
@@ -911,10 +879,10 @@ already_AddRefed<Promise> ChromeUtils::RequestProcInfo(GlobalObject& aGlobal,
911879

912880
promises.AppendElement(
913881
#ifdef XP_MACOSX
914-
mozilla::GetProcInfo(childPid, childId, type, origin,
882+
mozilla::GetProcInfo(childPid, childId, type,
915883
aGeckoProcess->GetChildTask())
916884
#else
917-
mozilla::GetProcInfo(childPid, childId, type, origin)
885+
mozilla::GetProcInfo(childPid, childId, type)
918886
#endif
919887
);
920888
});
@@ -960,7 +928,6 @@ already_AddRefed<Promise> ChromeUtils::RequestProcInfo(GlobalObject& aGlobal,
960928
// Basic info.
961929
childProcInfo->mChildID = info.childId;
962930
childProcInfo->mType = ProcTypeToWebIDL(info.type);
963-
childProcInfo->mOrigin = info.origin;
964931
childProcInfo->mPid = info.pid;
965932
childProcInfo->mFilename.Assign(info.filename);
966933
childProcInfo->mVirtualMemorySize = info.virtualMemorySize;

dom/chrome-webidl/ChromeUtils.webidl

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -498,13 +498,10 @@ partial namespace ChromeUtils {
498498
*/
499499
enum WebIDLProcType {
500500
"web",
501-
"webIsolated",
502501
"file",
503502
"extension",
504503
"privilegedabout",
505-
"privilegedmozilla",
506504
"webLargeAllocation",
507-
"withCoopCoep",
508505
"browser",
509506
"plugin",
510507
"ipdlUnitTest",
@@ -544,7 +541,6 @@ dictionary ChildProcInfoDictionary {
544541
sequence<ThreadInfoDictionary> threads = [];
545542
// Firefox info
546543
unsigned long long ChildID = 0;
547-
DOMString origin = "";
548544
WebIDLProcType type = "web";
549545
};
550546

toolkit/components/aboutprocesses/content/aboutProcesses.css

Lines changed: 0 additions & 157 deletions
This file was deleted.

toolkit/components/aboutprocesses/content/aboutProcesses.ftl

Lines changed: 0 additions & 18 deletions
This file was deleted.

toolkit/components/aboutprocesses/content/aboutProcesses.html

Lines changed: 0 additions & 31 deletions
This file was deleted.

0 commit comments

Comments
 (0)