Bug 1675987 - No derogatory language: Remove references to "crazy" in dom module. r=smaug

Differential Revision: https://phabricator.services.mozilla.com/D97654
This commit is contained in:
Jon Bauman 2020-11-20 23:37:01 +00:00
Родитель 62f3b20e9d
Коммит 6af16546a9
10 изменённых файлов: 19 добавлений и 19 удалений

Просмотреть файл

@ -172,7 +172,7 @@ class nsDOMAttributeMap final : public nsISupports, public nsWrapperCache {
Attr* GetAttribute(mozilla::dom::NodeInfo* aNodeInfo);
};
// XXX khuey yes this is crazy. The bindings code needs to see this include,
// XXX khuey yes this is strange. The bindings code needs to see this include,
// but if we pull it in at the top of the file we get a circular include
// problem.
#include "mozilla/dom/Element.h"

Просмотреть файл

@ -25,7 +25,7 @@ skip-if(Android) == webgl-resize-test.html wrapper.html?green.png
# Check that captureStream() displays in a local video element
skip-if(Android) == webgl-capturestream-test.html?preserve wrapper.html?green.png
# Some of the failure conditions are a little crazy. I'm (jgilbert) setting these based on
# Some of the failure conditions are a little weird. I'm (jgilbert) setting these based on
# failures encountered when running on Try, and then targetting the Try config by
# differences in the `sandbox` contents. That is, I'm labeling based on symptoms rather
# than cause.

Просмотреть файл

@ -11345,7 +11345,7 @@ isPixel(ctx, 98,48, 0,255,0,255, 0);
<!-- [[[ test_2d.path.arc.shape.5.html ]]] -->
<p>Canvas test: 2d.path.arc.shape.5</p>
<!-- Testing: arc() from 0 to 5pi does not draw crazy things -->
<!-- Testing: arc() from 0 to 5pi does not draw strange things -->
<canvas id="c351" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>
<script>
@ -22098,7 +22098,7 @@ isPixel(ctx, 98,48, 0,255,0,255, 0);
<!-- [[[ test_2d.path.ellipse.shape.4.html ]]] -->
<p>Canvas test: 2d.path.ellipse.shape.4</p>
<!-- Testing: ellipse() from 0 to 5pi does not draw crazy things -->
<!-- Testing: ellipse() from 0 to 5pi does not draw strange things -->
<canvas id="c708" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>
<script>

Просмотреть файл

@ -33,7 +33,7 @@ function compareImages(refData, tstData, width, height, diff) {
return true;
}
// TODO: Implement crazy check that's used in OpenGL ES 2.0 conformance tests.
// TODO: Implement check that's used in OpenGL ES 2.0 conformance tests.
// NOTE: on Desktop things seem to be working. Maybe the more complex check
// is needed for embedded systems?
return false;

Просмотреть файл

@ -130,7 +130,7 @@ class SharedJSAllocatedData final {
* returning a fatal false if unable to extract. (And
* SerializedStructuredCloneBuffer wraps/defers to it.) But if it's possible
* the ClonedMessageData came from a different source that might have borrowed
* the buffers itself, then things will crash. That would be a pretty crazy
* the buffers itself, then things will crash. That would be a pretty strange
* implementation; if you see one, change it to use SharedJSAllocatedData.
*
* 1: Specifically, in the Write() case an owning SharedJSAllocatedData is

Просмотреть файл

@ -336,7 +336,7 @@ MP4Metadata::ResultAndTrackInfo MP4Metadata::GetTrackInfo(
("track codec %s (%u)\n", codecString, codecType));
#endif
// This specialization interface is crazy.
// This specialization interface is wild.
UniquePtr<mozilla::TrackInfo> e;
switch (aType) {
case TrackInfo::TrackType::kAudioTrack: {

Просмотреть файл

@ -377,7 +377,7 @@ class SdpFingerprintAttributeList : public SdpAttribute {
};
// For use by application programmers. Enforces that it's a known and
// non-crazy algorithm.
// reasonable algorithm.
void PushEntry(std::string algorithm_str,
const std::vector<uint8_t>& fingerprint,
bool enforcePlausible = true) {

Просмотреть файл

@ -222,7 +222,7 @@ MochiKit.Base.update(MochiKit.Signal.Event.prototype, {
shift+1 kp 33
Safari key event behavior:
(Safari sets charCode and keyCode to something crazy for
(Safari sets charCode and keyCode to something weird for
special keys.)
key event charCode keyCode
DOWN ku,kd 63233 40

Просмотреть файл

@ -66,7 +66,7 @@ async function doTests() {
});
// Test: TLD
await promiseU2FRegister("https://com/crazyAppID", [{
await promiseU2FRegister("https://com/weirdAppID", [{
version,
challenge: bytesToBase64UrlSafe(challenge),
}], [], function(res){

Просмотреть файл

@ -8,7 +8,7 @@ cyclicalObject.foo = cyclicalObject;
var cyclicalArray = [];
cyclicalArray.push(cyclicalArray);
function makeCrazyNested(obj, count) {
function makeNested(obj, count) {
var innermostobj;
for (var i = 0; i < count; i++) {
obj.foo = { bar: 5 };
@ -18,12 +18,12 @@ function makeCrazyNested(obj, count) {
return innermostobj;
}
var crazyNestedObject = {};
makeCrazyNested(crazyNestedObject, 100);
var nestedObject = {};
makeNested(nestedObject, 100);
var crazyCyclicalObject = {};
var innermost = makeCrazyNested(crazyCyclicalObject, 1000);
innermost.baz = crazyCyclicalObject;
var cyclicalObject = {};
var innermost = makeNested(cyclicalObject, 1000);
innermost.baz = cyclicalObject;
var objectWithSaneGetter = {};
objectWithSaneGetter.__defineGetter__("foo", function() {
@ -103,12 +103,12 @@ var messages = [
},
{
type: "object",
value: crazyNestedObject,
jsonValue: JSON.stringify(crazyNestedObject),
value: nestedObject,
jsonValue: JSON.stringify(nestedObject),
},
{
type: "object",
value: crazyCyclicalObject,
value: cyclicalObject,
},
{
type: "object",