On 2017年06月16日 11:22, Andrew Sutherland wrote: > On Thu, Jun 15, 2017, at 09:37 PM, ISHIKAWA,chiaki wrote: >> Interesting. >> But this covers only modal prompts generated by/in JavaScript modules, >> and not C++ code? >> If so, maybe I should re-think my previous error/warning dialog to see >> if the generation can be moved to JavaScript code. >> It was generated in C++ code. > > It will work from C++ (and JS). If you look at the XPCOM bits at the > bottom and the MockFactory it is dependent upon, it provides a JS XPCOM > implementation of nsIPromptService (via XPConnect) that replaces the > "real" implementation that uses UI widgets. The only limitation of the > helper being implemented in JS is that all calls to the interfaces must > be performed on the main thread. However, UI widgets already impose a > main-thread-only restriction, so things should be fine. > > Andrew >
The particular issue I experienced happened at least a couple of years ago, and so I may have missed the details in my problem description. The above gives me an incentive to check if such attentpt show dialog does in fact work for xpcshell test today. TIA _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform