Skip to content

Commit 40b2f29

Browse files
committed
Bug 1966443: Remove MacOS supportsNullBytes test from browser_removeUnsafeProtocolsFromURLBarPaste.js r=mac-reviewers,urlbar-reviewers,mstange,Standard8
This patch series normalizes platforms so none support nulls. Differential Revision: https://phabricator.services.mozilla.com/D260406
1 parent c0b7f6e commit 40b2f29

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

browser/components/urlbar/tests/browser/browser_removeUnsafeProtocolsFromURLBarPaste.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,10 @@ var pairs = [
4040
],
4141
];
4242

43-
let supportsNullBytes = AppConstants.platform == "macosx";
4443
// Note that \u000d (\r) is missing here; we test it separately because it
4544
// makes the test sad on Windows.
4645
let nonsense =
4746
"\u000a\u000b\u000c\u000e\u000f\u0010\u0011\u0012\u0013\u0014javascript:foo";
48-
if (supportsNullBytes) {
49-
nonsense = "\u0000" + nonsense;
50-
}
5147
pairs.push([nonsense, "foo"]);
5248

5349
let supportsReturnWithoutNewline =

0 commit comments

Comments
 (0)