localStorageで空の値を入れるとIE8がクラッシュする件

category-icon

 こんにちは。そろそろppBlogにもlocalStorageGに対応したスクリプトを組み込もうかと思っていますが、IE8で空(から)の値を入れるとブラウザがクラッシュして終了する現象に遭いました。MacBook Pro上のVMware Fusionに入れたWindows7 RC版IE8で発生します。正規版だとOKなのかなぁ。

 簡単なデモを用意しました(IE8ならクラッシュしても良い状態でアクセス)。→http://p2b.jp/demo/localStorage.html

 Firefox3.5では値が空でもエラーも何も起きませんが、IE8では即座にクラッシュです。そのスクリーンショットをば。適当なキーを設定して(例えば「foo」)、値を何も設定せずに「追加」ボタンを押すと発生。

IE8-crashed
クラッシュしても自動的に復元されますが・・・。

上記ページのスクリプトはごくシンプルなもの。

if(typeof localStorage != "object"){
 if(typeof globalStorage == "object"){ // Firefox2 possible
  localStorage = globalStorage[location.hostname];
 } else alert("お使いのブラウザはこのスクリプトに対応していません。");
}

function addItem(){
 var key = document.getElementById("key").value;
 var value = document.getElementById("value").value;
 window.localStorage[key] = value;
}

 空の値かどうかチェックすれば済む話ですが。

関連エントリー(解決編?)

  ■http://p2b.jp/200912-localStorage-crashes-IE8-with-empty-value-part2

 

— posted by martin at 09:36 pm   commentComment [5]  pingTrackBack [1]

この記事に対するコメント・トラックバック [6件]

scrollUp1. BENIT — 2009/12/16@22:32:41

ご無沙汰してます。BENITです。
更新したいなぁしたいなぁ、と思いつつ、テーマのCSS修正に時間がとれず、なかなか最新版にできていない状況です。。。

