---
title: Firefox 66 for developers
slug: Mozilla/Firefox/Releases/66
translation_of: Mozilla/Firefox/Releases/66
---
{{FirefoxSidebar}}
본 문서는, 개발자를 대상으로 Firefox 66에서 변경된 내용을 알려드립니다.
웹 개발자를 위한 변경사항
개발자 도구
- JavaScript getters can now be executed from the auto-completion popup in the Web Console ({{bug(1499289)}}).
- The Window methods {{domxref("Window.alert()", "alert()")}}, {{domxref("Window.prompt()","prompt()")}}, and {{domxref("Window.confirm()","confirm()")}} now work again in Responsive Design Mode, after a period of being broken ({{bug(1273997)}}).
- You can copy the output of the console to the clipboard by right-clicking and selecting "Export visible messages to clipboard" from the context menu.
HTML
- UTF-8-encoded HTML (and plain text) files loaded from
file:
URLs are now supported without <meta charset="utf-8">
or the UTF-8 BOM, making it easier to work on such files locally before uploading them to a server. You still need to make sure that the server sends charset=utf-8
in the Content-Type
HTTP header for such files, otherwise the detection mechanism used for local files would break incremental loading in the network case ({{bug(1071816)}}).
제거사항
- The
x-moz-errormessage
attribute has been removed from the {{HTMLElement("input")}} element ({{bug(1513890)}}). You should use {{domxref("Constraint_validation", "Constraint validation features", "", "1")}} to implement custom validation messages instead.
CSS
- Scroll anchoring has been implemented in Firefox Desktop (but not mobile yet), which includes the {{cssxref("overflow-anchor")}} property ({{bug(1305957)}}).
- We've implemented the case-sensitive attribute selector modifier,
s
({{Bug(1512386)}}).
- Several logical property shorthands have landed, along with the flow-relative border radius properties:
- {{cssxref("padding-block")}} and {{cssxref("padding-inline")}} ({{bug(1519847)}}).
- {{cssxref("margin-block")}} and {{cssxref("margin-inline")}} ({{bug(1519944)}}).
- {{cssxref("inset")}}, {{cssxref("inset-block")}}, and {{cssxref("inset-inline")}} ({{bug(1520229)}}).
- {{cssxref("border-block-color")}}, {{cssxref("border-block-style")}}, {{cssxref("border-block-width")}}, {{cssxref("border-inline-color")}}, {{cssxref("border-inline-style")}}, and {{cssxref("border-inline-width")}} ({{bug(1520236)}}).
- {{cssxref("border-block")}} and {{cssxref("border-inline")}} ({{bug(1520396)}}).
- {{cssxref("border-start-start-radius")}}, {{cssxref("border-start-end-radius")}}, {{cssxref("border-end-start-radius")}}, and {{cssxref("border-end-end-radius")}} ({{bug(1520684)}}).
- We implemented the {{cssxref("@media/overflow-inline", "overflow-inline")}} and {{cssxref("@media/overflow-block", "overflow-block")}} media queries ({{Bug(1422235)}}).
- {{cssxref("grid-template-columns")}} and {{cssxref("grid-template-rows")}} are now animatable, as per the rules set out in their specs ({{bug(1348519)}}).
- We now support {{cssxref("calc")}} with percentages for table cells and column widths ({{bug(957915)}}).
- The
min-content
and max-content
keywords are now available unprefixed ({{bug(1322780)}}). These can be set on:
- {{cssxref("width")}}
- {{cssxref("height")}}
- {{cssxref("flex-basis")}}
- {{cssxref("min-width")}}
- {{cssxref("max-width")}}
- {{cssxref("min-height")}}
- {{cssxref("max-height")}}
- {{cssxref("min-block-size")}}
- {{cssxref("min-inline-size")}}
- {{cssxref("max-block-size")}}
- {{cssxref("max-inline-size")}}
- {{cssxref("block-size")}}
- {{cssxref("inline-size")}}
SVG
추가사항 없음.
제거사항
xml:base
속성의 지원이 제거되었습니다. ({{Bug(903372)}})
JavaScript
변경사항 없음.
API
New APIs/changes
- Autoplaying audio will be blocked by default soon after 66 becomes the release version of Firefox ({{bug(1487844)}}, see {{bug(1535667)}} for rollout details). The feature will be rolled out gradually to users until everyone has it.
DOM
- The {{domxref("HTMLSlotElement.assignedElements()")}} method has been implemented ({{bug(1425685)}}).
- The {{domxref("TextEncoder.encodeInto()")}} method has been implemented ({{bug(1514664)}}).
DOM events
- The {{domxref("InputEvent.inputType")}} property has been implemented ({{bug(1447239)}}).
- The {{domxref("Window.event")}} and {{domxref("Event.returnValue")}} properties — originally proprietary IE features, then also supported across other browsers for compatibility purposes — have been re-introduced in Firefox 66, after first being added in versions 63 and 64 respectively but then removed again due to compatibility issues.
- From 66 onwards, when the {{domxref("KeyboardEvent.keyCode")}} property of the {{event("keypress")}} event object is 0, the value will be the same as {{domxref("KeyboardEvent.charCode")}}. Conversely, when
charCode
is 0, it will be the same as keyCode
. This mirroring behavior matches other browsers and is expected to solve most associated compatibility issues, however user agent sniffing might cause further issues in some JavaScript libraries. Note that in spec terms, we've switched from the split model to the conflated model (see How to determine keyCode for keypress events in the UI Event spec).
- The {{domxref("MediaDevices")}} method {{domxref("MediaDevices.getDisplayMedia", "getDisplayMedia()")}}, available as
navigator.mediaDevices.getDisplayMedia()
, has been added and synchronized with the specification. This method lets you capture a screen or part of a screen as a {{domxref("MediaStream")}} for manipulation or sharing ({{bug(1321221)}}).
- As a step toward eventually deprecating the Firefox-specific {{domxref("MediaDevices.getUserMedia", "getUserMedia()")}}-based method for capturing screen and window contents, the non-standard
mediaSource
constraint now treats the values screen
and window
identically. Both now present a list of both screens and windows for the user to choose from ({{bug(1474376)}}).
- {{domxref("RTCRtpStreamStats.qpSum", "qpSum")}} has been added to local outbound {{domxref("RTCRTPStreamStats")}} objects. This measures the total of the Quantization Parameter values for every frame sent or received on the video track. The higher this number, the more compressed the stream probably is ({{bug(1347070)}}).
- In a step along the road toward implementing support for Feature Policy in a future Firefox update, {{domxref("MediaDevices.getUserMedia", "getUserMedia()")}} can no longer be used in situations in which there is no proper origin for the content, such as when called from a sandboxed {{HTMLElement("iframe")}} or from a
data
URL entered into the address bar by the user. For more specifics and details, see {{SectionOnPage("/en-US/docs/Web/API/MediaDevices/getUserMedia", "Security")}} ({{bug(1371741)}}).
제거사항
- The legacy WebRTC {{domxref("PeerConnection.getStats()")}} method has been removed, along with associated types ({{bug(1328194)}}).
Networking
- {{httpheader("Accept")}} 헤더의 기본 값이
*/*
로 변경되었습니다. ({{bug(1417463)}})
보안
변경사항 없음.
플러그인
변경사항 없음.
애드온 개발자를 위한 변경사항
API 변화
- Extension menu items of the "bookmark" {{WebExtAPIRef("menus.ContextType", "type")}} will also appear in the Bookmarks sidebar (Ctrl + B) and Library window (Ctrl + Shift + B) ({{bug(1419195)}}).
Manifest changes
No changes.
{{Firefox_for_developers(65)}}