~ubuntu-branches/ubuntu/trusty/xulrunner/trusty

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Devid Antonio Filoni
  • Date: 2008-08-25 13:04:18 UTC
  • mfrom: (1.1.12 upstream)
  • Revision ID: james.westby@ubuntu.com-20080825130418-ck1i2ms384tzb9m0
Tags: 1.8.1.16+nobinonly-0ubuntu1
* New upstream release (taken from upstream CVS), LP: #254618.
* Fix MFSA 2008-35, MFSA 2008-34, MFSA 2008-33, MFSA 2008-32, MFSA 2008-31,
  MFSA 2008-30, MFSA 2008-29, MFSA 2008-28, MFSA 2008-27, MFSA 2008-25,
  MFSA 2008-24, MFSA 2008-23, MFSA 2008-22, MFSA 2008-21, MFSA 2008-26 also
  known as CVE-2008-2933, CVE-2008-2785, CVE-2008-2811, CVE-2008-2810,
  CVE-2008-2809, CVE-2008-2808, CVE-2008-2807, CVE-2008-2806, CVE-2008-2805,
  CVE-2008-2803, CVE-2008-2802, CVE-2008-2801, CVE-2008-2800, CVE-2008-2798.
* Drop 89_bz419350_attachment_306066 patch, merged upstream.
* Bump Standards-Version to 3.8.0.

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;