diff --git a/mozilla/content/html/document/src/Makefile.in b/mozilla/content/html/document/src/Makefile.in
index 98e93e4edf0..4e52f73b380 100644
--- a/mozilla/content/html/document/src/Makefile.in
+++ b/mozilla/content/html/document/src/Makefile.in
@@ -51,7 +51,6 @@ REQUIRES = xpcom \
rdf \
chardet \
nkcache \
- appcomps \
lwbrk \
imglib2 \
xpconnect \
@@ -61,6 +60,12 @@ REQUIRES = xpcom \
plugin \
$(NULL)
+ifdef MOZ_PHOENIX
+REQUIRES += browsercomps
+else
+REQUIRES += appcomps
+endif
+
CPPSRCS = \
nsHTMLContentSink.cpp \
nsHTMLFragmentContentSink.cpp \