Loading accessible/generic/RootAccessible.cpp +4 −1 Original line number Diff line number Diff line Loading @@ -282,7 +282,10 @@ RootAccessible::ProcessDOMEvent(nsIDOMEvent* aDOMEvent) DocAccessible* targetDocument = GetAccService()-> GetDocAccessible(origTargetNode->OwnerDoc()); NS_ASSERTION(targetDocument, "No document while accessible is in document?!"); if (!targetDocument) { // Document has ceased to exist. return; } Accessible* accessible = targetDocument->GetAccessibleOrContainer(origTargetNode); Loading accessible/tests/crashtests/1402999.html 0 → 100644 +11 −0 Original line number Diff line number Diff line <script> document.addEventListener("DOMContentLoaded", function(){ document.getElementById('a').click(); window.frames[0].document.body.appendChild(document.getElementById('b')); }); </script> <cite id='b'> <label> <input/> <strong id='a'></strong> <iframe> accessible/tests/crashtests/crashtests.list +1 −0 Original line number Diff line number Diff line Loading @@ -4,6 +4,7 @@ asserts-if(!browserIsRemote,2) load 884202.html load 890760.html load 893515.html load 1072792.xhtml load 1402999.html # last_test_to_unload_testsuite.xul MUST be the last test in the list because it # is responsible for shutting down accessibility service affecting later tests. Loading browser/components/resistfingerprinting/test/browser/browser_spoofing_keyboard_event.js +10 −0 Original line number Diff line number Diff line Loading @@ -621,6 +621,16 @@ const TEST_CASES_EN = [ location: KeyboardEvent.DOM_KEY_LOCATION_STANDARD, altKey: false, shiftKey: false, ctrlKey: false, altGraphKey: false } }, { key: "a", modifiers: { ctrlKey: true }, expectedKeyEvent: SHOULD_DELIVER_ALL_FOR_NON_PRINTABLE, result: { key: "a", code: "KeyA", charCode: 97, keyCode: KeyboardEvent.DOM_VK_A, location: KeyboardEvent.DOM_KEY_LOCATION_STANDARD, altKey: false, shiftKey: false, ctrlKey: true, altGraphKey: false } }, { key: "a", modifiers: { altKey: true }, expectedKeyEvent: SHOULD_DELIVER_ALL_FOR_NON_PRINTABLE, result: { key: "a", code: "KeyA", charCode: 97, keyCode: KeyboardEvent.DOM_VK_A, location: KeyboardEvent.DOM_KEY_LOCATION_STANDARD, altKey: false, shiftKey: false, ctrlKey: false, altGraphKey: false } }, ]; async function testKeyEvent(aTab, aTestCase) { Loading build/sanitizers/ubsan_signed_overflow_blacklist.txt +0 −9 Original line number Diff line number Diff line Loading @@ -149,10 +149,6 @@ fun:*OT*collect_glyphs* # These look like harmless layouting-related overflows src:*/gfx/cairo/libpixman/src/pixman-region.c # Sorting code in layout/style/nsCSSProps.cpp that probably doesn't # care about overflows. fun:*SortPropertyAndCount* # Code in ipc/chromium/src/base/file_path.cc where a function returns -1 # being cast to unsigned and then overflowed. fun:*FilePath*Append* Loading Loading @@ -228,7 +224,6 @@ src:*/mozglue/misc/TimeStamp.h # src:*/dom/canvas/MurmurHash3.cpp src:*/gfx/skia/skia/include/private/SkChecksum.h src:*/HashFunctions.h src:*/intl/icu/source/common/unifiedcache.h src:*/mfbt/SHA1.cpp src:*/modules/zlib/src/adler32.c Loading @@ -242,7 +237,6 @@ src:*/security/manager/ssl/md4.c src:*/security/nss/lib/dbm/src/h_func.c src:*/security/nss/lib/freebl/sha512.c src:*/security/nss/lib/freebl/md5.c src:*/XorShift128PlusRNG.h src:*/xpcom/ds/PLDHashTable.cpp # Hash/Cache function in Skia Loading @@ -254,9 +248,6 @@ fun:*_hash_mix_bits* fun:*_cairo_hash_string* fun:*_cairo_hash_bytes* # Hash function in modules/libjar/nsZipArchive.cpp fun:*HashName* # intl code hashing functions fun:*ustr_hash*CharsN* fun:*hashEntry* Loading Loading
accessible/generic/RootAccessible.cpp +4 −1 Original line number Diff line number Diff line Loading @@ -282,7 +282,10 @@ RootAccessible::ProcessDOMEvent(nsIDOMEvent* aDOMEvent) DocAccessible* targetDocument = GetAccService()-> GetDocAccessible(origTargetNode->OwnerDoc()); NS_ASSERTION(targetDocument, "No document while accessible is in document?!"); if (!targetDocument) { // Document has ceased to exist. return; } Accessible* accessible = targetDocument->GetAccessibleOrContainer(origTargetNode); Loading
accessible/tests/crashtests/1402999.html 0 → 100644 +11 −0 Original line number Diff line number Diff line <script> document.addEventListener("DOMContentLoaded", function(){ document.getElementById('a').click(); window.frames[0].document.body.appendChild(document.getElementById('b')); }); </script> <cite id='b'> <label> <input/> <strong id='a'></strong> <iframe>
accessible/tests/crashtests/crashtests.list +1 −0 Original line number Diff line number Diff line Loading @@ -4,6 +4,7 @@ asserts-if(!browserIsRemote,2) load 884202.html load 890760.html load 893515.html load 1072792.xhtml load 1402999.html # last_test_to_unload_testsuite.xul MUST be the last test in the list because it # is responsible for shutting down accessibility service affecting later tests. Loading
browser/components/resistfingerprinting/test/browser/browser_spoofing_keyboard_event.js +10 −0 Original line number Diff line number Diff line Loading @@ -621,6 +621,16 @@ const TEST_CASES_EN = [ location: KeyboardEvent.DOM_KEY_LOCATION_STANDARD, altKey: false, shiftKey: false, ctrlKey: false, altGraphKey: false } }, { key: "a", modifiers: { ctrlKey: true }, expectedKeyEvent: SHOULD_DELIVER_ALL_FOR_NON_PRINTABLE, result: { key: "a", code: "KeyA", charCode: 97, keyCode: KeyboardEvent.DOM_VK_A, location: KeyboardEvent.DOM_KEY_LOCATION_STANDARD, altKey: false, shiftKey: false, ctrlKey: true, altGraphKey: false } }, { key: "a", modifiers: { altKey: true }, expectedKeyEvent: SHOULD_DELIVER_ALL_FOR_NON_PRINTABLE, result: { key: "a", code: "KeyA", charCode: 97, keyCode: KeyboardEvent.DOM_VK_A, location: KeyboardEvent.DOM_KEY_LOCATION_STANDARD, altKey: false, shiftKey: false, ctrlKey: false, altGraphKey: false } }, ]; async function testKeyEvent(aTab, aTestCase) { Loading
build/sanitizers/ubsan_signed_overflow_blacklist.txt +0 −9 Original line number Diff line number Diff line Loading @@ -149,10 +149,6 @@ fun:*OT*collect_glyphs* # These look like harmless layouting-related overflows src:*/gfx/cairo/libpixman/src/pixman-region.c # Sorting code in layout/style/nsCSSProps.cpp that probably doesn't # care about overflows. fun:*SortPropertyAndCount* # Code in ipc/chromium/src/base/file_path.cc where a function returns -1 # being cast to unsigned and then overflowed. fun:*FilePath*Append* Loading Loading @@ -228,7 +224,6 @@ src:*/mozglue/misc/TimeStamp.h # src:*/dom/canvas/MurmurHash3.cpp src:*/gfx/skia/skia/include/private/SkChecksum.h src:*/HashFunctions.h src:*/intl/icu/source/common/unifiedcache.h src:*/mfbt/SHA1.cpp src:*/modules/zlib/src/adler32.c Loading @@ -242,7 +237,6 @@ src:*/security/manager/ssl/md4.c src:*/security/nss/lib/dbm/src/h_func.c src:*/security/nss/lib/freebl/sha512.c src:*/security/nss/lib/freebl/md5.c src:*/XorShift128PlusRNG.h src:*/xpcom/ds/PLDHashTable.cpp # Hash/Cache function in Skia Loading @@ -254,9 +248,6 @@ fun:*_hash_mix_bits* fun:*_cairo_hash_string* fun:*_cairo_hash_bytes* # Hash function in modules/libjar/nsZipArchive.cpp fun:*HashName* # intl code hashing functions fun:*ustr_hash*CharsN* fun:*hashEntry* Loading