Граф коммитов

90322 Коммитов

Автор SHA1 Сообщение Дата
Simon Giesecke 86a8576927 Bug 1613985 - Use default for equivalent-to-default constructors/destructors in dom/serviceworkers. r=dom-workers-and-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D62559

--HG--
extra : moz-landing-system : lando
2020-02-12 10:52:29 +00:00
Simon Giesecke 6266d87c22 Bug 1613985 - Use default for equivalent-to-default constructors/destructors in dom/indexedDB. r=dom-workers-and-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D62558

--HG--
extra : moz-landing-system : lando
2020-02-12 10:25:49 +00:00
Simon Giesecke 861998c782 Bug 1613985 - Use default for equivalent-to-default constructors/destructors in dom/quota. r=dom-workers-and-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D62557

--HG--
extra : moz-landing-system : lando
2020-02-12 10:25:22 +00:00
Simon Giesecke fa114fcf6f Bug 1613985 - Use default for equivalent-to-default constructors/destructors in dom/localstorage. r=dom-workers-and-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D62556

--HG--
extra : moz-landing-system : lando
2020-02-12 10:24:28 +00:00
Gijs Kruitbosch 38641080af Bug 1605657 - run a microtask checkpoint before XML pretty printing to avoid webextensions breaking it, r=peterv,rpl
Differential Revision: https://phabricator.services.mozilla.com/D61273

--HG--
extra : moz-landing-system : lando
2020-02-12 08:23:29 +00:00
JulianWels f214413b6c Bug 1583215 - Moved referrer-policy tests to dom/security folder. r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D61999

--HG--
rename : dom/base/test/img_referrer_testserver.sjs => dom/security/test/referrer-policy/img_referrer_testserver.sjs
rename : dom/base/test/referrer_header.sjs => dom/security/test/referrer-policy/referrer_header.sjs
rename : dom/base/test/referrer_header_current_document_iframe.html => dom/security/test/referrer-policy/referrer_header_current_document_iframe.html
rename : dom/base/test/referrer_helper.js => dom/security/test/referrer-policy/referrer_helper.js
rename : dom/base/test/referrer_testserver.sjs => dom/security/test/referrer-policy/referrer_testserver.sjs
rename : dom/base/test/test_img_referrer.html => dom/security/test/referrer-policy/test_img_referrer.html
rename : dom/base/test/test_referrer_header_current_document.html => dom/security/test/referrer-policy/test_referrer_header_current_document.html
rename : dom/base/test/test_referrer_redirect.html => dom/security/test/referrer-policy/test_referrer_redirect.html
extra : moz-landing-system : lando
2020-02-12 08:52:21 +00:00
Cosmin Sabou a1e25494be Backed out 1 changesets (bug 1614224) for mochitest failures on test_focus_dialog.xhtml. CLOSED TREE
Backed out changeset 4ae1a60a9e21 (bug 1614224)
2020-02-12 04:42:03 +02:00
Emilio Cobos Álvarez 0e824079a7 Bug 1614224 - Fix <dialog> focus wrap-around, and add tests for it. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D62490

--HG--
extra : moz-landing-system : lando
2020-02-12 00:11:37 +00:00
J. Ryan Stinnett 8ebd39a1ad Bug 1486331 - Remove child-src deprecation warning. r=ckerschb
As child-src is no longer deprecated in the CSP level 3 spec, this removes the
console warning, since it's valid to use it as a fallback for frame-src and
worker-src.

Differential Revision: https://phabricator.services.mozilla.com/D62034

--HG--
extra : moz-landing-system : lando
2020-02-07 13:59:09 +00:00
alwu b8bfeff446 Bug 1611332 - part7 : add test for checking active session among tabs. r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D61372

--HG--
extra : moz-landing-system : lando
2020-02-11 18:46:05 +00:00
alwu 310a6313be Bug 1611332 - part6 : add test for active media session. r=chunmin
This test is for checking if we can select correct media session as an active media session within a tab.

Differential Revision: https://phabricator.services.mozilla.com/D61045

--HG--
extra : moz-landing-system : lando
2020-01-31 14:01:48 +00:00
alwu 9dd96c6545 Bug 1611332 - part5 : add test for triggering media session's action handlers. r=chunmin
This test is for checking if we can trigger media session's action handler via media control keys.

Differential Revision: https://phabricator.services.mozilla.com/D60938

--HG--
extra : moz-landing-system : lando
2020-01-30 10:42:31 +00:00
alwu b960039aa9 Bug 1611332 - part4 : directly notify context where media session exists if we have active media session. r=chunmin,bzbarsky
Since we can determine which browsing context contains an active media session via `MediaSessionController`, we should notify that context directly in order to access correct media session. Especially after we enable Fission, browsing contexts could exist in different processes, so choosing the right context to notify is really important.

Differential Revision: https://phabricator.services.mozilla.com/D60937

--HG--
extra : moz-landing-system : lando
2020-02-11 20:55:51 +00:00
alwu f4e6a6b835 Bug 1611332 - part3 : notify media session being created and destroyed. r=chunmin,bzbarsky
Update media session status from the content process to the chrome process in order to track all alive media session.

Differential Revision: https://phabricator.services.mozilla.com/D60936

--HG--
extra : moz-landing-system : lando
2020-02-07 09:30:03 +00:00
alwu 624272960a Bug 1611332 - part2 : implement MediaSessionController which is used to update media session and store media metadata. r=chunmin
Create a class `MediaSessionController` which is used to track all alive media sessions within a tab and store their metadata which could be used to show on the virtual media control interface. That class would also be responsible to select an active media session with in a tab.

Differential Revision: https://phabricator.services.mozilla.com/D60935

--HG--
extra : moz-landing-system : lando
2020-02-11 00:30:47 +00:00
alwu da4070cfe8 Bug 1611332 - part1 : implement MediaMetadataBase. r=chunmin
As we will have a use to send media metadata from the content process to the chrome process in the future, we would like to send only `title`, `artist`, `album` and `artwork` without having anyother member variables and methods which are useless for our use case, such as `nsIGlobalObject`.

Therefore, create a base class which contains what we need, and let `MediaMetadata` inherit from that class.

Differential Revision: https://phabricator.services.mozilla.com/D60934

--HG--
extra : moz-landing-system : lando
2020-01-29 14:45:31 +00:00
Hiroyuki Ikezoe b7929f74c3 Bug 1614573 - Don't use EffectsInfo.mVisibleRect in BrowserChild::GetTopLevelViewportVisibleRectInSelfCoords(). r=emilio
It's not clipped by scroll viewports at all.

Differential Revision: https://phabricator.services.mozilla.com/D62494

--HG--
extra : moz-landing-system : lando
2020-02-11 22:04:01 +00:00
Andrew McCreight 2dd1938ded Bug 1605218 - Add telemetry for large window actor messages that we didn't send. data-review=nshadowen r=jdai
Collecting this telemetry will let us fix the large messages, if they
are common.

Differential Revision: https://phabricator.services.mozilla.com/D57879

--HG--
extra : moz-landing-system : lando
2020-02-11 20:44:24 +00:00
Ehsan Akhgari 340e730db7 Bug 1614329 - Fix the handling of the type attribute of HTMLStyleElement; r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D62254

--HG--
extra : moz-landing-system : lando
2020-02-11 19:38:26 +00:00
Christoph Kerschbaumer 7f70f4117c Bug 1601887 - XFO: Display error page but still fire onload event in case x-frame-options blocks a load.r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D61862

--HG--
extra : moz-landing-system : lando
2020-02-11 18:40:54 +00:00
Dragana Damjanovic adfc98ed8c Bug 1613943 - BeaconStreamListener::OnStartRequest should not set an network error. network code will interpret that as a real network error and close a connection immediately. r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D62129

--HG--
extra : moz-landing-system : lando
2020-02-11 16:11:22 +00:00
Boris Zbarsky c1c6ce37b3 Bug 1613827. Be more careful with SharedBuffer::Create callsites. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D61959

--HG--
extra : moz-landing-system : lando
2020-02-11 16:58:33 +00:00
Emilio Cobos Álvarez 0c5c683162 Bug 1614654 - Simplify property handling during adoption. r=smaug
We don't need to transfer all properties after adopt. Collecting all the nodes
with properties during adopt was needed because there used to be clone and adopt
user-data callbacks, see https://bugzilla.mozilla.org/show_bug.cgi?id=347524.

This ensures that NodeInfoChanged and similar callbacks can tweak node
properties, which is needed for bug 1542784.

Also simplify surrounding code. As far as I can tell we should always have
different documents if we get a NodeInfoManager object.

Differential Revision: https://phabricator.services.mozilla.com/D62439

--HG--
extra : moz-landing-system : lando
2020-02-11 16:38:18 +00:00
Ehsan Akhgari 9a797d2cc9 Bug 1614353 - Remove the remaining usages of nsIPrincipal::GetURI() in AntiTrackingCommon.cpp; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D62334

--HG--
extra : moz-landing-system : lando
2020-02-11 09:33:32 +00:00
J.C. Jones ac5dfc4597 Bug 1333140 - Require SecureContext for WebCrypto r=bholley,keeler,baku
Adds [SecureContext] for crypto.subtle, CryptoKey, and SubtleCrypto, retiring
the WebCrypto WPT overrides for WebCryptoAPI/historical.any.js.

Rebased on https://phabricator.services.mozilla.com/D58743

Differential Revision: https://phabricator.services.mozilla.com/D58555

--HG--
extra : moz-landing-system : lando
2020-02-11 09:25:09 +00:00
Brindusan Cristian 5d70119bb0 Backed out 12 changesets (bug 1578073) for linting failure on Camera2Session.java. CLOSED TREE
Backed out changeset 20e979be216b (bug 1578073)
Backed out changeset e361b04a8502 (bug 1578073)
Backed out changeset 8aae0721f09c (bug 1578073)
Backed out changeset 381836e3bad0 (bug 1578073)
Backed out changeset 0c214e8034bb (bug 1578073)
Backed out changeset b91603fdd9de (bug 1578073)
Backed out changeset 8533a03e36ca (bug 1578073)
Backed out changeset 2126f6d9bffc (bug 1578073)
Backed out changeset 39a853c82a71 (bug 1578073)
Backed out changeset 2a8e1c02cede (bug 1578073)
Backed out changeset 55e2a4c5cab9 (bug 1578073)
Backed out changeset 27b45ca46f24 (bug 1578073)

--HG--
rename : dom/media/systemservices/android_video_capture/device_info_android.cc => media/webrtc/trunk/webrtc/modules/video_capture/android/device_info_android.cc
rename : dom/media/systemservices/android_video_capture/device_info_android.h => media/webrtc/trunk/webrtc/modules/video_capture/android/device_info_android.h
rename : dom/media/systemservices/android_video_capture/java/src/org/webrtc/videoengine/CaptureCapabilityAndroid.java => media/webrtc/trunk/webrtc/modules/video_capture/android/java/src/org/webrtc/videoengine/CaptureCapabilityAndroid.java
rename : dom/media/systemservices/android_video_capture/java/src/org/webrtc/videoengine/VideoCaptureAndroid.java => media/webrtc/trunk/webrtc/modules/video_capture/android/java/src/org/webrtc/videoengine/VideoCaptureAndroid.java
rename : dom/media/systemservices/android_video_capture/java/src/org/webrtc/videoengine/VideoCaptureDeviceInfoAndroid.java => media/webrtc/trunk/webrtc/modules/video_capture/android/java/src/org/webrtc/videoengine/VideoCaptureDeviceInfoAndroid.java
rename : dom/media/systemservices/android_video_capture/video_capture_android.cc => media/webrtc/trunk/webrtc/modules/video_capture/android/video_capture_android.cc
rename : dom/media/systemservices/android_video_capture/video_capture_android.h => media/webrtc/trunk/webrtc/modules/video_capture/android/video_capture_android.h
2020-02-11 17:22:50 +02:00
Dzmitry Malyshau bf6b5347b2 Bug 1611024 - Turn WebGPU programmable passes into interface mixins r=jgilbert,webidl,bzbarsky
this makes us closer to the upstream spec and removes a bunch of useless code

Differential Revision: https://phabricator.services.mozilla.com/D62377

--HG--
extra : moz-landing-system : lando
2020-02-11 03:03:47 +00:00
Emilio Cobos Álvarez 98e23d977a Bug 1614623 - Simplify intersection observer property handling. r=smaug
Removes some duplicated code, and removes the property when the observer hash
table is empty (there's no reason to keep it around).

The keeping the property around is causing issues because we want to change
intersection observers on adopt.

Right now when that happens, we create a property on the new document, but then
override it with the transferred one if present.

We should instead merge the properties rather than transferring them to the new
document, or something. But not keeping the empty property mitigates the
problem.

We should still fix that though, I'll file another bug for it.

Differential Revision: https://phabricator.services.mozilla.com/D62422

--HG--
extra : moz-landing-system : lando
2020-02-11 14:14:33 +00:00
Mirko Brodesser d15ef2041e Bug 1613378: part 8) Add assertion to `nsAutoScrollTimer::Init`. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D62043

--HG--
extra : moz-landing-system : lando
2020-02-11 10:50:52 +00:00
Mirko Brodesser e7ed18f679 Bug 1613378: part 7) Remove `Selection`'s default constructor. r=smaug
Removes duplicated code and reveals the dependency to frame selection.

Differential Revision: https://phabricator.services.mozilla.com/D62040

--HG--
extra : moz-landing-system : lando
2020-02-11 10:50:54 +00:00
Mirko Brodesser 4a2c7022b1 Bug 1613378: part 6) Remove copy&pasted `IsValidSelectionPoint` function. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D62039

--HG--
extra : moz-landing-system : lando
2020-02-11 10:50:57 +00:00
Dan Minor 2dfc28fbbe Bug 1284103 - Add mochitest for DTLS versions; r=mt
Differential Revision: https://phabricator.services.mozilla.com/D60009

--HG--
extra : moz-landing-system : lando
2020-01-30 12:50:16 +00:00
Dan Minor 3a77f0eeb3 Bug 1578073 - Use updated camera capture code; r=ng
Differential Revision: https://phabricator.services.mozilla.com/D61861

--HG--
extra : moz-landing-system : lando
2020-02-10 17:12:52 +00:00
Dan Minor 78bc30b95f Bug 1578073 - Use CameraEnumerator in createDeviceList; r=ng
Differential Revision: https://phabricator.services.mozilla.com/D61858

--HG--
extra : moz-landing-system : lando
2020-02-10 17:11:57 +00:00
Dan Minor 83a8f299bf Bug 1578073 - Fix include paths for android video capture; r=ng
Differential Revision: https://phabricator.services.mozilla.com/D61857

--HG--
extra : moz-landing-system : lando
2020-02-10 17:11:29 +00:00
Dan Minor 2754373b86 Bug 1578073 - Add android_video_capture to moz.build; r=ng
Differential Revision: https://phabricator.services.mozilla.com/D61853

