Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(230)

Issue 2649463003: Make WebSocket available again in service workers (Closed)

Created:
3 years, 11 months ago by tyoshino (SeeGerritForStatus)
Modified:
3 years, 11 months ago
Reviewers:
falken, yhirano
CC:
chromium-reviews
Target Ref:
refs/pending/branch-heads/2924
Project:
chromium
Visibility:
Public.

Description

Make WebSocket available again in service workers The patch https://codereview.chromium.org/2284473002/ was basically a refactoring change, but it also included a change that it started using the InterfaceProvider instance of the LocalFrame of the associated Document if any. However, in a service worker, the LocalFrame returns the empty provider obtained by calling InterfaceProvider::getEmptyInterfaceProvider(). This is because the WebEmbeddedWorkerImpl used for service workers doesn't override the WebFrameClient::interfaceProvider() method which returns nullptr by default while one on the WebSharedWorkerImpl and RenderFrameImpl returns an effective InterfaceProvider instance. This patch fixes the issue by changing the code to use the InterfaceProvider of the LocalFrame only when it's not the empty provider. R=falken@chromium.org TBR=yhirano@chromium.org BUG=671588 Review-Url: https://codereview.chromium.org/2564493002 Cr-Commit-Position: refs/heads/master@{#437406} (cherry picked from commit dd3b58a1f0073215d58bcb8dc216b89e546bc9f7) Review-Url: https://codereview.chromium.org/2649463003 . Cr-Commit-Position: refs/branch-heads/2924@{#815} Cr-Branched-From: 3a87aecc31cd1ffe751dd72c04e5a96a1fc8108a-refs/heads/master@{#433059} Committed: https://chromium.googlesource.com/chromium/src/+/31c0d697c6d885cee1084c1c30e4f04d2e32e36a

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -1 line) Patch
A third_party/WebKit/LayoutTests/http/tests/serviceworker/websocket/resources/simple.js View 1 chunk +35 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/serviceworker/websocket/websocket-in-service-worker.html View 1 chunk +27 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/websockets/DocumentWebSocketChannel.cpp View 2 chunks +4 lines, -1 line 0 comments Download

Messages

Total messages: 3 (1 generated)
tyoshino (SeeGerritForStatus)
Committed patchset #1 (id:1) manually as 31c0d697c6d885cee1084c1c30e4f04d2e32e36a.
3 years, 11 months ago (2017-01-20 06:36:05 UTC) #2
falken
3 years, 11 months ago (2017-01-23 03:12:25 UTC) #3
Message was sent while issue was closed.
lgtm

Powered by Google App Engine
This is Rietveld 408576698