メインコンテンツへ飛ぶ

"テックトーク" タグの記事が 1 件の投稿 件あります

「Electron での取り組みを垣間見る」

全てのタグを表示

Tech Talk: How Electron went Wayland-native, and what it means for your apps

· 読むのにかかる時間 1 分
info

Tech talks are a new blog post series where we share glimpses into our work on Electron. If you find this work interesting, please consider contributing!

When Electron switched to Wayland on Linux last fall, most people didn't notice.

Major Linux distributions adopted the modern display protocol years ago, and both the KDE Plasma and GNOME desktop environments are in the process of dropping X11 support completely.

But a platform migration isn't complete without apps, and a large part of the Linux app ecosystem went through a second Wayland transition last August — well after most distros had changed their defaults. That's when Chromium turned on Wayland by default, bringing Electron and dozens of Linux desktop apps along with it.

テックトーク: ウインドウのサイズ変更動作の改善

· 読むのにかかる時間 1 分

私たちは、Electron での取り組みを垣間見られる新しいブログ投稿シリーズを開始します。 この働きに興味を感じましたら、貢献をご検討ください!


最近、私は Electron と Chromium のウインドウのサイズ変更動作の改善に取り組みました。

バグ

Windows では、ウインドウのサイズを変更すると以下のように古いフレームが表示されるという問題が発生していました。

ウインドウのサイズを変更するときに古いフレームが表示される問題を示すアニメーション GIF

このバグに特に興味深かった理由は何ですか?

  1. 挑戦的だった。
  2. 大規模なコードベースの奥深くにあった。
  3. 後でわかるように、内部には 2 つの異なるバグがあった。

バグの修正

このようなバグの場合、最初の課題は調べ始めを把握することです。

Electron は、Google Chrome のオープンソース版である Chromium をベースに構築されています。 Electron をコンパイルするとき、Electron のソースコードがサブディレクトリとして Chromium のソースツリーに追加されます。 Electron は、最新ブラウザの機能を提供するためにそののほとんどを Chromium のコードに依存しています。

Chromium には約 3600 万行のコードがあります。 Electron も大きなプロジェクトです。 この問題の原因となる可能性のあるコードは大量にあります。