--HG--
extra : moz-landing-system : lando
2020-02-10 17:09:20 +00:00
Dan Minor 3ab437be1f Bug 1578073 - Move android video capture code to dom/media/systemservices; r=jib
Although originally part of webrtc.org, this code has subsequently been
removed by upstream. Moving it to under dom/media should make it clearer that
this is code that we are maintaining and simplify future upstream merges.

Differential Revision: https://phabricator.services.mozilla.com/D61850

--HG--
rename : media/webrtc/trunk/webrtc/modules/video_capture/android/device_info_android.cc => dom/media/systemservices/android_video_capture/device_info_android.cc
rename : media/webrtc/trunk/webrtc/modules/video_capture/android/device_info_android.h => dom/media/systemservices/android_video_capture/device_info_android.h
rename : media/webrtc/trunk/webrtc/modules/video_capture/android/java/src/org/webrtc/videoengine/CaptureCapabilityAndroid.java => dom/media/systemservices/android_video_capture/java/src/org/webrtc/videoengine/CaptureCapabilityAndroid.java
rename : media/webrtc/trunk/webrtc/modules/video_capture/android/java/src/org/webrtc/videoengine/VideoCaptureAndroid.java => dom/media/systemservices/android_video_capture/java/src/org/webrtc/videoengine/VideoCaptureAndroid.java
rename : media/webrtc/trunk/webrtc/modules/video_capture/android/java/src/org/webrtc/videoengine/VideoCaptureDeviceInfoAndroid.java => dom/media/systemservices/android_video_capture/java/src/org/webrtc/videoengine/VideoCaptureDeviceInfoAndroid.java
rename : media/webrtc/trunk/webrtc/modules/video_capture/android/video_capture_android.cc => dom/media/systemservices/android_video_capture/video_capture_android.cc
rename : media/webrtc/trunk/webrtc/modules/video_capture/android/video_capture_android.h => dom/media/systemservices/android_video_capture/video_capture_android.h
extra : moz-landing-system : lando
2020-02-10 17:08:36 +00:00
alwu 01a006163b Bug 1613600 - only set playback state for opened event source. r=MeFisto94
Differential Revision: https://phabricator.services.mozilla.com/D61791

--HG--
extra : moz-landing-system : lando
2020-02-11 12:49:29 +00:00
John Dai 82370e0bad Bug 1588715 - Refactor matches the spec term 'submitter'; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D62035

--HG--
extra : moz-landing-system : lando
2020-02-11 12:46:57 +00:00
John Dai 5683fcf7c8 Bug 1588715 - Implement SubmitEvent; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D62030

--HG--
extra : moz-landing-system : lando
2020-02-11 12:46:54 +00:00
Valentin Gosu df21e78ad6 Bug 1613140 - Call QueuePerformanceNavigationTiming from Document::EndLoad() r=baku
Differential Revision: https://phabricator.services.mozilla.com/D62110

--HG--
extra : moz-landing-system : lando
2020-02-11 09:24:09 +00:00
Brindusan Cristian a68356b907 Backed out 5 changesets (bug 1613378) for mochitest failures at test_general.html. CLOSED TREE
Backed out changeset f38b806ee78b (bug 1613378)
Backed out changeset cee4bbabc4b5 (bug 1613378)
Backed out changeset e3a2ab6d7267 (bug 1613378)
Backed out changeset 6fe76439f1d3 (bug 1613378)
Backed out changeset f3baf3407cbe (bug 1613378)
2020-02-11 12:27:49 +02:00
Mirko Brodesser b5693e486b Bug 1613378: part 10) Declare some table/Selection related method arguments const. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D62258

--HG--
extra : moz-landing-system : lando
2020-02-11 09:25:27 +00:00
Mirko Brodesser 67f10acb6f Bug 1613378: part 9) Clarify dependency to `mFrameSelection` in `Selection` when adding/removing ranges. r=smaug
Moreover, this is potentially more efficient because
`GetRangesForIntervalArray` doesn't have to be called when there's no
frame selection.

Differential Revision: https://phabricator.services.mozilla.com/D62198

--HG--
extra : moz-landing-system : lando
2020-02-11 09:25:45 +00:00
Mirko Brodesser 891a7a92a2 Bug 1613378: part 8) Add assertion to `nsAutoScrollTimer::Init`. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D62043

--HG--
extra : moz-landing-system : lando
2020-02-11 09:26:07 +00:00
Mirko Brodesser 931ef1e3fa Bug 1613378: part 7) Remove `Selection`'s default constructor. r=smaug
Removes duplicated code and reveals the dependency to frame selection.

Differential Revision: https://phabricator.services.mozilla.com/D62040

--HG--
extra : moz-landing-system : lando
2020-02-11 09:26:07 +00:00
Mirko Brodesser dd99b9338c Bug 1613378: part 6) Remove copy&pasted `IsValidSelectionPoint` function. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D62039

--HG--
extra : moz-landing-system : lando
2020-02-10 13:25:03 +00:00
Eden Chuang 852445c77e Bug 1610881 - Get rid of ErrorResult.Throw(DOMException) in Payment code r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D61557

--HG--
extra : moz-landing-system : lando
2020-02-11 08:45:49 +00:00
Boris Zbarsky c343055996 Bug 1614164. Stop using NS_ERROR_DOM_TYPE_ERR in IndexedDB. r=dom-workers-and-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D62153

--HG--
extra : moz-landing-system : lando
2020-02-11 07:25:44 +00:00
Hiroyuki Ikezoe b9fb72c857 Bug 1599795 - Make IntersectionObserver work in fission world. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D61938

--HG--
extra : moz-landing-system : lando
2020-02-11 03:59:14 +00:00
Hiroyuki Ikezoe 1c0f15006d Bug 1599795 - Rename BrowserChild::GetRemoteDocumentRect to GetTopLevelViewportVisibleRectInBrowserCoords. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D62183

--HG--
extra : moz-landing-system : lando
2020-02-11 03:35:56 +00:00
Hiroyuki Ikezoe 03eb44ed69 Bug 1599795 - Trigger UpdateIntersectionObservation in response to APZ changes. r=emilio
In out-of-process iframes, the refresh driver for the iframe process doesn't
trigger the UpdateIntersectionObservation function in cases where ancestor
document's viewports change because there is no way to know it happens inside
the iframe process.  So instead, we trigger the function in
BrowserChild::RecvChildToParentMatrix which is called in response to APZ.

Differential Revision: https://phabricator.services.mozilla.com/D61937

--HG--
extra : moz-landing-system : lando
2020-02-11 03:35:38 +00:00
Emilio Cobos Álvarez 49abab29a5 Bug 1614208 - Remove nsStyleConsts usage from TextRange.h. r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D62172

--HG--
extra : moz-landing-system : lando
2020-02-11 01:23:12 +00:00
Emilio Cobos Álvarez b997cfcaf4 Bug 1614208 - Stop including PresShell.h and nsPresContext.h from Element.h. r=smaug
nsPresContext.h is only used for unit conversion, which can be done by Units.h
in a similar fashion.

PresShell.h was needed for some capturing-content stuff which can be moved out
of line.

Differential Revision: https://phabricator.services.mozilla.com/D62170

--HG--
extra : moz-landing-system : lando
2020-02-11 01:23:12 +00:00
Emilio Cobos Álvarez 6615ff9fad Bug 1614208 - Stop including AccessibleCaretEventHub and PresShell.h from Selection.h. r=TYLin
And fix a bunch of fallout as we now don't include nsDocShell.h everywhere.

Differential Revision: https://phabricator.services.mozilla.com/D62169

--HG--
extra : moz-landing-system : lando
2020-02-11 01:22:29 +00:00
Emilio Cobos Álvarez 14a5089845 Bug 1614208 - Remove unused WritingMode ipdl include. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D62168

--HG--
extra : moz-landing-system : lando
2020-02-11 01:22:22 +00:00
Emilio Cobos Álvarez fb586787c5 Bug 1614208 - Remove more dependencies on nsStyleConsts.h / ServoStyleConsts.h. r=jfkthame
Mostly what I was seeing come up in the .deps files from my object directory
which sounded feasible.

Differential Revision: https://phabricator.services.mozilla.com/D62167

--HG--
extra : moz-landing-system : lando
2020-02-11 01:22:15 +00:00
Emilio Cobos Álvarez 298c598770 Bug 1614208 - Forward-declare StaticPresData in nsPresContext.h. r=jfkthame
This avoids including nsFont.h and a bunch of other stuff in nsPresContext.h

Differential Revision: https://phabricator.services.mozilla.com/D62166

--HG--
extra : moz-landing-system : lando
2020-02-11 01:23:37 +00:00
Emilio Cobos Álvarez d7841a5f17 Bug 1614208 - Remove some include dependencies in nsStyleConsts.h. r=jfkthame,jgilbert
We include it everywhere because it's included from gfxTypes.h.

This should avoid including all the generated bindings _everywhere_.

Differential Revision: https://phabricator.services.mozilla.com/D62174

--HG--
extra : moz-landing-system : lando
2020-02-11 01:23:37 +00:00
MahakBansal d58f7fe1b6 Bug 1614148 - Removes unused variable 'kMinMaxColorAttachments' in WebGLContextValidate.cpp r=jgilbert
Differential Revision: https://phabricator.services.mozilla.com/D62159

--HG--
extra : moz-landing-system : lando
2020-02-11 01:07:26 +00:00
David Major c4e3b2d209 Bug 1613606 - Bonus cleanup of IPC::Principals r=nika
All of these call sites were unnecessarily converting nsIPrincipal* => IPC::Principal => nsIPrincipal*.

Differential Revision: https://phabricator.services.mozilla.com/D62327

