[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor-browser/tor-browser-38.1.0esr-5.0-1] fixup! Bug #15502, Part 2: Regression tests for blob URL isolation
commit 4ef8f72964d1608a9ded427137d66547f78d71b8
Author: Arthur Edelstein <arthuredelstein@xxxxxxxxx>
Date: Thu Jul 2 12:26:40 2015 -0700
fixup! Bug #15502, Part 2: Regression tests for blob URL isolation
---
dom/base/test/test_tor_bug15502.html | 16 +++-------------
1 file changed, 3 insertions(+), 13 deletions(-)
diff --git a/dom/base/test/test_tor_bug15502.html b/dom/base/test/test_tor_bug15502.html
index 18b8459..05173d9 100644
--- a/dom/base/test/test_tor_bug15502.html
+++ b/dom/base/test/test_tor_bug15502.html
@@ -59,20 +59,10 @@ let blobTest = function* (isolationOn, domainA, domainB, blobPage, deblobPage) {
blobURL = yield tabIO(domainA, blobPage, input),
result = yield tabIO(domainB, deblobPage, blobURL),
description = domainA + ":" + blobPage + "->" + domainB + ":" + deblobPage + ", isolation " + (isolationOn ? "on." : "off.");
- if (blobPage === worker_blob) {
- // Remove this case when we write a patch that properly isolates web worker blob URLs
- // by first party domain.
- ok(blobURL.contains("Permission to call 'URL.createObjectURL' denied."), description + " Deny blob URL creation in web worker");
- } else if (deblobPage === worker_deblob && isolationOn) {
- // Remove this case when we write a patch that properly isolates web worker blob URLs
- // by first party domain.
- ok(result.contains("Access to restricted URI denied"), description + " Isolated blobs not available to web workers");
+ if (isolationOn && domainA !== domainB) {
+ ok(input !== result, description + " Deny retrieval");
} else {
- if (isolationOn && domainA !== domainB) {
- ok(input !== result, description + " Deny retrieval");
- } else {
- ok(input === result, description + " Allow retrieval");
- }
+ ok(input === result, description + " Allow retrieval");
}
};
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits