Commit Graph

1463 Commits

Author SHA1 Message Date
Markus Stange
6bb3620330 Back out bug 1012752 for causing bug 1285532 and bug 1286674.
MozReview-Commit-ID: DYZ3D4yL1eZ

--HG--
extra : source : b98df554a6f0aa154275d363163ec618189503ed
2016-07-16 17:10:08 -04:00
Andrew McCreight
99cc962f31 Bug 1287636 - Remove HTMLContentSink::mNodeInfoCache. r=smaug
This field is unused.

Also remove some trailing whitespace.
2016-07-20 15:19:00 -07:00
Andrew McCreight
2f88762913 Bug 1287146 - Remove unused argument from NodeInfoChanged(). r=bkelly 2016-07-20 15:18:59 -07:00
Carsten "Tomcat" Book
8428cd56e3 merge mozilla-inbound to mozilla-central a=merge 2016-07-20 11:20:15 +02:00
Carsten "Tomcat" Book
668b63cbb9 merge autoland to mozilla-central a=merge 2016-07-20 10:59:12 +02:00
Carsten "Tomcat" Book
868b17897f merge fx-team to mozilla-central a=merge 2016-07-19 16:09:20 +02:00
Decky Coss
930377928e Bug 1286321 - always ignore language attribute when processing script element if type attribute is defined. r=bz
MozReview-Commit-ID: AQV9mkYzLL2

--HG--
extra : transplant_source : %92%96%BC2%0C%CA%C1%14%F4%A4%18B%0E%D5%28%A5NI%15T
2016-07-13 12:10:13 -04:00
Gerald Squelart
a515ff1c65 Bug 1287684 - Report HTMLMediaElement telemetry for non-MSE - r=rillian
Removed test blocking execution of ReportTelemetry in non-MSE case.

EME currently depends on MSE, so ReportEMETelemetry won't do anything in the
non-MSE case anyway. But I think it's good to remove the MSE test as well, in
case we change that limitation in the future.

MozReview-Commit-ID: 8sTg5F13KMs

--HG--
extra : rebase_source : f4acd3011f34be11b37c221ffd8439f6396fd37d
2016-07-19 14:33:55 +10:00
Sebastian Kaspari
7d659e0066 Backed out 3 changesets (bug 1282410)
Backed out changeset 39c367ecc144 (bug 1282410)
Backed out changeset 577309fc4bbb (bug 1282410)
Backed out changeset 339b5c5d3595 (bug 1282410)

MozReview-Commit-ID: 17IgTjbib20
2016-07-18 17:26:25 +02:00
Sebastian Kaspari
bb6eb374b4 Backed out changeset 83088b5375ae (bug 1284754)
MozReview-Commit-ID: F0AEFYIxgHI
2016-07-18 17:26:24 +02:00
Nicholas Nethercote
2ebfc5116b Bug 1197973 - Use MOZ_MUST_USE in AutoJSAPI. r=bz. 2016-07-14 13:18:11 +10:00
Carsten "Tomcat" Book
a0992595d6 merge mozilla-inbound to mozilla-central a=merge 2016-07-17 10:08:08 +02:00
Carsten "Tomcat" Book
4d078ded39 Backed out changeset b98df554a6f0 (bug 1012752) 2016-07-17 09:20:26 +02:00
Markus Stange
2adb931c36 Back out bug 1012752 for causing bug 1285532 and bug 1286674.
MozReview-Commit-ID: DYZ3D4yL1eZ

--HG--
extra : histedit_source : c6fc9d036cbca0589e74587e17876f9417c3f2ad
2016-07-16 17:10:08 -04:00
Jean-Yves Avenard
6f49eb89cc Bug 1287021: [MSE] Set delaying-the-load-event-flag to false when attaching media source. r=jwwang
MozReview-Commit-ID: IsF1BPHrjce

--HG--
extra : rebase_source : 5639c3007979c2cdc2f5ac284cee068a1382aa14
2016-07-15 14:22:47 +10:00
Stone Shih
9a816de486 Bug 1261674 - Handle wheel event when mouse cursor is hovered on a focused range input as increasing/decreasing it's value. r=smaug
--HG--
extra : rebase_source : 1e801d569b3c3b49f3c7f1fe409b929fa27de17e
2016-07-05 17:48:19 +08:00
Carsten "Tomcat" Book
ea82d775d8 merge mozilla-inbound to mozilla-central on a CLOSED TREE a=merge 2016-07-15 16:15:33 +02:00
Gerald Squelart
ddbe07d2c6 Bug 1286444 - Fix types when using VideoPlaybackQuality values - r=kinetik
These numbers are only used to calculate a percentage, so they don't really
need to be 64-bit long.

