Title: [228913] branches/safari-605-branch/Source/WebCore

Diff

Modified: branches/safari-605-branch/Source/WebCore/ChangeLog (228912 => 228913)


--- branches/safari-605-branch/Source/WebCore/ChangeLog	2018-02-22 03:49:05 UTC (rev 228912)
+++ branches/safari-605-branch/Source/WebCore/ChangeLog	2018-02-22 04:58:40 UTC (rev 228913)
@@ -1,5 +1,22 @@
 2018-02-21  Jason Marcell  <[email protected]>
 
+        Cherry-pick r228895. rdar://problem/37767705
+
+    2018-02-21  Youenn Fablet  <[email protected]>
+
+            ServiceWorkerJob::m_lastResponse is unneeded
+            https://bugs.webkit.org/show_bug.cgi?id=183013
+
+            Reviewed by Chris Dumez.
+
+            Remove this field since not used anywhere.
+
+            * workers/service/ServiceWorkerJob.cpp:
+            (WebCore::ServiceWorkerJob::didReceiveResponse):
+            * workers/service/ServiceWorkerJob.h:
+
+2018-02-21  Jason Marcell  <[email protected]>
+
         Cherry-pick r228903. rdar://problem/37765339
 
     2018-02-21  Chris Dumez  <[email protected]>

Modified: branches/safari-605-branch/Source/WebCore/workers/service/ServiceWorkerJob.cpp (228912 => 228913)


--- branches/safari-605-branch/Source/WebCore/workers/service/ServiceWorkerJob.cpp	2018-02-22 03:49:05 UTC (rev 228912)
+++ branches/safari-605-branch/Source/WebCore/workers/service/ServiceWorkerJob.cpp	2018-02-22 04:58:40 UTC (rev 228913)
@@ -107,7 +107,6 @@
     ASSERT(!m_completed);
     ASSERT(m_scriptLoader);
 
-    m_lastResponse = response;
     // Extract a MIME type from the response's header list. If this MIME type (ignoring parameters) is not a _javascript_ MIME type, then:
     if (!MIMETypeRegistry::isSupportedJavaScriptMIMEType(response.mimeType())) {
         // Invoke Reject Job Promise with job and "SecurityError" DOMException.

Modified: branches/safari-605-branch/Source/WebCore/workers/service/ServiceWorkerJob.h (228912 => 228913)


--- branches/safari-605-branch/Source/WebCore/workers/service/ServiceWorkerJob.h	2018-02-22 03:49:05 UTC (rev 228912)
+++ branches/safari-605-branch/Source/WebCore/workers/service/ServiceWorkerJob.h	2018-02-22 04:58:40 UTC (rev 228913)
@@ -89,7 +89,6 @@
 
     DocumentOrWorkerIdentifier m_contextIdentifier;
     RefPtr<WorkerScriptLoader> m_scriptLoader;
-    ResourceResponse m_lastResponse;
 
 #if !ASSERT_DISABLED
     Ref<Thread> m_creationThread { Thread::current() };
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to