gecko

How to embed a browser object, other than IE<n>, in a Delphi application

旧巷老猫 提交于 2019-11-26 18:57:13
问题 Using the default TWebBrowser makes things easy to embed a web browser. Unfortunately the one that comes in by default is IE<n>. I'm wondering how does one integrate a Gecko or WebKit one. Are there VCL examples somewhere? If not, how would one go about doing it? Where's the best place to find the core for Gecko and/or WebKit in an embeddable format? 回答1: TWebBrowser is IE. It is not a plugable construction for browsers. You can have other browsers integrated in your application. See http:/

Constant declaration with block

女生的网名这么多〃 提交于 2019-11-26 18:32:30
问题 Recently I was looking into Firefox Add-on Builder SDK sources, and stumbled on such constants declaration: const { getCodeForKey, toJSON } = require("../../keyboard/utils"); I could find information about CommonJS Modules, but left part of this assignment slightly confuses me, since it must be language specific, and I couldn't google anything on that. Can someone point me to some specification/draft that explains what's going on here? 回答1: This is a destructuring assignment, something that

Is there an embeddable Webkit component for Windows / C# development?

冷暖自知 提交于 2019-11-26 15:00:13
问题 I've seen a few COM controls which wrap the Gecko rendering engine (GeckoFX, as well as the control shipped by Mozilla - mozctlx.dll). Is there a wrapper for Webkit that can be included in a .NET Winform application? 回答1: There's a WebKit-Sharp component on Mono's GitHub Repository. I can't find any web-viewable documentation on it, and I'm not even sure if it's WinForms or GTK# (can't grab the source from here to check at the moment), but it's probably your best bet, either way. 回答2: I've

HTTP协议简介

泄露秘密 提交于 2019-11-26 12:41:38
1. 什么是HTTP协议 超文本传输协议(HTTP,HyperText Transfer Protocol)是互联网上应用最为广泛的一种网络协议,是一个基于请求与响应模式的、无状态的、应用层的协议,常基于TCP的连接方式。 1.1 HTTP协议的主要特点如下 1.支持客户端/服务器模式。 2.简单快速:客户向服务器请求服务时,只需传送请求方法和路径。请求方法常用的有GET、POST。每种方法规定了客户与服务器联系的类型不同。由于HTTP协议简单,使得HTTP服务器的程序规模小,因而通信速度很快。 3.灵活:HTTP允许传输任意类型的数据对象。传输的类型由Content-Type加以标记。 4.无连接:无连接的含义是限制每次连接只处理一个请求。服务器处理完客户的请求,并收到客户的应答后,即断开连接。采用这种方式可以节省传输时间。 5.无状态:HTTP协议是无状态协议。无状态是指协议对于事务处理没有记忆能力。缺少状态意味着如果后续处理需要前面的信息,则它必须重传,这样可能导致每次连接传送的数据量增大。另一方面,在服务器不需要先前信息时它的应答就较快。 2. Http协议的通信 HTTP通信机制是在一次完整的HTTP通信过程中,Web浏览器与Web服务器之间将完成下列7个步骤 1、 建立TCP连接 在HTTP工作开始之前,Web浏览器首先要通过网络与Web服务器建立连接

Is it possible to Embed Gecko or Webkit in a Windows Form just like a WebView?

心不动则不痛 提交于 2019-11-26 09:16:03
问题 I\'d love to know if there is such a thing as a Gecko.NET ;) I mean, just like we can embed a WebView and that is an \"instance\" of IE7 inside any Windows Forms application (and tell it to navigateto(fancy_url); ). I\'d love to use Firefox or WebKit. Anybody tried this? UPDATE : Please bear in mind that although it is possible to embed Gecko using the mentioned controls, it is still impossible to print while using Gecko. UPDATE March 2010 : It’s still not possible to print natively using

What is the correct “-moz-appearance” value to hide dropdown arrow of a <select> element

依然范特西╮ 提交于 2019-11-26 06:27:06
问题 I\'m trying to style the dropdown arrow of a <select> element with CSS only , it works perfectly in Chrome/Safari: select { -webkit-appearance: button; -webkit-border-radius: 2px; -webkit-box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1); -webkit-padding-end: 20px; -webkit-padding-start: 2px; -webkit-user-select: none; background-image: url(\'./select-arrow1.png\') ; background-position: center right; background-repeat: no-repeat; border: 1px solid #AAA; margin: 0; padding-top: 2px; padding-bottom: