Bug 1333726 - Use serializeToString instead of non-existant serializePrincipal. r=ckerschb, a=lizzard
authorGijs Kruitbosch <gijskruitbosch@gmail.com>
Wed, 25 Jan 2017 11:09:30 +0000
changeset 375716 c82f913134cba5626f4421372afa545a0c9d94a1
parent 375715 b55972079c354cee4f9a29382d3d71b72b1a0b02
child 375717 af6f4d39c3f061041425c840d021e8a2d70f12eb
push id6996
push userjlorenzo@mozilla.com
push dateMon, 06 Mar 2017 20:48:21 +0000
treeherdermozilla-beta@d89512dab048 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersckerschb, lizzard
bugs1333726
milestone53.0a2
Bug 1333726 - Use serializeToString instead of non-existant serializePrincipal. r=ckerschb, a=lizzard MozReview-Commit-ID: Ka0ORFpILjm
browser/base/content/browser.js
--- a/browser/base/content/browser.js
+++ b/browser/base/content/browser.js
@@ -900,17 +900,17 @@ function _loadURIWithFlags(browser, uri,
 
       if (postData) {
         postData = serializeInputStream(postData);
       }
 
       let loadParams = {
         uri,
         triggeringPrincipal: triggeringPrincipal
-          ? gSerializationHelper.serializePrincipal(triggeringPrincipal)
+          ? gSerializationHelper.serializeToString(triggeringPrincipal)
           : null,
         flags,
         referrer: referrer ? referrer.spec : null,
         referrerPolicy,
         postData
       }
 
       if (params.userContextId) {