Open Bug 1645857 Opened 4 years ago Updated 3 years ago

Assertion failure: !frame || frame->AccessibleType() == eImageType || frame->AccessibleType() == a11y::eHTMLImageMapType, at /builds/worker/checkouts/gecko/accessible/generic/ImageAccessible.cpp:65

Categories

(Core :: Disability Access APIs, defect)

defect

Tracking

()

Tracking Status
firefox79 --- affected
firefox95 --- affected

People

(Reporter: tsmith, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: assertion, testcase)

Attachments

(1 file)

Attached file testcase.html

Assertion failure: !frame || frame->AccessibleType() == eImageType || frame->AccessibleType() == a11y::eHTMLImageMapType, at /builds/worker/checkouts/gecko/accessible/generic/ImageAccessible.cpp:65

0|0|libxul.so|mozilla::a11y::ImageAccessible::NativeState() const|hg:hg.mozilla.org/mozilla-central:accessible/generic/ImageAccessible.cpp:bbf2aac9fc58ff26d969c05d027507b4b03d145d|64|0x29
0|1|libxul.so|mozilla::a11y::Accessible::State()|hg:hg.mozilla.org/mozilla-central:accessible/generic/Accessible.cpp:bbf2aac9fc58ff26d969c05d027507b4b03d145d|1121|0x9
0|2|libxul.so|mozilla::a11y::DocAccessible::AttributeWillChange(mozilla::dom::Element*, int, nsAtom*, int)|hg:hg.mozilla.org/mozilla-central:accessible/generic/DocAccessible.cpp:bbf2aac9fc58ff26d969c05d027507b4b03d145d|678|0xa
0|3|libxul.so|mozilla::dom::MutationObservers::NotifyAttributeWillChange(mozilla::dom::Element*, int, nsAtom*, int)|hg:hg.mozilla.org/mozilla-central:dom/base/MutationObservers.cpp:bbf2aac9fc58ff26d969c05d027507b4b03d145d|152|0x1f
0|4|libxul.so|mozilla::dom::Element::SetAttr(int, nsAtom*, nsAtom*, nsTSubstring<char16_t> const&, nsIPrincipal*, bool)|hg:hg.mozilla.org/mozilla-central:dom/base/Element.cpp:bbf2aac9fc58ff26d969c05d027507b4b03d145d|2205|0x11
0|5|libxul.so|mozilla::dom::Element::SetTabIndex(int, mozilla::ErrorResult&)|hg:hg.mozilla.org/mozilla-central:dom/base/Element.cpp:bbf2aac9fc58ff26d969c05d027507b4b03d145d|390|0x23
0|6|libxul.so|mozilla::dom::HTMLElement_Binding::set_tabIndex(JSContext*, JS::Handle<JSObject*>, void*, JSJitSetterCallArgs)|s3:gecko-generated-sources:a13136b08a40e4b69af523439c0e9950130f2d7dd6689c9ee422346e7fd950c690c5eaedf586149fa267c064a41b62949e5c1b3d8927834f1877b056bbfc2a4d/dom/bindings/HTMLElementBinding.cpp:|8924|0xb
0|7|libxul.so|bool mozilla::dom::binding_detail::GenericSetter<mozilla::dom::binding_detail::NormalThisPolicy>(JSContext*, unsigned int, JS::Value*)|hg:hg.mozilla.org/mozilla-central:dom/bindings/BindingUtils.cpp:bbf2aac9fc58ff26d969c05d027507b4b03d145d|3167|0x16
0|8|libxul.so|CallJSNative(JSContext*, bool (*)(JSContext*, unsigned int, JS::Value*), js::CallReason, JS::CallArgs const&)|hg:hg.mozilla.org/mozilla-central:js/src/vm/Interpreter.cpp:bbf2aac9fc58ff26d969c05d027507b4b03d145d|486|0x12
0|9|libxul.so|js::InternalCallOrConstruct(JSContext*, JS::CallArgs const&, js::MaybeConstruct, js::CallReason)|hg:hg.mozilla.org/mozilla-central:js/src/vm/Interpreter.cpp:bbf2aac9fc58ff26d969c05d027507b4b03d145d|578|0xe
0|10|libxul.so|InternalCall(JSContext*, js::AnyInvokeArgs const&, js::CallReason)|hg:hg.mozilla.org/mozilla-central:js/src/vm/Interpreter.cpp:bbf2aac9fc58ff26d969c05d027507b4b03d145d|641|0x10
0|11|libxul.so|js::CallSetter(JSContext*, JS::Handle<JS::Value>, JS::Handle<JS::Value>, JS::Handle<JS::Value>)|hg:hg.mozilla.org/mozilla-central:js/src/vm/Interpreter.cpp:bbf2aac9fc58ff26d969c05d027507b4b03d145d|796|0x2b
0|12|libxul.so|SetExistingProperty(JSContext*, JS::Handle<JS::PropertyKey>, JS::Handle<JS::Value>, JS::Handle<JS::Value>, JS::Handle<js::NativeObject*>, JS::Handle<JS::PropertyResult>, JS::ObjectOpResult&)|hg:hg.mozilla.org/mozilla-central:js/src/vm/NativeObject.cpp:bbf2aac9fc58ff26d969c05d027507b4b03d145d|2809|0x15
0|13|libxul.so|bool js::NativeSetProperty<(js::QualifiedBool)1>(JSContext*, JS::Handle<js::NativeObject*>, JS::Handle<JS::PropertyKey>, JS::Handle<JS::Value>, JS::Handle<JS::Value>, JS::ObjectOpResult&)|hg:hg.mozilla.org/mozilla-central:js/src/vm/NativeObject.cpp:bbf2aac9fc58ff26d969c05d027507b4b03d145d|2838|0x27
0|14|libxul.so|Interpret(JSContext*, js::RunState&)|hg:hg.mozilla.org/mozilla-central:js/src/vm/Interpreter.cpp:bbf2aac9fc58ff26d969c05d027507b4b03d145d|3059|0x4c
0|15|libxul.so|js::RunScript(JSContext*, js::RunState&)|hg:hg.mozilla.org/mozilla-central:js/src/vm/Interpreter.cpp:bbf2aac9fc58ff26d969c05d027507b4b03d145d|458|0xb
0|16|libxul.so|js::InternalCallOrConstruct(JSContext*, JS::CallArgs const&, js::MaybeConstruct, js::CallReason)|hg:hg.mozilla.org/mozilla-central:js/src/vm/Interpreter.cpp:bbf2aac9fc58ff26d969c05d027507b4b03d145d|613|0x8
0|17|libxul.so|InternalCall(JSContext*, js::AnyInvokeArgs const&, js::CallReason)|hg:hg.mozilla.org/mozilla-central:js/src/vm/Interpreter.cpp:bbf2aac9fc58ff26d969c05d027507b4b03d145d|641|0x10
0|18|libxul.so|<name omitted>|hg:hg.mozilla.org/mozilla-central:js/src/vm/Interpreter.cpp:bbf2aac9fc58ff26d969c05d027507b4b03d145d|658|0xb
0|19|libxul.so|JS::Call(JSContext*, JS::Handle<JS::Value>, JS::Handle<JS::Value>, JS::HandleValueArray const&, JS::MutableHandle<JS::Value>)|hg:hg.mozilla.org/mozilla-central:js/src/jsapi.cpp:bbf2aac9fc58ff26d969c05d027507b4b03d145d|2842|0x23
0|20|libxul.so|mozilla::dom::EventHandlerNonNull::Call(mozilla::dom::BindingCallContext&, JS::Handle<JS::Value>, mozilla::dom::Event&, JS::MutableHandle<JS::Value>, mozilla::ErrorResult&)|s3:gecko-generated-sources:5ceb4fd1d8dc61bfa9cb634c1ccbea88477929f8e3cd832f14dbaaa72fb11378c7536241ae3f9b1a6d2506d829d115fe64e0fdcf3301157cfcf64f24a4f984df/dom/bindings/EventHandlerBinding.cpp:|276|0xb
0|21|libxul.so|void mozilla::dom::EventHandlerNonNull::Call<nsCOMPtr<mozilla::dom::EventTarget> >(nsCOMPtr<mozilla::dom::EventTarget> const&, mozilla::dom::Event&, JS::MutableHandle<JS::Value>, mozilla::ErrorResult&, char const*, mozilla::dom::CallbackObject::ExceptionHandling, JS::Realm*)|s3:gecko-generated-sources:5abc72777d30ad0ea7b8b3e1392cd7961bd73b8cd08e5ab209f3b42251def563ee9c9a7cea98a24d0fa9d867edfc0c0297c165b0d167458ac5a2af4b7a0caebe/dist/include/mozilla/dom/EventHandlerBinding.h:|367|0x28
0|22|libxul.so|mozilla::JSEventHandler::HandleEvent(mozilla::dom::Event*)|hg:hg.mozilla.org/mozilla-central:dom/events/JSEventHandler.cpp:bbf2aac9fc58ff26d969c05d027507b4b03d145d|201|0x2e
0|23|libxul.so|mozilla::EventListenerManager::HandleEventSubType(mozilla::EventListenerManager::Listener*, mozilla::dom::Event*, mozilla::dom::EventTarget*)|hg:hg.mozilla.org/mozilla-central:dom/events/EventListenerManager.cpp:bbf2aac9fc58ff26d969c05d027507b4b03d145d|1088|0xc
0|24|libxul.so|mozilla::EventListenerManager::HandleEventInternal(nsPresContext*, mozilla::WidgetEvent*, mozilla::dom::Event**, mozilla::dom::EventTarget*, nsEventStatus*, bool)|hg:hg.mozilla.org/mozilla-central:dom/events/EventListenerManager.cpp:bbf2aac9fc58ff26d969c05d027507b4b03d145d|1280|0x16
0|25|libxul.so|mozilla::EventTargetChainItem::HandleEvent(mozilla::EventChainPostVisitor&, mozilla::ELMCreationDetector&)|hg:hg.mozilla.org/mozilla-central:dom/events/EventDispatcher.cpp:bbf2aac9fc58ff26d969c05d027507b4b03d145d|356|0xb
0|26|libxul.so|mozilla::EventTargetChainItem::HandleEventTargetChain(nsTArray<mozilla::EventTargetChainItem>&, mozilla::EventChainPostVisitor&, mozilla::EventDispatchingCallback*, mozilla::ELMCreationDetector&)|hg:hg.mozilla.org/mozilla-central:dom/events/EventDispatcher.cpp:bbf2aac9fc58ff26d969c05d027507b4b03d145d|558|0x19
0|27|libxul.so|mozilla::EventDispatcher::Dispatch(nsISupports*, nsPresContext*, mozilla::WidgetEvent*, mozilla::dom::Event*, nsEventStatus*, mozilla::EventDispatchingCallback*, nsTArray<mozilla::dom::EventTarget*>*)|hg:hg.mozilla.org/mozilla-central:dom/events/EventDispatcher.cpp:bbf2aac9fc58ff26d969c05d027507b4b03d145d|1055|0x5
0|28|libxul.so|nsDocumentViewer::LoadComplete(nsresult)|hg:hg.mozilla.org/mozilla-central:layout/base/nsDocumentViewer.cpp:bbf2aac9fc58ff26d969c05d027507b4b03d145d|1148|0x1c
0|29|libxul.so|nsDocShell::EndPageLoad(nsIWebProgress*, nsIChannel*, nsresult)|hg:hg.mozilla.org/mozilla-central:docshell/base/nsDocShell.cpp:bbf2aac9fc58ff26d969c05d027507b4b03d145d|5799|0x18
0|30|libxul.so|nsDocShell::OnStateChange(nsIWebProgress*, nsIRequest*, unsigned int, nsresult)|hg:hg.mozilla.org/mozilla-central:docshell/base/nsDocShell.cpp:bbf2aac9fc58ff26d969c05d027507b4b03d145d|5541|0xb
0|31|libxul.so|non-virtual thunk to nsDocShell::OnStateChange(nsIWebProgress*, nsIRequest*, unsigned int, nsresult)|hg:hg.mozilla.org/mozilla-central:docshell/base/nsDocShell.cpp:bbf2aac9fc58ff26d969c05d027507b4b03d145d|0|0x10
0|32|libxul.so|nsDocLoader::DoFireOnStateChange(nsIWebProgress*, nsIRequest*, int&, nsresult)|hg:hg.mozilla.org/mozilla-central:uriloader/base/nsDocLoader.cpp:bbf2aac9fc58ff26d969c05d027507b4b03d145d|1377|0x2b
0|33|libxul.so|nsDocLoader::doStopDocumentLoad(nsIRequest*, nsresult)|hg:hg.mozilla.org/mozilla-central:uriloader/base/nsDocLoader.cpp:bbf2aac9fc58ff26d969c05d027507b4b03d145d|937|0x28
0|34|libxul.so|nsDocLoader::DocLoaderIsEmpty(bool, mozilla::Maybe<nsresult> const&)|hg:hg.mozilla.org/mozilla-central:uriloader/base/nsDocLoader.cpp:bbf2aac9fc58ff26d969c05d027507b4b03d145d|757|0xe
0|35|libxul.so|nsDocLoader::OnStopRequest(nsIRequest*, nsresult)|hg:hg.mozilla.org/mozilla-central:uriloader/base/nsDocLoader.cpp:bbf2aac9fc58ff26d969c05d027507b4b03d145d|640|0x12
0|36|libxul.so|non-virtual thunk to nsDocLoader::OnStopRequest(nsIRequest*, nsresult)|hg:hg.mozilla.org/mozilla-central:uriloader/base/nsDocLoader.cpp:bbf2aac9fc58ff26d969c05d027507b4b03d145d|0|0xd
0|37|libxul.so|mozilla::net::nsLoadGroup::NotifyRemovalObservers(nsIRequest*, nsresult)|hg:hg.mozilla.org/mozilla-central:netwerk/base/nsLoadGroup.cpp:bbf2aac9fc58ff26d969c05d027507b4b03d145d|615|0x14
0|38|libxul.so|mozilla::net::nsLoadGroup::RemoveRequest(nsIRequest*, nsISupports*, nsresult)|hg:hg.mozilla.org/mozilla-central:netwerk/base/nsLoadGroup.cpp:bbf2aac9fc58ff26d969c05d027507b4b03d145d|522|0xe
0|39|libxul.so|imgRequestProxy::RemoveFromLoadGroup()|hg:hg.mozilla.org/mozilla-central:image/imgRequestProxy.cpp:bbf2aac9fc58ff26d969c05d027507b4b03d145d|383|0x2d
0|40|libxul.so|imgRequestProxy::OnLoadComplete(bool)|hg:hg.mozilla.org/mozilla-central:image/imgRequestProxy.cpp:bbf2aac9fc58ff26d969c05d027507b4b03d145d|1038|0x8
0|41|libxul.so|void mozilla::image::ImageObserverNotifier<mozilla::image::ObserverTable const*>::operator()<void mozilla::image::SyncNotifyInternal<mozilla::image::ObserverTable const*>(mozilla::image::ObserverTable const* const&, bool, unsigned int, mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits> const&)::{lambda(mozilla::image::IProgressObserver*)#7}>(void mozilla::image::SyncNotifyInternal<mozilla::image::ObserverTable const*>(mozilla::image::ObserverTable const* const&, bool, unsigned int, mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits> const&)::{lambda(mozilla::image::IProgressObserver*)#7})|hg:hg.mozilla.org/mozilla-central:image/ProgressTracker.cpp:bbf2aac9fc58ff26d969c05d027507b4b03d145d|351|0x18
0|42|libxul.so|void mozilla::image::SyncNotifyInternal<mozilla::image::ObserverTable const*>(mozilla::image::ObserverTable const* const&, bool, unsigned int, mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits> const&)|hg:hg.mozilla.org/mozilla-central:image/ProgressTracker.cpp:bbf2aac9fc58ff26d969c05d027507b4b03d145d|350|0x8
0|43|libxul.so|mozilla::image::ProgressTracker::SyncNotifyProgress(unsigned int, mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits> const&)|hg:hg.mozilla.org/mozilla-central:image/ProgressTracker.cpp:bbf2aac9fc58ff26d969c05d027507b4b03d145d|368|0x5c
0|44|libxul.so|mozilla::image::RasterImage::NotifyProgress(unsigned int, mozilla::gfx::IntRectTyped<mozilla::UnorientedPixel> const&, mozilla::Maybe<unsigned int> const&, mozilla::image::DecoderFlags, mozilla::image::SurfaceFlags)|hg:hg.mozilla.org/mozilla-central:image/RasterImage.cpp:bbf2aac9fc58ff26d969c05d027507b4b03d145d|1692|0xb
0|45|libxul.so|mozilla::image::RasterImage::NotifyForLoadEvent(unsigned int)|hg:hg.mozilla.org/mozilla-central:image/RasterImage.cpp:bbf2aac9fc58ff26d969c05d027507b4b03d145d|986|0x26
0|46|libxul.so|mozilla::image::RasterImage::OnImageDataComplete(nsIRequest*, nsISupports*, nsresult, bool)|hg:hg.mozilla.org/mozilla-central:image/RasterImage.cpp:bbf2aac9fc58ff26d969c05d027507b4b03d145d|969|0xb
0|47|libxul.so|imgRequest::OnStopRequest(nsIRequest*, nsresult)|hg:hg.mozilla.org/mozilla-central:image/imgRequest.cpp:bbf2aac9fc58ff26d969c05d027507b4b03d145d|788|0x3a
0|48|libxul.so|nsJARChannel::OnStopRequest(nsIRequest*, nsresult)|hg:hg.mozilla.org/mozilla-central:modules/libjar/nsJARChannel.cpp:bbf2aac9fc58ff26d969c05d027507b4b03d145d|1034|0x17
0|49|libxul.so|non-virtual thunk to nsJARChannel::OnStopRequest(nsIRequest*, nsresult)|hg:hg.mozilla.org/mozilla-central:modules/libjar/nsJARChannel.cpp:bbf2aac9fc58ff26d969c05d027507b4b03d145d|0|0xd
0|50|libxul.so|nsInputStreamPump::OnStateStop()|hg:hg.mozilla.org/mozilla-central:netwerk/base/nsInputStreamPump.cpp:bbf2aac9fc58ff26d969c05d027507b4b03d145d|686|0x19
0|51|libxul.so|nsInputStreamPump::OnInputStreamReady(nsIAsyncInputStream*)|hg:hg.mozilla.org/mozilla-central:netwerk/base/nsInputStreamPump.cpp:bbf2aac9fc58ff26d969c05d027507b4b03d145d|434|0x8
0|52|libxul.so|non-virtual thunk to nsInputStreamPump::OnInputStreamReady(nsIAsyncInputStream*)|hg:hg.mozilla.org/mozilla-central:netwerk/base/nsInputStreamPump.cpp:bbf2aac9fc58ff26d969c05d027507b4b03d145d|0|0xd
0|53|libxul.so|nsInputStreamReadyEvent::Run()|hg:hg.mozilla.org/mozilla-central:xpcom/io/nsStreamUtils.cpp:bbf2aac9fc58ff26d969c05d027507b4b03d145d|94|0x15
0|54|libxul.so|nsThread::ProcessNextEvent(bool, bool*)|hg:hg.mozilla.org/mozilla-central:xpcom/threads/nsThread.cpp:bbf2aac9fc58ff26d969c05d027507b4b03d145d|1236|0xe
0|55|libxul.so|NS_ProcessNextEvent(nsIThread*, bool)|hg:hg.mozilla.org/mozilla-central:xpcom/threads/nsThreadUtils.cpp:bbf2aac9fc58ff26d969c05d027507b4b03d145d|501|0xc
0|56|libxul.so|mozilla::ipc::MessagePump::Run(base::MessagePump::Delegate*)|hg:hg.mozilla.org/mozilla-central:ipc/glue/MessagePump.cpp:bbf2aac9fc58ff26d969c05d027507b4b03d145d|87|0x7
0|57|libxul.so|MessageLoop::RunInternal()|hg:hg.mozilla.org/mozilla-central:ipc/chromium/src/base/message_loop.cc:bbf2aac9fc58ff26d969c05d027507b4b03d145d|315|0x17
0|58|libxul.so|MessageLoop::Run()|hg:hg.mozilla.org/mozilla-central:ipc/chromium/src/base/message_loop.cc:bbf2aac9fc58ff26d969c05d027507b4b03d145d|290|0x8
0|59|libxul.so|nsBaseAppShell::Run()|hg:hg.mozilla.org/mozilla-central:widget/nsBaseAppShell.cpp:bbf2aac9fc58ff26d969c05d027507b4b03d145d|137|0xd
0|60|libxul.so|XRE_RunAppShell()|hg:hg.mozilla.org/mozilla-central:toolkit/xre/nsEmbedFunctions.cpp:bbf2aac9fc58ff26d969c05d027507b4b03d145d|913|0xe
0|61|libxul.so|mozilla::ipc::MessagePumpForChildProcess::Run(base::MessagePump::Delegate*)|hg:hg.mozilla.org/mozilla-central:ipc/glue/MessagePump.cpp:bbf2aac9fc58ff26d969c05d027507b4b03d145d|237|0x5
0|62|libxul.so|MessageLoop::RunInternal()|hg:hg.mozilla.org/mozilla-central:ipc/chromium/src/base/message_loop.cc:bbf2aac9fc58ff26d969c05d027507b4b03d145d|315|0x17
0|63|libxul.so|MessageLoop::Run()|hg:hg.mozilla.org/mozilla-central:ipc/chromium/src/base/message_loop.cc:bbf2aac9fc58ff26d969c05d027507b4b03d145d|290|0x8
0|64|libxul.so|XRE_InitChildProcess(int, char**, XREChildData const*)|hg:hg.mozilla.org/mozilla-central:toolkit/xre/nsEmbedFunctions.cpp:bbf2aac9fc58ff26d969c05d027507b4b03d145d|744|0x5
0|65|firefox-bin|content_process_main(mozilla::Bootstrap*, int, char**)|hg:hg.mozilla.org/mozilla-central:ipc/contentproc/plugin-container.cpp:bbf2aac9fc58ff26d969c05d027507b4b03d145d|56|0x11
0|66|firefox-bin|main|hg:hg.mozilla.org/mozilla-central:browser/app/nsBrowserApp.cpp:bbf2aac9fc58ff26d969c05d027507b4b03d145d|303|0x20
Flags: in-testsuite?

A Pernosco session is available here: https://pernos.co/debug/lnJ9mP5WyPA6Q5F6JQOmtQ/index.html

Severity: -- → S3

I'm getting this crash reliably in unoptimised debugging builds on Linux. STR:

  1. Build Firefox with --disable-optimize and --enable-debug in your mozconfig
  2. run ./mach run
  3. Browser window appears,
  4. Click in the address bar.
  5. Start trying to type about:memory The browser will crash part-way through entering this.

When I check with the debugger

(rr) print frame->AccessibleType()
$2 = mozilla::a11y::eNoType

Maybe that's useful. but I don't know what it should be so I don't know if that's okay and this assert is just overzealous.

It's curious that it doesn't crash with --enable-optimize so perhaps a timing thing?

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: