Commit ade92cd2 authored by Tatiana Meshkova's avatar Tatiana Meshkova

Updated build script added stub for removing filepicker default handler

parent 528d1e50
......@@ -6,16 +6,21 @@ if [ "$TARGET_DIR" = "" ]; then
TARGET_DIR=/usr/lib/mozembedlite
fi
BARCH=`uname -m`
LAST_OBJ_DIR="objdir-$BARCH"
OBJPREFIX=$2
if [ "$OBJPREFIX" = "" ]; then
BARCH=`uname -m`
OBJPREFIX=objdir-$BARCH
fi
LAST_OBJ_DIR="$OBJPREFIX"
mkdir -p $TARGET_DIR
FILES_LIST="
$LAST_OBJ_DIR/chromehelper/.libs/libchromehelper.so
$LAST_OBJ_DIR/history/.libs/libhistory.so
$LAST_OBJ_DIR/prompt/.libs/libprompt.so
$LAST_OBJ_DIR/touchhelper/.libs/libtouchhelper.so
$OBJPREFIX/chromehelper/.libs/libchromehelper.so
$OBJPREFIX/history/.libs/libhistory.so
$OBJPREFIX/prompt/.libs/libprompt.so
$OBJPREFIX/touchhelper/.libs/libtouchhelper.so
EmbedLiteBinComponents.manifest
EmbedLiteJSComponents.manifest
jscomps/AboutRedirector.js
......
......@@ -62,6 +62,21 @@ EmbedPromptRegister::Init()
}
}
#if 0
oldFactory = do_GetClassObject("@mozilla.org/filepicker;1");
if (oldFactory) {
nsCID* cid = NULL;
rv = cr->ContractIDToCID("@mozilla.org/filepicker;1", &cid);
if (!NS_FAILED(rv)) {
rv = cr->UnregisterFactory(*cid, oldFactory.get());
NS_Free(cid);
if (NS_FAILED(rv)) {
return NS_ERROR_FAILURE;
}
}
}
#endif
nsCID promptCID = EMBED_LITE_PROMPT_SERVICE_CID;
rv = cr->RegisterFactory(promptCID, "EmbedLite Prompt",
"@mozilla.org/prompter;1", f);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment