safari

Safari does not send ice candidates

核能气质少年 提交于 2020-01-24 05:18:06
问题 don't work example in safari https://github.com/Kurento/kurento-tutorial-node/tree/master/kurento-one2many-call In chrome, everything is fine. Safary does not send ice candidates in view mode. Presenter mode is ok ==================== update In the Front (index.js) The event onOfferViewer is always executed onIceCandidate – never executed Connection from Front to the node var ws = new WebSocket('wss://' + location.host + '/one2many'); On KMS a Turn doesn’t turn on, but a Stun is configured. I

浏览器 User-Agent 整理

对着背影说爱祢 提交于 2020-01-24 01:28:49
也可以去这里查询: http://tools.jb51.net/table/useragent window.navigator.userAgent 1) Chrome Win7: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.163 Safari/535.1 2) Firefox Win7: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0) Gecko/20100101 Firefox/6.0 3) Safari Win7: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/534.50 (KHTML, like Gecko) Version/5.1 Safari/534.50 4) Opera Win7: Opera/9.80 (Windows NT 6.1; U; zh-cn) Presto/2.9.168 Version/11.50 5) IE Win7+ie9: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Win64; x64; Trident/5.0; .NET CLR 2.0.50727;

How can I use the BroadcastChannel API or something similar in Safari 10+?

陌路散爱 提交于 2020-01-23 17:47:06
问题 Problem: I need a client-side Javascript solution (jQuery is fine) where an event in one browser window/tab can be broadcast to other windows/tabs on the same domain. For example, if a cart is updated in tab A, tabs B and C get notified so we can update some info on the page, or notify the user that page is stale, or something like that. What I've tried: The BroadcastChannel API fits my needs perfectly, but does not work in IE 11 or Safari. So I tried this polyfill so I could use the

Unable to download pdf blob url on Safari

﹥>﹥吖頭↗ 提交于 2020-01-23 06:46:27
问题 Currently using FileReader to open and view a PDF that works on Chrome. However, when the pdf is opened on Safari and you click the download button, nothing happens. var reader = new FileReader(); reader.onloadend = function(e) { $window.location.href = reader.result; } reader.readAsDataURL(file); 回答1: After having spent an entire day working on a similar issue, I understood where the problem was so I can now share my knowledge with you. Basically, this kind of problems are generated when you

iOS safari crashing (a problem repeatedly occured)

六月ゝ 毕业季﹏ 提交于 2020-01-23 01:44:07
问题 I'm developing a website and have recently run into a problem when testing on my iPhone X - the site wont load. Safari tries to load it, then reports the error 'this web page was reloaded because a problem occured', and after a couple of tries it gives up and reports 'a problem repeatedly occured'. Chrome on my iPhone also doesn't load the site. At this time I can't share the website publicly, but there are no errors reported in the chrome desktop console. In fact, the website runs perfectly

How to disable “Scan Credit Card” feature on iOS 8 Safari?

别等时光非礼了梦想. 提交于 2020-01-23 00:34:52
问题 Recently, Safari on iOS 8 has introduced a new feature "Scan Credit Card" on form fields it detects as a credit card input. However, I can't find any documentation on how this feature works, or more importantly, how to disable this. I DON'T want this displayed on my form, but I don't see any way to disable it. Has anyone figured out how to disable this "feature"? 来源: https://stackoverflow.com/questions/26023276/how-to-disable-scan-credit-card-feature-on-ios-8-safari

Safari 导航栏

元气小坏坏 提交于 2020-01-22 18:00:33
目录 引子 隐藏 Safari 导航栏 显示 Safari 导航栏 iPhone 系统占比 参考资料 引子 最近在 iPhone 的 Safari 查看 h5 页面时,发现有些平台的页面向下滚动时,顶部地址栏和底部导航栏会自动收起,整个页面空间多了不少,可以看到更多信息,这种效果比较适合当前业务场景。之前都没怎么关注这个,查找了一些资料,尝试后总结一下。 Origin My GitHub 隐藏 Safari 导航栏 当页面内容过多,向下滚动时,导航栏和地址栏收起的现象,在 Safari 是正常的特性,以下称为 默认隐藏 。这是一个纯显示 页面 ,移动端访问如下: 默认隐藏 通过查找资料和对比其它平台的页面,主要的思考方向是页面结构和 CSS 样式。 首先想到在项目里面常会引入一个重置样式的库 normalize.css ,看下是否会影响这个效果。这是 测试页面 ,移动端访问如下: 测试结果是: 不会影响 。 然后就是对比页面结构,发现了下面几种情况: 滚动容器非 body 元素,默认隐藏无效。这是 示例页面 ,移动端访问如下: 滚动容器为 body 元素,html 设置了样式 overflow: hidden ,默认隐藏无效。这是 示例页面 ,移动端访问如下: 滚动容器为 body 元素,html 默认样式,默认隐藏有效。这是 示例页面 ,移动端访问如下: 一直隐藏

Automate Safari web browser using c# on Windows

北慕城南 提交于 2020-01-22 15:27:09
问题 I wondered if anyone had successfully managed, or knew how to automate the Safari web browser on the Windows platform. Ideally I would like to automate Safari in a similar way to using mshtml for Internet Explorer. Failing that a way to inject JavaScript into the running process would also be fine. I've used the JavaScript injection method to automate Firefox via the jssh plug-in. I'm looking to automate the browser using .Net to enhance an existing automation framework WatiN Edit : Whilst I

Cross Origin Resource Sharing Headers not working only for safari

强颜欢笑 提交于 2020-01-22 15:05:32
问题 I'm using rackspace to host my image files that are drawn on an html5 canvas object. Because of an HTML security feature when saving a canvas I have to use CORS (Cross Origin Resource Headers) to make save work. I have tested my code on Chrome, IE with Chrome Frame, and Firefox , and none of them give me a security error after I added to the image request headers: Access-Control-Allow-Origin: * and I have added the following attribute to all the images drawn on to the canvas crossOrigin =

Session not created Selenium/webdriver when using Safari 12

陌路散爱 提交于 2020-01-22 00:03:26
问题 Since upgrading to Safari 12, my automated scripts are now getting this error: SessionNotCreatedError: Request body does not contain required parameter 'capabilities'. (The error does not occur for other browsers). I'm using the javascript webdriver bindings and, when I build webdriver, I use the withCapability key value pairs: var capabs = { 'browserName' : 'Safari', 'version' : '12.0' } browserUnderTest = new webdriver.Builder(). withCapabilities(capabs) .forBrowser('safari') .build(); I