~ubuntu-branches/ubuntu/natty/ubufox/natty-proposed

« back to all changes in this revision

Viewing changes to debian/patches/02_fix_about_home.patch

  • Committer: Bazaar Package Importer
  • Author(s): Micah Gersten, Chris Coulson
  • Date: 2010-08-24 21:26:36 UTC
  • Revision ID: james.westby@ubuntu.com-20100824212636-6smxl8e1eu8rk1k6
Tags: 0.9~rc2-0ubuntu4
[ Chris Coulson ]
* Backport change to fix URL template used for about:home; this fixes the 
  problem that Yahoo about:home cannot be reached; also we get rid of the 
  redirect everyone is getting on about:home to the Google/ url (LP: #606728)
  - add debian/patches/02_fix_about_home.patch
  - add debian/patches/series

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
=== modified file 'components/aboutHome.js'
 
2
--- ubufox/components/aboutHome.js      2010-04-09 13:17:27 +0000
 
3
+++ ubufox/components/aboutHome.js      2010-07-17 19:05:27 +0000
 
4
@@ -43,7 +43,7 @@
 
5
 var HOMEPAGE_OFFLINE = "file:///usr/share/ubuntu-artwork/home/index.html";
 
6
 var HOMEPAGE_OFFLINE_TMPL = "/usr/share/ubuntu-artwork/home/locales/index-"
 
7
 
 
8
-var HOMEPAGE_ONLINE_PREFIX = "http://start.ubuntu.com/10.04/";
 
9
+var HOMEPAGE_ONLINE_PREFIX = "http://start.ubuntu.com/10.04";
 
10
 
 
11
 function getIsOffline() {
 
12
   var ios = Cc["@mozilla.org/network/io-service;1"]
 
13
@@ -121,7 +121,8 @@
 
14
 
 
15
     if (!getIsOffline()) {
 
16
       let searchEngineName = getCurrentSearchEngineName();
 
17
-      let channel = ios.newChannel(HOMEPAGE_ONLINE_PREFIX + "/" + searchEngineName + "/", null, null);
 
18
+      let uri = HOMEPAGE_ONLINE_PREFIX + "/" + searchEngineName + "/";
 
19
+      let channel = ios.newChannel(uri, null, null);
 
20
       channel.originalURI = aURI;
 
21
       channel.owner = principal;
 
22
       return channel;
 
23