1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-30 00:00:16 +01:00

minimal: update copies of test assets to CSP-compatible versions

This commit is contained in:
Andy Green 2018-11-15 17:15:29 +08:00
parent b2b58b5b14
commit c4c60fb95e
6 changed files with 789 additions and 610 deletions

View file

@ -152,6 +152,10 @@ lws_set_timer_usecs(struct lws *wsi, lws_usec_t usecs);
* future.
*
* Returns 0 if OK.
*
* In the multithreaded service case, the callback will occur in the same
* service thread context as the call to this api that requested it. If it is
* called from a non-service thread, tsi 0 will handle it.
*/
LWS_VISIBLE LWS_EXTERN int
lws_timed_callback_vh_protocol(struct lws_vhost *vh,

View file

@ -1647,6 +1647,9 @@ lws_context_destroy3(struct lws_context *context)
#endif
}
if (context->pt[0].fds)
lws_free_set_NULL(context->pt[0].fds);
lws_free(context);
lwsl_info("%s: ctx %p freed\n", __func__, context);
@ -1672,9 +1675,6 @@ lws_context_destroy2(struct lws_context *context)
context->being_destroyed2 = 1;
if (context->pt[0].fds)
lws_free_set_NULL(context->pt[0].fds);
/*
* free all the per-vhost allocations
*/

View file

@ -110,6 +110,14 @@ function lws_gray_out(vis, _options) {
/*
* end of grayOut related stuff
*/
function new_ws(urlpath, protocol)
{
if (typeof MozWebSocket != "undefined")
return new MozWebSocket(urlpath, protocol);
return new WebSocket(urlpath, protocol);
}
function lws_san(s)
{

View file

@ -0,0 +1,190 @@
span.title {
font-size:18pt;
font-family: Arial;
font-weight:normal;
text-align:center;
color:#000000;
}
span.mount {
font-size:10pt;
font-family: Arial;
font-weight:normal;
text-align:center;
color:#000000;
}
span.mountname {
font-size:14pt;
font-family: Arial;
font-weight:bold;
text-align:center;
color:#404010;
}
span.n {
font-size:12pt;
font-family: Arial;
font-weight:normal;
text-align:center;
color:#808020;
}
span.v {
font-size:12pt;
font-family: Arial;
font-weight:bold;
text-align:center;
color:#202020;
}
span.m1 {
font-size:12pt;
font-family: Arial;
font-weight:bold;
text-align:center;
color:#202020;
}
span.m2 {
font-size:12pt;
font-family: Arial;
font-weight:normal;
text-align:center;
color:#202020;
}
.browser { font-size:12pt; font-family: Arial; font-weight:normal; text-align:center; color:#ffff00; vertical-align:middle; text-align:center; background:#d0b070; padding:12px; -webkit-border-radius:10px; border-radius:10px;}
.group2 { vertical-align:middle;
text-align:center;
background:#f0f0e0;
padding:12px;
-webkit-border-radius:10px;
border-radius:10px; }
.explain { vertical-align:middle;
text-align:center;
background:#f0f0c0; padding:12px;
-webkit-border-radius:10px;
border-radius:10px;
color:#404000;
padding:3px;
}
td.wsstatus { vertical-align:middle; width:200px; height:50px;
text-align:center;
background:#f0f0c0; padding:6px;
-webkit-border-radius:8px;
border-radius:8px;
color:#404000; }
.tdform { vertical-align:middle; width:200px; height:50px;
text-align:center;
background:#f0f0d0; padding:6px;
-webkit-border-radius:8px;
margin:10px;
border-radius:8px;
border: 1px solid black;
border-collapse: collapse;font-size:18pt; font-family: Arial; font-weight:normal; text-align:center; color:#000000;
color:#404000; }
td.l { vertical-align:middle;
text-align:center;
background:#d0d0b0;
padding:3px;
-webkit-border-radius:3px;
border-radius:3px; }
td.bigger { font-size:120%; }
div.bgw { background:white }
div.conninfo {
border: solid 2px #e0d040;
padding: 4px;
width: 500px;
height:350px;
overflow: auto;
}
span.f12 { font-size:12pt }
.content { vertical-align:top; text-align:center; background:#fffff0; padding:12px; -webkit-border-radius:10px; border-radius:10px; }
.canvas { vertical-align:top; text-align:center; background:#efefd0; padding:12px; -webkit-border-radius:10px; border-radius:10px; }
.tabs {
position: relative;
min-height: 750px; /* This part sucks */
clear: both;
margin: 25px 0;
}
.tab {
float: left;
}
.tab label {
background: #eee;
padding: 10px;
border: 1px solid #ccc;
margin-left: -1px;
position: relative;
left: 1px;
}
.tab [type=radio] {
display: none;
}
.content {
position: absolute;
top: 28px;
left: 0;
background: white;
right: 0;
bottom: 0;
padding: 20px;
border: 1px solid #ccc;
}
[type=radio]:checked ~ label {
background: white;
border-bottom: 1px solid white;
z-index: 2;
}
[type=radio]:checked ~ label ~ .content {
z-index: 1;
}
td.wsstatus { vertical-align:middle; width:200px; height:50px;
text-align:center;
background:#f0f0c0; padding:6px;
-webkit-border-radius:8px;
border-radius:8px;
color:#404000; }
td.l { vertical-align:middle;
text-align:center;
background:#d0d0b0;
padding:3px;
-webkit-border-radius:3px;
border-radius:3px; }
td.dl { vertical-align:middle;
text-align:center;
background:#c0c0c0;
padding:3px;
-webkit-border-radius:3px;
border-radius:3px; }
td.c { vertical-align:middle;
text-align:center;
background:#c0c0a0;
padding:3px;
-webkit-border-radius:3px;
border-radius:3px; }
td.c0 { vertical-align:middle;
text-align:center;
background:#b0b090;
padding:3px;
-webkit-border-radius:3px;
border-radius:3px; }
td.dc0 { vertical-align:middle;
text-align:center;
background:#a0a0a0;
padding:3px;
-webkit-border-radius:3px;
border-radius:3px; }
td.c1 { vertical-align:middle;
text-align:center;
background:#c0c0c0;
padding:3px;
-webkit-border-radius:3px;
border-radius:3px; }
td.t { vertical-align:middle;
text-align:center;
background:#e0e0c0;
padding:3px;
-webkit-border-radius:3px;
border-radius:3px; }

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long