Hatena::Grouporera

言いたい放題

2010-02-09

再現した。

| 11:11

前回のやつ、↑ の方法だと再現しました。

javascript:
(function func1(){

  function func2(){
    alert(typeof func1);
  }

  alert(typeof func1); 
  func2();
})();

以上のブックマークレットを実行すると、Opera 10.10 では function function と2回アラートが出るけど、Opera 10.50 では function undefined と2回アラートが出るはず。

(function func1(){...})(); という、いわば特殊な宣言方法 (ECMAScript 上は function expression という) でのみ起こるみたい。

(ただし相変わらず oAutoPagerize は動いているのが謎)


とりあえず↓にある DSK-279328 への追加情報としてバグレポートを出してみた。

  • DSK-279737
Summary: Additional information on DSK-279328


Steps to reproduce
===================
1. Run the below bookmarklet;

javascript:
(function func1(){
function func2(){
alert(typeof func1);
}
alert(typeof func1);
func2();
})();


Expected result
===============
You should see two alerts, both 'function'. (on Opera 10.10 and all other browsers)

Actual result
=============
You see two alerts, the first one is 'function', the second is 'undefined'. (only on Opera 10.50)

This only occurs when a function is declared and executed like this "(function func(){...})()" and the body of the function declares another function. Then the scope inside the inner function does not see the name of the outer function.

10.50でのCanvasの文字化けを報告した

| 12:40

とかで書いた文字化けの件を報告した。


  • DSK-279743
Summary: Garbling Japanese text on canvas

URL: http://www.html5.jp/canvas/ref/method/sample/fillText.html

Steps to reproduce
===================
1. Navigate to the above URL.
2. See the canvas element and the sample code.

Expected result
===============
What's drawn on the <canvas> should look like this;
http://www.html5.jp/canvas/ref/method/img/fillText.png

Actual result
=============
Japanese text garbles when using strokeText or setting maxLength property. (fillText is fine)

saitonsaiton2010/02/09 20:34こちらの自宅の Windows, 会社の Windows と Mac 共に問題が再現しないのですが、edvakf サン以外のところで再現する人いますか?

edvakfedvakf2010/02/09 23:37どちらの件でしょうか? 文字化けですか? それなら uupaa さんが前に。
http://twitter.com/uupaa/status/8001877656

Fallback HTML Encoding iso-8859-1
HTTP Accept Language en,ja;q=0.9, (以下略)
です。Encoding Japanese automatic detection にしても変わらず。

バージョンはこれです。
http://snapshot.opera.com/mac/Opera_10.50_8240_Intel.dmg
http://my.opera.com/desktopteam/blog/2010/02/05/skin-fixes-unite-and-then-some

トラックバック - http://orera.g.hatena.ne.jp/edvakf/20100209

2010-02-07

再現しない

17:49

名前空間がどうなってるのか、

oAutoPagerize が自分の名前を知らない現象になった。

よくわからないのでグローバルに出すという素人工作。

(function oAutoPagerize(...){...})(...);

var oAutoPagerize = function(...){...};
oAutoPagerize(...);

にした。なんでだろ

↑うちは大丈夫なんだけど、何が起こってるのだろう。


javascript:(function f(){ alert(f) })();

も動くし。Opera のバージョンは http://my.opera.com/desktopteam/blog/2010/02/05/skin-fixes-unite-and-then-some で Mac OS X です。

ttamottamo2010/02/07 18:40へえー、じゃあ Windows だけなんですね。
新規プロファイルからも再現したので、おかしな条件が必要なバグではないと思います。

あと、単純な再起は大丈夫みたいですが、無名関数の中からは見えない、みたいな感じです。
oAutoPagerize をバグレポに出すのは面倒だったので、シンプルにしたものを作り、
http://d.hatena.ne.jp/os0x/20100201/1265000850#c にも書いておきました。

Javascript のことはぜんぜん知らないので、見当違いのことを書いてるかもしれませんが。

トラックバック - http://orera.g.hatena.ne.jp/edvakf/20100207

2010-02-06

twitterのログをOperaに保存させてみるテスト

08:16

↑で自分のタイムラインが全部取得できるので、Opera のフィードリーダーに登録してみた。


フィードの From 欄が edvakf with friends とかだったので、"edvakf" でクイック検索したら全部ヒットして、使えねー…と思ってたんだけど、メール機能をオンにしたらフィルター機能が使えるようになった。アドレスとか名前は適当に入れただけだけど。

f:id:edvakf:20100206080448p:image


詳細設定の Notification からメール関係の通知もオフにした。(これがうざいのでいつも Opera のフィードリーダーに挑戦してもすぐに諦めてたんだけど、オフにできたんだね)

しばらく使ってみる。


全部読むつもりじゃなくて、後で検索用途に使えたらいいと思ったので。半日使っただけで未読1300件とかになってたので、全部読むなんて無理。Opera が耐えられるのか心配。

トラックバック - http://orera.g.hatena.ne.jp/edvakf/20100206