--- title: Firefox 21 for developers slug: Mozilla/Firefox/Releases/21 tags: - Firefox - Firefox 21 translation_of: Mozilla/Firefox/Releases/21 ---
Gecko 21 を搭載した Firefox 21 は米国時間 2013 年 5 月 14 日にリリースされました。このページでは、開発者に影響する Firefox 20 の変更点をまとめています。
none は、値 -moz-none と同じ動作になりました。Gecko が WebKit (Chrome, Safari)、Presto (Opera)、Trident (Internet Explorer) に合わせています ({{bug("816298")}})。auto は、言語が明示的に宣言されていないときに間違ったハイフネーションルールを適用していました。これは ({{bug("702121")}}) で修正されました。auto を追加しました。値 auto は {{HTMLElement("meter")}} や {{HTMLElement("progress")}} に適用されたときに、horizontal と同等です ({{bug("835883")}})。origin プロパティを追加しました ({{bug("828261")}})。<input type="time"> 向けに valueAsDate メソッドと valueAsNumber メソッドを追加しました ({{bug("781570")}})。<input type="time"> に min 属性と max 属性が適用されるようになりました ({{bug("781572")}})。window.crypto.getRandomValues を実装しました ({{bug("440046")}})。Content-Security-Policy HTTP ヘッダを (実験的な X-Content-Security-Policy に加えて) サポートしました ({{bug("783049")}}。注意: 新たなヘッダのパッチは Firefox 21 で投入しましたが、ビルド時は無効にしています ({{bug("842657")}})。resource:///modules/ と resource://gre/modules/ は異なるものになりました ({{bug("755724")}})。これは、metro 版の Firefox における作業のために行った変更です。resource:///modules/ を使用してモジュールを読み込んでいる場合は、そうではなく resource://gre/modules/ を使用したいのではないかを確認するべきです。また、一部のモジュールが Firefox から Toolkit に移動したことに注意してください ({{bug("840287")}} および {{bug("811548")}} で、NewTabUtils.jsm および thumbnail モジュールがそれぞれ移動しました)。mozIAsyncFavicons で置き換え:
nsIFaviconService::setFaviconUrlForPagensIFaviconService::setFaviconDatansIFaviconService::getFaviconDatansIFaviconService::getFaviconForPagensIFaviconService::setAndLoadFaviconForPagensIFaviconService::getFaviconImageForPagensIFaviconService::getFaviconDataAsDataURLmozIAsyncLivemarks で置き換え:
nsILivemarkService::*PlacesUtils.itemIsLivemarkPlacesUtils.nodeIsLivemarkContainerPlacesUtils.nodeIsLivemarkItemPlacesUIUtils.showBookmarkDialogmozIAsyncHistory を使用してください:
nsIGlobalHistory2::addURInsIGlobalHistory2::isVisitednsIGlobalHistory2::setPageTitleonDeleteURI または onItemRemoved を使用してください:
nsINavHistoryObserver::OnBeforeDeleteURInsINavBookmarkObserver::OnBeforeItemRemovednsINavHistoryFullVisitResultNodemozIAsyncHistory::updatePlaces を使用してください:
nsINavHistoryService::AddVisit{{Firefox_for_developers('20')}}