microsoft-edge

Why are CORS requests failing in Microsoft Edge but working in other browsers?

安稳与你 提交于 2019-11-27 04:04:08
问题 I'm using jQuery to send cross origin ajax requests and they're working fine in IE11, Chrome and Firefox but they fail in Edge with the following error: SCRIPT7002: XMLHttpRequest: Network Error 0x80070005, Access is denied. What's interesting is that I used Fiddler to try to figure out what was going on and when Fiddler is running and capturing requests everything works fine. As soon as I close Fiddler or pause capture it fails again. The site is running on my local machine (webpack-dev

Instantiate File object in Microsoft Edge

。_饼干妹妹 提交于 2019-11-27 03:25:30
问题 I'm trying to create an image file from a blob-object using the File API and then add it to a form to be sent via XHR. Works like a charm in chrome, but crashes the app in Microsoft Edge. let file = new File([blobContent], "image.png"); let form = new FormData(); form.append("file", file); Are there any alternatives to the File API or workarounds to attach a file to the form? If I just add the blob to the form it's not recognized as an image. Thanks! 回答1: Currently IE11, and Edge support the

Selenium with Microsoft Edge driver never finishes initialising

别来无恙 提交于 2019-11-27 02:52:37
问题 I'm using the C# bindings for Selenium and trying to get a simple automated test in Microsoft Edge working. class Program { static void Main(string[] args) { EdgeOptions options = new EdgeOptions(); options.PageLoadStrategy = EdgePageLoadStrategy.Eager; RemoteWebDriver driver = new EdgeDriver(); driver.Url = "http://bing.com/"; } } But the program halts on the initialisation of the EdgeDriver, the edge browser launches but the url never changes to "bing.com". Has anyone else experienced this?

What is after Internet Explorer 11 on Windows 7? How well will ES2016 be supported in enterprises?

不问归期 提交于 2019-11-27 02:09:41
I am supporting a web based application in an enterprise. I currently require Chrome, which the enterprise supports through using the Chrome Legacy Browser Support plugin to force an automatic switch. Now that they have updated their Windows 7 machines to Internet Explorer 11 , some users are asking that the application be allowed to run on Internet Explorer 11. For now, the JavaScript frameworks I use (along with Babel) are compatible with IE11, but what happens in the years to come? I've seen no mention from Microsoft that says anything is coming after IE 11. In fact they say that nothing

How to target Windows 10 Edge browser with javascript

走远了吗. 提交于 2019-11-27 01:46:10
问题 I know you should do feature detection where possible, but can you detect in Javascript if the browser is the Microsoft Edge browser? I maintain an old product and I want to display a warning that some features could be broken without having to invest a lot of time fixing the old code. 回答1: Try to detect features instead of a specific browser. It's more future-proof. Only rarely should you use browser detection. With that out of the way: one option is to use a library (there are many

Can I have an HTML drag-and-drop input in Microsoft Edge?

☆樱花仙子☆ 提交于 2019-11-27 01:38:08
问题 We are adapting our product to Microsoft Edge. We have an HTML drag-and-drop feature that works correctly in IE, Chrome, etc. Using Microsoft Edge from Win10 Insider Preview Build 10162, the drop is forbidden. We also checked http://html5demos.com/dnd-upload doesn't work neither. Has anyone solved this problem? 回答1: Microsoft implemented this feature in EdgeHTML 13, included in Windows 10 Build 10586 (November 2015). Original answer: The DragAndDropEntries is not supported in Microsoft Edge

How to Identify Microsoft Edge browser via CSS?

大城市里の小女人 提交于 2019-11-27 00:24:38
I'm developing web application and I need to identify Microsoft Edge's browser separately from others, to apply unique styling. Is there a way to identify Edge by using CSS? Just like, <!--[if IE 11]> Special instructions for IE 11 here <![endif]--> This one should work: @supports (-ms-ime-align:auto) { .selector { property: value; } } For more see: Browser Strangeness /* Microsoft Edge Browser 12+ (All) - one-liner method */ _:-ms-lang(x), _:-webkit-full-screen, .selector { property:value; } That works great! // for instance: _:-ms-lang(x), _:-webkit-full-screen, .headerClass { border: 1px

How to target Microsoft Edge with CSS? [duplicate]

烂漫一生 提交于 2019-11-26 22:37:03
问题 This question already has answers here : How to Identify Microsoft Edge browser via CSS? (4 answers) Closed 4 years ago . I would like to target Edge and have flexbox behave simliar to Firefox 33 / Chrome, for more detail see this question. Can one target Edge in CSS? 回答1: To target Edge, we can check for -ms-ime-align support, Edge being the only Microsoft browser that supports this property: @supports (-ms-ime-align: auto) { .selector { color: red; } } Or this one-liner (that one works on

includes() not working in all browsers

梦想的初衷 提交于 2019-11-26 22:21:57
right here is a block of my code. It works perfect in fireFox and Chrome. But not in IE. I get the error " Object doesn't support property or method 'includes' " function rightTreeSwapfunc2() { if ($(".right-tree").css("background-image").includes("stage1") == true) { $(".right-tree").css({ backgroundImage: "url(/plant-breeding/img/scenes/plant-breeding/stage5.jpg)" }) } else { $(".right-tree").css({ backgroundImage: "url(/plant-breeding/img/scenes/plant-breeding/stage3.jpg)" }) } } I could change it up a bit and use vanilla JS and do: document.getElementById("right-tree").classList.contains

Microsoft Edge: Get Window URL and Title

对着背影说爱祢 提交于 2019-11-26 21:43:51
问题 Previously I was using ShellWindows() API for IE to get the window Title and URL for my application Now with new development, Microsoft Edge is new and has many features under development. I want to know how I can get the URL and Title of all the pages opened in MS-Edge. As none of the shell APIs are working with MS-Edge. I tried also with UI Automation but it does not return all the UI elements I am using MS Visual Studio 2010 for development. Do I need new version of Visual Studio? Can