Firefox

Firefox 34 で Method Definition 構文が実装された

924672 - Implement ES6 Method Definitions 14.3 Method Definitions var o = { method: function method () { return "OK" }, }; と書いていたところを var o = { method() { return "OK"; }, }; こう書けるようになる。

Firefox 34 でES6の Object.assign() が実装されたが…

937855 - Implement ES6 Object.assign 仕様: 19.1.2.1 Object.assign ( target, ...sources ) 皆さん待望の、mixin をするメソッドである。第一引数のtargetに、第二引数以降のプロパティの値を代入していく。 var obj = { foo: "FOO", }; var res = Object…

Firefox 34でES6構文の ComputedPropertyName が実装された

924688 - Implement ES6 computed property names また、新しい構文。オブジェクトリテラル中のプロパティ名部分に式を入れることができる様になる。 今まで var prop = "foo"; var obj = {}; obj[prop] = "FOO Property"; 今までは一旦オブジェクトを作って…

Firefox 34(Nightly)で String.raw が実装された件とTaggedTemplateについて

1039774 - Implement ES6 String.raw 仕様 12.3.7 Tagged Templates 21.1.2.4 String.raw TemplateLiteral の続き。前回は、`(バッククォート) でくくることで、ヒアドキュメント的な複数行に渡る文字列の生成ができる事、${expression}で式の埋め込みができ…

Firefox 33でES6のSymbolが実装された

645416 - harmony:symbols) Implement symbols 不完全ながら ES6 の Symbol が実装された。Symbolは、Undefined, Null, Boolean, Number, String に続く新たなプリミティブな型である。既にChromeのV8エンジンには実装されていて、Symbolについて - JS.next…

Firefox 32(Nightly) で Array.prototype.copyWithin が実装された

934423 - Implement Array#copyWithin mozilla-central: changeset 186637:2184d492b374 ECMAScript 6th 仕様の Array.prototype.copyWithin 実装。 Array.prototype.copyWithin (target, start [, end])引数は target(Number): コピー先の開始Index値 start…

Firefox 32 で Array.from が実装された

904723 - Implement ES6 Array.from 22.1.2.1 Array.from ( arrayLike [ , mapfn [ , thisArg ] ] ) Array-like な値をArrayに変換するメソッドです。引数は arrayLike: Array-likeなオブジェクト mapfn:(Optional) Array.prototype.map に渡すような functi…

はてなブックマーク拡張のコメント表示機能を修正してみた

Firefox 29 向けにはてなブックマークアドオンを自分で修正 パッチ diff --git a/chrome/content/browser/15-CommentViewer.js b/chrome/content/browser/15-CommentViewer.js index 9edd1d1..875b246 100644 --- a/chrome/content/browser/15-CommentViewer…

Firefox 31(Nightly)で Object.setPrototypeOf が実装された

885788 - Implement ES6 Object.setPrototypeOf 因みにChrome側のV8には既に実装されている。

Firfox 30(Nightly)で ES6的な ArrayComprehension,GeneratorComprehension が実装された

書くのが1週間ほど遅れた。 979865 - Implement ES6 array and generator comprehensions 12.1.4.2 Array Comprehension 12.1.7 Generator Comprehensions var arry = [for (value of iteratableObject) value]; // ArrayComprehension /* == (function() { …

Firefox 29 で String.fromCodePoint, String.prototype.codePointAt が実装された

918879 - Implement String#codePointAt and String.fromCodePoint テストコード: http://mxr.mozilla.org/mozilla-central/source/js/src/tests/ecma_6/String/ ECMAScript6th における、Unicode をもう少しうまく扱うためのメソッド2つ。従来の String.fr…

Ctrl + Tab でタブの選択履歴からタブ切り替え

window.twttr = (function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0], t = window.twttr || {}; if (d.getElementById(id)) return t; js = d.createElement(s); js.id = id; js.src = "https://platform.twitter.com/widgets.js"; fjs.paren…

Firefox 25 個人的まとめ(ECMAScript的何か)

885553 - Implement ES6 Array.prototype.find and Array.prototype.findIndex Firefox 25 で Array.prototype.{find, findIndex} が実装された - hogehoge 866849 - Implement ES6 Array.of 884279 - renaming future to promise Firefox 25(Nightly) で DO…

Firefox 27(Nightly) における新たな String.prototype["@@iterator"]

928508 – String.prototype.@@iterator (and thus for-of) incorrectly iterates over code units rather than Unicode characters ちょいと面白いものが実装されて、String.prototype["@@iterator"]がアップデートされてた。"@@iterator" というのは、ECMAS…

addons.mozilla.org に登録していたアドオンを無効化した

Firefox 用の Pano とか Thunderbird 用の WAT とかを無効化した。理由は、随分前からメンテできてなくて、これからもするかどうか怪しいから。そのくせ、たまに質問メールらしきものが来る。いい加減面倒になってきたのだ。ソースは GitHub にあるわけだが…

Mac で特定プロファイルの Firefox を起動するアプリを作る

もの凄く基本的なことなんだけど、忘れて Google 先生のお世話になることが多いのでメモっておくコマンドラインからだったら、 open -a Firefox --args -P profileName -no-remote でOKだが、いちいちコマンドラインから起動するのは面倒なこともあって、自…

Firefox 27(Nightly) の yield が { done, value } を返すようになった

ちょっと前に、Generator のプロトタイプ で書いたが、function * () { yield ...; } な構文が導入された。また、最近ユーザ作成の Generator.next() が { done: Boolean, value: Value } なオブジェクトを返すように変更された。*1 function * gene () { fo…

Firefox 27(Nightly) にて SpreadCall が実装された

762363 - (harmony:spreadcall) implement the spread operator in calls func (a, b, ...iterableObject); な感じで、イテレート可能なオブジェクトを展開して、それぞれの引数に分けてくれるもの。func (a, b, ...[1,2,3,4]) とすると、func (a, b, 1, 2, …

現状のFirefox,Chromeで、for-of でイテレートできるようにする

Firefox 26.0a1 (Nightly) @@iterator 実装なし 代わりに iterator メソッドを定義するとOK(仕様外) __iterator__ というものもあるが、for-of とは無関係(独自実装) GeneratorObject の next メソッドは値を返すのみで{ done: ..., value: ... }な値を…

Firefox 25(Nightly) で新たに構造体チックなのと数値リテラルが実装された

578700 – (harmony:bindata) [meta] Harmony binary data objects harmony:binary_data [ES Wiki] numerictypes.js arraytype.js structtype.js 894026 – Implement BinaryIntegerLiteral and OctalIntegerLiteral binary-literals.js octal-literal.js Bina…

Firefox 25(Nightly) にて、{Map,set}.prototype.forEach が実装された

866847 - Implement Map#forEach and Set#forEach テストコード mozilla-central mozilla/js/src/jit-test/tests/collections/Map-forEach.js mozilla-central mozilla/js/src/jit-test/tests/collections/Set-forEach.js これで Map, Set において、ECMAScr…

Firefox 25(Nightly) で DOM Future が DOM Promise に名前が修正された

884279 – renaming future to promise http://dom.spec.whatwg.org/#promises DOM Future ではなく、すでに、Promise に名前が変わっているけど、実装されたのは Future 。 Firefox 24(Nightly) で DOM Future が実装された - hogehoge ということで、仕様を…

「Firefox 23では「JavaScript無効化オプション」が無効化されるかも」?

Firefox 23では「JavaScript無効化オプション」が無効化されるかも | スラッシュドット・ジャパン IT 誤読されそうなので、本気で心配しているのだが、変更の Bugzilla では以下の様なタイトルである。 873709 – Firefox v23 - "Disable JavaScript " Check …

SpiderMonkey Regrets

Is the most implemented ECMAScript.next specs SpiderMonkey as known as Firefox's JavaScript engine ?Yes, indeed many of implementaions are available. I was watching and blogging the improvement. But some of things are launched for a long t…

Firefox 25 で Array.prototype.{find, findIndex} が実装された

[].indexOf に似ているけど、より汎用的なメソッドforEach, map, some, every 等と同様にコールバックを引数にとって、true を返したものの、値またはindex値を返すメソッドである。実装見たほうが分かりやすいかも。(ちょっと特殊だけどJavaScriptで書かれ…

Firefox 22 個人的まとめ

WebPlatform 系 time 要素の実装 (Bug 629801) data 要素の実装 (Bug 839371) input[range] 要素の実装 (Bug 841948) [WebComponents] document.register の実装 (Bug 783129 about:config から dom.webcomponents.enabled を true にする必要あり FormData …

Firefox 24(Nightly) で DOM Future が実装された

856410 - Implement promises DOM Future ではなく、すでに、Promise に名前が変わっているけど、実装されたのは Future 。 This feature used to be called futures. 4 Promise - DOM Standard テストコード: mozilla-central mozilla/dom/future/tests/tes…

Firefoxのアクセスキー

備忘録 <button accesskey="F">hoge</button> にどうやってキーボードをアクセスするか。about:config から設定可能であり、デフォルト値が OS によって異なる。キーとなるのは ui.key.generalAccessKey ui.key.contentAccess ui.key.chromeAccess ui.key.generalAcessKey OSに関係なく、デ…

Firefox 24(Nightly) で {Array,Map,Set}.prototype.{keys,values,entries} メソッド等が実装された

869996 – Set.prototype.{keys, values, entries} 875433 – iterator methods of [Array, Map, Set].prototype should be same function object as entries/values Array.prototype values() Map.prototype keys() values() entries() Set.prototype keys() …

Firefox 21 個人的まとめ

ちょっとフライング気味だけど WebPlatform 系 Style[scoped] のサポート (Bug 508725) <main> のサポート (Bug 820508) window.crypto.getRadomValues (Bug 440046) Web Cryptography API[W3C] window.crypto.getRandomValues - Document Object Model (DOM) | MD</main>…