Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 64180 Details for
Bug 59671
mozilla-firefox removes searchplugins
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
patch rejection
nsInternetSearchService.cpp.rej (text/plain), 3.35 KB, created by
Jory A. Pratt
on 2005-07-24 02:15:16 UTC
(
hide
)
Description:
patch rejection
Filename:
MIME Type:
Creator:
Jory A. Pratt
Created:
2005-07-24 02:15:16 UTC
Size:
3.35 KB
patch
obsolete
>*************** >*** 981,1014 **** > > nsCOMPtr<nsIProperties> dirSvc > (do_GetService(NS_DIRECTORY_SERVICE_CONTRACTID)); > if (!dirSvc) > return; > > gEngineListBuilt = PR_TRUE; > > // get available search engines >- nsCOMPtr<nsIFile> dir; >- rv = dirSvc->Get(NS_APP_SEARCH_DIR, >- NS_GET_IID(nsIFile), getter_AddRefs(dir)); >- if (NS_SUCCEEDED(rv)) >- { >- GetSearchEngineList(dir, PR_FALSE); >- } >- > nsCOMPtr<nsISimpleEnumerator> dirlist; > rv = dirSvc->Get(NS_APP_SEARCH_DIR_LIST, > NS_GET_IID(nsISimpleEnumerator), getter_AddRefs(dirlist)); > if (NS_SUCCEEDED(rv)) > { > PRBool more; > while (NS_SUCCEEDED(dirlist->HasMoreElements(&more)) && more) { > nsCOMPtr<nsISupports> suppfile; > dirlist->GetNext(getter_AddRefs(suppfile)); > dir = do_QueryInterface(suppfile); > if (dir) > { > GetSearchEngineList(dir, PR_FALSE); > } > } > } > >--- 981,1007 ---- > > nsCOMPtr<nsIProperties> dirSvc > (do_GetService(NS_DIRECTORY_SERVICE_CONTRACTID)); > if (!dirSvc) > return; > > gEngineListBuilt = PR_TRUE; > > // get available search engines > nsCOMPtr<nsISimpleEnumerator> dirlist; > rv = dirSvc->Get(NS_APP_SEARCH_DIR_LIST, > NS_GET_IID(nsISimpleEnumerator), getter_AddRefs(dirlist)); > if (NS_SUCCEEDED(rv)) > { > PRBool more; > while (NS_SUCCEEDED(dirlist->HasMoreElements(&more)) && more) { > nsCOMPtr<nsISupports> suppfile; >+ nsCOMPtr<nsIFile> dir; > dirlist->GetNext(getter_AddRefs(suppfile)); > dir = do_QueryInterface(suppfile); > if (dir) > { > GetSearchEngineList(dir, PR_FALSE); > } > } > } > >*************** >*** 2556,2577 **** > { > extensionOffset = baseName.RFind(".src", PR_TRUE); > if ((extensionOffset < 0) || (extensionOffset != (PRInt32)(baseName.Length()-4))) > { > return(NS_ERROR_UNEXPECTED); > } > } > > nsCOMPtr<nsIFile> outFile; >- rv = NS_GetSpecialDirectory(NS_APP_SEARCH_DIR, getter_AddRefs(outFile)); > if (NS_FAILED(rv)) > return rv; > > const PRUnichar *dataBuf = nsnull; > if (NS_FAILED(rv = context->GetBufferConst(&dataBuf))) return(rv); > > // if no data, then nothing to do > // Note: do this before opening file, as it would be truncated > PRInt32 bufferLength = 0; > if (NS_FAILED(context->GetBufferLength(&bufferLength))) return(rv); > if (bufferLength < 1) return(NS_OK); > >--- 2549,2580 ---- > { > extensionOffset = baseName.RFind(".src", PR_TRUE); > if ((extensionOffset < 0) || (extensionOffset != (PRInt32)(baseName.Length()-4))) > { > return(NS_ERROR_UNEXPECTED); > } > } > > nsCOMPtr<nsIFile> outFile; >+ rv = NS_GetSpecialDirectory(NS_APP_USER_SEARCH_DIR, getter_AddRefs(outFile)); > if (NS_FAILED(rv)) > return rv; > >+ PRBool exists; >+ rv = outFile->Exists(&exists); >+ if (NS_FAILED(rv)) return(rv); >+ if (!exists) >+ { >+ rv = outFile->Create(nsIFile::DIRECTORY_TYPE, 0755); >+ if (NS_FAILED(rv)) return(rv); >+ } >+ >+ > const PRUnichar *dataBuf = nsnull; > if (NS_FAILED(rv = context->GetBufferConst(&dataBuf))) return(rv); > > // if no data, then nothing to do > // Note: do this before opening file, as it would be truncated > PRInt32 bufferLength = 0; > if (NS_FAILED(context->GetBufferLength(&bufferLength))) return(rv); > if (bufferLength < 1) return(NS_OK); >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 59671
:
36945
|
36946
| 64180 |
64181