Firefox 66 для разработчиков
Developer tools
- JavaScript getters can now be executed from the auto-completion popup in the Web Console (баг 1499289).
- The Window methods
alert()
,prompt()
, andconfirm()
now work again in Responsive Design Mode, after a period of being broken (баг 1273997).
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 sendscharset=utf-8
in theContent-Type
HTTP header for such files, otherwise the detection mechanism used for local files would break incremental loading in the network case (баг 1071816).
Removals
- The
x-moz-errormessage
attribute has been removed from the<input>
element (баг 1513890). You should use Constraint validation features to implement custom validation messages instead.
CSS
- Scroll anchoring has been implemented in Firefox Desktop (but not mobile yet), which includes the
overflow-anchor
property (баг 1305957). - We've implemented the case-sensitive attribute selector modifier,
s
(баг 1512386). - Several logical property shorthands have landed, along with the flow-relative border radius properties:
padding-block
andpadding-inline
(баг 1519847).margin-block
andmargin-inline
(баг 1519944).inset
,inset-block
, andinset-inline
(баг 1520229).border-block-color
,border-block-style
,border-block-width
,border-inline-color
,border-inline-style
, andborder-inline-width
(баг 1520236).border-block
andborder-inline
(баг 1520396).border-start-start-radius
,border-start-end-radius
,border-end-start-radius
, andborder-end-end-radius
(баг 1520684).
- We implemented the
overflow-inline
andoverflow-block
media queries (баг 1422235). grid-template-columns
andgrid-template-rows
are now animatable, as per the rules set out in their specs (баг 1348519).- We now support
calc
with percentages for table cells and column widths (баг 957915). - The
min-content
andmax-content
keywords are now available unprefixed (баг 1322780). These can be set on:
SVG
JavaScript
No changes.
APIs
New APIs/changes
- Autoplaying audio will be blocked by default soon after 66 becomes the release version of Firefox (баг 1487844, see баг 1535667 for rollout details). The feature will be rolled out gradually to users until everyone has it.
DOM
- The
HTMLSlotElement.assignedElements()
method has been implemented (баг 1425685). - The
TextEncoder.encodeInto()
method has been implemented (баг 1514664).
DOM events
- The
InputEvent.inputType
property has been implemented (баг 1447239). - The
Window.event
andEvent.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
KeyboardEvent.keyCode
property of thekeypress
event object is 0, the value will be the same asKeyboardEvent.charCode
. Conversely, whencharCode
is 0, it will be the same askeyCode
. 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).
Media, Web Audio, and WebRTC
- The
MediaDevices
methodgetDisplayMedia()
, available asnavigator.mediaDevices.getDisplayMedia()
, has been added and synchronized with the specification. This method lets you capture a screen or part of a screen as aMediaStream
for manipulation or sharing (баг 1321221). - As a step toward eventually deprecating the Firefox-specific
getUserMedia()
-based method for capturing screen and window contents, the non-standardmediaSource
constraint now treats the valuesscreen
andwindow
identically. Both now present a list of both screens and windows for the user to choose from (баг 1474376). qpSum
has been added to local outboundRTCRTPStreamStats
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 (баг 1347070).- In a step along the road toward implementing support for Feature Policy in a future Firefox update,
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<iframe>
or from adata
URL entered into the address bar by the user. For more specifics and details, see Security в MediaDevices.getUserMedia() (баг 1371741).
Removals
- The legacy WebRTC
PeerConnection.getStats()
method has been removed, along with associated types (баг 1328194).
Networking
- The default value of the
Accept
header has been changed to*/*
(баг 1417463).
Security
No changes.
Plugins
No changes.
Changes for add-on developers
API changes
Menus
- Extension menu items of the "bookmark"
type
will also appear in the Bookmarks sidebar (Ctrl + B) and Library window (Ctrl + Shift + B) (баг 1419195).
Manifest changes
No changes.
See also
Older versions
- Firefox 65 для разработчиков
- Firefox 64 для разработчиков
- Firefox 63 для разработчиков
- Firefox 62 для разработчиков
- Firefox 61 для разработчиков
- Firefox 60 для разработчиков
- Firefox 59 для разработчиков
- Firefox 58 для разработчиков
- Firefox 57 для разработчиков
- Firefox 56 для разработчиков
- Firefox 55 для разработчиков
- Firefox 54 для разработчиков
- Firefox 53 для разработчиков
- Firefox 52 для разработчиков
- Firefox 51 для разработчиков
- Firefox 50 для разработчиков
- Firefox 49 для разработчиков
- Firefox 48 для разработчиков
- Firefox 47 для разработчиков
- Firefox 46 для разработчиков
- Firefox 45 для разработчиков
- Firefox 44 для разработчиков
- Firefox 43 для разработчиков
- Firefox 42 для разработчиков
- Firefox 41 для разработчиков
- Firefox 40 для разработчиков
- Firefox 39 для разработчиков
- Firefox 38 для разработчиков
- Firefox 37 для разработчиков
- Firefox 36 для разработчиков
- Firefox 35 для разработчиков