iOS-приложение реализовано в формате WebView. Поведение встроенного плеера YouTube, реализованного с помощью html в WebView, недопустимо.
В частности, есть следующие события.
При загрузке встроенной HTML-страницы с использованием тега iframe приложение внезапно завершает работу.
Это событие произошло в iOS 10.2 и не встречается в других версиях.
Есть ли прошлые случаи и контрмеры?
Ниже приведено содержимое журнала сбоя приложения.
2018-07-02 10:45:22.943 mall[21103:352187] +[CURLProtocol
clientCertificationData], Line:69, (null)
objc[21103]: Class PLBuildVersion is implemented in both /Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 10.2.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/AssetsLibraryServices.framework/AssetsLibraryServices (0x11ff06998) and /Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 10.2.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/PhotoLibraryServices.framework/PhotoLibraryServices (0x11fd28880). One of the two will be used. Which one is undefined.
2018-07-02 10:45:24.578459 mall[21103:352322] [] __nwlog_err_simulate_crash_libsystem libsystem simulate crash unavailable "libsystem_network.dylib: nw_host_stats_add_src :: received error for SRC_ADDED: [22] Invalid argument"
2018-07-02 10:45:24.579614 mall[21103:352322] [] nw_host_stats_add_src received error for SRC_ADDED: [22] Invalid argument, dumping backtrace:
[x86_64] libnetcore-856.30.16
0 libsystem_network.dylib 0x000000010e167666 __nw_create_backtrace_string + 123
1 libsystem_network.dylib 0x000000010e17e2f6 nw_get_host_stats + 1083
2 libnetwork.dylib 0x000000010e45ee9f nw_endpoint_resolver_start_next_child + 1382
3 libdispatch.dylib 0x000000010dee4978 _dispatch_call_block_and_release + 12
4 libdispatch.dylib 0x000000010df0e0cd _dispatch_client_callout + 8
5 libdispatch.dylib 0x000000010deebe17 _dispatch_queue_serial_drain + 236
6 libdispatch.dylib 0x000000010deecb4b _dispatch_queue_invoke + 1073
7 libdispatch.dylib 0x000000010deef385 _dispatch_root_queue_drain + 720
8 libdispatch.dylib 0x000000010deef059 _dispatch_worker_thread3 + 123
9 libsystem_pthread.dylib 0x000000010e2c2169 _pthread_wqthread + 1387
10 libsystem_pthread.dylib 0x000000010e2c1be9 start_wqthread + 13
Кроме того, журнал удаленной отладки с помощью веб-инспектора safari выглядит следующим образом.
Blocked a frame with origin "https://www.youtube.com" from accessing a frame with origin "https://xxx". Protocols, domains, and ports must match