Bug 1201498 - Service worker update should compare scriptURL to worker URL without fragment, r=bkelly
☠☠ backed out by 67f8880bc989 ☠ ☠
authorAndrea Marchesini <amarchesini@mozilla.com>
Tue, 10 Nov 2015 17:05:47 +0000
changeset 271943 27f5e66b391942b8f788439038e00f93b0017b79
parent 271942 18601c78997ff6772db932fa387514fa86b02d62
child 271944 d45219fe7a2f441bac79beee43f0679ed621201c
push id67809
push useramarchesini@mozilla.com
push dateTue, 10 Nov 2015 17:06:02 +0000
treeherdermozilla-inbound@27f5e66b3919 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbkelly
bugs1201498
milestone45.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 1201498 - Service worker update should compare scriptURL to worker URL without fragment, r=bkelly
dom/workers/ServiceWorkerManager.cpp
--- a/dom/workers/ServiceWorkerManager.cpp
+++ b/dom/workers/ServiceWorkerManager.cpp
@@ -1482,17 +1482,17 @@ ServiceWorkerManager::Register(nsIDOMWin
 
   nsCString cleanedScope;
   rv = aScopeURI->GetSpecIgnoringRef(cleanedScope);
   if (NS_WARN_IF(NS_FAILED(rv))) {
     return NS_ERROR_FAILURE;
   }
 
   nsAutoCString spec;
-  rv = aScriptURI->GetSpec(spec);
+  rv = aScriptURI->GetSpecIgnoringRef(spec);
   if (NS_WARN_IF(NS_FAILED(rv))) {
     return rv;
   }
 
   nsCOMPtr<nsIGlobalObject> sgo = do_QueryInterface(window);
   ErrorResult result;
   RefPtr<Promise> promise = Promise::Create(sgo, result);
   if (result.Failed()) {