tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit cf32fb96435ebffd43a4b5eeaef480043c714c60
parent 2b6aa9387bf6b48c79666c19fa31baf3fd5004cd
Author: Przemyslaw Gorszkowski <pgorszkowski@igalia.com>
Date:   Thu, 11 Dec 2025 09:27:06 +0000

Bug 2004882 [wpt PR 56589] - [WebSocket][BFCache] simplify readWebSocketCloseAndErrorFlags function, a=testonly

Automatic update from web-platform-tests
[WebSocket][BFCache] simplify readWebSocketCloseAndErrorFlags function

--

wpt-commits: b26ba6efa4bb4eedf64f0aa26aa0df2bd2e05326
wpt-pr: 56589

Diffstat:
Atesting/web-platform/tests/css/css-backgrounds/background-clip/clip-border-area-on-body-not-propagated-to-root-ref.html | 18++++++++++++++++++
Mtesting/web-platform/tests/css/css-backgrounds/background-clip/clip-border-area-on-body-not-propagated-to-root.html | 5++---
Mtesting/web-platform/tests/websockets/resources/websockets-test-helpers.sub.js | 10+++++-----
3 files changed, 25 insertions(+), 8 deletions(-)

diff --git a/testing/web-platform/tests/css/css-backgrounds/background-clip/clip-border-area-on-body-not-propagated-to-root-ref.html b/testing/web-platform/tests/css/css-backgrounds/background-clip/clip-border-area-on-body-not-propagated-to-root-ref.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<title>background-clip:border-area on the root</title> +<style> +html, body { + box-sizing: border-box; + height: 100%; + margin: 0; +} +html { + background-color: white; +} +body { + border: 20px solid green; + padding: 10px; +} +</style> + +There should be a 20px green border around the edge of the viewport. This text should be black on a white background. diff --git a/testing/web-platform/tests/css/css-backgrounds/background-clip/clip-border-area-on-body-not-propagated-to-root.html b/testing/web-platform/tests/css/css-backgrounds/background-clip/clip-border-area-on-body-not-propagated-to-root.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <title>background-clip:border-area on the root</title> <link rel="help" href="https://drafts.csswg.org/css-backgrounds-3/#propdef-background-clip"> -<link rel="match" href="clip-text-on-body-not-propagated-to-root-ref.html"> +<link rel="match" href="clip-border-area-on-body-not-propagated-to-root-ref.html"> <style> html, body { box-sizing: border-box; @@ -19,4 +19,4 @@ body { } </style> -There should be a 20px green border around the edge of the viewport. This text should be black on a white background. -\ No newline at end of file +There should be a 20px green border around the edge of the viewport. This text should be black on a white background. diff --git a/testing/web-platform/tests/websockets/resources/websockets-test-helpers.sub.js b/testing/web-platform/tests/websockets/resources/websockets-test-helpers.sub.js @@ -26,10 +26,10 @@ async function openThenCloseWebSocket(remoteContextHelper) { // Opens a new WebSocket connection and close it in pagehide event listener. async function openWebSocketAndCloseItInPageHide(remoteContextHelper) { - window.wsErrorOccurred = false; - window.wsCloseOccurred = false; - let return_value = await remoteContextHelper.executeScript((domain) => { + window.wsErrorOccurred = false; + window.wsCloseOccurred = false; + return new Promise((resolve) => { var testWebSocket = new WebSocket(domain + '/echo'); testWebSocket.onopen = () => { @@ -51,8 +51,8 @@ async function openWebSocketAndCloseItInPageHide(remoteContextHelper) { async function readWebSocketCloseAndErrorFlags(remoteContext) { return await remoteContext.executeScript(() => { return { - wsError: window.wsErrorOccurred === true, - wsClose: window.wsCloseOccurred === true + wsError: window.wsErrorOccurred, + wsClose: window.wsCloseOccurred }; }); }