Comments (4)
After commenting all scriptloader calls in the extension started to get the following crash:
[firefox/index.js][debug] Firefox stderr: Assertion failure: definition (Callback should define the definition of type.), at /Users/anatal/projects/mozilla/gecko/dom/base/CustomElementRegistry.cpp:447
[firefox/index.js][debug] Firefox stderr: #01: mozilla::dom::CustomElementRegistry::RunCustomElementCreationCallback::Run()[/Users/anatal/projects/mozilla/obj-x86_64-apple-darwin21.2.0/toolkit/library/build/XUL +0x190bd36]
[firefox/index.js][debug] Firefox stderr: #02: nsContentUtils::AddScriptRunner(already_AddRefed<nsIRunnable>)[/Users/anatal/projects/mozilla/obj-x86_64-apple-darwin21.2.0/toolkit/library/build/XUL +0x182c3a3]
[firefox/index.js][debug] Firefox stderr: #03: mozilla::dom::CustomElementRegistry::LookupCustomElementDefinition(nsAtom*, int, nsAtom*)[/Users/anatal/projects/mozilla/obj-x86_64-apple-darwin21.2.0/toolkit/library/build/XUL +0x190cd40]
[firefox/index.js][debug] Firefox stderr: #04: nsContentUtils::LookupCustomElementDefinition(mozilla::dom::Document*, nsAtom*, unsigned int, nsAtom*)[/Users/anatal/projects/mozilla/obj-x86_64-apple-darwin21.2.0/toolkit/library/build/XUL +0x183d443]
[firefox/index.js][debug] Firefox stderr: #05: nsContentUtils::NewXULOrHTMLElement(mozilla::dom::Element**, mozilla::dom::NodeInfo*, mozilla::dom::FromParser, nsAtom*, mozilla::dom::CustomElementDefinition*)[/Users/anatal/projects/mozilla/obj-x86_64-apple-darwin21.2.0/toolkit/library/build/XUL +0x183d9c0]
[firefox/index.js][debug] Firefox stderr: #06: NS_NewXULElement(mozilla::dom::Element**, already_AddRefed<mozilla::dom::NodeInfo>&&, mozilla::dom::FromParser, nsAtom*, mozilla::dom::CustomElementDefinition*)[/Users/anatal/projects/mozilla/obj-x86_64-apple-darwin21.2.0/toolkit/library/build/XUL +0x40b663c]
[firefox/index.js][debug] Firefox stderr: #07: NS_NewElement(mozilla::dom::Element**, already_AddRefed<mozilla::dom::NodeInfo>&&, mozilla::dom::FromParser, nsTSubstring<char16_t> const*)[/Users/anatal/projects/mozilla/obj-x86_64-apple-darwin21.2.0/toolkit/library/build/XUL +0x1b60b3d]
[firefox/index.js][debug] Firefox stderr: #08: mozilla::dom::Document::CreateElem(nsTSubstring<char16_t> const&, nsAtom*, int, nsTSubstring<char16_t> const*)[/Users/anatal/projects/mozilla/obj-x86_64-apple-darwin21.2.0/toolkit/library/build/XUL +0x19a06b6]
[firefox/index.js][debug] Firefox stderr: #09: mozilla::dom::Document::CreateXULElement(nsTSubstring<char16_t> const&, mozilla::dom::ElementCreationOptionsOrString const&, mozilla::ErrorResult&)[/Users/anatal/projects/mozilla/obj-x86_64-apple-darwin21.2.0/toolkit/library/build/XUL +0x19a0b3b]
[firefox/index.js][debug] Firefox stderr: #10: mozilla::dom::Document_Binding::createXULElement(JSContext*, JS::Handle<JSObject*>, void*, JSJitMethodCallArgs const&)[/Users/anatal/projects/mozilla/obj-x86_64-apple-darwin21.2.0/toolkit/library/build/XUL +0x2a6babf]
[firefox/index.js][debug] Firefox stderr: #11: bool mozilla::dom::binding_detail::GenericMethod<mozilla::dom::binding_detail::NormalThisPolicy, mozilla::dom::binding_detail::ThrowExceptions>(JSContext*, unsigned int, JS::Value*)[/Users/anatal/projects/mozilla/obj-x86_64-apple-darwin21.2.0/toolkit/library/build/XUL +0x2d8c38a]
[firefox/index.js][debug] Firefox stderr: #12: CallJSNative(JSContext*, bool (*)(JSContext*, unsigned int, JS::Value*), js::CallReason, JS::CallArgs const&)[/Users/anatal/projects/mozilla/obj-x86_64-apple-darwin21.2.0/toolkit/library/build/XUL +0x60315db]
[firefox/index.js][debug] Firefox stderr: #13: js::InternalCallOrConstruct(JSContext*, JS::CallArgs const&, js::MaybeConstruct, js::CallReason)[/Users/anatal/projects/mozilla/obj-x86_64-apple-darwin21.2.0/toolkit/library/build/XUL +0x6030d7e]
[firefox/index.js][debug] Firefox stderr: #14: InternalCall(JSContext*, js::AnyInvokeArgs const&, js::CallReason)[/Users/anatal/projects/mozilla/obj-x86_64-apple-darwin21.2.0/toolkit/library/build/XUL +0x603210d]
[firefox/index.js][debug] Firefox stderr: #15: Interpret(JSContext*, js::RunState&)[/Users/anatal/projects/mozilla/obj-x86_64-apple-darwin21.2.0/toolkit/library/build/XUL +0x6027109]
[firefox/index.js][debug] Firefox stderr: #16: js::RunScript(JSContext*, js::RunState&)[/Users/anatal/projects/mozilla/obj-x86_64-apple-darwin21.2.0/toolkit/library/build/XUL +0x601d8a8]
[firefox/index.js][debug] Firefox stderr: #17: js::InternalCallOrConstruct(JSContext*, JS::CallArgs const&, js::MaybeConstruct, js::CallReason)[/Users/anatal/projects/mozilla/obj-x86_64-apple-darwin21.2.0/toolkit/library/build/XUL +0x6030cb1]
[firefox/index.js][debug] Firefox stderr: #18: InternalCall(JSContext*, js::AnyInvokeArgs const&, js::CallReason)[/Users/anatal/projects/mozilla/obj-x86_64-apple-darwin21.2.0/toolkit/library/build/XUL +0x603210d]
[firefox/index.js][debug] Firefox stderr: #19: js::Call(JSContext*, JS::Handle<JS::Value>, JS::Handle<JS::Value>, js::AnyInvokeArgs const&, JS::MutableHandle<JS::Value>, js::CallReason)[/Users/anatal/projects/mozilla/obj-x86_64-apple-darwin21.2.0/toolkit/library/build/XUL +0x6032300]
[firefox/index.js][debug] Firefox stderr: #20: js::SpreadCallOperation(JSContext*, JS::Handle<JSScript*>, unsigned char*, JS::Handle<JS::Value>, JS::Handle<JS::Value>, JS::Handle<JS::Value>, JS::Handle<JS::Value>, JS::MutableHandle<JS::Value>)[/Users/anatal/projects/mozilla/obj-x86_64-apple-darwin21.2.0/toolkit/library/build/XUL +0x603c6df]
[firefox/index.js][debug] Firefox stderr: #21: Interpret(JSContext*, js::RunState&)[/Users/anatal/projects/mozilla/obj-x86_64-apple-darwin21.2.0/toolkit/library/build/XUL +0x6026b91]
[firefox/index.js][debug] Firefox stderr: #22: js::RunScript(JSContext*, js::RunState&)[/Users/anatal/projects/mozilla/obj-x86_64-apple-darwin21.2.0/toolkit/library/build/XUL +0x601d8a8]
[firefox/index.js][debug] Firefox stderr: #23: js::InternalCallOrConstruct(JSContext*, JS::CallArgs const&, js::MaybeConstruct, js::CallReason)[/Users/anatal/projects/mozilla/obj-x86_64-apple-darwin21.2.0/toolkit/library/build/XUL +0x6030cb1]
[firefox/index.js][debug] Firefox stderr: #24: InternalCall(JSContext*, js::AnyInvokeArgs const&, js::CallReason)[/Users/anatal/projects/mozilla/obj-x86_64-apple-darwin21.2.0/toolkit/library/build/XUL +0x603210d]
[firefox/index.js][debug] Firefox stderr: #25: js::Call(JSContext*, JS::Handle<JS::Value>, JS::Handle<JS::Value>, js::AnyInvokeArgs const&, JS::MutableHandle<JS::Value>, js::CallReason)[/Users/anatal/projects/mozilla/obj-x86_64-apple-darwin21.2.0/toolkit/library/build/XUL +0x6032300]
[firefox/index.js][debug] Firefox stderr: #26: js::CallSelfHostedFunction(JSContext*, JS::Handle<js::PropertyName*>, JS::Handle<JS::Value>, js::AnyInvokeArgs const&, JS::MutableHandle<JS::Value>)[/Users/anatal/projects/mozilla/obj-x86_64-apple-darwin21.2.0/toolkit/library/build/XUL +0x63de570]
[firefox/index.js][debug] Firefox stderr: #27: js::jit::InterpretResume(JSContext*, JS::Handle<JSObject*>, JS::Value*, JS::MutableHandle<JS::Value>)[/Users/anatal/projects/mozilla/obj-x86_64-apple-darwin21.2.0/toolkit/library/build/XUL +0x6a75a93]
from firefox-translations.
This happens only when running both the extension on debug mode via web-ext
using also gecko-dev
in debug mode. It does not happen when gecko-dev
was built for release.
from firefox-translations.
@andrenatal As we discussed over slack:
- about the assertion failure in #20 (comment):
- I see that the assertion failure in the issue description is triggered when we are checking the loading principal of the shared worker, it would be interesting to check which one of those condition is not the expected one, there are a bunch there in || and so I'm curious about which one of them is triggering the assertion failure
- about the assertion failure in #20 (comment): it would be interesting to attach a debugger and
call DumpJSStack()
to get a JS stack to get a picture of the JS code that is triggering it
from firefox-translations.
Hi @rpl , we won't pursue the embedded browser integration for now. Thanks for helping out, I'll keep you posted if that changes.
from firefox-translations.
Related Issues (20)
- User preferences are not respected HOT 1
- A good model to feed English to Japanese translation to HOT 7
- Wrong translation (repetition) HOT 1
- Suggestion: Ability to hide toolbar after translation is completed HOT 1
- Japanese language support HOT 1
- Error when highlighting in red is enabled HOT 1
- [Language Request] Add Korean Translation HOT 1
- [Language Request] Add Romanian Translation HOT 1
- Video is not accessible, actual documentation would be better HOT 1
- "An error occurred while loading the translation engine" with Firefox and Linux HOT 2
- Request: set <html lang="..."> attribute HOT 1
- REQUEST: Add an option to restore the Translation Banner (if user has accidentally clicked "Never offer translations") HOT 3
- Add ability to choose destination language other than browser language HOT 3
- Use dictionary lookup for single words HOT 1
- Translate button is not visible in almost all Light themes HOT 8
- Typos in translation russian->english HOT 6
- Please don't file issues, bugs and feature requests are now reported on Bugzilla (https://bugzilla.mozilla.org/) and language requests on Mozilla Connect (https://connect.mozilla.org/) HOT 2
- Japanese language translation support HOT 1
- From external webextension HOT 3
- Different behaviours between Firefox 115 esr w/ translation extension and Firefox 117 beta with support built-in HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from firefox-translations.