safari

how to open google chrome in swift

北战南征 提交于 2020-05-28 12:03:26
问题 i'm almost new to swift . i want to open google chrome whenever user press an specific button. I found this :: let chromeURL = "googlechrome:\(presenter.createOrderApp(data: data, aptId: aptID))" //UIApplication.shared.openURL(URL(string: chromeURL)!) if UIApplication.shared.canOpenURL(NSURL(string: chromeURL)! as URL) { UIApplication.shared.openURL(NSURL(string: chromeURL)! as URL) } else { let alertController = UIAlertController(title: "Sorry", message: "Google Chrome app is not installed",

Sharing cookies across .test sub-domains in Safari 13 not possible

懵懂的女人 提交于 2020-05-28 12:00:49
问题 I have a self-certificate for apache for https://example.test & https://m.example.test When browsing https://m.example.test cookies are set to the base domain '.example.test' using php 'session.cookie_domain'. This DOES work in Chrome, Firefox or Safari up-to-version-12. However, it does not work anymore in Safari 13 (iOS 13 or Catalina). What's even more strange is that the cookie is still set to the base domain on Safari 13 with my production machine for https://example.COM & https://m

Sharing cookies across .test sub-domains in Safari 13 not possible

扶醉桌前 提交于 2020-05-28 11:59:50
问题 I have a self-certificate for apache for https://example.test & https://m.example.test When browsing https://m.example.test cookies are set to the base domain '.example.test' using php 'session.cookie_domain'. This DOES work in Chrome, Firefox or Safari up-to-version-12. However, it does not work anymore in Safari 13 (iOS 13 or Catalina). What's even more strange is that the cookie is still set to the base domain on Safari 13 with my production machine for https://example.COM & https://m

Safari window.open() doesn't work

痴心易碎 提交于 2020-05-27 06:37:05
问题 I need to open external link in a new window. I handle click on edit button in a view: module.exports = utils.Backbone.View.extend({ events: { "click #edit": "onEditClicked" }, "onEditClicked": () => PubSub.publish("EDITOR_REQUESTED"); }); Then I check if the user is logged in. If yes - I send notification "OPEN_EDITOR" and expect a new window to be open with the external link. TextEditorController.prototype.handleMessages = function () { PubSub.subscribe("OPEN_EDITOR", () => { var editor =

Favicon not showing in Safari

假如想象 提交于 2020-05-27 04:28:09
问题 I've searched all over the internet already and I still don't know why the favicon wont show on safari, it shows ok on chrome and FF, I've tried these in the header: <link rel="shortcut icon" href="favicon.ico" type="image/x-icon"/> or this <link rel="shortcut icon" href="favicon.ico?23189123" type="image/x-icon"/> changed the favicon to 32 bits, or removed the WebpageIcons.db from safari library etc. and I check the website on browserstacks in case is my cache.. Is there anything else Im

How do I get DeviceOrientationEvent and DeviceMotionEvent to work on Safari?

随声附和 提交于 2020-05-26 11:46:10
问题 I'm trying to implement DeviceOrientationEvent and DeviceMotionEvent on my website for a 3D effect. However, the console doesn't log any info and apparently iOS 13 requires a user set permission to start doing this. I can't seem to figure out how to set it up properly. I've done some research and this is what I found: https://github.com/w3c/deviceorientation/issues/57#issuecomment-498417027 All other methods provided online are not usable anymore sadly. window.addEventListener(

How do I get DeviceOrientationEvent and DeviceMotionEvent to work on Safari?

自古美人都是妖i 提交于 2020-05-26 11:46:08
问题 I'm trying to implement DeviceOrientationEvent and DeviceMotionEvent on my website for a 3D effect. However, the console doesn't log any info and apparently iOS 13 requires a user set permission to start doing this. I can't seem to figure out how to set it up properly. I've done some research and this is what I found: https://github.com/w3c/deviceorientation/issues/57#issuecomment-498417027 All other methods provided online are not usable anymore sadly. window.addEventListener(

Display cookies in request headers in Safari 7

谁说胖子不能爱 提交于 2020-05-26 11:45:25
问题 When examining request headers in Chrome or Opera using their default console, I can see in the request headers what cookies have been sent to the server and if server is trying to set a cookie, I can also see Set-Cookie header. However, in Safari 7.1.2 I don't see these information, but I see other information such as Accept,, User-Agent, Referer etc. Do I need to enable something to see the cookies in the Safari's console? How can I view cookies that are being sent together with the request

WebDriverException: Returned value cannot be converted to WebElement: {} while using WebDriver with Safari 11 on Mac OS X

女生的网名这么多〃 提交于 2020-05-22 09:36:11
问题 I have a selenium webdriver script which performs some regression tests on my application under test. The script works perfectly on Google Chrome, Firefox, IE, etc. However, recently I tried running it on Safari (11.1.1) on Mac OS X (10.13.5), and my script fails with a weird message even when I call a simple line such as driver.findElement(By.tagName("body")); The exception I get is as follows: org.openqa.selenium.WebDriverException: Returned value cannot be converted to WebElement: {} Build

using sort in safari

别等时光非礼了梦想. 提交于 2020-05-17 07:07:16
问题 I am having an issue sorting through posts by date in safari. All works as expected in Chrome. First I fetch all the posts from my API. I then fetch some posts from the facebook api. These get combined together in an array. If I post a new post, it publishes it to facebook and sends back the post to display on my website. In chrome it automatically sorts this by date and is added in the right spot. In safari, all the new facebook posts get added to the end of the array - unsorted by date.