2

私はActiveDirectoryドメイン経由でChrome用WebExtensionを導入しています。 このドメインのマシンはインターネットに接続できません。イントラネットでホストされているWebサイトのみが利用可能です。 私はExtensionInstallForcelistポリシーを使用してChromeにWebExtensionをインストールしています(Chrome Web Storeにアップロードしないでください)。 イントラネットには、WebExtension(.crxファイル)と更新マニフェストXMLファイル(.crxファイルを指す)をホストするサーバーが存在します。Chromeバージョン63.0.3239.84以降のExtensionInstallForForistポリシーの問題

Chromeバージョン62.0.3202.94ではすべてが機能しています。ポリシーが適用されると、WebExtensionがChromeにインストールされます。 WebExtensionは強制的にインストールされるため、ユーザーは手動でアクティベーションする必要はありません。

ただし、Chromeバージョン63.0.3239.84以降で問題が発生しています。 WebExtensionはインストールされていますが、すぐに無効になります。さらに私は奇妙な行動を観察した。 Chromeを起動すると、すぐにWebExtensionがアクティブになりますが、直後には無効になります。これは、行動が沈静化するまで数回発生します。 Chromeを終了して再起動すると、この動作が繰り返されます。この現象は、複数のデバイスと他のドメインのマシンで発生します。

url chrome://ポリシーを確認しました。 ExtensionInstallForcelistエントリが正しく適用されています。

chrome_debug.logでは、ChromeがいくつかのURLでWebExtensionをチェックしようとしているようですが、チェックは失敗します。この問題は、「バージョン63.0.3239.108」および「バージョン64.0.3282.24(公式ビルド)ベータ(64ビット)」でも発生します。同じマシン上のバージョン62.0.3202.94では、すべてが機能しています。私はchrome_debug.logからchrome_debug.logから

{extensionID} : The ID of my WebExtension 
{url_to_update_manifest} : The url which delivers the update manifest XML file 
{value} : A value 

抽出物の抽出物中の以下の置換を使用するより良い概要については

VERBOSE1:content_hash_fetcher.cc(252)] Missing verified contents for {extensionID}, fetching... 
VERBOSE1:network_delegate.cc(30)] NetworkDelegate::NotifyBeforeURLRequest: https://clients2.google.com/service/update2/crx?response=redirect&x=uc%26installsource%3Dsignature%26id%3D{extensionID}%26v%3D1.0.1 
VERBOSE1:network_delegate.cc(30)] NetworkDelegate::NotifyBeforeURLRequest: chrome-extension://{extensionID}/background.js 
VERBOSE1:content_verify_job.cc(230)] job failed for {extensionID} background.js reason:1 
VERBOSE1:content_verifier.cc(144)] VerifyFailed {extensionID} reason:1 
VERBOSE1:script_context.cc(111)] Created context: [...] 
VERBOSE1:content_hash_fetcher.cc(301)] URLFetchComplete for {extensionID} is_success:1 https://clients2.google.com/service/update2/crx?response=redirect&x=uc%26installsource%3Dsignature%26id%3D{extensionID}%26v%3D1.0.1 
VERBOSE1:content_verifier.cc(229)] OnFetchComplete {extensionID} success:0 
WARNING:chrome_content_verifier_delegate.cc(197)] Corruption detected in policy extension {extensionID} installed at: C:\Users\Testuser\AppData\Local\Google\Chrome\User Data\Default\Extensions\{extensionID}\1.0.1_2 
VERBOSE1:network_delegate.cc(30)] NetworkDelegate::NotifyBeforeURLRequest: http://{url_to_update_manifest}/?os=win&arch=x64&nacl_arch=x86-64&prod=chromecrx&prodchannel=&prodversion=63.0.3239.108&lang=de&acceptformat=crx2,crx3&x=id%3D{extensionID}%26v%3D0.0.0.0%26installsource%3Dreinstall%26uc 
VERBOSE1:network_delegate.cc(30)] NetworkDelegate::NotifyBeforeURLRequest: http://{url_to_update_manifest} 
VERBOSE1:pending_extension_manager.cc(305)] Extension id {extensionID} was entered for update more than once. old location: 7 new location: 7 old version: invalid new version: invalid 
VERBOSE1:install_signer.cc(435)] Sending request: {"hash":"{value}=","ids":["{value}","{value}","{value}","{value}","{extensionID}","{value}","{value}"],"protocol_version":1} 
VERBOSE1:network_delegate.cc(30)] NetworkDelegate::NotifyBeforeURLRequest: https://www.googleapis.com/chromewebstore/v1.1/items/verify 
VERBOSE1:install_signer.cc(460)] Got response: {"protocol_version":1,"invalid_ids":["{extensionID}"],"signature":"{value}==","expiry":"2018-03-13","pubkey_sha1_hash":"{value}"} 
VERBOSE1:content_verify_job.cc(230)] job failed for {extensionID} background.js reason:1 
VERBOSE1:content_verifier.cc(144)] VerifyFailed {extensionID} reason:1 

を私はまた、変更履歴に見て、 Chromiumソースコードが見つかりましたが、この動作の理由が見つかりませんでした。

https://chromium.googlesource.com/chromium/src/+log/62.0.3202.94..63.0.3239.84?pretty=fuller&n=10000

https://cs.chromium.org/chromium/src/extensions/browser/content_verifier.cc?sq=package:chromium&l=144

すべてのヘルプは、おかげで理解されるであろう!

答えて

1

が私のために問題を解決しmanifest.jsonを中update_urlを定義すると、あなたの拡張機能を再梱包しようとすることができます。 update_urlは実際のupdate_urlである必要はありません。たとえば、http://localhost/123をupdate_urlとして定義できます。

次のソースは、私を助け:

https://bugs.chromium.org/p/chromium/issues/detail?id=794219

https://cs.chromium.org/chromium/src/chrome/browser/extensions/install_verifier.cc?l=219&rcl=2c30e2d667b6790965fed75d19cc6b76be700265

0

あなたのログによれば、Chromeは拡張機能の変更を検出するため、「ローカルストア」から拡張機能を更新しようと試みますが、Chromeウェブストアからも更新を試みます。

あなたの内線で使用されている更新URLを確認する必要があります。

また、クローム63

関連する問題