Setting set_intercept_activation() on a JS CategorisedResult causes scope to claim `returned nullptr from activate` and not activate
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
unity-js-scopes |
In Progress
|
Medium
|
Alexandre Abreu |
Bug Description
To test, add CategorisedResu
Scope (your scope) returned nullptr from activate()
Scope (your scope) threw an exception from activate()
As far as I can tell, this is not being thrown by my code; it happens regardless of what I have in the activate() function, or even if I don't have one at all, and no code inside my activate() function is executed. This, in practice, means it's impossible to write a JS scope which allows tapping on a result item to do anything other than show the preview (for example, launching an app).
Related branches
- WebApps: Pending requested
-
Diff: 76 lines (+42/-2)2 files modifiedexamples/simple/simple.js (+23/-2)
src/bindings/src/activation-query.h (+19/-0)
Changed in unity-js-scopes: | |
assignee: | nobody → Alexandre Abreu (abreu-alexandre) |
Changed in unity-js-scopes: | |
importance: | Undecided → Medium |
status: | New → In Progress |
@alex: The documentation doesn’t actually mention ActivationResponse or even that activate() handlers are possible in scope.initialize(). We should fix this too.