Chromium – capture Delphi input values โ€‹โ€‹(TChromium)

Good Morning

I'm using HTML, CSS, and JavaScript to create a chat layout for a messaging system I'm developing. All right, but due to a caveat problem I found in TWebBrowser, I switched to TChromium. It helped me in many ways, but I'm wondering how I can get the values โ€‹โ€‹of an input my HTML code. With TWebBrowser I used the following code arqID := Browser.OleObject.Document.All.Tags('input').item('arqID').value;

Does anyone know what equivalent function I have used in TWebBrowser (OleObject) in TChromium?

Chromium Browser: How do I move the BubbleDialogDelegateView widget without flickering?

I have a popup dialog based on views :: BubbleDialogDelegateView (similar to ProfileChooserView).

class WebViewPopup : public views::BubbleDialogDelegateView,
                       public ExtensionViewViews::Container,
                       public content::NotificationObserver,
                       public TabStripModelObserver,
                       public content::DevToolsAgentHostObserver,
                       public zoom::ZoomObserver,
                       public FullscreenObserver
{
....
static void ShowPopup(views::Button* anchor_button,
                        Browser* browser) {
  auto* popup =
      new WebViewPopup(anchor_button, browser);
  views::BubbleDialogDelegateView::CreateBubble(popup);
}
....
}

And I have to move it from left to right (animating) when the window pops up. Similar to the Opera Easy Setup bar.
Is there a cross-platform way to move or animate a widget without flickering?

If I imitate the animation using the timer and gradually change the widget size, it flickers

void WebViewPopup::SetPaneWidth(int w)
{
  views::Widget* this_widget = this->GetWidget();
  gfx::Rect bounds(); //calculate new widget size
  this_widget->SetBounds(bounds); // flickers!
}

I found a window animation in chrom src ui wm core window_animations.cc and it works fine, but it uses aura and is only available on Windows.

Again, the main question: Is there a cross-platform way to move or animate a widget without flickering?

google chrome – Browser extension in Firefox / Chromium to retrieve the regex from the link text

I'm wondering if Firefox or Chromium support or have an add-on that lets you define a regular expression in the configuration. When enabled, there is a right-click option to "Regex Copy" links, with which the text is extracted from the link and put it on the clipboard. Is there something like that?

Chromium Single Executable Build

I followed the documentation here to create Chromium on Ubuntu 18.

I was able to build successfully with these flags gn gen out / amd64 --args = & # 39; is_official_build = true is_debug = false & # 39;

and to build that order

autoninja -Cout / amd64 chrome

The problem is that the output Chrome file is dependent on all other files in the directory. If I copy the Chrome file to another directory and run it, that error will be displayed

[0608/170138.585281:ERROR:icu_util.cc(165)] Invalid file descriptor for received ICU data.
Trace / Breakpoint Trap (Core Dumped)

How do I create Chromium so I can run it from a single file, as Puppeteer contains a single executable file?

firefox – HTML link with "noopener" and / or "noreferrer" in Chrome / Chromium causes unexpected behavior

There are several attacks when links are embedded in target = "_ blank", That's where rel = "noopener" rel = "noreferrer" should help.

I expect clicking on the following link


  
  
  
  Google

leads to a new browser tab with a new HTML5 session memory.

This works fine in Firefox 65.0, but not with Chromium 71.0.

Chrome / Chromium preserves the same HTML5 session memory.

Exactly the same behavior can be observed during use rel = "noopener" or rel = "noopener noreferrer",

The implementation status is listed under:

My questions are:

  • Is this behavior appropriate?
  • Am I missing something?
  • How can I achieve the desired behavior?

Continue reading:

Docker – Installation of Chromium on Alpine Linux, strange mistake

I have a Dockerfile setup to install Alpine and Chromium. A few weeks ago, the package worked perfectly and I was able to build properly. Lately, though, I have problems with the build if a Chromium dependency fails. Here is the docker:

FROM Balenalib / Odroid xu4 alpine knots
WORKDIR / var / Arbiter

RUN apk update
RUN apk upgrade
RUN apk add --no-cache - virtual build dependencies make gcc g ++ python && 
apk add --no-cache krb5-dev zeromq-dev && npm install -g node-gyp

# Install necessities for sharp and other dependencies
RUN apk add --update 
--repository http://dl-3.alpinelinux.org/alpine/edge/main 
fftw-dev

RUN apk add --update 
--repository http://dl-3.alpinelinux.org/alpine/edge/testing 
Vips tools

RUN apk add --update 
--repository http://dl-3.alpinelinux.org/alpine/edge/testing 
vips-dev

# Let's try again
RUN 
echo "http://dl-cdn.alpinelinux.org/alpine/edge/community" >> / etc / apk / repositories 
&& apk --no-cache update 
&& apk add --no-cache --virtual .build-deps 
gifsicle pngquant optipng libjpeg-turbo-utils 
udev ttf-opensans chrome 
&& rm -rf / var / cache / apk / *

The errors returned are:

[main]                    OK: 13195 different packages available
[main]     call http://dl-cdn.alpinelinux.org/alpine/v3.8/main/armhf/APKINDEX.tar.gz
[main]     call http://dl-cdn.alpinelinux.org/alpine/v3.8/community/armhf/APKINDEX.tar.gz
[main]     call http://dl-cdn.alpinelinux.org/alpine/edge/community/armhf/APKINDEX.tar.gz
[main]     ERROR: unsatisfiable limitations:
[main]     
[main]                            .build-deps-0:
[main]         masked in: cache
[main]         satisfied: world[.build-deps]
[main]                            Chrome (missing):
[main]         needed from:
[main]     Remove intermediate container 6b67e7b77e1f
[main]     The command & # 39; / bin / sh -c echo "http://dl-cdn.alpinelinux.org/alpine/edge/community" >> / etc / apk / repositories && apk --no-cache update && apk add-no-cache - virtual .build-deps gifsicle pngquant optipng libjpeg-turbo-utils udev ttf-opensans chrome & & rm -rf / var / cache / apk / * & # 39; returned a non-null code : 2

I can see that the package was recently rebuilt on January 2nd: https://pkgs.alpinelinux.org/package/edge/community/x86_64/chromium, but I'm not sure why / how this works.

How can I ensure a successful build and avoid this mistake (which I do not quite understand).

Microsoft Edge to switch to Chromium Forum Promotion

I read an article a few weeks ago stating that Microsoft decided to use the Chromium project for their browser core instead of developing their own. I personally believe that this is the best step Microsoft can take to get more people to use their browser.

This also seems to be a good way to really streamline the site compatibility that we do not currently seem to have, ie some sites look different in each browser, depending on how they are coded for them.

If Microsoft has done that, I think Firefox and maybe Opera are the only ones that did not make that switch, and I wonder if they're planning that.