chromium

Puppeteer script suddenly stopped working after upgrading Puppeteer

笑着哭i 提交于 2020-01-06 12:28:25
问题 I have a puppeteer script I run to reboot my modem. It has worked for I guess about a year with no problem. 5 days ago it stopped working. I was looking into it and realized that I am getting errors I didn't used to get when running it and the script fails. The thing is I didn't change anything. As far as I can see, the HTML hasn't changed either yet it is failing. So I wonder if there is a bug in chromium or puppeteer or if it handles things differently somehow? Here's a codepen with https:/

Typeof and Expression* in V8

你。 提交于 2020-01-06 02:12:31
问题 I am experimenting with the V8 engine. In V8 (full-codegen-x64.cc) exists this function for comparing types: void FullCodeGenerator::EmitLiteralCompareTypeof(Expression* expr, Expression* sub_expr, Handle<String> check) So, if for example: typeof Obj == "object" Then sub_expr is an Expression object with "typeof Obj" and check is an "object" . How can I get a JSObject from an Expression object, if possible? - not possible (You can't. An Expression is a piece of syntax Andreas Rossberg) In

MP4 codec support in Chromium

北战南征 提交于 2020-01-04 03:41:47
问题 We have integrated Chromium Embedded Framework into our Windows game to allow us to render web pages from within our application, and everything works fine, except MP4 videos. I understand Chromium does not include this codec due to licensing issues, but can anyone provide details on how we can add support, even if we have to license a codec for it. All the information we can find seems to be old, and the functions referred to appear to be deprecated... so we are at a bit of a loss. All the

Chrome inspector - remote debugger - Clipboard is not enabled in hosted mode. Please inspect using chrome://inspect

时光毁灭记忆、已成空白 提交于 2020-01-03 16:51:24
问题 I am using the remote debugger inspector by visiting for example: http://localhost:9222/devtools/inspector.html?ws=localhost:9222/devtools/page/33767d5c-6abf-4c79-b8e7-d3b0c251fcaa The inspector works other than not being able to copy within the element, for copying xpath/sizzle selectors for instance which is really important . But on copy I am getting: Clipboard is not enabled in hosted mode. Please inspect using chrome://inspect I am remote debugging using an "external" inspector in google

Why does JavaScript's getElementsByClassName provide an object that is NOT an array?

若如初见. 提交于 2020-01-03 11:02:41
问题 I'm trying to get a list in JavaScript (not using jQuery) of all the elements on the page with a specific class name. I therefore employ the getElementsByClassName() function as follows: var expand_buttons = document.getElementsByClassName('expand'); console.log(expand_buttons, expand_buttons.length, expand_buttons[0]); Note that I have three anchor elements on my page with the class 'expand'. This console.log() outputs [] 0 undefined Next, for kicks, I threw expand_buttons into its own array

Why does JavaScript's getElementsByClassName provide an object that is NOT an array?

ぐ巨炮叔叔 提交于 2020-01-03 11:02:23
问题 I'm trying to get a list in JavaScript (not using jQuery) of all the elements on the page with a specific class name. I therefore employ the getElementsByClassName() function as follows: var expand_buttons = document.getElementsByClassName('expand'); console.log(expand_buttons, expand_buttons.length, expand_buttons[0]); Note that I have three anchor elements on my page with the class 'expand'. This console.log() outputs [] 0 undefined Next, for kicks, I threw expand_buttons into its own array

SKIA Rendering on Windows(SkCanvas from HDC)

江枫思渺然 提交于 2020-01-03 05:18:11
问题 I'm trying to use SKIA for drawing on Windows. Is there anyway to initiate SkCanvas from HDC ? 回答1: There are several approaches "to use" skia on Windows. These approaches described in the SkOSWindow_win.cpp at the skia\src\views\win in your skia folder. For example: You can attach OpenGL viewport to your window as it has been done in function SkOSWindow::attachGL HDC dc = GetDC((HWND)fHWND); if (NULL == fHGLRC) { fHGLRC = SkCreateWGLContext(dc, msaaSampleCount, kGLPreferCompatibilityProfile

How do I set a chromium command line flag in Electron?

馋奶兔 提交于 2020-01-03 04:44:09
问题 I am working on an Electron app and need to enable the following Chromium flag GuestViewCrossProcessFrames to make scaling work with webview. I tried calling the following line in my main.js but it doesn't seem to work. Also tried enabling plugins for the BrowserWindow as well as webview. app.commandLine.appendSwitch('--enable-features=GuestViewCrossProcessFrames'); Can someone help me setting up this flag? Thank you. 回答1: you can set by calling const { app } = require('electron'); app

How to build V8 without “external startup data”?

99封情书 提交于 2020-01-02 09:09:13
问题 I want a standalone JavaScript library for embedding. I already build V8 and its working correctly, but binary needs two "external data" files. I don want this files. I was trying to build V8 without "external startup data". I tried to set v8_use_external_startup_data : 0, in build.common.gypi and build/standalone.gypi, but then make is reporting failure at some point. I'm using following code to build v8: git clone https://chromium.googlesource.com/chromium/tool/depot_tools.git export PATH=

Is it possible to use Chromium Embedded Framework (CEF) inside Windows Store Apps [closed]

夙愿已清 提交于 2020-01-01 10:53:51
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 8 months ago . How to integrate Chromium Embedded Framework (CEF) inside Windows Store (Metro Style) App. I read CEF Wiki - https://code.google.com/p/chromiumembedded/ but did not find anything related to Windows Store Apps. There is tutorial for WPF app - https://code.google.com/p/chromiumembedded/wiki/Tutorial And there is