microsoft-edge

Can't get Edge to Return a Promise in my WebExtension

夙愿已清 提交于 2019-12-22 16:35:52
问题 I am trying to create a new tab using browser.tabs.create() from my background.js WebExtension as shown here: createTab: function () { var newTab = browser.tabs.create({ url: someUrl }); newTab.then(onCreated, onError); } The new tab creates in the browser , but when the last line is reached, an error is thrown: SCRIPT5007: Unable to get property 'then' of undefined or null reference The Locals window shows newTab is undefined . What am I doing wrong here? I thought that .create() would

Get Microsoft Edge Browser Version using registry or command line

别说谁变了你拦得住时间么 提交于 2019-12-22 12:23:24
问题 How can i get microsoft edge browser version using registry or command line? I don't want to take it from UI. 回答1: You can get the version from PowerShell with Get-AppxPackage: > (Get-AppxPackage Microsoft.MicrosoftEdge).Version 44.18214.1000.0 If you want to call this from cmd.exe, you can just call Powershell: > powershell.exe "(Get-AppxPackage Microsoft.MicrosoftEdge).Version" 44.18214.1000.0 回答2: Run the following command: REG QUERY HKEY_CLASSES_root\AppX3xxs313wwkfjhythsb8q46xdsq8d2cvv

Why is Edge body scrollbar different from Firefox body scrollbar?

若如初见. 提交于 2019-12-22 10:37:40
问题 I'm creating a chatting list, it works fine on Firefox, but it's not on Microsoft Edge. CSS of the root <div class="chatting"> : .chatting { position: fixed; bottom: 5px; right: 5px; border: 1px solid #f00; width: 206px } Result on Firefox: and on Microsoft Edge: The second snapshot means: right: 5px; is not enough. Why? That's my problem or Edge problem? 回答1: By default Edge (and newer Internet Explorers) use an autohiding scrollbar, which doesn't occupy layout space. Adding -ms-overflow

MicrosoftWebDriver fails when constructing while running under TeamCity agent's windows service

拟墨画扇 提交于 2019-12-22 09:15:28
问题 Using: * Windows 10 Pro * MicrosoftWebDriver Release 14393 I'm having troubles with running my UI tests suite with Edge (while Chrome, Firefox and IE11 - all work). The problem does not occur while running in standard, windows - development environment. The problem only occurs when trying to run these UI tests on CI (TeamCity) agent. The agent is configured to run as a Windows Service. Firstly, when account running the agent service was given Administrator's account, I was being received the:

Detect data URI in links support with Modernizr

醉酒当歌 提交于 2019-12-22 08:21:10
问题 Using data URI in links ( <a href="data: ) is not supported in IE and Microsoft Edge (Data URI link <a href="data: doesn't work in Microsoft Edge). I'm trying to use Modernizr to detect data URI in links support. Modernizr.datauri is not quite what I'm looking for, as it does not tell anything about support data URI in links, e.g. for Microsoft Edge it returns object {over32kb: true} How can I detect using Modernizr if data URI in links is supported in browser? 回答1: I had the same need for

PDF Viewer using object tag not working for Edge

五迷三道 提交于 2019-12-22 08:17:19
问题 I am trying to show a PDF document inline using the object tag - it works as expected in Chrome and Firefox but isn't working in Edge. Sample Code: <object id="pdfObj" data="http://www.pdf995.com/samples/pdf.pdf" type="application/pdf" target="_parent"> </object> Plunker: http://plnkr.co/edit/wH9ECcwkx3vHFv43xTo5?p=preview What's a good way to show the PDF viewer in Edge? Thanks for your help. 回答1: I've faced a similar issue. Object tag behaves differently in IE and EDGE; the sever needs to

IndexSizeError on drawImage on IE and Edge

点点圈 提交于 2019-12-22 08:15:01
问题 I am finding that a certain code fails in Internet Explorer and Edge, but seems to work flawlessly in Chrome and Firefox: var image = document.getElementById("myImage"); var canvas = document.getElementById("myCanvas"); var context = canvas.getContext("2d"); context.drawImage(image, 1, 0, 499, 278, 0, 0, 749, 417); img { width: 300px; height: 200px; } <img id="myImage" src="https://image.ibb.co/bsANfm/emptyphoto.png" /> <canvas id="myCanvas" width="600" height="400"></canvas> For some reason,

“Intl not available” in Edge 15

♀尐吖头ヾ 提交于 2019-12-22 03:53:14
问题 I'm seeing an Intl not available error in the JS console when my script runs the following code in Edge 15: new Date().toLocaleDateString() I'm a bit stumped by this. It is working just fine in Edge 14, and I can't find any reference to the internationalization API suddenly disappearing from Edge 15. I'm not sure if this is the proper way to test it, but running window.hasOwnProperty("Intl") in the console actually returns true . To me this seems to indicate that Intl actually is there.

MS Edge - window.print() is not frame contextual in MS edge

风格不统一 提交于 2019-12-21 09:33:41
问题 Microsoft Edge is not handling window.print() consistently when compared with other browsers. In most browsers calling window.print() from within an iframe on a page will only print the contents of that iframe. However in edge it will always print the whole document. Was this intentional? Is there workaround? Example on JSFiddle. iframe.html ... <body> <a href="#" onclick="window.print()">print iframe document</a> </body> ... index.html ... <body> <a href="#" onclick="window.print()">print

How to use height: -webkit-fill-available in Edge browser? How to make a div fill the available space in Edge?

。_饼干妹妹 提交于 2019-12-21 05:46:16
问题 I am using bootstrap to preview the mobile device as follows: It works perfectly fine in Chrome. But not on edge :( My HTML/CSS code is as follows: .frame { border-radius: 15px; background-color: #b3b6b9; height: 400px; padding: 50px 10px 75px 10px; } .screen { border-radius: 10px; background-color: #ffffff; height: -webkit-fill-available; padding: 20px 15px 150px 15px; } .circle { border: 1px solid; border-color: #ffffff; border-radius: 50px; height: 50px; width: 50px; margin: 10px auto;