Commit c3effddd authored by ukai@chromium.org's avatar ukai@chromium.org

2010-02-04 Fumitoshi Ukai <ukai@chromium.org>

        Reviewed by Shinichiro Hamaji.

        websocket/tests/close-on-unload.html failed on Mac Tiger
        https://bugs.webkit.org/show_bug.cgi?id=34563

        * platform/mac-tiger/Skipped: remove websocket/tests/close-on-unload*.html
        * websocket/tests/close-on-unload_wsh.py: use dict instead of set.

git-svn-id: svn://svn.chromium.org/blink/trunk@54404 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 36673b08
2010-02-04 Fumitoshi Ukai <ukai@chromium.org>
Reviewed by Shinichiro Hamaji.
websocket/tests/close-on-unload.html failed on Mac Tiger
https://bugs.webkit.org/show_bug.cgi?id=34563
* platform/mac-tiger/Skipped: remove websocket/tests/close-on-unload*.html
* websocket/tests/close-on-unload_wsh.py: use dict instead of set.
2010-01-27 Geoffrey Garen <ggaren@apple.com>
Reviewed by Alexey Proskuryakov and Darin Adler.
......
......@@ -106,8 +106,3 @@ svg/custom/stroke-width-click.svg
# Fails on Mac
# https://bugs.webkit.org/show_bug.cgi?id=34331
http/tests/media/video-referer.html
# Fails on Mac Tiger
# https://bugs.webkit.org/show_bug.cgi?id=34563
websocket/tests/close-on-unload.html
websocket/tests/close-on-navigate-new-location.html
......@@ -30,7 +30,8 @@
from mod_pywebsocket import msgutil
connections = set()
# we don't use set() here, because python on mac tiger doesn't support it.
connections = {}
def web_socket_do_extra_handshake(request):
pass # Always accept.
......@@ -38,7 +39,7 @@ def web_socket_do_extra_handshake(request):
def web_socket_transfer_data(request):
global connections
connections.add(request)
connections[request] = True
socketName = None
try:
socketName = msgutil.receive_message(request)
......@@ -48,7 +49,7 @@ def web_socket_transfer_data(request):
socketName = socketName + ': receive next message'
finally:
# request is closed. notify this socketName to other web sockets.
connections.remove(request)
for ws in connections:
del connections[request]
for ws in connections.keys():
msgutil.send_message(ws, socketName)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment