Bug 1034156 - CSP: updating csp/test_bug949549.html to use C++ backend (r=sstamm)
authorChristoph Kerschbaumer <mozilla@christophkerschbaumer.com>
Thu, 03 Jul 2014 10:23:16 -0700
changeset 192161 2d1cf59ba9a752a2bea057a4606a2b32d95bd9ad
parent 192160 a6a8770eb49daae3e9f5bb6c3391f491e1cdf3cd
child 192162 90c7fc5b903427a9de972f274ca24c566e680489
push id45767
push usermozilla@christophkerschbaumer.com
push dateThu, 03 Jul 2014 17:51:32 +0000
treeherdermozilla-inbound@2d1cf59ba9a7 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssstamm
bugs1034156, 949549
milestone33.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 1034156 - CSP: updating csp/test_bug949549.html to use C++ backend (r=sstamm)
content/base/test/csp/test_bug949549.html
--- a/content/base/test/csp/test_bug949549.html
+++ b/content/base/test/csp/test_bug949549.html
@@ -9,17 +9,17 @@
 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=949549">Mozilla Bug 949549</a>
 <div id="content" style="display: none"></div>
 <pre id="test">
 <script type="application/javascript;version=1.8">
   "use strict";
 
   // Ensure that `setRequestContext` doesn't throw with app:// URLs
 
-  const csp = SpecialPowers.Cc["@mozilla.org/contentsecuritypolicy;1"]
+  const csp = SpecialPowers.Cc["@mozilla.org/cspcontext;1"]
               .createInstance(SpecialPowers.Ci.nsIContentSecurityPolicy);
 
   const gManifestURL = "http://www.example.com/chrome/dom/tests/mochitest/webapps/apps/basic.webapp";
 
   SimpleTest.waitForExplicitFinish();
   var app;
 
   function setupTest() {