--HG--
extra : moz-landing-system : lando
2020-02-10 20:52:56 +00:00
David Major 9457524c37 Bug 1613606 - Use nsIPrincipal in BlobURLRegistrationData r=nika
clang-10 hits a -Werror in IPDL headers about Principal's copy constructor not being explicitly defined. We could go and fix that constructor, but in light of bug 1443956, I'm guessing it's not really a bad thing to have a discouragement against Principal when nsIPrincipal is now usable directly.

Differential Revision: https://phabricator.services.mozilla.com/D62284

--HG--
extra : moz-landing-system : lando
2020-02-10 20:52:56 +00:00
Ehsan Akhgari 74836fb7e5 Bug 1610821 - Part 2: Ensure most of event handling works on input elements which are disconnected from a document; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D60672

--HG--
extra : moz-landing-system : lando
2020-02-10 22:35:44 +00:00
Ehsan Akhgari a848f5fbdd Bug 1610821 - Part 1: Remove the unused nsPresContext argument of FireEventForAccessibility(); r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D62252

--HG--
extra : moz-landing-system : lando
2020-02-10 14:06:09 +00:00
Viresh Gupta 96552e75e7 Bug 1612981 - Remove MatrixAxBToRowMajor r=jgilbert
Remove unused code from dom/canvas/WebGLContextGL.cpp

Differential Revision: https://phabricator.services.mozilla.com/D61664

--HG--
extra : moz-landing-system : lando
2020-02-11 01:11:27 +00:00
alwu 478a75705e Bug 1613329 - part1 : append text track to media element when binding track element to DOM tree. r=bzbarsky
This change ensures that we always remember to add a text track to media element's track list.

Differential Revision: https://phabricator.services.mozilla.com/D61666

--HG--
extra : moz-landing-system : lando
2020-02-11 00:41:14 +00:00
Tetsuharu OHZEKI 1d1408a093 Bug 1597449 - Remove mozilla::dom::BrowserChild::Send/RecvSetWindowName() to remove usages of nsIDocShellTreeItem. r=kmag
Instead we should set a name to BrowsingContext directly.

Differential Revision: https://phabricator.services.mozilla.com/D61342

--HG--
extra : moz-landing-system : lando
2020-02-10 20:27:30 +00:00
Boris Zbarsky eb4285b299 Bug 1614174. Stop using NS_ERROR_DOM_TYPE_ERR in XPath. r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D62157

--HG--
extra : moz-landing-system : lando
2020-02-10 21:43:35 +00:00
Edgar Chen e4cbc3ca4b Bug 1578357 - Allow user activation visibility on same-origin connected subtree; r=smaug
https://html.spec.whatwg.org/multipage/interaction.html#user-activation-processing-model

Differential Revision: https://phabricator.services.mozilla.com/D62176

--HG--
extra : moz-landing-system : lando
2020-02-10 22:59:51 +00:00
Gabriele Svelto db44316423 Bug 1614337 - Turn dom.ipc.tabs.createKillHardCrashReports into a static preference r=KrisWright
Differential Revision: https://phabricator.services.mozilla.com/D62268

--HG--
extra : moz-landing-system : lando
2020-02-10 22:36:37 +00:00
Nika Layzell 31c1d16720 Bug 1610614 - Part 1: Ensure remoteSubframes status matches before allowing frameLoader swap, r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D61923

--HG--
extra : moz-landing-system : lando
2020-02-10 21:34:23 +00:00
Gerald Squelart fbbc5d66db Bug 1614013 - Fix RAII Profiler object scopes - r=gregtatum
In bug 1578329 I introduced two scoping mistakes:
- A marker was made to have a shorter duration.
- A label was scoped too short and so would most likely be missed during
  sampling.
This patch reverts to the original wider scope.

Differential Revision: https://phabricator.services.mozilla.com/D62274

--HG--
extra : moz-landing-system : lando
2020-02-10 20:44:33 +00:00
Sebastian Streich e333553994 Bug 1579094 - Allow not having a Port for RessourceURI if the Scheme has no Default Port r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D60521

--HG--
extra : moz-landing-system : lando
2020-02-10 18:23:29 +00:00
Tom Tung 9b0da9363f Bug 1609625 - P1 - Add a temporary scalar probes to get the longest initializattion time; r=janv,dom-workers-and-storage-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D61231

--HG--
extra : moz-landing-system : lando
2020-02-10 10:43:06 +00:00
Sebastian Streich 52a6d76d90 Bug 1376310 - Ensure a nsIDocShell after checking IsOriginPotentiallyTrustworthy r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D60742

--HG--
extra : moz-landing-system : lando
2020-02-10 14:51:10 +00:00
Boris Zbarsky 05327f8a52 Bug 1613978. Allow passing u"...", not just nsAStrings, to templated ThrowType/RangeError. r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D62061

--HG--
extra : moz-landing-system : lando
2020-02-10 13:08:48 +00:00
Tetsuharu OHZEKI 9934259eac Bug 1612483 - Remove mozilla::dom::TabContext::IsMozBrowser(). r=bzbarsky
Now, this method returns simply the result of of `IsMozBrowserElement()`.

In the old days, We used to have IsMozBrowserElement and IsMozBrowserOrApp,
where the latter was true if we had a mozapp or mozbrowser.
But with b2g removed, the app thing went away.

