~ubuntu-branches/ubuntu/lucid/seamonkey/lucid-security

« back to all changes in this revision

Viewing changes to dom/src/base/nsGlobalWindow.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Fabien Tassin
  • Date: 2008-07-29 21:29:02 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20080729212902-spm9kpvchp9udwbw
Tags: 1.1.11+nobinonly-0ubuntu1
* New security upstream release: 1.1.11 (LP: #218534)
  Fixes USN-602-1, USN-619-1, USN-623-1 and USN-629-1
* Refresh diverged patch:
  - update debian/patches/80_security_build.patch
* Fix FTBFS with missing -lfontconfig
  - add debian/patches/11_fix_ftbfs_with_fontconfig.patch
  - update debian/patches/series
* Build with default gcc (hardy: 4.2, intrepid: 4.3)
  - update debian/rules
  - update debian/control

Show diffs side-by-side

added added

removed removed

Lines of Context:
8070
8070
NS_IMETHODIMP
8071
8071
nsNavigator::GetOscpu(nsAString& aOSCPU)
8072
8072
{
 
8073
  if (!nsGlobalWindow::IsCallerChrome()) {
 
8074
    const nsAdoptingCString& override =
 
8075
      nsContentUtils::GetCharPref("general.oscpu.override");
 
8076
 
 
8077
    if (override) {
 
8078
      CopyUTF8toUTF16(override, aOSCPU);
 
8079
      return NS_OK;
 
8080
    }
 
8081
  }
 
8082
 
8073
8083
  nsresult rv;
8074
8084
  nsCOMPtr<nsIHttpProtocolHandler>
8075
8085
    service(do_GetService(kHTTPHandlerCID, &rv));
8131
8141
NS_IMETHODIMP
8132
8142
nsNavigator::GetProductSub(nsAString& aProductSub)
8133
8143
{
 
8144
  if (!nsGlobalWindow::IsCallerChrome()) {
 
8145
    const nsAdoptingCString& override =
 
8146
      nsContentUtils::GetCharPref("general.productSub.override");
 
8147
 
 
8148
    if (override) {
 
8149
      CopyUTF8toUTF16(override, aProductSub);
 
8150
      return NS_OK;
 
8151
    }
 
8152
  }
 
8153
 
8134
8154
  nsresult rv;
8135
8155
  nsCOMPtr<nsIHttpProtocolHandler>
8136
8156
    service(do_GetService(kHTTPHandlerCID, &rv));
8213
8233
NS_IMETHODIMP
8214
8234
nsNavigator::GetBuildID(nsAString & aBuildID)
8215
8235
{
 
8236
  if (!nsGlobalWindow::IsCallerChrome()) {
 
8237
    const nsAdoptingCString& override =
 
8238
      nsContentUtils::GetCharPref("general.buildID.override");
 
8239
 
 
8240
    if (override) {
 
8241
      CopyUTF8toUTF16(override, aBuildID);
 
8242
      return NS_OK;
 
8243
    }
 
8244
  }
 
8245
 
8216
8246
  aBuildID = NS_LITERAL_STRING(NS_STRINGIFY(NS_BUILD_ID));
8217
8247
 
8218
8248
  return NS_OK;