Bug 1054221 - [e10s] Make special link click behave correctly on about:newtab. r=jimm
authorTom Schuster <evilpies@gmail.com>
Fri, 15 Aug 2014 15:28:10 +0200
changeset 199705 220144707b01344488bbf8b003bab481b667b231
parent 199704 ff64d9bbc03cd14dcd05d94f54a0e9c14f57b787
child 199706 a26fd3f83a557a579676a9a38075becddd3bd1a0
push id47714
push userevilpies@gmail.com
push dateFri, 15 Aug 2014 13:28:38 +0000
treeherdermozilla-inbound@67e348e5f8dd [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjimm
bugs1054221
milestone34.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1054221 - [e10s] Make special link click behave correctly on about:newtab. r=jimm
browser/base/content/browser.js
--- a/browser/base/content/browser.js
+++ b/browser/base/content/browser.js
@@ -2583,17 +2583,17 @@ let BrowserOnClick = {
     }
 
     let anchorTarget = event.originalTarget.parentNode;
 
     if (anchorTarget instanceof HTMLAnchorElement &&
         anchorTarget.classList.contains("newtab-link")) {
       event.preventDefault();
       let where = whereToOpenLink(event, false, false);
-      openUILinkIn(anchorTarget.href, where);
+      openLinkIn(anchorTarget.href, where, { charset: ownerDoc.characterSet });
     }
   },
 
   /**
    * The about:tabcrashed can't do window.reload() because that
    * would reload the page but not use a remote browser.
    */
   onAboutTabCrashed: function(event, ownerDoc) {