`IsMozBrowser()` is less used than `IsMozBrowserElement()`.

I think the former should be replaced by the later one.

Differential Revision: https://phabricator.services.mozilla.com/D61699

--HG--
extra : moz-landing-system : lando
2020-02-05 16:27:49 +00:00
Paul Adenot 678d895cf5 Bug 1566312 - Perform microtask checkpoints in between the computation of blocks. r=karlt
Differential Revision: https://phabricator.services.mozilla.com/D61727

--HG--
extra : moz-landing-system : lando
2020-02-10 08:50:58 +00:00
Mirko Brodesser 067c1b95c6 Bug 1613378: part 5) Decouple `UserSelectRangesToAdd` from `Selection` class. r=smaug
Depends on D62037

Differential Revision: https://phabricator.services.mozilla.com/D62038

--HG--
extra : moz-landing-system : lando
2020-02-07 16:16:36 +00:00
Mirko Brodesser ce8bf8cde1 Bug 1613378: part 4) Declare some methods in `nsFrameSelection` static. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D62037

--HG--
extra : moz-landing-system : lando
2020-02-07 16:13:27 +00:00
Boris Zbarsky 1852a29c3b Use %g, not %f, for our error reporting so unnecessary trailing zeros are not output. No bug. r=birtles
Differential Revision: https://phabricator.services.mozilla.com/D62062

--HG--
extra : moz-landing-system : lando
2020-02-10 01:35:00 +00:00
Brad Werth 69e6a4776b Bug 1523853 Part 3: Further relax the mousewheel test to not care about the ending scroll values. r=kats
This is being done to reduce the intermittent failures we see in this test.
There are other non-intermittent tests that measure the specific number of
pixels traveled by mousewheel events. The focus of this test seems to be
"Ensure that mousewheel scrolling and zooming are mutually exclusive" and
this change maintains that.

Depends on D62067

Differential Revision: https://phabricator.services.mozilla.com/D62130

--HG--
extra : moz-landing-system : lando
2020-02-08 20:15:16 +00:00
Boris Zbarsky d5a8ae31d4 Bug 1614173. Stop using NS_ERROR_DOM_TYPE_ERR in ChromeNodeList. r=baku
Differential Revision: https://phabricator.services.mozilla.com/D62156

--HG--
extra : moz-landing-system : lando
2020-02-09 14:51:57 +00:00
Boris Zbarsky 4472ba99ca Bug 1614165 part 1. Improve error messages for SVG text. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D62154

--HG--
extra : moz-landing-system : lando
2020-02-09 02:15:32 +00:00
Ting-Yu Lin f42b7fab77 Bug 1614024 - Re-add fuzzy annotation on Android for bug453105.
The annotation was removed in bug 1613380, but it happens again. Let's
add it back.

Differential Revision: https://phabricator.services.mozilla.com/D62117

--HG--
extra : moz-landing-system : lando
2020-02-07 22:16:08 +00:00
Emilio Cobos Álvarez 374cabd6e7 Bug 1606628 - Remove nsStyleImageRequest. r=tnikkel,heycam
This removes nsStyleImageRequest by moving the load state to LoadData instead
(where other lazy state like the resolved URL and load id lives).

That way we can use cbindgen for more stuff (there's no blocker for using it for
all images now), and we can undo the image tracking shenanigans that I had to do
in bug 1605803 in nsImageFrame.

This removes the mDocGroup member because well, there's no real upside of that
now that quantum DOM is not a thing.

It also removes the static clones of the image requests, and the need for each
computed value instance to have its own request. These were needed because we
needed the image loader for the particular document to observe the image
changes. But we were also tracking the request -> loader for other purposes.
Instead, Now all the images get loaded with GlobalImageObserver as a listener,
which looks in the image map and forwards the notification to all the interested
loaders instead dynamically.

The style value is only responsible to load the image, and no longer tracks /
locks it. Instead, the loader does so, via the image tracker.

Differential Revision: https://phabricator.services.mozilla.com/D58519

--HG--
extra : moz-landing-system : lando
2020-02-07 20:36:34 +00:00
Jeff Gilbert 165c15a8f3 Bug 1613106 - Add missing context loss check. r=lsalzman
The call to InitializeCanvasRenderer earlier in the function can lose
the context.

Differential Revision: https://phabricator.services.mozilla.com/D62100

--HG--
extra : moz-landing-system : lando
2020-02-07 20:19:43 +00:00
Ting-Yu Lin c26c7aeb90 Bug 1613380 - Use FlexboxAxisTracker's main axis to initialize strut FlexItem's mMainAxis. r=dholbert
Annotate optiontext.html for Android as slightly fuzzy, to account for
reftest rebucketing fuzzy-failure fallout. It has 0 in the lower bound
of the fuzzy annotation because not every Android has this
fuzzy-failure.

Meanwhile, bug453105.html no longer fails due to reftest rebucketing, so
I remove its fuzzy annotation.

Differential Revision: https://phabricator.services.mozilla.com/D61877

