Closed Bug 1499954 Opened 6 years ago Closed 6 years ago

Crash when running rejects_if_not_active.https.html from WPT

Categories

(Core :: DOM: Web Payments, defect, P3)

defect

Tracking

()

RESOLVED DUPLICATE of bug 1497219

People

(Reporter: marcosc, Unassigned)

References

(Blocks 1 open bug, )

Details

We crashing on this test:
https://w3c-test.org/payment-request/rejects_if_not_active.https.html

With the following. I think we need to reject if the window is gone:
 
#01: mozilla::dom::PaymentRequest_Binding::show_promiseWrapper(JSContext*, JS::Handle<JSObject*>, mozilla::dom::PaymentRequest*, JSJitMethodCallArgs const&)[/Users/mcaceres/dev/gecko-cinnabar/obj-ff-dbg/dist/NightlyDebug.app/Contents/MacOS/XUL +0x19f54de]
#02: bool mozilla::dom::binding_detail::GenericMethod<mozilla::dom::binding_detail::NormalThisPolicy, mozilla::dom::binding_detail::ConvertExceptionsToPromises>(JSContext*, unsigned int, JS::Value*)[/Users/mcaceres/dev/gecko-cinnabar/obj-ff-dbg/dist/NightlyDebug.app/Contents/MacOS/XUL +0x25ade89]
#03: CallJSNative(JSContext*, bool (*)(JSContext*, unsigned int, JS::Value*), JS::CallArgs const&)[/Users/mcaceres/dev/gecko-cinnabar/obj-ff-dbg/dist/NightlyDebug.app/Contents/MacOS/XUL +0x4eb0c19]
#04: js::InternalCallOrConstruct(JSContext*, JS::CallArgs const&, js::MaybeConstruct)[/Users/mcaceres/dev/gecko-cinnabar/obj-ff-dbg/dist/NightlyDebug.app/Contents/MacOS/XUL +0x4eb067a]
#05: js::Call(JSContext*, JS::Handle<JS::Value>, JS::Handle<JS::Value>, js::AnyInvokeArgs const&, JS::MutableHandle<JS::Value>)[/Users/mcaceres/dev/gecko-cinnabar/obj-ff-dbg/dist/NightlyDebug.app/Contents/MacOS/XUL +0x4eb130d]
#06: js::ForwardingProxyHandler::call(JSContext*, JS::Handle<JSObject*>, JS::CallArgs const&) const[/Users/mcaceres/dev/gecko-cinnabar/obj-ff-dbg/dist/NightlyDebug.app/Contents/MacOS/XUL +0x54aab8a]
#07: js::CrossCompartmentWrapper::call(JSContext*, JS::Handle<JSObject*>, JS::CallArgs const&) const[/Users/mcaceres/dev/gecko-cinnabar/obj-ff-dbg/dist/NightlyDebug.app/Contents/MacOS/XUL +0x548c3c3]
#08: js::Proxy::call(JSContext*, JS::Handle<JSObject*>, JS::CallArgs const&)[/Users/mcaceres/dev/gecko-cinnabar/obj-ff-dbg/dist/NightlyDebug.app/Contents/MacOS/XUL +0x549ce19]
#09: js::InternalCallOrConstruct(JSContext*, JS::CallArgs const&, js::MaybeConstruct)[/Users/mcaceres/dev/gecko-cinnabar/obj-ff-dbg/dist/NightlyDebug.app/Contents/MacOS/XUL +0x4eb087b]
#10: Interpret(JSContext*, js::RunState&)[/Users/mcaceres/dev/gecko-cinnabar/obj-ff-dbg/dist/NightlyDebug.app/Contents/MacOS/XUL +0x4ea77f1]
#11: js::RunScript(JSContext*, js::RunState&)[/Users/mcaceres/dev/gecko-cinnabar/obj-ff-dbg/dist/NightlyDebug.app/Contents/MacOS/XUL +0x4e9e580]
#12: js::InternalCallOrConstruct(JSContext*, JS::CallArgs const&, js::MaybeConstruct)[/Users/mcaceres/dev/gecko-cinnabar/obj-ff-dbg/dist/NightlyDebug.app/Contents/MacOS/XUL +0x4eb05fe]
#13: js::Call(JSContext*, JS::Handle<JS::Value>, JS::Handle<JS::Value>, js::AnyInvokeArgs const&, JS::MutableHandle<JS::Value>)[/Users/mcaceres/dev/gecko-cinnabar/obj-ff-dbg/dist/NightlyDebug.app/Contents/MacOS/XUL +0x4eb130d]
#14: js::CallSelfHostedFunction(JSContext*, JS::Handle<js::PropertyName*>, JS::Handle<JS::Value>, js::AnyInvokeArgs const&, JS::MutableHandle<JS::Value>)[/Users/mcaceres/dev/gecko-cinnabar/obj-ff-dbg/dist/NightlyDebug.app/Contents/MacOS/XUL +0x56e6938]
#15: AsyncFunctionResume(JSContext*, JS::Handle<js::PromiseObject*>, JS::Handle<JS::Value>, ResumeKind, JS::Handle<JS::Value>)[/Users/mcaceres/dev/gecko-cinnabar/obj-ff-dbg/dist/NightlyDebug.app/Contents/MacOS/XUL +0x54e7ed7]
#16: PromiseReactionJob(JSContext*, unsigned int, JS::Value*)[/Users/mcaceres/dev/gecko-cinnabar/obj-ff-dbg/dist/NightlyDebug.app/Contents/MacOS/XUL +0x4f4ea8a]
#17: CallJSNative(JSContext*, bool (*)(JSContext*, unsigned int, JS::Value*), JS::CallArgs const&)[/Users/mcaceres/dev/gecko-cinnabar/obj-ff-dbg/dist/NightlyDebug.app/Contents/MacOS/XUL +0x4eb0c19]
#18: js::InternalCallOrConstruct(JSContext*, JS::CallArgs const&, js::MaybeConstruct)[/Users/mcaceres/dev/gecko-cinnabar/obj-ff-dbg/dist/NightlyDebug.app/Contents/MacOS/XUL +0x4eb067a]
#19: js::Call(JSContext*, JS::Handle<JS::Value>, JS::Handle<JS::Value>, js::AnyInvokeArgs const&, JS::MutableHandle<JS::Value>)[/Users/mcaceres/dev/gecko-cinnabar/obj-ff-dbg/dist/NightlyDebug.app/Contents/MacOS/XUL +0x4eb130d]
#20: JS::Call(JSContext*, JS::Handle<JS::Value>, JS::Handle<JS::Value>, JS::HandleValueArray const&, JS::MutableHandle<JS::Value>)[/Users/mcaceres/dev/gecko-cinnabar/obj-ff-dbg/dist/NightlyDebug.app/Contents/MacOS/XUL +0x5423e3c]
#21: mozilla::dom::PromiseJobCallback::Call(JSContext*, JS::Handle<JS::Value>, mozilla::ErrorResult&)[/Users/mcaceres/dev/gecko-cinnabar/obj-ff-dbg/dist/NightlyDebug.app/Contents/MacOS/XUL +0x1a914a8]
#22: mozilla::dom::PromiseJobCallback::Call(char const*)[/Users/mcaceres/dev/gecko-cinnabar/obj-ff-dbg/dist/NightlyDebug.app/Contents/MacOS/XUL +0x5be0c]
#23: mozilla::PromiseJobRunnable::Run(mozilla::AutoSlowOperation&)[/Users/mcaceres/dev/gecko-cinnabar/obj-ff-dbg/dist/NightlyDebug.app/Contents/MacOS/XUL +0x5b069]
#24: mozilla::CycleCollectedJSContext::PerformMicroTaskCheckPoint(bool)[/Users/mcaceres/dev/gecko-cinnabar/obj-ff-dbg/dist/NightlyDebug.app/Contents/MacOS/XUL +0x4c676]
#25: mozilla::EventListenerManager::HandleEventSubType(mozilla::EventListenerManager::Listener*, mozilla::dom::Event*, mozilla::dom::EventTarget*)[/Users/mcaceres/dev/gecko-cinnabar/obj-ff-dbg/dist/NightlyDebug.app/Contents/MacOS/XUL +0x28cc701]
#26: mozilla::EventListenerManager::HandleEventInternal(nsPresContext*, mozilla::WidgetEvent*, mozilla::dom::Event**, mozilla::dom::EventTarget*, nsEventStatus*, bool)[/Users/mcaceres/dev/gecko-cinnabar/obj-ff-dbg/dist/NightlyDebug.app/Contents/MacOS/XUL +0x28cd03c]
#27: mozilla::EventTargetChainItem::HandleEvent(mozilla::EventChainPostVisitor&, mozilla::ELMCreationDetector&)[/Users/mcaceres/dev/gecko-cinnabar/obj-ff-dbg/dist/NightlyDebug.app/Contents/MacOS/XUL +0x28c2cc5]
#28: mozilla::EventTargetChainItem::HandleEventTargetChain(nsTArray<mozilla::EventTargetChainItem>&, mozilla::EventChainPostVisitor&, mozilla::EventDispatchingCallback*, mozilla::ELMCreationDetector&)[/Users/mcaceres/dev/gecko-cinnabar/obj-ff-dbg/dist/NightlyDebug.app/Contents/MacOS/XUL +0x28c2368]
#29: mozilla::EventDispatcher::Dispatch(nsISupports*, nsPresContext*, mozilla::WidgetEvent*, mozilla::dom::Event*, nsEventStatus*, mozilla::EventDispatchingCallback*, nsTArray<mozilla::dom::EventTarget*>*)[/Users/mcaceres/dev/gecko-cinnabar/obj-ff-dbg/dist/NightlyDebug.app/Contents/MacOS/XUL +0x28c4e80]
#30: nsGlobalWindowInner::PostHandleEvent(mozilla::EventChainPostVisitor&)[/Users/mcaceres/dev/gecko-cinnabar/obj-ff-dbg/dist/NightlyDebug.app/Contents/MacOS/XUL +0x1457a5d]
#31: mozilla::EventTargetChainItem::HandleEventTargetChain(nsTArray<mozilla::EventTargetChainItem>&, mozilla::EventChainPostVisitor&, mozilla::EventDispatchingCallback*, mozilla::ELMCreationDetector&)[/Users/mcaceres/dev/gecko-cinnabar/obj-ff-dbg/dist/NightlyDebug.app/Contents/MacOS/XUL +0x28c23cf]
#32: mozilla::EventTargetChainItem::HandleEventTargetChain(nsTArray<mozilla::EventTargetChainItem>&, mozilla::EventChainPostVisitor&, mozilla::EventDispatchingCallback*, mozilla::ELMCreationDetector&)[/Users/mcaceres/dev/gecko-cinnabar/obj-ff-dbg/dist/NightlyDebug.app/Contents/MacOS/XUL +0x28c28cd]
#33: mozilla::EventDispatcher::Dispatch(nsISupports*, nsPresContext*, mozilla::WidgetEvent*, mozilla::dom::Event*, nsEventStatus*, mozilla::EventDispatchingCallback*, nsTArray<mozilla::dom::EventTarget*>*)[/Users/mcaceres/dev/gecko-cinnabar/obj-ff-dbg/dist/NightlyDebug.app/Contents/MacOS/XUL +0x28c4e80]
#34: nsDocumentViewer::LoadComplete(nsresult)[/Users/mcaceres/dev/gecko-cinnabar/obj-ff-dbg/dist/NightlyDebug.app/Contents/MacOS/XUL +0x387a51b]
#35: nsDocShell::EndPageLoad(nsIWebProgress*, nsIChannel*, nsresult)[/Users/mcaceres/dev/gecko-cinnabar/obj-ff-dbg/dist/NightlyDebug.app/Contents/MacOS/XUL +0x4881db7]
#36: nsDocShell::OnStateChange(nsIWebProgress*, nsIRequest*, unsigned int, nsresult)[/Users/mcaceres/dev/gecko-cinnabar/obj-ff-dbg/dist/NightlyDebug.app/Contents/MacOS/XUL +0x487f6c5]
#37: non-virtual thunk to nsDocShell::OnStateChange(nsIWebProgress*, nsIRequest*, unsigned int, nsresult)[/Users/mcaceres/dev/gecko-cinnabar/obj-ff-dbg/dist/NightlyDebug.app/Contents/MacOS/XUL +0x4883890]
#38: nsDocLoader::DoFireOnStateChange(nsIWebProgress*, nsIRequest*, int&, nsresult)[/Users/mcaceres/dev/gecko-cinnabar/obj-ff-dbg/dist/NightlyDebug.app/Contents/MacOS/XUL +0xe14a49]
#39: nsDocLoader::doStopDocumentLoad(nsIRequest*, nsresult)[/Users/mcaceres/dev/gecko-cinnabar/obj-ff-dbg/dist/NightlyDebug.app/Contents/MacOS/XUL +0xe142de]
#40: nsDocLoader::DocLoaderIsEmpty(bool)[/Users/mcaceres/dev/gecko-cinnabar/obj-ff-dbg/dist/NightlyDebug.app/Contents/MacOS/XUL +0xe12d42]
#41: nsDocLoader::OnStopRequest(nsIRequest*, nsISupports*, nsresult)[/Users/mcaceres/dev/gecko-cinnabar/obj-ff-dbg/dist/NightlyDebug.app/Contents/MacOS/XUL +0xe13977]
#42: non-virtual thunk to nsDocLoader::OnStopRequest(nsIRequest*, nsISupports*, nsresult)[/Users/mcaceres/dev/gecko-cinnabar/obj-ff-dbg/dist/NightlyDebug.app/Contents/MacOS/XUL +0xe1409d]
#43: mozilla::net::nsLoadGroup::RemoveRequest(nsIRequest*, nsISupports*, nsresult)[/Users/mcaceres/dev/gecko-cinnabar/obj-ff-dbg/dist/NightlyDebug.app/Contents/MacOS/XUL +0x21dd7c]
#44: nsIDocument::DoUnblockOnload()[/Users/mcaceres/dev/gecko-cinnabar/obj-ff-dbg/dist/NightlyDebug.app/Contents/MacOS/XUL +0x15ef87f]
#45: nsIDocument::DispatchContentLoadedEvents()[/Users/mcaceres/dev/gecko-cinnabar/obj-ff-dbg/dist/NightlyDebug.app/Contents/MacOS/XUL +0x15e3114]
#46: mozilla::detail::RunnableMethodImpl<nsIDocument*, void (nsIDocument::*)(), true, (mozilla::RunnableKind)0>::Run()[/Users/mcaceres/dev/gecko-cinnabar/obj-ff-dbg/dist/NightlyDebug.app/Contents/MacOS/XUL +0x16651a7]
#47: mozilla::SchedulerGroup::Runnable::Run()[/Users/mcaceres/dev/gecko-cinnabar/obj-ff-dbg/dist/NightlyDebug.app/Contents/MacOS/XUL +0x10a81a]
#48: nsThread::ProcessNextEvent(bool, bool*)[/Users/mcaceres/dev/gecko-cinnabar/obj-ff-dbg/dist/NightlyDebug.app/Contents/MacOS/XUL +0x12236e]
#49: NS_ProcessNextEvent(nsIThread*, bool)[/Users/mcaceres/dev/gecko-cinnabar/obj-ff-dbg/dist/NightlyDebug.app/Contents/MacOS/XUL +0x1261d7]
#50: mozilla::ipc::MessagePump::Run(base::MessagePump::Delegate*)[/Users/mcaceres/dev/gecko-cinnabar/obj-ff-dbg/dist/NightlyDebug.app/Contents/MacOS/XUL +0x77c6ee]
#51: MessageLoop::Run()[/Users/mcaceres/dev/gecko-cinnabar/obj-ff-dbg/dist/NightlyDebug.app/Contents/MacOS/XUL +0x72d567]
#52: nsBaseAppShell::Run()[/Users/mcaceres/dev/gecko-cinnabar/obj-ff-dbg/dist/NightlyDebug.app/Contents/MacOS/XUL +0x35830a9]
#53: nsAppShell::Run()[/Users/mcaceres/dev/gecko-cinnabar/obj-ff-dbg/dist/NightlyDebug.app/Contents/MacOS/XUL +0x35f3bcf]
#54: XRE_RunAppShell()[/Users/mcaceres/dev/gecko-cinnabar/obj-ff-dbg/dist/NightlyDebug.app/Contents/MacOS/XUL +0x4d31c53]
#55: mozilla::ipc::MessagePumpForChildProcess::Run(base::MessagePump::Delegate*)[/Users/mcaceres/dev/gecko-cinnabar/obj-ff-dbg/dist/NightlyDebug.app/Contents/MacOS/XUL +0x77cf32]
#56: MessageLoop::Run()[/Users/mcaceres/dev/gecko-cinnabar/obj-ff-dbg/dist/NightlyDebug.app/Contents/MacOS/XUL +0x72d567]
#57: XRE_InitChildProcess(int, char**, XREChildData const*)[/Users/mcaceres/dev/gecko-cinnabar/obj-ff-dbg/dist/NightlyDebug.app/Contents/MacOS/XUL +0x4d3177e]
#58: main[/Users/mcaceres/dev/gecko-cinnabar/obj-ff-dbg/dist/NightlyDebug.app/Contents/MacOS/plugin-container.app/Contents/MacOS/plugin-container +0xf39]
Priority: -- → P3
I analyzed the crash, it is the same with bug 1497215.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.