MozReview-Commit-ID: FfdyStjGITL

--HG--
extra : rebase_source : 704d7664a3462f68f2c495e3b5d66f71180d290b
2016-07-14 15:25:40 +10:00
Gerald Squelart
46e43139df Bug 1286444 - Use correct types to construct VideoPlaybackQuality - r=kinetik
VideoPlaybackQuality was fed uint64_t's, now it should be given uint32_t's.
Note that FrameStatistics currently provide uint32_t's, so we are fine now;
nevertheless I added a static_assert to verify that and ensure it stays true.

MozReview-Commit-ID: I0dgP1K4lg3

--HG--
extra : rebase_source : f8d673db0cd45d2b3ae03c092dff217e5d7ebbee
2016-07-14 15:18:36 +10:00
Carsten "Tomcat" Book
7c0644d587 Merge mozilla-central to mozilla-inbound 2016-07-14 11:56:37 +02:00
Gerald Squelart
ee83c3575b Bug 1285419 - Record mediasource hidden play time - r=kamidphish
Note that this is a simple duration counter based on the existing (non-hidden)
play-time, but it only counts when video is playing while hidden.
There is no bucketing yet, future probes may add finer-grained information.

MozReview-Commit-ID: DUfryXjGBAN

--HG--
extra : rebase_source : 4d0bd7f60329dba6c6a6ab039cc733315c50b686
2016-07-08 16:40:31 +10:00
Chris Pearce
f3acbf5f85 Bug 1277813 - Consider HTMLMediaElement.load() in user generated event handler to allow autoplay. r=kinetik
This is so that if media autoplay is disabled, a site can capture user intent
to play in their click handlers by calling load() on an empty video element to
"bless" the video element with the ability to play later when the video has
loaded.

Large video sites typically have a catalog view of videos to chose from on
their main page, and when the user clicks on one, with this patch, the site can
bless a video element so that it will play by beginning the load of that video
in the click handler. Often these sites do a bunch of asynchronous things
before they actually get around to playing the video, they don't call play in
the click handler, so we need another way to bless the videos so they can play.

We allow seeks in a click handler to capture user intent to play, so I don't
see why we should not also allow a load() to capture user intent.


MozReview-Commit-ID: KzjNcn3s6od

--HG--
extra : rebase_source : 6424e04ecb5220b765b69e815fc7b15c49ea6cb8
2016-07-12 16:25:33 +12:00
Wes Kocher
85c761efaa Merge m-c to autoland, a=merge 2016-07-13 14:12:44 -07:00
Henri Sivonen
3652f29f7b Bug 1281972 - Filter out encodings that map to the replacement encoding when processing <form accept-charset>. r=emk.
MozReview-Commit-ID: FuodU7ckiPS

--HG--
extra : rebase_source : fd5053ffa1349d424d05800d014f856dbd6690c2
2016-07-12 15:38:13 +03:00
Valentin Gosu
ef5a976694 Bug 1275746 - Fix tests that assume a HTTP url without a hostname is valid r=jrgm,MattN,jdm,gijs,smaug
MozReview-Commit-ID: DzRenakrcAG
2016-07-13 15:19:34 +03:00
Thomas Wisniewski
5bc757cfaa Bug 1264157 - Do not match disabled/readonly inputs with :in-range and :out-of-range. r=bz
--HG--
rename : dom/html/test/test_bug535043.html => dom/html/test/test_bug1264157.html
2016-07-10 14:37:00 -04:00
bechen
ae902d5599 Bug 871747 - Load the TrackElement outside the document. r=rillian
MozReview-Commit-ID: Cql1YAZnnnL

--HG--
extra : transplant_source : %FA%21%D1%8A%14%E6%BA%8A%91H%F0%EE%CB%7B%AB9%19%20%2A%C2
2016-07-11 15:03:53 +08:00
Carsten "Tomcat" Book
bd92616152 merge mozilla-inbound to mozilla-central a=merge 2016-07-11 16:21:15 +02:00
Carsten "Tomcat" Book
0d2c8ddbb2 Merge mozilla-central to autoland 2016-07-11 11:51:22 +02:00
Alastor Wu
c90f6cf6dc Bug 1280644 - part2 : modify naming and add scope indentifier. r=rillian
MozReview-Commit-ID: 9ysNb5SiQOP

--HG--
extra : rebase_source : 1819e7a3310d5cf486112ed71270edf404542601
2016-07-11 10:51:13 +08:00
Alastor Wu
255936c33f Bug 1280644 - part1 : add Telemetry for webvtt. r=bsmedberg,rillian
MozReview-Commit-ID: 4a6JmfolqkW

--HG--
extra : rebase_source : 24e81ac1da3f3926c241e7311ef74511bd493bb8
2016-07-11 10:51:08 +08:00
Phil Ringnalda
816f3fa167 Merge m-i to m-c, a=merge 2016-07-09 08:51:52 -07:00
Chris Peterson
43c2748f66 Bug 1277775 - Replace MOZ_CONSTEXPR{_VAR,_TMPL} with constexpr. r=froydnj 2016-07-08 14:39:53 -07:00
Xidorn Quan
a90f7b0ea8 Bug 1283526 part 2 - Remove fullscreen sandbox flag. r=smaug
MozReview-Commit-ID: 5qH4gZxvNQz

--HG--
extra : rebase_source : fdc1fea2996b259a65c3068cd10fffccf6c5ebdb
2016-07-05 09:46:55 +10:00
Phil Ringnalda
f69792c77b Merge m-c to m-i 2016-07-09 09:01:35 -07:00
Masayuki Nakano
7f30e926b8 Bug 1260651 part.60 editor/libeditor should export some headers which are required by other modules and other modules shouldn't use local include for them r=mccr8
MozReview-Commit-ID: FZSExwkHH2B
2016-07-08 14:03:31 +09:00
Masayuki Nakano
94713accb3 Bug 1260651 part.49 Rename nsTextEditRules to mozilla::TextEditRules (and also their file names) r=mccr8
MozReview-Commit-ID: DzNeLcT1r1e

--HG--
rename : editor/libeditor/nsTextEditRules.cpp => editor/libeditor/TextEditRules.cpp
rename : editor/libeditor/nsTextEditRules.h => editor/libeditor/TextEditRules.h
rename : editor/libeditor/nsTextEditRulesBidi.cpp => editor/libeditor/TextEditRulesBidi.cpp
2016-07-09 11:34:41 +09:00
Markus Stange
f8e66e0cdf Bug 1012752 - Snap scrolled area to layer pixels. r=tnikkel
We want the maximum scroll position to be aligned with layer pixels. That way
we don't have to re-rasterize the scrolled contents once scrolling hits the
edge of the scrollable area.

Here's how we determine the maximum scroll position: We get the scroll port
rect, snapped to layer pixels. Then we get the scrolled rect and also snap
that to layer pixels. The maximum scroll position is set to the difference
between right/bottom edges of these rectangles.
Now the scrollable area is computed by adding this maximum scroll position
to the unsnapped scroll port size.
The underlying idea here is: Pretend we have overflow:visible so that the
scrolled contents start at (0, 0) relative to the scroll port and spill over
the scroll port edges. When these contents are rendered, their rendering is
snapped to layer pixels. We want those exact pixels to be accessible by
scrolling.

This way of computing the snapped scrollable area ensures that, if you scroll
to the maximum scroll position, the right/bottom edges of the rendered
scrolled contents line up exactly with the right/bottom edges of the scroll
port. The scrolled contents are neither cut off nor are they moved too far.
(This is something that no other browser engine gets completely right, see the
testcase in bug 1012752.)

There are also a few disadvantages to this solution. We snap to layer pixels,
and the size of a layer pixel can depend on the zoom level, the document
resolution, the current screen's scale factor, and CSS transforms. The snap
origin is the position of the reference frame. So a change to any of these
things can influence the scrollable area and the maximum scroll position.
This patch does not make us adjust the current scroll position in the event
that the maximum scroll position changes such that the current scroll position
would be out of range, unless there's a reflow of the scrolled contents. This
means that we can sometimes render a slightly inconsistent state where the
current scroll position exceeds the maximum scroll position. We can fix this
once it turns out to be a problem; I doubt that it will be a problem because
none of the other browsers seems to prevent this problem either.

The size of the scrollable area is exposed through the DOM properties
scrollWidth and scrollHeight. At the moment, these are integer properties, so
their value is rounded to the nearest CSS pixel. Before this patch, the
returned value would always be within 0.5 CSS pixels of the value that layout
computed for the content's scrollable overflow based on the CSS styles of the
contents.
Now that scrollWidth and scrollHeight also depend on pixel snapping, their
values can deviate by up to one layer pixel from what the page might expect
based on the styles of the contents. This change requires a few changes to
existing tests.
The fact that scrollWidth and scrollHeight can change based on the position of
the scrollable element and the zoom level / resolution may surprise some web
pages. However, this also seems to happen in Edge. Edge seems to always round
scrollWidth and scrollHeight upwards, possibly to their equivalent of layout
device pixels.

MozReview-Commit-ID: 3LFV7Lio4tG

--HG--
extra : histedit_source : 5390eeebfe9a2791d9ac8e91ec1dfec4ec7b4118
2016-06-02 15:41:51 -04:00
Jessica Jong
2e7c66c5e9 Bug 1278191 - Implement the value sanitizing algorithm for <input type=month>. r=smaug
--HG--
extra : rebase_source : f2e424614490db76d8899c7f1583fd9fc1a2f53c
2016-07-06 01:59:00 +02:00
Gregory Szorc
f21ec324a6 Merge mozilla-central to mozilla-inbound 2016-07-06 18:30:58 -07:00
Gregory Szorc
021d3fdfc7 Merge mozilla-central to mozilla-inbound 2016-07-06 18:26:17 -07:00
Carsten "Tomcat" Book
45017d7986 Backed out changeset 8c1f9996a7d6 (bug 906116) 2016-07-06 05:40:06 +02:00
Alastor Wu
1c9d35df15 Bug 1282410 - part3 : add log. r=cpearce
MozReview-Commit-ID: KWf3uya31zv

--HG--
extra : rebase_source : 039f3d668204da35575262c36adc3bbef6b68109
2016-07-06 10:54:11 +08:00
Alastor Wu
3d564c05b3 Bug 1282410 - part1 : open unsupported type media. r=cpearce
MozReview-Commit-ID: 4fjkDlRgdt7

--HG--
extra : rebase_source : a59607b1236c0047b97d7ca05002f1960e20ce51
2016-07-06 10:34:29 +08:00
Jeremy Chen
160b96f9a4 Bug 906116 - part3.3: Replace NS_STYLE_HINT_FRAMECHANGE with nsChangeHint_ReconstructFrame. r=dbaron
Use ReconstructFrame to replace NS_STYLE_HINT_FRAMECHANGE in many places, such
as HTML*Element::GetAttributeChangeHint and HTMLFrameSetElement::SetAttr.

MozReview-Commit-ID: EHbc4RMeuu0

--HG--
extra : rebase_source : f5163608c88362595ef5af5fcd36fa64c9c79ce7
2016-07-06 09:59:56 +08:00
bechen
427f588be2 Bug 1280373 - Fix the label and language attribute in TextTrack object. r=rillian
MozReview-Commit-ID: 2NFJ5fCCkDy

--HG--
extra : transplant_source : s%94%C1%CB%B3%AF%1E%95%FEV%2C%CE%B9N%92xPv%FA%1D
2016-06-30 13:36:31 +08:00
Andreas Pehrson
e028368c0f Bug 1280445 - Remove wrapper from MediaStream. r=jesup, r=padenot
MozReview-Commit-ID: CTCFloIUXKa

--HG--
extra : rebase_source : b1c2073c638bb65c19a0f40e8d17e9a5bae15c98
extra : source : c6d854b3209e7de7d97153c0bfc492c1d5f1e6b5
2016-06-29 12:27:13 +02:00
Jessica Jong
bc0a1bc5f8 Bug 1278185 - Implement valueAsNumber and valueAsDate for <input type=month>. r=smaug 2016-07-11 01:00:00 +02:00
Andrea Marchesini
fbe3bd5abf Bug 1186932 - Implement support for form submission of a picked directory - part 4 - Moving GetFilesHelper to separate files, r=smaug 2016-07-14 09:03:10 +02:00
Andrea Marchesini
f8488defb9 Bug 1186932 - Implement support for form submission of a picked directory - part 3 - tests + fixes, r=smaug 2016-07-14 09:02:30 +02:00