さて、エントリの内容ですが、正式版のIE8でもばっちり落ちました。Vista 64bit上になります。
ただ、クラッシュリカバリの機能がすぐに働いてすべて元に戻り、大事に至らないようになったのはちょっと驚きましたが(笑

Owner Comment martin Website  2009/12/17@02:21:03

こんばんは。ご報告ありがとうございます。Vista版でもですか。ユーザーが空の値をセットしうるというのは十分に想定できる気もしますが、ちょっと意外ですねぇ。
確かに、クラッシュリカバリーは何事もなかったかのように復帰しますね。

3. 何かできるまでのとんでもなく遠回りな道のり Website — 2010/12/07@18:46:27

はじめに 最近html5のことをよく調べているので、メモ書きしていたURLが溜まってきてしまった。ずっとメモとして置いておくよりも外に出してしまおうと思ったので列挙してみる。これでメモも綺麗さっぱりになる。 概要を知る http://www.html5.jp/Link やはりまずはここから…
続き »

4. ひまわり — 2012/11/18@11:07:25

失礼します♪
カズコ先生♪聖山アトスでの巡礼そして特別遠隔ヒーリング、
とてもお疲れになられた事と思われます。大変お疲れ様でした。
17日、ヒーリングカードが届きました。
カードを手にした時、体全体が熱くなりました。
とても「有難い…」気持ちになり、幸せをいただきました。
本当にありがとうございます!(ローズヒップティもいだだきました。)

以前、先生にコンサルテーションの鑑定をいただき、
現世で学ぶ事、何を目的として生まれ変わったのか、悪い癖を教えて頂いてから
前向きに考えられるようになりました。今でも鑑定結果に目を通し私の励みとなっています。
家族4人の中で女性ひとり、私が変わってみんなを明るくリードできるように魂の修行をしてまいります。
これからもよろしくお願いします。

いつもありがとうございます。(人)
合唱

5. 絶對高潮カプセル Website — 2014/01/25@18:02:58

妖姫:http://妖姫.yahookanpou.com
媚薬 妖姫:http://妖姫.yahookanpou.com
淫インモラル:http://immoral.yahookanpou.comLink
インモラル:http://immoral.yahookanpou.comLink
淫インモラル 販売:http://immoral.yahookanpou.comLink
インモラル 販売:http://immoral.yahookanpou.comLink
媚薬 淫イン モラル:http://immoral.yahookanpou.comLink
媚薬 インモラル:http://immoral.yahookanpou.comLink

蒼蝿水:http://蒼蝿水通販.com
西班牙蒼蝿水:http://西班牙蒼蝿水.com
淫インモラル:http://淫インモラル.com
インモラル:http://インモラル.net
淫インモラル:http://淫インモラル.net
インモラル媚薬:http://インモラル媚薬.com
d10催情剤:http://d10Link 催情剤.com
d10媚薬:http://d10Link 媚薬.com
蒼蝿粉:http://蒼蝿粉.com
d5原液:http://d5Link 原液.com
絶對高潮:http://絶對高潮通販.com
蒼蝿粉:http://蒼蝿粉.net
花之欲:http://花之欲.net
縮陰膏:http://縮陰膏.com
韓国痩身一号:http://韓国痩身一号.com
壮天根:http://壮天根.com
催情丹:http://催情丹.com

蒼蝿水:http://xn--1rw563cv3bezh3ze.com/Link
西班牙蒼蝿水:http://xn--1rwz4kv8a2x0b9edxvd.com/Link
淫インモラル:http://xn--eckwgvai1b8519e.com/Link
インモラル:http://xn--eckwgvai1b.net/Link
淫インモラル:http://xn--eckwgvai1b8519e.net/Link
インモラル媚薬:http://xn--eckwgvai1b7344ch96c.com/Link
d10催情剤:http://xn--d10-y90eq2f999a.com/Link
d10媚薬:http://xn--d10-hl9e441q.com/Link
蒼蝿粉:http://xn--i6zw1ov9b.com/Link
d5原液:http://xn--d5-8d6cy20h.com/Link
絶對高潮:http://xn--wetw46b3hk0yo36dn8t.com/Link
蒼蝿粉:http://xn--i6zw1ov9b.net/Link
花之欲:http://xn--9iq971es9p.net/Link
縮陰膏:http://xn--jj0a42ee7z.com/Link
韓国痩身一号:http://xn--4gq48lkwcy40cp4z0ql.com/Link
壮天根:http://xn--2qs4es67b.com/Link
催情丹:http://xn--riq92di5x.com/Link

妖姫:http://妖姫.yahookanpou.com
媚薬 妖姫:http://妖姫.yahookanpou.com
淫インモラル:http://immoral.yahookanpou.comLink
インモラル:http://immoral.yahookanpou.comLink
淫インモラル 販売:http://immoral.yahookanpou.comLink
インモラル 販売:http://immoral.yahookanpou.comLink
媚薬 淫イン モラル:http://immoral.yahookanpou.comLink
媚薬 インモラル:http://immoral.yahookanpou.comLink

蒼蝿水:http://蒼蝿水通販.com
西班牙蒼蝿水:http://西班牙蒼蝿水.com
淫インモラル:http://淫インモラル.com
インモラル:http://インモラル.net
淫インモラル:http://淫インモラル.net
インモラル媚薬:http://インモラル媚薬.com
d10催情剤:http://d10Link 催情剤.com
d10媚薬:http://d10Link 媚薬.com
蒼蝿粉:http://蒼蝿粉.com
d5原液:http://d5Link 原液.com
絶對高潮:http://絶對高潮通販.com
蒼蝿粉:http://蒼蝿粉.net
花之欲:http://花之欲.net
縮陰膏:http://縮陰膏.com
韓国痩身一号:http://韓国痩身一号.com
壮天根:http://壮天根.com
催情丹:http://催情丹.com

蒼蝿水:http://xn--1rw563cv3bezh3ze.com/Link
西班牙蒼蝿水:http://xn--1rwz4kv8a2x0b9edxvd.com/Link
淫インモラル:http://xn--eckwgvai1b8519e.com/Link
インモラル:http://xn--eckwgvai1b.net/Link
淫インモラル:http://xn--eckwgvai1b8519e.net/Link
インモラル媚薬:http://xn--eckwgvai1b7344ch96c.com/Link
d10催情剤:http://xn--d10-y90eq2f999a.com/Link
d10媚薬:http://xn--d10-hl9e441q.com/Link
蒼蝿粉:http://xn--i6zw1ov9b.com/Link
d5原液:http://xn--d5-8d6cy20h.com/Link
絶對高潮:http://xn--wetw46b3hk0yo36dn8t.com/Link
蒼蝿粉:http://xn--i6zw1ov9b.net/Link
花之欲:http://xn--9iq971es9p.net/Link
縮陰膏:http://xn--jj0a42ee7z.com/Link
韓国痩身一号:http://xn--4gq48lkwcy40cp4z0ql.com/Link
壮天根:http://xn--2qs4es67b.com/Link
催情丹:http://xn--riq92di5x.com/Link

scrollUp6. VigRx Website — 2014/01/25@18:07:11

リドスプレー:http://www.newtrendsshop.com/p212.htmlLink
リドスプレー:http://www.newtrendsshop.com/p212.htmlLink
リドスプレー:http://www.newtrendsshop.com/p212.htmlLink
リドスプレー:http://www.newtrendsshop.com/p212.htmlLink
三便宝:http://www.newtrendsshop.com/p375.htmlLink
さんべんぼう:http://www.newtrendsshop.com/p375.htmlLink
三便宝カプセル:http://www.newtrendsshop.com/p288.htmlLink
三便宝:http://www.newtrendsshop.com/p375.htmlLink
さんべんぼう:http://www.newtrendsshop.com/p375.htmlLink
三便宝カプセル:http://www.newtrendsshop.com/p288.htmlLink
蟻力神:http://www.newtrendsshop.com/p129.htmlLink
イーリーシン:http://www.newtrendsshop.com/p129.htmlLink
ビグレックス:http://www.newtrendsshop.com/p198.htmlLink
勃動力三體牛鞭:http://www.newtrendsshop.com/p456.htmlLink
勃動力三體牛鞭:http://www.newtrendsshop.com/p456.htmlLink
勃動力三體牛鞭:http://www.newtrendsshop.com/p456.htmlLink
勃動力三體牛鞭:http://www.newtrendsshop.com/p456.htmlLink
妖姫:http://www.newtrendsshop.com/p650.htmlLink
妖姫:http://www.newtrendsshop.com/p650.htmlLink
妖姫:http://www.newtrendsshop.com/p650.htmlLink
妖姫:http://www.newtrendsshop.com/p650.htmlLink
妖姫:http://www.newtrendsshop.com/p650.htmlLink
VVK:http://www.newtrendsshop.com/p192.htmlLink
VVK:http://www.newtrendsshop.com/p192.htmlLink
VVK:http://www.newtrendsshop.com/p192.htmlLink
VVK:http://www.newtrendsshop.com/p192.htmlLink
Wenickman:http://www.newtrendsshop.com/p192.htmlLink
Wenickman:http://www.newtrendsshop.com/p192.htmlLink
Wenickman:http://www.newtrendsshop.com/p192.htmlLink
Wenickman:http://www.newtrendsshop.com/p192.htmlLink
Wenickman:http://www.newtrendsshop.com/p192.htmlLink
VigRx:http://www.newtrendsshop.com/p459.htmlLink
VigRx:http://www.newtrendsshop.com/p459.htmlLink
VigRx:http://www.newtrendsshop.com/p459.htmlLink
VigRx:http://www.newtrendsshop.com/p459.htmlLink
モチベーター:http://www.newtrendsshop.com/p213.htmlLink
モチベーター:http://www.newtrendsshop.com/p213.htmlLink
モチベーター:http://www.newtrendsshop.com/p213.htmlLink
モチベーター:http://www.newtrendsshop.com/p213.htmlLink
モチベーター:http://www.newtrendsshop.com/p213.htmlLink
壮陽一号:http://www.newtrendsshop.com/p54.htmlLink
壮陽一号:http://www.newtrendsshop.com/p54.htmlLink
壮陽一号:http://www.newtrendsshop.com/p54.htmlLink
壮陽一号:http://www.newtrendsshop.com/p54.htmlLink
中華牛鞭:http://www.newtrendsshop.com/p60.htmlLink
中華牛鞭:http://www.newtrendsshop.com/p60.htmlLink
中華牛鞭:http://www.newtrendsshop.com/p60.htmlLink
中華牛鞭:http://www.newtrendsshop.com/p60.htmlLink
悦可亭:http://www.newtrendsshop.com/p699.htmlLink
悦可亭:http://www.newtrendsshop.com/p699.htmlLink
悦可亭:http://www.newtrendsshop.com/p699.htmlLink
悦可亭:http://www.newtrendsshop.com/p699.htmlLink
悦可亭の長効避妊薬:http://www.newtrendsshop.com/p699.htmlLink
悦可亭の長効避妊薬:http://www.newtrendsshop.com/p699.htmlLink
悦可亭の長効避妊薬:http://www.newtrendsshop.com/p699.htmlLink
悦可亭の長効避妊薬:http://www.newtrendsshop.com/p699.htmlLink
悦可亭の長効避妊薬:http://www.newtrendsshop.com/p699.htmlLink
VVK:http://www.newtrendsshop.com/p192.htmlLink
VVK:http://www.newtrendsshop.com/p192.htmlLink
VVK:http://www.newtrendsshop.com/p192.htmlLink
VVK:http://www.newtrendsshop.com/p192.htmlLink
Wenickman:http://www.newtrendsshop.com/p192.htmlLink
Wenickman:http://www.newtrendsshop.com/p192.htmlLink
Wenickman:http://www.newtrendsshop.com/p192.htmlLink
Wenickman:http://www.newtrendsshop.com/p192.htmlLink
Wenickman:http://www.newtrendsshop.com/p192.htmlLink
VigRx:http://www.newtrendsshop.com/p459.htmlLink
VigRx:http://www.newtrendsshop.com/p459.htmlLink
VigRx:http://www.newtrendsshop.com/p459.htmlLink
VigRx:http://www.newtrendsshop.com/p459.htmlLink

この記事に対する TrackBack URL:

設定によりTB元のページに、こちらの記事への言及(この記事へのリンク)がなければ、TB受付不可となりますのであらかじめご了承下さい。

コメントをどうぞ。 名前(ペンネーム)と画像認証のひらがな4文字は必須で、ウェブサイトURLはオプションです。

ウェブサイト (U):

タグは使えません。http://・・・ は自動的にリンク表示となります

:) :D 8-) ;-) :P :E :o :( (TT) ):T (--) (++!) ?;w) (-o-) (**!) ;v) f(--; :B l_P~

     
T: Y: ALL: Online:
Created in 0.0046 sec.
prev
2024.3
next
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31