browser

Service Worker recurring

不打扰是莪最后的温柔 提交于 2020-01-07 03:00:50
问题 Can i make a service worker, that run in background and poll the server at specific interval and return response or show notification(push notification) when chrome browser is closed. I am working for a website, that ask for service worker permission and sync the request at specific intervals in background based on request received from server show the notification. Edit 1: As of now i can see chrome is working on this, but the post is too old Dec 2015. They have written it that they will

Why doesn't browser abort request to a stylesheet when the link element is removed?

非 Y 不嫁゛ 提交于 2020-01-07 02:50:40
问题 Consider the following HTML code: <script>setTimeout(() => document.querySelector('link').remove(), 0);</script> <link rel="stylesheet" href="http://localhost:8080/test.php"> where http://localhost:8080/test.php is a link to a simple PHP script which just waits 5 seconds ( <?php sleep(5); ). The script removes the link tag as expected, but browser doesn't abort the request to the stylesheet. This doesn't make sense, because when the request is complete, browser doesn't apply the styles anyway

alternative for web browser control and Chromium CefSharp control for wpf C#

走远了吗. 提交于 2020-01-06 20:14:55
问题 i need to use web pages on my wpf project and i tried to use wpf web browser control and Chromium CefSharp. my problem is web browser control does not support css transparency and Chromium CefSharp does not support html video tag with mp4 video format. Anyone know of an alternative control? 回答1: You can try with GeckoFx, it's Windows Form Control so you should use a WindowsFormsHost as a container: https://bitbucket.org/geckofx/ 回答2: Cefsharp doesn't support propietary codecs like mp4 and mp3

WebRenderer Swing and Server Edition

一曲冷凌霜 提交于 2020-01-06 20:04:54
问题 I am using WebRenderer to export HTML5 pages to images on the server. The problem is that the only edition that supports HTML5 is the swing edition. However, I can use the jar files from the swing edition and create a new IMozillaBrowserCanvas object and not link it to a JFrame/JPanel and have it convert the html5 page without a GUI. Are there any differences between the swing and server edition when just using IMozillaBrowserCanvas ? The only info I could was find was this: The WebRenderer

creatition of XPCOM components

血红的双手。 提交于 2020-01-06 19:35:29
问题 I'm creating an XPCOM component using a tutorial as a reference. However, when I run the following command it completes successfully but doesn't produce any .h file: xpidl -m header -I [XUL_RUNNER SDK\IDL] myfile.idl Why is that? Is XPCOM outdated? 回答1: No, XPCOM is not outdated but this tutorial is. The documentation recommends using pyxpidl: header.py -I [XUL_RUNNER SDK\IDL] -o myfile.h myfile.idl 来源: https://stackoverflow.com/questions/11857907/creatition-of-xpcom-components

Delete destination Url of link on the bottom of browser's page

£可爱£侵袭症+ 提交于 2020-01-06 19:01:20
问题 In every browsers, when I stay with the cursor on a clickable link, in the bottom of the page is showed the destination of this link, where I'll be redirected on click. Is it possible to hide this with jQuery? Is also possible to hide the address bar or set it blank, in order to hide the actual page? ( for example showing only the domain name) thanks 回答1: You can do this, or a variation of this: Having a link like this one: <a href="#" id="mylink">click here</a> Then with jquery you can set

How to get browser history on android version > 23 programmatically?

独自空忆成欢 提交于 2020-01-06 18:58:27
问题 As we can see browser API is removed from android version > 23, so is there any other method to get browser history with user's permission? Thanks in advance. 回答1: Contrary to the cited documentation, com.android.browser.permission.READ_HISTORY_BOOKMARKS is still defined by the framework, and can still be obtained by apps. Unfortunately, on Marshmallow and later, Chrome checks for a different permission, one that regular apps aren't allowed to obtain. For compatibility reasons, when that

How to get browser history on android version > 23 programmatically?

大兔子大兔子 提交于 2020-01-06 18:58:07
问题 As we can see browser API is removed from android version > 23, so is there any other method to get browser history with user's permission? Thanks in advance. 回答1: Contrary to the cited documentation, com.android.browser.permission.READ_HISTORY_BOOKMARKS is still defined by the framework, and can still be obtained by apps. Unfortunately, on Marshmallow and later, Chrome checks for a different permission, one that regular apps aren't allowed to obtain. For compatibility reasons, when that

Browser not recognizing image sent by home brew server in Java

早过忘川 提交于 2020-01-06 15:47:11
问题 Wrote a server that serves pages dynamically as well as static pages that are loaded into a page array on startup of the server. The server serves pages fine so the delivery is working. The images are pulled from a database put into an image array when the page is requested with a random name put in the src attribute of the img tag and served from the image array when requested by the random name. They are then taken out of the image array so they are only accessed once as a security feature.

Security Exception 0x80530012 when passing jQuery with attached file. Angularjs

匆匆过客 提交于 2020-01-06 13:52:46
问题 I'm getting the following error: [Exception... "The operation is insecure." code: "18" nsresult: "0x80530012 (SecurityError)" location: "http://code.jquery.com/jquery-1.9.1.js Line: 2257"] I've tried to look up the code but I can't find what the exception is. Simply put I have an Angularjs object being passed that looks like: replyForm = { body: someString, // Gets the file from some input fileAttachment: event.target.files[0] } And I have a function that recieves the replyForm object and