--HG--
extra : moz-landing-system : lando
2020-02-07 18:53:28 +00:00
Brad Werth a547ad53da Bug 1523853 Part 2: Re-enable the mousewheel scroll/zoom test on Windows. r=kats
Differential Revision: https://phabricator.services.mozilla.com/D62067

--HG--
extra : moz-landing-system : lando
2020-02-07 18:46:27 +00:00
Andreea Pavel 217f810381 Backed out changeset 5a4eb6758bed (bug 1609916) for hazard bustages on a CLOSED TREE 2020-02-07 20:20:10 +02:00
Lars T Hansen ccea2f09db Bug 1609916 - Callback from SC to DOM on SAB cloning. r=luke
When structured clone reads a SAB and creates a new SAB object, or
when it serializes a SAB onto a channel, call a callback that lets the
embedder know.  The embedder can then adjust its policy.  Concretely,
we want to allow the browser to serialize threads in a process that
uses JS shared memory.

Note, for WebAssembly.Memory, reading and writing are delegated to the
cloning operations for SAB, so no special handling is needed.

Differential Revision: https://phabricator.services.mozilla.com/D61455

--HG--
extra : moz-landing-system : lando
2020-02-07 16:54:48 +00:00
Andrea Marchesini 3efc616139 Bug 1613909 - Enable shared-memory for SAP + postMessage() tests, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D62036

--HG--
extra : moz-landing-system : lando
2020-02-07 16:08:05 +00:00
Daniel Varga 0d5be0b49c Backed out changeset 1dc5c3074b57 (bug 1609916) for causing spidermonkey bustage
CLOSED TREE
2020-02-07 18:35:30 +02:00
Lars T Hansen 390dff3ee2 Bug 1609916 - Callback from SC to DOM on SAB cloning. r=luke
When structured clone reads a SAB and creates a new SAB object, or
when it serializes a SAB onto a channel, call a callback that lets the
embedder know.  The embedder can then adjust its policy.  Concretely,
we want to allow the browser to serialize threads in a process that
uses JS shared memory.

Note, for WebAssembly.Memory, reading and writing are delegated to the
cloning operations for SAB, so no special handling is needed.

Differential Revision: https://phabricator.services.mozilla.com/D61455

--HG--
extra : moz-landing-system : lando
2020-02-07 15:42:37 +00:00
Jan Varga 4e80555e4f Bug 1608759 - Implement and use verifyStorage() function in all upgrade tests; r=dom-workers-and-storage-reviewers,ttung
The new verifyStorage() function takes current storage structure on disk and compares it with the expected structure. The expected structure is defined in JSON and consists of a per test package definition and a shared package definition. The shared package definition contains unknown files and directories which need to be ignored in all upgrade methods.
The new infrastructure for checking storage structure will be used later in other tests to verify handling of unknown or obsolete stuff for example during temporary storage initialization.

Differential Revision: https://phabricator.services.mozilla.com/D61450

--HG--
extra : moz-landing-system : lando
2020-02-07 15:32:26 +00:00
Jan Varga 6f4faaf11f Bug 1608759 - installPackage() shouldn't allow file overwrites by default; r=dom-workers-and-storage-reviewers,ttung
Differential Revision: https://phabricator.services.mozilla.com/D61449

--HG--
extra : moz-landing-system : lando
2020-02-07 15:29:24 +00:00
Daniel Varga 1c197e92da Backed out 2 changesets (bug 1608759) for causing lint failure
CLOSED TREE

Backed out changeset cb706e608d58 (bug 1608759)
Backed out changeset f2a08319ac10 (bug 1608759)

--HG--
extra : amend_source : 251fcc6d6304fe6a4ed240f6d1d409fc168f1c31
2020-02-07 17:23:36 +02:00
Jan Varga 469bf12cb7 Bug 1608759 - Implement and use verifyStorage() function in all upgrade tests; r=dom-workers-and-storage-reviewers,ttung
The new verifyStorage() function takes current storage structure on disk and compares it with the expected structure. The expected structure is defined in JSON and consists of a per test package definition and a shared package definition. The shared package definition contains unknown files and directories which need to be ignored in all upgrade methods.
The new infrastructure for checking storage structure will be used later in other tests to verify handling of unknown or obsolete stuff for example during temporary storage initialization.

Differential Revision: https://phabricator.services.mozilla.com/D61450

--HG--
extra : moz-landing-system : lando
2020-02-07 14:58:38 +00:00
Jan Varga fc5548f510 Bug 1608759 - installPackage() shouldn't allow file overwrites by default; r=dom-workers-and-storage-reviewers,ttung
Differential Revision: https://phabricator.services.mozilla.com/D61449

--HG--
extra : moz-landing-system : lando
2020-02-07 14:41:54 +00:00
Olli Pettay f49348082e Bug 1612431, it is enough to update existing browsing context name when changing iframe.name, r=kmag
This brings back some of the behavior we had before bug 1578628.

Differential Revision: https://phabricator.services.mozilla.com/D61637

--HG--
extra : moz-landing-system : lando
2020-02-06 18:44:05 +00:00