<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>nakamura001</author_name>
  <author_url>https://blog.hatena.ne.jp/nakamura001/</author_url>
  <blog_title>強火で進め</blog_title>
  <blog_url>https://nakamura001.hatenablog.com/</blog_url>
  <categories>
    <anon>JavaScript</anon>
  </categories>
  <description>FirefoxでCanvasタグに色々と描画をさせるプログラムをしている時に以下の様なエラーが発生しました。 Security error&quot; code: &quot;1000通常のエラーとは異なり、セキュリティエラーと有ります。しかも、具体的な情報はほぼゼロ。色々とテストした結果、何とか原因を突き止めました。再現方法以下。1. JavaScriptが置いて有るドメインとは異なるドメインに有る画像を使って drawImage() でcavasに描画。 2. getImageData() でピクセル情報を取得する。この 2. を行った瞬間にセキュリティエラーが発生します。サンプルとして以下の様なプログラムを…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnakamura001.hatenablog.com%2Fentry%2F20101206%2F1291658820&quot; title=&quot;Canvas関連のプログラムをしていたときに発生するセキュリティエラー Security error&amp;quot; code: &amp;quot;1000 の意味 - 強火で進め&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/n/nakamura001/20101207/20101207025848.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2010-12-06 03:07:00</published>
  <title>Canvas関連のプログラムをしていたときに発生するセキュリティエラー Security error&quot; code: &quot;1000 の意味</title>
  <type>rich</type>
  <url>https://nakamura001.hatenablog.com/entry/20101206/1291658820</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
