Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JavaScript text input panel is not displayed #181

Closed
danschlet opened this issue Jan 27, 2022 Discussed in #163 · 2 comments
Closed

JavaScript text input panel is not displayed #181

danschlet opened this issue Jan 27, 2022 Discussed in #163 · 2 comments
Assignees
Milestone

Comments

@danschlet
Copy link
Member

Discussed in #163

Originally posted by juliussaputra December 1, 2021
am currently testing the SEB for our basic programming exams.
For the exam we are using a third party IDE (pythonandturtle.com).

Problem: The input prompt window from the IDE is not shown in SEB MAC(3.0) but in windows (SEB 3.3.1) it is working without any problem.
Both case were tested with the same SEB config file on MAC OS Monterey 12.0.1 .

Screenshots from both cases are attached:
SEB_Popup_Windows
SEB_Popup_Mac

For the test, I have tried SEB with the w3schools link as well: https://www.w3schools.com/js/tryit.asp?filename=tryjs_prompt. The result was the same, the prompt window is just not shown and return empty string value as a result.

is there any specific setting for SEB in MAC that allows the input window? or is there any workaround for this case?

Many thanks in advance for your work!
Julius

@danschlet danschlet self-assigned this Jan 27, 2022
@danschlet danschlet added the please test The issue was solved in a beta/preview version, please test if it works for you. label Jan 27, 2022
@danschlet danschlet added this to the SEB 3.1 milestone Jan 27, 2022
@danschlet
Copy link
Member Author

The JS text input panel is implemented in SEB 3.1, the macOS preview version 7 (3.1pre7) contains it. Maybe you can confirm it works for you as well.

@PhilippImhof
Copy link

As mentioned in #176, I have a similiar problem. The prompt() is (silently) not shown in Classic WebView mode. When using Modern mode, it even crashes SEB.

-------------------------------------
Translated Report (Full Report Below)
-------------------------------------

Process:               Safe Exam Browser [46642]
Path:                  /Applications/Safe Exam Browser.app/Contents/MacOS/Safe Exam Browser
Identifier:            org.safeexambrowser.SafeExamBrowser
Version:               3.0 (343F)
Code Type:             ARM-64 (Native)
Parent Process:        launchd [1]
User ID:               501

Date/Time:             2022-03-28 07:59:41.7812 +0200
OS Version:            macOS 12.2.1 (21D62)
Report Version:        12
Anonymous UUID:        98A63FEA-9CAE-5BEA-EF29-DF5101B51A18

Sleep/Wake UUID:       B53FFDA7-D0CE-4CA7-B481-1A43E9239A9D

Time Awake Since Boot: 320000 seconds
Time Since Wake:       57 seconds

System Integrity Protection: enabled

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY

Application Specific Information:
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Completion handler passed to -[Safe_Exam_Browser.SEBOSXWKWebViewController webView:runJavaScriptTextInputPanelWithPrompt:defaultText:initiatedByFrame:completionHandler:] was not called'
abort() called
terminating with uncaught exception of type NSException

3.1pre10 fixes the issue for me.

@danschlet danschlet added fixed in new release and removed please test The issue was solved in a beta/preview version, please test if it works for you. labels Dec 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants