Commit Graph

1897 Commits

Author SHA1 Message Date
Iris Hsiao
11e8b7fb2a Backed out changeset 535f8682016b (bug 1223561) for test_fullscreen-api.html timeout 2016-11-23 16:53:03 +08:00
Phil Ringnalda
89e92b0c3b Merge m-c to autoland 2016-11-22 21:33:35 -08:00
Phil Ringnalda
feef954874 Merge m-i to m-c, a=merge
MozReview-Commit-ID: EDVoIcyWOhi

--HG--
rename : storage/test/test_AsXXX_helpers.cpp => storage/test/gtest/test_AsXXX_helpers.cpp
rename : storage/test/test_binding_params.cpp => storage/test/gtest/test_binding_params.cpp
rename : storage/test/test_mutex.cpp => storage/test/gtest/test_mutex.cpp
2016-11-22 20:03:03 -08:00
Xidorn Quan
b283046733 Bug 1223561 - Support putting <table> into fullscreen. r=dbaron
MozReview-Commit-ID: 5ohJW9U65dr

--HG--
extra : rebase_source : 3edab41eb85239cc765d7305b1a6083397d4a158
2016-11-22 16:31:56 +11:00
Geoff Brown
b752d59e3d Bug 1315749 - Run mochitest-chrome on Android x86; r=jmaher 2016-11-22 13:49:46 -07:00
Carsten "Tomcat" Book
cf6fb9d85b Merge mozilla-central to autoland 2016-11-22 16:29:49 +01:00
Edgar Chen
e0c91d38b6 Bug 1317901 - Ensure image loads don't short-circuit if element's adopting steps are run; r=jdm
MozReview-Commit-ID: Cbg3EHtyL8f

--HG--
rename : dom/html/reftests/image-load-shortcircuit.html => dom/html/reftests/image-load-shortcircuit-1.html
extra : rebase_source : 1c11f394ca4dd8f354eb38b1ff5c6eb165b9d899
2016-11-18 15:54:21 +08:00
Kilik Kuo
e883edbbf2 Bug 1316758-Remove nsContentUtils::LegacyIsCallerChromeOrNativeCode and IsCallerChrome calls from HTMLMediaElement. r=cpearce
MozReview-Commit-ID: 47pOATtfflP

--HG--
extra : rebase_source : 43123ebd61a2730b3ccdeaccfaf4dfccfb0cbe55
2016-11-18 10:30:00 +08:00
Boris Zbarsky
0b51e4d979 Bug 1318576. Remove entries from a form's past names map when an element is removed from the form, even if that element doesn't have a name or id anymore. r=baku 2016-11-21 12:34:02 -05:00
Boris Zbarsky
6393f96201 Bug 1318476. Remove various unused nsIDOMNode stuff. r=froydnj 2016-11-18 16:38:29 -05:00
Boris Zbarsky
afbcfe1a92 Bug 1318479 part 3. Remove uses of nsIDOMNode::AppendChild in HTMLOptionsCollection. r=ehsan 2016-11-18 16:38:29 -05:00
Andrea Marchesini
2f974ccbce Bug 1318273 - Improve the use of SpecialPowers.pushPrefEnv() - part 1, r=qdot 2016-11-18 09:33:33 +01:00
Sebastian Hengst
7110a88674 Backed out changeset d43b778d95c6 (bug 1318273) for failing mochitest fetch/test_formdataparsing.html. r=backout on a CLOSED TREE 2016-11-17 20:58:38 +01:00
Boris Zbarsky
c8ec840cee Bug 1318096 part 3. Remove the unused XPCOM fullscreen API. r=froydnj 2016-11-17 13:49:27 -05:00
Andrea Marchesini
cf2ad8072f Bug 1318273 - Improve the use of SpecialPowers.pushPrefEnv() - part 1, r=qdot 2016-11-17 19:36:01 +01:00
Ehsan Akhgari
d07f79a266 Bug 1318210 - Remove nsIAppsService; r=baku 2016-11-17 10:41:36 -05:00
Stone Shih
ca4ffa27c2 Bug 1305458 Part11: Let HTMLInputElement delegate event handling to it's parent class. r=smaug
MozReview-Commit-ID: 3Ms8Rt7Fqny

--HG--
extra : rebase_source : 8a91423451edb3b840b4e4f1906ff702257a896f
2016-11-01 15:36:04 +08:00
Stone Shih
0d63e2a966 Bug 1305458 Part9: Move fire events and set value from HTMLInputElement::GetEventTargetParent to PreHandleEvent. r=smaug
MozReview-Commit-ID: AbbIMmmwZMZ

--HG--
extra : rebase_source : fe88fbdd905ef5f2761aaad43085a0deba588367
2016-10-21 19:04:29 +08:00
Stone Shih
8400e13089 Bug 1305458 Part6: Move fire change event from HTMLTextAreaElement::GetEventTargetParent to PreHandleEvent. r=smaug
MozReview-Commit-ID: K0tuWlUOLw7

--HG--
extra : rebase_source : ade1219fe5e90b8c08a596b919a118a0508d23d0
2016-10-21 17:33:41 +08:00
Stone Shih
56a3971717 Bug 1305458 Part5: Move form control frame focus/blur from nsGenericHTMLFormElement::GetEventTargetParent to PreHandleEvent. r=smaug
MozReview-Commit-ID: H8Zn5OdZpyt

--HG--
extra : rebase_source : f4f3c5d46d935f68bd0d765e10e3bbd2a25c1f7f
2016-10-21 16:56:58 +08:00
Stone Shih
1ed10ff082 Bug 1305458 Part1: Rename nsIDOMEventTarget::PreHandleEvent to nsIDOMEventTarget::GetEventTargetParent. r=smaug
MozReview-Commit-ID: FM3vDUyLOCb

--HG--
extra : rebase_source : 5a513af84718a6d591f77437a0704984c8fc2b67
2016-10-21 10:11:07 +08:00
Andrea Marchesini
3120de1ea7 Bug 1315905 - Cleanup Necko http security check - part 2 - tests, r=valentin 2016-11-17 14:53:30 +01:00
Carsten "Tomcat" Book
2c792af8f0 Merge mozilla-central to mozilla-inbound 2016-11-17 14:39:33 +01:00
Alastor Wu
1c128b5ce5 Bug 1317167 - only need to do the untrust JS checking in play(). r=jwwang
The first checking condition in the IsAllowedPlay() is used to prevent the play() operation
is called by untrusted JS when media.autoplay.enabled=false. Therefore, we don't need to check
that in CanActivateAutoplay().

MozReview-Commit-ID: 6yqoG8ISyra

--HG--
extra : rebase_source : a3e52a1a5591691f503d7d4ca78dda63c05aef27
2016-11-17 15:09:59 +08:00
Ehsan Akhgari
9f297a22d4 Bug 1315146 - Avoid using the Web-facing Range methods in nsTextControlFrame::SetSelectionInternal(); r=baku
The Web-facing methods perform access checks which blow up when the
stars are aligned such that we run this code under a subject principal
that doesn't have access to the anchor node of the selection.
2016-11-17 08:24:09 -05:00
Ting-Yu Lin
55e3c801ba Bug 1271549 - Remove details and summary preference. r=bz
Bug 1259889 Part 2 [1] cannot be reverted cleanly, so I manually undo those
changes in this patch. That is, remove the ability for html.css to
invalidate dynamically since it was added specifically for details element.

Although reftest-stylo.list explicit mentions "DO NOT EDIT!", but I still
remove details pref from the file, since it doesn't harm to edit it anyway.

[1] https://hg.mozilla.org/mozilla-central/rev/30aaf3805b56

MozReview-Commit-ID: FsyTGQTxujh

--HG--
extra : rebase_source : 25e5a05a8a5a47642772da69f427631fa07e232d
2016-11-16 14:02:58 +08:00
Joel Maher
15b1c3dd86 Bug 1316629 - migrate dom/html/test/test_img_complete.html to web-platform-test. r=jgraham
MozReview-Commit-ID: 7tyxMzVQ1g2

--HG--
rename : dom/html/test/image.png => testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image.png
2016-11-16 09:43:53 -05:00
Ehsan Akhgari
eac76d9772 Bug 1310845 - Remove support for mozapp iframes; r=fabrice,jryans,baku,mcmanus
This patch removes support for mozapp iframes, leaving support for
mozbrowser iframes intact.  Some of the code has been rewritten in order
to phrase things in terms of mozbrowser only, as opposed to mozbrowser
or app.  In some places, code that was only useful with apps has been
completely removed, so that the APIs consumed can also be removed.  In
some places where the notion of appId was bleeding out of this API, now
we use NO_APP_ID.  Other notions of appId which were restricted to this
API have been removed.
2016-11-16 09:13:38 -05:00
Carsten "Tomcat" Book
e7ca75286b Merge mozilla-central to inbound 2016-11-16 14:53:15 +01:00
Carsten "Tomcat" Book
3eacc680db Backed out changeset 7d1f7dd996f7 (bug 1310845) 2016-11-16 14:50:44 +01:00
Andi-Bogdan Postelnicu
65ae72060c Bug 1317241 - Use C++11's override and remove virtual where applicable in dom/ r=baku
MozReview-Commit-ID: 8jUAehd1odv

--HG--
extra : rebase_source : 13375a14447ce344214fa30babf540de0a394c6a
2016-11-15 13:09:07 +02:00
Andi-Bogdan Postelnicu
aaf2063029 Bug 1317241 - Replace default bodies of special member functions with = default in dom/. r=baku
MozReview-Commit-ID: 12AHOhrpaNO

--HG--
extra : rebase_source : 7881277a13fe7389b95635ee9b94f1686f56d142
2016-11-14 11:40:37 +02:00
Andi-Bogdan Postelnicu
4df235170d Bug 1317241 - Use auto type specifier where aplicable for variable declarations to improve code readability and maintainability in dom/. r=baku
MozReview-Commit-ID: CST7fV4h20h

--HG--
extra : rebase_source : 663d24e9c15d7b42023f1557b75fb8dabfc9b6a9
2016-11-14 11:35:58 +02:00
Carsten "Tomcat" Book
8cfa5253e8 merge mozilla-inbound to mozilla-central a=merge 2016-11-15 12:26:41 +01:00
Bryce Van Dyk
51b7a05529 Bug 1298027 - Shut down CDMs when a containing document becomes inactive. r=cpearce
The previous changeset against this bug relaxed the conditions under which the
CDM and associated objects were shut down. This was to address moving a tab to a
new window breaking EME videos. However, this had the unwanted side effect of
not shutting down those objects early enough when pages are closed.

This changeset introduces a new check to see if the containing document is
currently active, if not we shutdown the CDM. This means CDMs are shutdown on
time, while retaining the desired behaviour that CDMs should not be shut down on
moving tabs to new windows. Shutdowns previously happened because we shut down
if a page hide happened, which took place during a reparent.

MozReview-Commit-ID: K5CD3ej43Y0

--HG--
extra : rebase_source : 28fdc277a89c371ad204d5e545779a5950063494
2016-11-14 15:02:48 +13:00
Bryce Van Dyk
5dbd650b59 Bug 1298027 - Relax decoder shutdown and mediakey removal on MediaElement suspension. r=cpearce
This changeset relaxes the shutting down of decoders and removal of mediakeys
when suspending HTMLMediaElements. This should now only happen for adobe
primetime. This alleviates, for non-primetime CDMs, the issue of videos
breaking when moving an EME protected video from a tab to a new window.

These conditions can be relaxed as neither clearkey or widevine support
secure stop. This means we don't need to shutdown their decoders and keys to
signal a stoppage, as at this stage, doing so doesn't give us secure stop and
instead means that playback is busted when we try to resume.

MozReview-Commit-ID: 3MGNXGGDVLS

--HG--
extra : rebase_source : cbf46b3da089f79d9b6729a02997d1a0a12b68a7
2016-10-31 10:55:19 +13:00
Ehsan Akhgari
cb369370b3 Bug 1310845 - Remove support for mozapp iframes; r=fabrice,jryans,baku,mcmanus
This patch removes support for mozapp iframes, leaving support for
mozbrowser iframes intact.  Some of the code has been rewritten in order
to phrase things in terms of mozbrowser only, as opposed to mozbrowser
or app.  In some places, code that was only useful with apps has been
completely removed, so that the APIs consumed can also be removed.  In
some places where the notion of appId was bleeding out of this API, now
we use NO_APP_ID.  Other notions of appId which were restricted to this
API have been removed.
2016-11-15 18:31:46 -05:00
Joel Maher
2ef6db7b07 Bug 1316606 - fix test_save_restore_radio_groups.html to be run multiple times in the same browser. r=mounir
MozReview-Commit-ID: b1v8Of0BRJ
2016-11-15 13:26:34 -05:00
Boris Zbarsky
62e08b6904 Bug 1317367 part 4. Pass an explicit CallerType to HTMLInputElement::GetValueInternal. r=smaug
I'm not 100% sure that I'm being very consistent in my handling of
mFocusedValue, but since that's not used for file inputs, I don't think it
matters much...

A bigger problem is if people start using this caller type for things other than
file inputs.
2016-11-15 12:46:32 -05:00
Boris Zbarsky
a59a621bb6 Bug 1317367 part 3. Pass an explicit CallerType to HTMLInputElement::SetValue at all callsites. r=smaug 2016-11-15 12:46:31 -05:00
Boris Zbarsky
def4685edd Bug 1317367 part 2. Make HTMLInputElement::GetValue infallible again; just return empty string on OOM. To a first approximation no one checks the return value anyway. r=smaug 2016-11-15 12:46:31 -05:00
Boris Zbarsky
452b292356 Bug 1317367 part 1. Get rid of the XPCOM MozGet/SetFileNameArray methods on HTMLInputElement. r=smaug 2016-11-15 12:46:31 -05:00
Boris Zbarsky
bc74bb03f3 Bug 1316661 part 6. Get rid of nsIObjectLoadingContent.hasRunningPlugin, since it's unused. r=smaug 2016-11-15 12:46:31 -05:00
Boris Zbarsky
e46938f336 Bug 1316661 part 5. Eliminate IsCallerChrome caller in HTMLTextareaElement. r=smaug
The WebIDL caller of SetUserInput is [ChromeOnly] and the other callers are all C++ code that should be able to set the value.
2016-11-15 00:18:33 -05:00
Boris Zbarsky
b80b8248f9 Bug 1316661 part 4. Eliminate IsCallerChrome callers in HTMLMenuElement. r=smaug 2016-11-15 00:18:33 -05:00
Boris Zbarsky
dd2655ba39 Bug 1316661 part 3. Eliminate IsCallerChrome callers in nsGenericHTMLElement. r=smaug
The only nsGenericHTMLElement::GetEditor callers are
HTMLInputElement::GetEditor/HTMLTextareaElement::GetEditor (the XPCOM-y
versions), which are only called from C++ and only from two places: a11y code,
which forces itself to look like system, and typeaheadfind, which would break
badly if it could not get an editor.  So that security check simply shouldn't
exist.

The script API doesn't call down into here _and_ is [ChromeOnly] in the webidl
already.
2016-11-15 00:18:33 -05:00
Boris Zbarsky
f8f080a512 Bug 1316661 part 2. Eliminate IsCallerChrome callers in HTMLDocument. r=smaug 2016-11-15 00:18:33 -05:00
Boris Zbarsky
4f1a0ffdd3 Bug 1316661 part 1. Eliminate IsCallerChrome callers in HTMLCanvasElement code. r=smaug 2016-11-15 00:18:32 -05:00
Boris Zbarsky
6f654ebcfb Bug 1316951. The "select" events fired by HTMLInputElement code should always be trusted, since they always correspond to an actual attempt by the browser to select the text in the control. r=smaug 2016-11-15 00:18:32 -05:00
Andrea Marchesini
2aba798852 Bug 1303518 - Remove the chrome only constructor for File, r=qdot 2016-11-11 18:56:44 +01:00