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

87237 Коммитов

Автор SHA1 Сообщение Дата
Alexander Surkov 9b73536b9c Bug 1555497 - allow shadow DOM in content process for XUL elements to make possible running chrome UI in content process needed for wpt tests r=emilio
* wpt runs chrome priv for a subset of tests (mostly things testing toolkit chrome stuff), but it's still in the content process
* we only ever hit this case if the test is explicitly loaded as chrome. originally added for a couple osx tests at https://bugzilla.mozilla.org/show_bug.cgi?id=1465457. then expanded for all xul tests at https://bugzilla.mozilla.org/show_bug.cgi?id=1557371
* so what we used to do here is run xul/xbl in the content process (not chrome priv)
* the change here is that with our chrome Custom Elements we need to run with chrome priv for https://searchfox.org/mozilla-central/rev/4218cb868d8deed13e902718ba2595d85e12b86b/toolkit/components/processsingleton/CustomElementsListener.jsm#16 to load the elements
* so we made it explicit. the alternative at the time was to change wpt harness to load these tests in parent process, but it was too complex for what we needed (discussed with dbaron)
* this parentprocess check was meant kind of as an optimization so that we wouldn't have to check priv on random pages. but (a) that's short circuited anyway by the xul elem check and (b) this is only called when attachShadow is called on a non-html element so not in any kind of hot path

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

--HG--
extra : moz-landing-system : lando
2019-09-19 11:19:22 +00:00
Valentin Gosu 49c2d05267 Bug 1580750 - Fix test_bug466080 for fission r=JuniorHsu
Differential Revision: https://phabricator.services.mozilla.com/D46211

--HG--
extra : moz-landing-system : lando
2019-09-20 14:37:59 +00:00
Boris Zbarsky 5bc8266c20 Bug 1582567. Stop emitting 'virtual' in codegen if we're already emitting 'override'. r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D46527

--HG--
extra : moz-landing-system : lando
2019-09-20 11:05:57 +00:00
Boris Zbarsky f570c09b42 Bug 1582506. Remove some pointless null-checks in SVG code. r=longsonr
Assuming our caller didn't mess up passing the reference (and code inspection
suggests callers did not thus mess up), we should not have null when we take a
pointer to the reference.

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

--HG--
extra : moz-landing-system : lando
2019-09-20 06:02:10 +00:00
Daniel Varga bc19cdb06d Backed out 3 changesets (bug 1578355) for build bustage at build/src/dom/base/nsSyncLoadService.h:48:21. On a CLOSED TREE
Backed out changeset d50ad759f129 (bug 1578355)
Backed out changeset 339ab54ca471 (bug 1578355)
Backed out changeset 284299dac42c (bug 1578355)
2019-09-20 14:05:12 +03:00
Edgar Chen 288ff16a76 Bug 1578355 - Part 3: Add the ability to consume transient user activation; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D45353

--HG--
extra : moz-landing-system : lando
2019-09-20 10:31:59 +00:00
Edgar Chen d2f9c11eb5 Bug 1578355 - Part 2: Introduce UserActivation::State; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D45344

--HG--
extra : moz-landing-system : lando
2019-09-20 10:31:57 +00:00
Edgar Chen 5b6fe53148 Bug 1578355 - Part 1: Move user-activation code from EventStateManager to UserActivation; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D45168

--HG--
extra : moz-landing-system : lando
2019-09-20 10:31:55 +00:00
Alex Chronopoulos 37976e189f Bug 1572281 - Enhance CubebDeviceEnumerator to accept listeners and signal notifications when an audio device changes. r=pehrsons
CubebDeviceEnumerator already knows when an audio device changes. It is enhanced to allow listeners/observers registration and to create notifications when that happens. Also, it is hooked to the existing notification path.

On a minor note, it has been revisited the way the enumerator is touched in MediaEngineWebRTC class.

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

--HG--
extra : moz-landing-system : lando
2019-09-20 10:13:51 +00:00
Alex Chronopoulos 192023066e Bug 1572281 - In DeviceChangeCallback class separate the observer from the subject functionality. r=pehrsons
DeviceChangeCallback class implements the observer pattern. However, the role of the observer and the subject is integrated into the same class which makes use of virtual methods to allow a separation of the roles. This makes code reading difficult. Also, it does not allow from a class to inherit only the observer role or the subject role. This patch breaks the DeviceChangeCallback class into two classes according to the observer or subject functionality.

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

--HG--
extra : moz-landing-system : lando
2019-09-20 10:11:31 +00:00
Jon Coppeard ad4df9ae33 Bug 1581574 - Remove Heap<T> write barrier and rely on existing read barrier to make incremental marking work r=sfink
Differential Revision: https://phabricator.services.mozilla.com/D46133

--HG--
extra : moz-landing-system : lando
2019-09-20 10:09:19 +00:00
Jon Coppeard 3fd1d3324c Bug 1582124 - Break Document cycles when they are destroyed r=smaug
This patch nulls out a Document's promises when it is destroyed to break cycles going through them and ensure Documents are cleaned up sooner.

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

--HG--
extra : moz-landing-system : lando
2019-09-19 13:41:44 +00:00
Eden Chuang d6b2ea7588 Bug 1582125 - disable failed tests for fission r=perry
Disable failed tests for fission

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

--HG--
extra : moz-landing-system : lando
2019-09-18 22:35:22 +00:00
Bogdan Tara 7e0aba7d00 Backed out changeset b0c0887e223c (bug 1563063) for browser_test_feature_preferencereads and browser_test_profile_multi_frame_page_info failures CLOSED TREE 2019-09-19 23:18:06 +03:00
Nico Grunbaum 11d7e7febf Bug 1581023 - Expand DataChannel logging capabilities - r=bwc
Differential Revision: https://phabricator.services.mozilla.com/D45800

--HG--
extra : moz-landing-system : lando
2019-09-19 14:50:57 +00:00
Bryce Seager van Dyk ee7fee057b Bug 1578143 - Prevent TrackBuffersManager attempting to access buffered ranges if none exist when evicting data. r=jya
It appears possible for data eviction to take place despite the manager not
currently having any buffered ranges. This shouldn't happen, but if it can if
the buffers have become full with 0 duration data. This patch attempts to
mitigate that case by removing all coded frames. This prevents a bad access on
the buffered ranges and should clear up space in the buffers to append more
data.

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

--HG--
extra : moz-landing-system : lando
2019-09-19 15:38:40 +00:00
Jean-Yves Avenard 99df1db827 Bug 1575744 - P7. Promisify SendCrossProcessRedirect to avoid needing PHttpChannel to get a response. r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D46163

--HG--
extra : moz-landing-system : lando
2019-09-18 13:14:30 +00:00
Jean-Yves Avenard bafae6af97 Bug 1575744 - P4. Add MozPromise::FromDomPromise. r=bholley
Similar to MozPromise::FromGeckoResult.

Allows to create a MozPromise that will be resolved/rejected when the JS promise does the same.
It would be nice to be able to chain the two promise types, but it would be an additional effort.
MozPromise::FromDomPromise is limited to primitive types only and the reject value type must be nsresult.

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

--HG--
extra : moz-landing-system : lando
2019-09-20 02:21:12 +00:00
Emilio Cobos Álvarez 6c211da0ae Bug 1582374 - Add a warning when we find usage of the CSS zoom property. r=smaug,flod
Now that we count them, I think we should do this.

This property is pretty painful for various reasons:

 * It's a pretty awkward non-standard property.
 * Has a pretty short name, so people use it instead of the standard
   alternatives.
 * We cannot really even implement it easily anyhow, without breaking a whole
   bunch of stuff, because pages do things like:

```
myelement {
  zoom: 0.5;
  -moz-transform: scale(0.5);
  transform-origin: 0 0;
}
```

For now this is only recorded when CSS use counters are enabled (Nightly for
now), but I want to change it once bug 1578661 is in central.

The hope is that this warning slightly raises awareness of this property not
being standard. You get a CSS parsing error in the console, but those are
usually too noisy and disabled by default.

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

--HG--
extra : moz-landing-system : lando
2019-09-20 01:31:35 +00:00
Emilio Cobos Álvarez e0fd226116 Bug 1582373 - Cleanup Document::SetReadyStateInternal. r=smaug
Just use conventions properly. As much as I dislike it.

I wanted to do it because I wanted to add a console message on load for a few
situations (bug 1582374), but I found a better place to put it.

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

--HG--
extra : moz-landing-system : lando
2019-09-20 01:06:58 +00:00
Nicolas B. Pierron 58585aac29 Bug 1579876 - Add telemetry to estimate the benefit of a streaming parser for JS. data-review=mlopatka r=jorendorff
Differential Revision: https://phabricator.services.mozilla.com/D45551

--HG--
extra : moz-landing-system : lando
2019-09-19 12:42:51 +00:00
Olli Pettay bcf140f437 Bug 1563063 - Cross-process idle handling, r=farre
This is to get initial feedback/review.
PIdleScheduler.ipdl has the documentation about the basic architecture.
(v15)

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

--HG--
extra : moz-landing-system : lando
2019-09-18 23:53:42 +00:00
Botond Ballo a61744ca91 Bug 1564195 - Group the results of APZInputBridge::ReceiveInputEvent() into a struct. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D46376

--HG--
extra : moz-landing-system : lando
2019-09-19 02:45:21 +00:00
Tom Ritter c2e992ed6e Bug 1570681 - Enforce eval restrictions in system contexts and the parent process r=ckerschb
We log to MOZ_LOG, report an error to the console, send telemetry, and in debug builds - crash

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

--HG--
extra : moz-landing-system : lando
2019-09-19 02:32:41 +00:00
Tom Ritter 9621f537b0 Bug 1570681 - Move Eval testing logic from nsContentSecurityManager to nsContentSecurityUtils r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D45484

--HG--
extra : moz-landing-system : lando
2019-09-18 19:36:31 +00:00
Alastor Wu 8b942bbf6a Bug 1575995 - part5 : add gTests r=spohl
Differential Revision: https://phabricator.services.mozilla.com/D43317

--HG--
extra : moz-landing-system : lando
2019-09-13 00:13:24 +00:00
Adam Gashlin 5dbbd97138 Bug 1561546 Part 1 - Change scrollbar pref early. r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D46363

--HG--
extra : moz-landing-system : lando
2019-09-18 21:28:06 +00:00
Zibi Braniecki a34942f78e Bug 1581692 - Remove unused .properties from dom. CLOSED TREE
Differential Revision: https://phabricator.services.mozilla.com//D46193

Depends on D46192

--HG--
extra : histedit_source : 410f53956f4ffda07c6e39a81ba1591d37379bff
2019-09-18 19:38:40 +03:00
Adam Gashlin 285b3bed6a Bug 1582306 - Set tabfocus pref for test. r=masayuki
This avoids relying on the accessibility.tabfocus
pref having been set by a previous test.

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

--HG--
extra : moz-landing-system : lando
2019-09-19 21:20:32 +00:00
Alastor Wu 503abe869c Bug 1575995 - part4 : add the pref 'media.hardwaremediakeys.enabled' to control this feature. r=baku
Differential Revision: https://phabricator.services.mozilla.com/D43316

--HG--
extra : moz-landing-system : lando
2019-08-29 01:01:04 +00:00
alwu 9e595bc66b Bug 1575995 - part3 : implement play/pause controller. r=chunmin
The ideal situation for media control should be incooperated with the audio competition so that we only have to control one controller.

However, if it's multiple controllers at the same time, we would tend to only control the last one in order to reduce confustion.

Ex. If we pause controller A first, and then start controller B. So what should we do when we press `play/pause` hardware key? To resume controller A or to stop controller B, or do both things at the same time?

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

--HG--
extra : moz-landing-system : lando
2019-09-18 20:55:57 +00:00
Alastor Wu 81a1a09ca5 Bug 1575995 - part2 : implement the event source on OSX. r=spohl
On OSX, we would use the CG event tap to intercept media keys event.

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

--HG--
extra : moz-landing-system : lando
2019-09-14 03:30:30 +00:00
Alastor Wu d7506cd7d5 Bug 1575995 - part1 : implement basic classes for handling media hardware keys. r=baku
In order to receive platform level media hardward keys event, we create a `MediaHardwareKeysEventSource` which is used to implement intercepting those events according to different platforms.

We can add a `MediaHardwareKeysEventListener` onto `MediaHardwareKeysEventSource`, so that we can get notification whenever hardware media keys are being pressed.

`MediaHardwareKeysManager` is used to encapsulate all these details, it would create a source and corresponding listener.

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

--HG--
extra : moz-landing-system : lando
2019-09-13 00:08:57 +00:00
Emilio Cobos Álvarez 76cccc05c8 Bug 1578661 - Add static_assert messages for use counter assertions. r=boris
This was a review comment which was easier to address as a separate patch.

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

--HG--
extra : moz-landing-system : lando
2019-09-19 00:20:07 +00:00
Emilio Cobos Álvarez 95582debce Bug 1578661 - Report counted unknown properties as well. r=boris
Differential Revision: https://phabricator.services.mozilla.com/D44717

--HG--
extra : moz-landing-system : lando
2019-09-19 00:20:04 +00:00
Emilio Cobos Álvarez 2b159772ee Bug 1578661 - Merge the stylesheet use counters, report them, and add tests. r=boris
C'est fini. Now to do the same with the unimplemented ones remains, but it
should be straight-forward.

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

--HG--
extra : moz-landing-system : lando
2019-09-19 00:19:59 +00:00
Emilio Cobos Álvarez 1e858d2a04 Bug 1578661 - Fix use counter test. r=boris
By reporting the properties in MappedAttrParser that we used to (the test relies
on counting those), and by adjusting the histogram name to the new thing.

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

--HG--
extra : moz-landing-system : lando
2019-09-19 00:20:39 +00:00
Emilio Cobos Álvarez 9c8ffa9e68 Bug 1578661 - Add telemetry histograms for all CSS properties. r=chutten,boris
And add them to the UseCounter enum. Also add some sanity-check assertions that
the reporting code relies on.

This works much like the deprecated operation list.

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

--HG--
extra : moz-landing-system : lando
2019-09-19 00:20:37 +00:00
Emilio Cobos Álvarez 31755a845c Bug 1578661 - Remove old CSS use counters. r=boris
We only have two counters enabled, just for testing, and they just count from
the SVG mapped attribute code. That's not great, and they mostly complicate the
next few patches.

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

--HG--
extra : moz-landing-system : lando
2019-09-19 00:20:35 +00:00
Jonathan Watt d88a4a0a4b Bug 1559841. Make the 'load' event wait for OOP-iframes to load. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D41953

--HG--
extra : moz-landing-system : lando
2019-09-19 00:00:44 +00:00
Cosmin Sabou 2978a72248 Backed out 10 changesets (bug 1578661) for linting failures on layout/style/ServoCSSPropList.py. CLOSED TREE
Backed out changeset b1b5393b1099 (bug 1578661)
Backed out changeset b87eebb0cf6e (bug 1578661)
Backed out changeset 6ba2ee45f26e (bug 1578661)
Backed out changeset 4a1d45160d60 (bug 1578661)
Backed out changeset 7a5687bebc02 (bug 1578661)
Backed out changeset 33c306c9020a (bug 1578661)
Backed out changeset 89d7e6fb24b0 (bug 1578661)
Backed out changeset 42c4943e569b (bug 1578661)
Backed out changeset 88d988a80de1 (bug 1578661)
Backed out changeset 78c90f9e9eee (bug 1578661)
2019-09-19 01:50:03 +03:00
Haik Aftandilian 49d42aa115 Bug 1580900 - Part 2 - Extend nsIOSPermissionRequest to support screen-recording permission requests r=spohl
Adds nsIOSPermissionRequest::MaybeRequestScreenCapturePermission() to allow front-end code to trigger a screen-recording permission request dialog.

Depends on D46093

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

--HG--
extra : moz-landing-system : lando
2019-09-17 20:57:51 +00:00
Haik Aftandilian 86ab99c9a3 Bug 1580900 - Part 1 - Extend nsIOSPermissionRequest to support screen-recording permission checks r=spohl
Adds nsIOSPermissionRequest::GetScreenCapturePermissionState() to allow front-end code to check if Firefox has already been granted permission to record the screen.

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

--HG--
extra : moz-landing-system : lando
2019-09-17 22:13:36 +00:00
Masayuki Nakano 6789366d5e Bug 1540029 - part 10: Get rid of `TextEditRules` and `HTMLEditRules` r=m_kato
Now, we can get rid of `TextEditRules` and `HTMLEditRules` completely.
And also this patch renames their cpp files to `TextEditSubActionHandler`
and `HTMLEditSubActionHandler`.

`TextEditor::Init()` and `HTMLEditor::Init()` are still complicated due to
`AutoEditInitRulesTrigger`.  The following patch will remove it.

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

--HG--
rename : editor/libeditor/HTMLEditRules.cpp => editor/libeditor/HTMLEditSubActionHandler.cpp
rename : editor/libeditor/TextEditRules.cpp => editor/libeditor/TextEditSubActionHandler.cpp
extra : moz-landing-system : lando
2019-09-18 08:40:08 +00:00
Noemi Erli 76ab96731c Merge inbound to mozilla-central. a=merge 2019-09-19 00:50:29 +03:00
Emilio Cobos Álvarez 73baf90a76 Bug 1578661 - Add static_assert messages for use counter assertions. r=boris
This was a review comment which was easier to address as a separate patch.

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

--HG--
extra : moz-landing-system : lando
2019-09-18 15:15:06 +00:00
Emilio Cobos Álvarez 4ce6b69adf Bug 1578661 - Report counted unknown properties as well. r=boris
Differential Revision: https://phabricator.services.mozilla.com/D44717

--HG--
extra : moz-landing-system : lando
2019-09-18 15:15:15 +00:00
Emilio Cobos Álvarez 65b3948518 Bug 1578661 - Merge the stylesheet use counters, report them, and add tests. r=boris
C'est fini. Now to do the same with the unimplemented ones remains, but it
should be straight-forward.

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

--HG--
extra : moz-landing-system : lando
2019-09-18 15:15:24 +00:00
Emilio Cobos Álvarez 2adb14b20a Bug 1578661 - Fix use counter test. r=boris
By reporting the properties in MappedAttrParser that we used to (the test relies
on counting those), and by adjusting the histogram name to the new thing.

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

--HG--
extra : moz-landing-system : lando
2019-09-18 15:15:26 +00:00
Emilio Cobos Álvarez 7155c266f5 Bug 1578661 - Add telemetry histograms for all CSS properties. r=chutten,boris
And add them to the UseCounter enum. Also add some sanity-check assertions that
the reporting code relies on.

This works much like the deprecated operation list.

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

--HG--
extra : moz-landing-system : lando
2019-09-18 15:44:39 +00:00
Emilio Cobos Álvarez 6a2a92e98a Bug 1578661 - Remove old CSS use counters. r=boris
We only have two counters enabled, just for testing, and they just count from
the SVG mapped attribute code. That's not great, and they mostly complicate the
next few patches.

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

--HG--
extra : moz-landing-system : lando
2019-09-18 15:15:19 +00:00
Andreea Pavel 7494b360c0 Backed out 10 changesets (bug 1578661) for lints failure at ServoCSSPropList.cpp on a CLOSED TREE
Backed out changeset ed3c619100e7 (bug 1578661)
Backed out changeset 027514a2eaf6 (bug 1578661)
Backed out changeset f2e228282b20 (bug 1578661)
Backed out changeset 67c36136dce7 (bug 1578661)
Backed out changeset 2280b27cc130 (bug 1578661)
Backed out changeset 445d13a2c452 (bug 1578661)
Backed out changeset 89caaa850049 (bug 1578661)
Backed out changeset 2f8be5db1786 (bug 1578661)
Backed out changeset 51a015a9a0f8 (bug 1578661)
Backed out changeset ad8e1f27a600 (bug 1578661)
2019-09-18 18:09:30 +03:00
Elliot Stirling 374680fc66 Bug 1511033 - Support ServiceWorkerClients.openWindow() r=geckoview-reviewers,snorp,smaug
Adds a ServiceWorkerDelegate to GeckoRuntime that allows GeckoView applications
to handle ServiceWorkerClient.openWindow() requests.

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

--HG--
extra : moz-landing-system : lando
2019-09-18 11:29:30 +00:00
Kris Maglione 1620380489 Bug 1581548: Handle new BrowsingContexts becoming discarded during nested event loop. r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D46088

MANUAL PUSH: Cannot update reopened Phabricator revisions.

--HG--
extra : source : dc7ef690b396293d0b75469bb9731dce9bfe5c92
extra : amend_source : 7a3986333d5c357e6104fe05c8c901543f0e35eb
2019-09-17 22:19:50 +00:00
Andreea Pavel 31ca3fda59 Backed out 9 changesets (bug 1578661) for lints failure at ServoCSSPropList.py a=backout
Backed out changeset d16463e5698c (bug 1578661)
Backed out changeset c6d64ac858ba (bug 1578661)
Backed out changeset db306f1467f7 (bug 1578661)
Backed out changeset 273535aab82d (bug 1578661)
Backed out changeset f643262a8c25 (bug 1578661)
Backed out changeset b0db409ada96 (bug 1578661)
Backed out changeset dc96d13728e0 (bug 1578661)
Backed out changeset 11e1e8f0a1b7 (bug 1578661)
Backed out changeset 6dd7a0d914d9 (bug 1578661)
2019-09-18 13:53:34 +03:00
Mihai Alexandru Michis 59cfefde58 Merge inbound to mozilla-central. a=merge 2019-09-18 12:58:15 +03:00
Andreea Pavel 3a05650c79 Backed out changeset dc7ef690b396 (bug 1581548) for failing /test_window_open_discarded_bc.html on a CLOSED TREE 2019-09-18 09:50:31 +03:00
Byron Campen [:bwc] abf0777414 Bug 1569183: Create an ipdl struct called WebrtcProxyConfig, to cut down on the arg count on lots of functions. r=mjf,mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D45562

--HG--
extra : moz-landing-system : lando
2019-09-17 18:19:04 +00:00
Byron Campen [:bwc] fec8b0d807 Bug 1569183: Stop doing a proxy lookup to determine whether we're configured to use a proxy (for the proxy_only_if_behind_proxy pref), and instead look at whether we loaded the doc using a proxy. r=mjf,mayhemer,jld
Differential Revision: https://phabricator.services.mozilla.com/D45289

--HG--
extra : moz-landing-system : lando
2019-09-18 14:27:42 +00:00
Byron Campen [:bwc] 57de6c6130 Bug 1569183: Remove some stuff from TCPSocket that NrTcpSocketIpc was the only user of. r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D45112

--HG--
extra : moz-landing-system : lando
2019-09-17 18:18:15 +00:00
Byron Campen [:bwc] dbee4e76f5 Bug 1569183: Add a proxy policy argument to NrSocketProxyConfig, and always set this config on the NrIceCtx. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D45101

--HG--
extra : moz-landing-system : lando
2019-09-17 18:17:14 +00:00
Byron Campen [:bwc] 8bd10b72d0 Bug 1569183: Rename SetProxyServer to SetProxyConfig to better reflect what is actually going on. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D45100

--HG--
extra : moz-landing-system : lando
2019-09-17 18:17:13 +00:00
Matt Woodrow b8226cf581 Bug 1546022 - Activate mouse over state for new BrowserParents. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D44413

--HG--
extra : moz-landing-system : lando
2019-09-18 02:06:32 +00:00
Kris Maglione ec70f45d44 Bug 1577723: Store BrowsingContext ID in dom::Location rather than DocShell weak reference. r=farre
Storing a DocShell rather than a BrowsingContext causes a number of problems
when dealing with cross-process navigations. The most immediate in this case
is that some cross-origin-allowed operations only work after a local-to-remote
navigation only until the original DocShell is destroyed, which causes
intermittent test failures.

It also means, though, that after a local-to-remote navigation, where the
DocShell has not been destroyed, attempts to read same-origin properties still
end up at the old DocShell, and as a result, lie about the current state of
the BrowsingContext.

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

MANUAL PUSH: Cannot update re-opened Phabricator revisions.

--HG--
extra : source : 6ba3bcede28a51512b8f17606b917024813e98b9
extra : histedit_source : 8dcc4aaabfc3db541a1269dfcd6414c4009d1c47%2C424b940eac29b4e916ea390223103ca41922375d
2019-09-16 18:17:17 -07:00
Daniel Varga 2dc4f22a07 Backed out 2 changesets (bug 1577723) for wpt failure at /html/browsers/history/the-location-interface/no-browsing-context.window.html
Backed out changeset 8bf308d3b614 (bug 1577723)
Backed out changeset 6ba3bcede28a (bug 1577723)
2019-09-18 01:50:35 +03:00
Kris Maglione d70488e985 Bug 1577723: Follow-up: Fix another crash test relied on GC timing. r=bustage
MANUAL PUSH: Bustage fix.
2019-09-17 13:27:48 -07:00
Kris Maglione 5c43907520 Bug 1577723: Store BrowsingContext ID in dom::Location rather than DocShell weak reference. r=farre
Storing a DocShell rather than a BrowsingContext causes a number of problems
when dealing with cross-process navigations. The most immediate in this case
is that some cross-origin-allowed operations only work after a local-to-remote
navigation only until the original DocShell is destroyed, which causes
intermittent test failures.

It also means, though, that after a local-to-remote navigation, where the
DocShell has not been destroyed, attempts to read same-origin properties still
end up at the old DocShell, and as a result, lie about the current state of
the BrowsingContext.

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

MANUAL PUSH: Cannot update re-opened Phabricator revisions.

--HG--
extra : rebase_source : 417335868d70932981ae0b8908f60a22bdffb62c
extra : amend_source : 135861c9d33ec4b4d84c2ec36aa407ec91df9130
2019-09-16 18:17:17 -07:00
J.C. Jones 51aefb37d2 Bug 1573245 - Change AuthenticatorTransport to be string, not `enum` r=bzbarsky,keeler
Upstream: https://github.com/w3c/webauthn/issues/1268

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

--HG--
extra : moz-landing-system : lando
2019-09-17 07:50:44 +00:00
Bogdan Tara 361c83c1a9 Backed out 21 changesets (bug 1578327, bug 1575448, bug 1580091, bug 1576554, bug 1581049, bug 1576551, bug 1578329, bug 1576555) for platform.cpp related bustage CLOSED TREE
Backed out changeset 27afea20c396 (bug 1581049)
Backed out changeset be1ec4577d37 (bug 1581049)
Backed out changeset b4b6bbb18cc1 (bug 1581049)
Backed out changeset b30942f9db54 (bug 1581049)
Backed out changeset 473c431866f7 (bug 1578329)
Backed out changeset ac492dc3df20 (bug 1578329)
Backed out changeset f51875652f6f (bug 1578327)
Backed out changeset 512b7cbd18f6 (bug 1576555)
Backed out changeset 2d63a9934c00 (bug 1576555)
Backed out changeset ff73f648ab6c (bug 1576555)
Backed out changeset 49f49079bbb5 (bug 1576555)
Backed out changeset e8323157c6f3 (bug 1575448)
Backed out changeset 3b0d726f2dd6 (bug 1575448)
Backed out changeset 5924790abc4b (bug 1576554)
Backed out changeset a14ac9bb5338 (bug 1576554)
Backed out changeset b6d73f5042a7 (bug 1576551)
Backed out changeset 366030bd2d84 (bug 1576551)
Backed out changeset d7ee4148aad9 (bug 1576551)
Backed out changeset ec72dfc7301e (bug 1576551)
Backed out changeset 79b29286f906 (bug 1580091)
Backed out changeset 6f34c2e57ccf (bug 1580091)
2019-09-17 10:16:14 +03:00
Gerald Squelart 6b49069f3e Bug 1578329 - Use profiler_can_accept_markers() where appropriate - r=gregtatum
In places where profiler_is_active() was used around a profiler_add_marker() (or
similar) call, replace it with profiler_can_accept_markers().

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

--HG--
extra : moz-landing-system : lando
2019-09-17 01:53:56 +00:00
Gerald Squelart 5b86107991 Bug 1575448 - De/serialize ProfilerMarkerPayload derived objects - r=gregtatum
Payloads will serialize themselves into a `BlocksRingBuffer` entry when first
captured.
Later they will be deserialized, to stream JSON for the output profile.

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

--HG--
extra : moz-landing-system : lando
2019-09-17 01:51:41 +00:00
Gurzau Raul 1d0e84d2ec Backed out 2 changesets (bug 1573245) for Windows build bustages at WebAuthnManager.cpp on a CLOSED TREE.
Backed out changeset 0bf953d07a4f (bug 1573245)
Backed out changeset cfdf258c11ae (bug 1573245)
2019-09-17 08:40:27 +03:00
J.C. Jones c119c83cd4 Bug 1573245 - Include BindingUtils.h for WebAuthnManager on a CLOSED TREE
Differential Revision: https://phabricator.services.mozilla.com/D46109

--HG--
extra : moz-landing-system : lando
2019-09-17 05:16:26 +00:00
J.C. Jones 8cc2abfd2a Bug 1573245 - Change AuthenticatorTransport to be string, not `enum` r=bzbarsky,keeler
Upstream: https://github.com/w3c/webauthn/issues/1268

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

--HG--
extra : moz-landing-system : lando
2019-09-17 04:47:27 +00:00
Christoph Kerschbaumer ecfde38ed8 Bug 1580710: Expose functionality on the CSP Object to allow skipping the inline style checks. r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D45631

--HG--
extra : moz-landing-system : lando
2019-09-16 23:47:19 +00:00
Brindusan Cristian c2ee78aa6f Backed out changeset 3af4309ffce7 (bug 1237782) for wpt assertions/leaks. CLOSED TREE 2019-09-17 01:03:46 +03:00
Karl Tomlinson 78bb2541b3 Bug 834505 undef GetCurrentTime() from windows-h-wrapper.template.h r=glandium
GetCurrentTime is declared in WinBase.h
https://github.com/tpn/winsdk-10/blob/master/Include/10.0.10240.0/um/WinBase.h#L91

Documentation for functions declared in winbase.h instruct to include
Windows.h. e.g.
https://docs.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-copyfile
Other macro declarations in winbase.h such as CopyFile() are already adjusted
with this wrapper via windows-h-unicode.decls.h

A similar, but different, static inline could be provided but is not required.

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

--HG--
extra : moz-landing-system : lando
2019-09-18 02:52:20 +00:00
Emilio Cobos Álvarez 72746c1fb1 Bug 1578661 - Add static_assert messages for use counter assertions. r=boris
This was a review comment which was easier to address as a separate patch.

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

--HG--
extra : moz-landing-system : lando
2019-09-18 02:31:34 +00:00
Emilio Cobos Álvarez 5ebe1a5793 Bug 1578661 - Report counted unknown properties as well. r=boris
Differential Revision: https://phabricator.services.mozilla.com/D44717

--HG--
extra : moz-landing-system : lando
2019-09-18 02:31:25 +00:00
Emilio Cobos Álvarez 4a3f70732b Bug 1578661 - Merge the stylesheet use counters, report them, and add tests. r=boris
C'est fini. Now to do the same with the unimplemented ones remains, but it
should be straight-forward.

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

--HG--
extra : moz-landing-system : lando
2019-09-18 02:31:21 +00:00
Emilio Cobos Álvarez f8337abcef Bug 1578661 - Fix use counter test. r=boris
By reporting the properties in MappedAttrParser that we used to (the test relies
on counting those), and by adjusting the histogram name to the new thing.

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

--HG--
extra : moz-landing-system : lando
2019-09-18 02:31:19 +00:00
Emilio Cobos Álvarez 80192dc388 Bug 1578661 - Add telemetry histograms for all CSS properties. r=chutten,boris
And add them to the UseCounter enum. Also add some sanity-check assertions that
the reporting code relies on.

This works much like the deprecated operation list.

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

--HG--
extra : moz-landing-system : lando
2019-09-18 02:33:04 +00:00
Emilio Cobos Álvarez a9ba10a9bc Bug 1578661 - Remove old CSS use counters. r=boris
We only have two counters enabled, just for testing, and they just count from
the SVG mapped attribute code. That's not great, and they mostly complicate the
next few patches.

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

--HG--
extra : moz-landing-system : lando
2019-09-18 02:32:52 +00:00
Gerald Squelart dc8ac83ba6 Bug 1578329 - Use profiler_can_accept_markers() where appropriate - r=gregtatum
In places where profiler_is_active() was used around a profiler_add_marker() (or
similar) call, replace it with profiler_can_accept_markers().

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

--HG--
extra : moz-landing-system : lando
2019-09-18 01:22:12 +00:00
Gerald Squelart fc93e3d9da Bug 1575448 - De/serialize ProfilerMarkerPayload derived objects - r=gregtatum
Payloads will serialize themselves into a `BlocksRingBuffer` entry when first
captured.
Later they will be deserialized, to stream JSON for the output profile.

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

--HG--
extra : moz-landing-system : lando
2019-09-18 01:20:10 +00:00
Oana Pop Rus 1f0c49ab12 Backed out changeset 3a49482c8210 (bug 1546022) for build bustage in nsFrameLoaderOwner.cpp on a CLOSED TREE 2019-09-18 04:22:40 +03:00
Kris Maglione 4b25ed5432 Bug 1581548: Handle new BrowsingContexts becoming discarded during nested event loop. r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D46088

--HG--
extra : moz-landing-system : lando
2019-09-17 22:19:50 +00:00
Matt Woodrow 68f7f6bf05 Bug 1546022 - Activate mouse over state for new BrowserParents. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D44413

--HG--
extra : moz-landing-system : lando
2019-09-17 14:22:40 +00:00
Brian Hackett 0a791285af Bug 1575306 - Suppress reporting of uncaught testing sentinel, r=bzbarsky.
Differential Revision: https://phabricator.services.mozilla.com/D45964

--HG--
extra : moz-landing-system : lando
2019-09-16 20:17:17 +00:00
Lee Salzman 4b7fcf7dca Bug 1547063 - fuzz for SharedFTFace. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D44498

--HG--
extra : moz-landing-system : lando
2019-09-16 16:46:12 +00:00
Jonathan Kingston bd229a5c73 Bug 1237782 - Remove http override and add appcache pref r=baku
Differential Revision: https://phabricator.services.mozilla.com/D44472

--HG--
extra : moz-landing-system : lando
2019-09-16 17:24:39 +00:00
Brindusan Cristian 073cc24f53 Backed out changeset 8f30450e231c (bug 1575306) for ESlint failure at PromiseTestUtils.jsm:99:31. CLOSED TREE 2019-09-16 22:30:52 +03:00
Brian Hackett 7a20c67cf9 Bug 1575306 - Suppress reporting of uncaught testing sentinel, r=bzbarsky.
Differential Revision: https://phabricator.services.mozilla.com/D45964

--HG--
extra : moz-landing-system : lando
2019-09-16 19:04:20 +00:00
Valentin Gosu b27c4726d0 Bug 1513574 - Remove UserAgentOverrides.jsm and UserAgentUpdates.jsm r=michal
Also removes the UA cache attached to nsILoadGroup and nsIRequestContext and the "http-on-useragent-request" observer notification.
If overriding the user agent is needed "http-on-modify-request" is equally usable (but should be used rarely, for performance reasons). A better way is using nsIDocShell.customUserAgent.

Depends on D14750

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

--HG--
extra : moz-landing-system : lando
2019-09-16 15:21:36 +00:00
Brian Hackett 9a41a4d559 Bug 1581414 - Don't report deprecation warnings after diverging from the recording, r=mccr8.
Differential Revision: https://phabricator.services.mozilla.com/D45960

--HG--
extra : moz-landing-system : lando
2019-09-16 13:33:43 +00:00
Andrea Marchesini ace0f7612e Bug 1571037 - BodyStreamHolder must release itself when unlinked, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D45510

--HG--
extra : moz-landing-system : lando
2019-09-13 22:18:13 +00:00
Emilio Cobos Álvarez ff890f406e Bug 1579788 - Don't update validity state when the JS engine fails to execute the pattern. r=smaug
When we call nsContentUtils::IsPatternMatching, we swallow JS engine errors
unconditionally returning true.

This is bad, because if it happens in one of the value sets that arguably
shouldn't change the state of the element, we end up returning an arbitrary
value (true) which may or may not match the previous state of the element.

Handle error explicitly instead, by not updating the state.

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

--HG--
extra : moz-landing-system : lando
2019-09-16 10:11:42 +00:00
Daisuke Akatsuka 409a2bc885 Bug 713106: Make :visited selector enabled to use from DevTools. r=pbro,emilio
Differential Revision: https://phabricator.services.mozilla.com/D45624

--HG--
extra : moz-landing-system : lando
2019-09-13 22:12:12 +00:00
Daisuke Akatsuka ef36d9df93 Bug 713106: Show :visited rule while the pseudo is locked. r=pbro,emilio
Differential Revision: https://phabricator.services.mozilla.com/D45623

--HG--
extra : moz-landing-system : lando
2019-09-13 22:11:58 +00:00
Cosmin Sabou b1cfe7b829 Backed out 4 changesets (bug 1513574) for causing several browser chrome failures. CLOSED TREE
Backed out changeset 7d950fc452fb (bug 1513574)
Backed out changeset 11f015a3e739 (bug 1513574)
Backed out changeset be6959a563f6 (bug 1513574)
Backed out changeset ce51efd054b8 (bug 1513574)

--HG--
extra : histedit_source : a7bc0055925ac352826572f96730f3d90815bda0
2019-09-16 12:40:40 +03:00
Mirko Brodesser 99420c7112 Bug 1581471: part 8) Add `CloseContainerForOutputFormatted`. r=hsivonen
Depends on D45982

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

--HG--
extra : moz-landing-system : lando
2019-09-16 08:51:43 +00:00
Mirko Brodesser 3e241f3543 Bug 1581471: part 7) Add `OpenContainerForOutputFormatted`. r=hsivonen
Depends on D45981

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

--HG--
extra : moz-landing-system : lando
2019-09-16 08:49:49 +00:00
Mirko Brodesser 9ef663df5a Bug 1581471: part 6) Rename `noOfRows` to `aNumberOfRows`. r=hsivonen
Depends on D45980

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

--HG--
extra : moz-landing-system : lando
2019-09-16 08:47:23 +00:00
Mirko Brodesser 4dcebb170e Bug 1581471: part 5) Rename `restOfLine` to `restOfContent`. r=hsivonen
Depends on D45979

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

--HG--
extra : moz-landing-system : lando
2019-09-16 08:47:00 +00:00
Mirko Brodesser 2409797e41 Bug 1581471: part 4) Rename `linelength` to `contentLength`. r=hsivonen
Depends on D45978

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

--HG--
extra : moz-landing-system : lando
2019-09-16 08:41:23 +00:00
Mirko Brodesser 656caf51af Bug 1581471: part 3) Narrow scope of `linelength` variable. r=hsivonen
Depends on D45977

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

--HG--
extra : moz-landing-system : lando
2019-09-16 08:41:06 +00:00
Mirko Brodesser b9886e97f5 Bug 1581471: part 2) Factor out finding wrap index for line content to `CurrentLine`. r=hsivonen
Depends on D45976

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

--HG--
extra : moz-landing-system : lando
2019-09-16 08:40:38 +00:00
Mirko Brodesser 523be17fa8 Bug 1581471: part 1) Determine string length inside `GetUnicharStringWidth`. r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D45976

--HG--
extra : moz-landing-system : lando
2019-09-16 09:10:00 +00:00
Valentin Gosu f9ed039670 Bug 1513574 - Remove UserAgentOverrides.jsm and UserAgentUpdates.jsm r=michal
Also removes the UA cache attached to nsILoadGroup and nsIRequestContext and the "http-on-useragent-request" observer notification.
If overriding the user agent is needed "http-on-modify-request" is equally usable (but should be used rarely, for performance reasons). A better way is using nsIDocShell.customUserAgent.

Depends on D14750

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

--HG--
extra : moz-landing-system : lando
2019-09-16 08:38:24 +00:00
Matt Woodrow 097e29a589 Bug 1579765 - Don't overwrite redirect timings when we convert DocumentChannel to a real channel. r=mayhemer
DocumentChannel doesn't use the REDIRECT_INTERNAL flag when replacing itself with a real channel if there has been a real redirect handled in the parent.
This is so that the docshell knows about the URI change, and to add history entries.
The timing data however always wanted to be treated as an internal redirect, so that we don't record a new 'redirectEnd' at the time of the switch.
This adds a new parameter to ConfigureReplacementChannel so that we can more accurately describe the behaviour we need.

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

--HG--
extra : moz-landing-system : lando
2019-09-16 07:22:32 +00:00
Matt Woodrow ff552dee87 Bug 1579765 - Move upload stream handling into ReplacementChannelConfig so that it gets applied to DocumentChannel as well as normal HTTP redirects. r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D45146

--HG--
extra : moz-landing-system : lando
2019-09-16 07:25:18 +00:00
Shashank Kaushik 059c1179f1 Bug 1532933 - Enable ESLint for dom/xhr (manual changes). r=Standard8,baku
Depends on D45680

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

--HG--
extra : moz-landing-system : lando
2019-09-15 13:07:10 +00:00
Shashank Kaushik b7630b9df2 Bug 1532933 - Enable ESLint for dom/xhr (automatic changes). r=Standard8,baku
# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2019-09-16 07:01:07 +00:00
Emilio Cobos Álvarez b39ed7bca4 Bug 1578379 - Remove some silly ifdefs. r=bzbarsky
mDummy doesn't even exist anymore.

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

--HG--
extra : moz-landing-system : lando
2019-09-14 03:13:07 +00:00
Botond Ballo 3a1c85bca4 Bug 1577859 - Remove the layout.scroll.root-frame-containers pref and code that depends directly on it. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D45198

--HG--
extra : moz-landing-system : lando
2019-09-15 17:01:22 +00:00
Emilio Cobos Álvarez c2bb091273 Bug 1579181 - Don't keep <use> shadow trees which we know we'll never render. r=longsonr
This partially addresses the regression, but not fully. With this patch we don't
maintain shadow trees for nodes that we know won't get rendered.

This works fast in WebKit / Blink because of a bug in their implementation which
doesn't synchronize style attributes, introduced in [1].

You can see this clearly if you click on the bug's test-case and inspect the
<use> shadow trees (there's no style="stroke:orange" whatsoever).

They can kinda get away with it because they don't properly implement SVG 2. In
particular, in Blink / WebKit, the style of the element in the <use> shadow tree
is the style of the referenced element, which means that even if the style
attribute isn't properly synced it's ~ok since it doesn't end up mattering for
styling.

Easiest test-case for the behavior difference is:

```
<!doctype html>
<style>
  rect:hover {
    fill: green;
  }
</style>
<svg width=300 height=300>
  <g id="canvas">
    <rect fill=red width=100 height=100></rect>
  </g>
  <g>
    <use x=200 href="#canvas"></use>
  </g>
</svg>
```

Where Firefox will properly update each square independently when hovered, but
Blink / WebKit won't.

This used to work faster because in this particular test-case we have 3 hidden
<use> elements whose href is the #canvas, which is basically everything.

Before moving to shadow trees we'd do it using anonymous content, and since we
never got a frame we'd never clone the subtree in the first case.

This case was faster before bug 1450250, but this approach makes other cases
slow that were fixed by that bug, like bug 1485402.

So I'll try to optimize shadow tree syncing instead, I guess, but there's no
good reason not to land this in the meantime IMHO.

[1]: f4b022e64b%5E%21/third_party/WebKit/WebCore/svg/SVGElement.cpp

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

--HG--
extra : moz-landing-system : lando
2019-09-15 16:09:28 +00:00
Jan Varga 4f4188c7ab Bug 1576260 - Make LSValue initialization fallible; r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D45849

--HG--
extra : moz-landing-system : lando
2019-09-14 05:33:01 +00:00
Mike Conley a4df7349e3 Bug 1580848 - Clean up some review feedback on the browser_crash_oopiframe.js test. r=kmag
* The test first asserts that we can actually load iframes in separate subprocesses
* The test now loads in a new tab rather than a new window
* The test no longer uses the "fission" attribute
* The test avoids the BrowsingContext.get pattern, in favour of just passing the
  BrowsingContext from one actor to the other directly.

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

--HG--
extra : moz-landing-system : lando
2019-09-13 09:16:19 +00:00
Mats Palmgren 616c110e54 Bug 400258 - Use the padding edge as the origin for offsetLeft/offsetTop also for box-sizing:border-box boxes. r=emilio
This is what the spec says and is compatible with other UAs.
https://drafts.csswg.org/cssom-view/#dom-htmlelement-offsetleft

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

--HG--
extra : moz-landing-system : lando
2019-09-12 07:35:43 +00:00
John Lin 17e9f72cc3 Bug 1580600 - rename setRates() to setBitrate() and pass the value in bps. r=jya
Depends on D45775

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

--HG--
extra : moz-landing-system : lando
2019-09-13 23:38:32 +00:00
John Lin 1f7aded837 Bug 1580597 - p2: set timestamp and duration of the encoded frame. r=jya
Also remove the definition of unused struct for tracking of input timestamp.

Depends on D45774

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

--HG--
extra : moz-landing-system : lando
2019-09-13 23:38:32 +00:00
Edwin Takahashi cb92a930f0 Bug 1561046 - remove android_version == '23' from manifest files r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D45797

--HG--
extra : moz-landing-system : lando
2019-09-13 14:21:07 +00:00
Edwin Takahashi 557fc6ed68 Bug 1561046 - remove android_version >= '19' from manifest files r=gbrown
This patch removes annotations of `android_version >= 19`.

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

--HG--
extra : moz-landing-system : lando
2019-09-13 22:14:38 +00:00
Edwin Takahashi 73510ce199 Bug 1526064 - re-enable tests in dom/media/mediasource/test/mochitest.ini for windows10-aarch64 r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D45887

--HG--
extra : moz-landing-system : lando
2019-09-13 22:12:05 +00:00
Brian Hackett e9ba8790f7 Bug 1573281 - Disable 1419902.html on asan builds, r=smaug.
Differential Revision: https://phabricator.services.mozilla.com/D45794

--HG--
extra : moz-landing-system : lando
2019-09-13 21:21:57 +00:00
Hiroyuki Ikezoe a7316f6141 Bug 1578973 - Don't do autofocus process if the target node of 'autofocus' is in a cross-origin document. r=nika
Note that I've confirmed no-cross-origin-autofocus.html works fine with
enabling fission on w3c-test.org.

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

--HG--
extra : moz-landing-system : lando
2019-09-13 01:44:59 +00:00
Jan Varga 3ca5b40b9a Bug 1581127 - Add IsShuttingDown checks to DOM Cache origin initialization; r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D45846

--HG--
extra : moz-landing-system : lando
2019-09-13 16:43:30 +00:00
Frederic Wang 8957655bf3 Bug 1579602 - Rename nsMathMLElement to dom::MathMLElement. r=bzbarsky
This commit renames nsMathMLElement/nsMathMLElementFactory classes into
MathMLElement/MathMLElementFactory and moves the former into the mozilla::dom
namespace. This is a preliminary step to introduce MathML DOM (bug 1579602).
Code behavior is not changed.

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

--HG--
rename : dom/mathml/nsMathMLElement.cpp => dom/mathml/MathMLElement.cpp
rename : dom/mathml/nsMathMLElement.h => dom/mathml/MathMLElement.h
rename : dom/mathml/nsMathMLElementFactory.cpp => dom/mathml/MathMLElementFactory.cpp
extra : moz-landing-system : lando
2019-09-13 16:27:54 +00:00
Edwin Takahashi f14598bb77 Bug 1561046 - remove android_version == '19' from test manifests r=gbrown
Removes API 19 specifier from test manifests.

There aren't many, but best to clean them up.

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

--HG--
extra : moz-landing-system : lando
2019-09-13 14:12:27 +00:00
Bas Schouten 7b4d55d375 Bug 1548373: Report Open stacks for XHR responses. r=mayhemer,julienw
Differential Revision: https://phabricator.services.mozilla.com/D42831

--HG--
extra : moz-landing-system : lando
2019-09-11 15:33:00 +00:00
Cosmin Sabou 1aeb602d5e Backed out 4 changesets (bug 1513574) for Android build bustage and browser chrome failures. CLOSED TREE
Backed out changeset f155c449e516 (bug 1513574)
Backed out changeset 1f2bbbe0f781 (bug 1513574)
Backed out changeset 5f8b5f72a4ea (bug 1513574)
Backed out changeset 0e4cababccc7 (bug 1513574)
2019-09-13 21:38:18 +03:00
Chun-Min Chang 11ef6fed23 Bug 1561412 - Remove unused SynthStreamListener class. r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D35872

--HG--
extra : moz-landing-system : lando
2019-09-05 20:38:23 +00:00
Valentin Gosu ef68d827d8 Bug 1513574 - Remove UserAgentOverrides.jsm and UserAgentUpdates.jsm r=michal
Also removes the UA cache attached to nsILoadGroup and nsIRequestContext and the "http-on-useragent-request" observer notification.
If overriding the user agent is needed "http-on-modify-request" is equally usable (but should be used rarely, for performance reasons). A better way is using nsIDocShell.customUserAgent.

Depends on D14750

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

--HG--
extra : moz-landing-system : lando
2019-09-13 17:19:40 +00:00
Simon Giesecke f408d617b9 Bug 1580195 - Exclude calls of open(name, {}) and open(name) from telemetry. r=ttung,asuth
Differential Revision: https://phabricator.services.mozilla.com/D45812

--HG--
extra : moz-landing-system : lando
2019-09-13 16:55:13 +00:00
Simon Giesecke 2bb315d0cf Bug 1093064 - Repeat garbage collection until ref count becomes 0 r=janv
Differential Revision: https://phabricator.services.mozilla.com/D42609

--HG--
extra : moz-landing-system : lando
2019-09-13 14:02:20 +00:00
John Dai da2a2940ad Bug 1580907 - Remove transferables attribute for SendAsyncMessage and SendQuery in JSWindowActor; r=nika
Differential Revision: https://phabricator.services.mozilla.com/D45809

--HG--
extra : moz-landing-system : lando
2019-09-13 16:51:23 +00:00
Zibi Braniecki f2eed5bb3c Bug 1580991 - Trigger DOMLocalization::OnChange from Localization::Observe. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D45759

--HG--
extra : moz-landing-system : lando
2019-09-13 10:08:26 +00:00
Dorel Luca a31ddb5d86 Backed out changeset 6d1a9a57c526 (bug 1577723) for Reftests in /reftest/tests/dom/base/crashtests/973401.html. CLOSED TREE 2019-09-17 21:19:10 +03:00
Kris Maglione 38cfe79c25 Bug 1577723: Store BrowsingContext ID in dom::Location rather than DocShell weak reference. r=farre
Storing a DocShell rather than a BrowsingContext causes a number of problems
when dealing with cross-process navigations. The most immediate in this case
is that some cross-origin-allowed operations only work after a local-to-remote
navigation only until the original DocShell is destroyed, which causes
intermittent test failures.

It also means, though, that after a local-to-remote navigation, where the
DocShell has not been destroyed, attempts to read same-origin properties still
end up at the old DocShell, and as a result, lie about the current state of
the BrowsingContext.

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

--HG--
extra : moz-landing-system : lando
2019-09-17 14:56:03 +00:00
prathiksha 3e3db51f40 Bug 1561443 - Expose error code string to about:neterror with webidl. r=baku
Differential Revision: https://phabricator.services.mozilla.com/D45540

--HG--
extra : moz-landing-system : lando
2019-09-17 07:51:57 +00:00
Masayuki Nakano db32271cec Bug 1540029 - part 2: Get rid of `TextEditRules::DocumentIsEmpty()` and `HTMLEditRules::DocumentIsEmpty()` r=m_kato
`TextEditRules::DocumentIsEmpty()` is a wrapper of `TextEditor::IsEmpty()` so
that we can get rid of it simply.

`HTMLEditRules::DocumentIsEmpty()` needs to change.  It's oddly checks only
`EditorBase::mPaddingBRElementForEmptyEditor` is `nullptr` or not.  However,
the editor may be completely empty.  And the result may be different from
`TextEditor::IsEmpty()` which is not overridden by `HTMLEditor`.  For partially
solving this issue, this patch makes `HTMLEditor` overrides `IsEmpty()` and
optimizes `TextEditor::IsEmpty()`.

With this change, the caller of `HTMLEditRules::DocumentIsEmpty()` may behave
differently in the only caller, `HTMLEditor::SelectEntireDocument()`.  And
unfortunately, its root called from `SelectAllCommand::DoCommand()`.  However,
it does just collapse `Selection` into the root element (`<body>` or
`Document.documentElement`) if it returns `true`.  Therefore, this change
must be safe since anyway `SelectionRefPtr()->SelectAllChildren()` with
the root element is exactly same as `SelectionRefPtr()->Collapse()` with
the empty root element if it's truly empty.

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

--HG--
extra : moz-landing-system : lando
2019-09-17 06:58:06 +00:00
Eden Chuang fd5c8abedb Bug 1581072 - Removing skip-if = fission for testing fission r=perry
ServiceWorker mochitests fail for Fission is fixed by bug 1542415.
Remove the skip-if for tests

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

--HG--
extra : moz-landing-system : lando
2019-09-16 21:11:57 +00:00
Eden Chuang fc138e3f12 Bug 1580496 - Return NS_ERROR_FAILURE while getting nullptr PaymentRequestChild for PaymentRquest r=baku
PaymentRequestChild could be nullptr while PaymentRequest's owner is nullptr.

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

--HG--
extra : moz-landing-system : lando
2019-09-17 07:49:52 +00:00
Jon Coppeard 7630259d43 Bug 1580883 - Use TimeDuration for CycleCollectorStats members r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D45697

--HG--
extra : moz-landing-system : lando
2019-09-18 12:48:46 +00:00
Jon Coppeard f326bb945c Bug 1580883 - Use TimeDuration for remaining global in nsJSEnvironment.cpp r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D45696

--HG--
extra : moz-landing-system : lando
2019-09-18 12:48:32 +00:00
Jon Coppeard 99e7fae124 Bug 1580883 - Use TimeDuration for constants in nsJSEnvironment.cpp r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D45695

--HG--
extra : moz-landing-system : lando
2019-09-18 12:48:23 +00:00
Jon Coppeard 559e2c332d Bug 1580883 - Use TimeStamp/TimeDuration APIs instead of PRTime/PR_Now() in nsJSEnvironment.cpp r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D45693

--HG--
extra : moz-landing-system : lando
2019-09-18 12:48:09 +00:00
Emilio Cobos Álvarez 74d4d8d59c Bug 1578661 - Add static_assert messages for use counter assertions. r=boris
This was a review comment which was easier to address as a separate patch.

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

--HG--
extra : moz-landing-system : lando
2019-09-18 12:04:52 +00:00
Emilio Cobos Álvarez 30e754a811 Bug 1578661 - Report counted unknown properties as well. r=boris
Differential Revision: https://phabricator.services.mozilla.com/D44717

--HG--
extra : moz-landing-system : lando
2019-09-18 12:04:48 +00:00
Emilio Cobos Álvarez 6021f6b576 Bug 1578661 - Merge the stylesheet use counters, report them, and add tests. r=boris
C'est fini. Now to do the same with the unimplemented ones remains, but it
should be straight-forward.

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

--HG--
extra : moz-landing-system : lando
2019-09-18 12:04:44 +00:00
Emilio Cobos Álvarez 959c99b520 Bug 1578661 - Fix use counter test. r=boris
By reporting the properties in MappedAttrParser that we used to (the test relies
on counting those), and by adjusting the histogram name to the new thing.

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

--HG--
extra : moz-landing-system : lando
2019-09-18 12:04:37 +00:00
Emilio Cobos Álvarez e1882a044c Bug 1578661 - Add telemetry histograms for all CSS properties. r=chutten,boris
And add them to the UseCounter enum. Also add some sanity-check assertions that
the reporting code relies on.

This works much like the deprecated operation list.

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

--HG--
extra : moz-landing-system : lando
2019-09-18 12:04:35 +00:00
Emilio Cobos Álvarez d880111e86 Bug 1578661 - Remove old CSS use counters. r=boris
We only have two counters enabled, just for testing, and they just count from
the SVG mapped attribute code. That's not great, and they mostly complicate the
next few patches.

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

--HG--
extra : moz-landing-system : lando
2019-09-18 12:04:33 +00:00
Mihai Alexandru Michis 7bed28e9e2 Merge mozilla-central to autoland. 2019-09-18 14:47:25 +03:00
Mihai Alexandru Michis a6faaf2933 Merge mozilla-central to autoland. CLOSED TREE 2019-09-18 13:05:29 +03:00
Valentin Gosu 9be69aefcb Bug 1580750 - Enable more fission tests r=JuniorHsu
Differential Revision: https://phabricator.services.mozilla.com/D46175

--HG--
extra : moz-landing-system : lando
2019-09-17 19:35:00 +00:00
Henri Sivonen 75e563c076 Bug 1561573 - Avoid linearization and inflation to UTF-16 of the string input to TextEncoder. r=jandem,bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D44121

--HG--
extra : moz-landing-system : lando
2019-09-18 08:26:52 +00:00
Henri Sivonen c193518677 Bug 1490601 part 2 - Move C++ entry points to encoding_c_mem to mfbt/. r=jwalden
Differential Revision: https://phabricator.services.mozilla.com/D43957

--HG--
extra : moz-landing-system : lando
2019-09-18 08:26:34 +00:00
Simon Giesecke 89e37616c3 Bug 1168606 - Refactored tests, reduced duplicated code. r=ttung,asuth
Differential Revision: https://phabricator.services.mozilla.com/D43250

--HG--
extra : moz-landing-system : lando
2019-09-18 06:43:08 +00:00
Simon Giesecke e6e5f01c36 Bug 1168606 - Apply renamings suggested for Cursor::*Key members and related identifiers. r=ytausky,asuth
Differential Revision: https://phabricator.services.mozilla.com/D43249

--HG--
extra : moz-landing-system : lando
2019-09-18 06:41:35 +00:00
Simon Giesecke 27297c9cf8 Bug 1168606 - Inline Key::Assert function to make effective use of MOZ_ASSERT diagnostics. r=ttung,asuth
Differential Revision: https://phabricator.services.mozilla.com/D43039

--HG--
extra : moz-landing-system : lando
2019-09-18 06:41:23 +00:00
Simon Giesecke 8158af97af Bug 1168606 - Make limit parameter a statement parameter. r=ytausky,asuth
Differential Revision: https://phabricator.services.mozilla.com/D43038

--HG--
extra : moz-landing-system : lando
2019-09-18 06:41:11 +00:00
Simon Giesecke 6d939ca292 Bug 1168606 - Refactored building of key range and direction clauses. r=ttung,asuth
To align with the coding style, GetBindingClauseForKeyRange should return its
result rather than by modifying an output parameter.

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

--HG--
extra : moz-landing-system : lando
2019-09-18 06:40:53 +00:00
Simon Giesecke 433dbe0b8e Bug 1168606 - Remove code duplication in DatabaseOperationBase::BindKeyRangeToStatement overloads r=ttung,asuth
Differential Revision: https://phabricator.services.mozilla.com/D42852

--HG--
extra : moz-landing-system : lando
2019-09-18 06:40:40 +00:00
Simon Giesecke 19bf854bca Bug 1168606 - Move the functionality of OpenOp::GetKeyRangeInfo to Cursor::SetOptionalKeyRange r=ttung,asuth
Also avoid unnecessary copying of the non-locale-based key in case the locale-based is needed, and reduced code duplication and variable scoping. r=ttung

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

--HG--
extra : moz-landing-system : lando
2019-09-18 06:40:28 +00:00
Karl Tomlinson 5c05372199 Bug 1578623 remove OriginAttributes duplication by reading from PrincipalInfo r=baku
Differential Revision: https://phabricator.services.mozilla.com/D44918

--HG--
extra : moz-landing-system : lando
2019-09-09 00:41:59 +00:00
Karl Tomlinson 5ad63ce113 Bug 1578623 include stack with console message for uncaught exception in worklet script r=baku
Differential Revision: https://phabricator.services.mozilla.com/D44609

--HG--
extra : moz-landing-system : lando
2019-09-09 00:41:44 +00:00
Karl Tomlinson 8361c71fb3 Bug 1578623 add stack support to AsyncErrorReporter r=bholley
Differential Revision: https://phabricator.services.mozilla.com/D44608

--HG--
extra : moz-landing-system : lando
2019-09-09 00:41:46 +00:00
Karl Tomlinson a97ec5bdeb Bug 1578623 permit SerializeStack() from worklet thread r=baku
Differential Revision: https://phabricator.services.mozilla.com/D44606

--HG--
extra : moz-landing-system : lando
2019-09-09 00:41:48 +00:00
Karl Tomlinson fb83797145 Bug 1578623 implement WorkletPrincipals::write() r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D44605

--HG--
extra : moz-landing-system : lando
2019-09-09 00:41:50 +00:00
Karl Tomlinson a931bb8408 bug 1578623 store PrincipalInfo on WorkletImpl for off-main-thread use r=baku
Differential Revision: https://phabricator.services.mozilla.com/D44603

--HG--
extra : moz-landing-system : lando
2019-09-09 00:41:57 +00:00
Mirko Brodesser c725a97bb4 Bug 1580440: part 5) Execute finding upper bound for line wrapping only when needed. r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D45523

--HG--
extra : moz-landing-system : lando
2019-09-13 10:36:19 +00:00
Mirko Brodesser 0b0b604b71 Bug 1580440: part 4) Rename `Indentation::mWidth` to `Indentation::mLength`. r=hsivonen
Previously, this could be mistaken for the width of the character
sequence.

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

--HG--
extra : moz-landing-system : lando
2019-09-13 11:23:59 +00:00
Mirko Brodesser adb2f088ea Bug 1580440: part 3) Slightly simplify `EndLine`. r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D45521

--HG--
extra : moz-landing-system : lando
2019-09-13 10:36:00 +00:00
Mirko Brodesser 335a7fb252 Bug 1580440: part 2) Add enum class for header strategy. r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D45520

--HG--
extra : moz-landing-system : lando
2019-09-13 10:35:51 +00:00
Mirko Brodesser 35b2a709cf Bug 1580440: part 1) Replace `CurrentLineContent` with its only member. r=hsivonen
It became superfluous after `CurrentLineContent::mWidth` could be
removed.

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

--HG--
extra : moz-landing-system : lando
2019-09-13 10:35:42 +00:00
Andreea Pavel 3756361b00 Backed out changeset c47f550abd3e (bug 1578337) for failing bc at browser_bug629172.js on a CLOSED TREE 2019-09-13 14:59:14 +03:00
John Dai 2707a05984 Bug 1579218 - Fix JSWindowActorProtocol::Matches() doesn't properly handle webIsolated remote types; r=nika
Differential Revision: https://phabricator.services.mozilla.com/D45535

--HG--
extra : moz-landing-system : lando
2019-09-13 09:51:34 +00:00
Andreea Pavel 8d63d04d42 Bug 1578337 - disable test browser_storage_permission on all platforms r=egao
Differential Revision: https://phabricator.services.mozilla.com/D45477

--HG--
extra : moz-landing-system : lando
2019-09-11 05:50:28 +00:00
Agi Sferro 0d2253119a Bug 1561964 - Re-enable all tests in dom/security/test on Android. r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D37488

--HG--
extra : moz-landing-system : lando
2019-09-13 03:31:57 +00:00
Coroiu Cristina 8d4d7a884d Backed out changeset 5a021b9f8790 (bug 1578973) for browser-chrome failures at browser/base/content/test/forms/browser_selectpopup.js 2019-09-13 03:55:26 +03:00
Boris Zbarsky e29b81501a Bug 1580082. Align Response constructor IDL with spec. r=baku
Differential Revision: https://phabricator.services.mozilla.com/D45411

--HG--
extra : moz-landing-system : lando
2019-09-11 11:06:58 +00:00
alwu 5b20dd1672 Bug 1579588 - part2 : create media controller for media element only. r=chunmin
We use `NotifyMediaStarted()` and `NotifyMediaStopped()` to notify `MediaControlService` on parent process to start/stop a media controller, and use `NotifyMediaAudibleChanged()` to notify controller's audible state in order to request audio focus.

As our goal is to use media controller to control media element, not for web audio, web speech and other stuffs which also use audio channel agent.

Therefore, we should notify parent process to start/stop controller only for media element, instead of sending a notification in AudioChannelService because that would create media controller for all different consumers which uses audio channel agent.

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

--HG--
extra : moz-landing-system : lando
2019-09-12 23:13:04 +00:00
alwu a54c7c082a Bug 1579588 - part1 : split NotifyAudioChannelAgent() to StartAudioChannelAgent() and StopAudioChanelAgent(). r=chunmin
Spliting NotifyAudioChannelAgent() to StartAudioChannelAgent() and StopAudioChanelAgent() allows us to start and stop an AudioChannelAgent in a clear naming function, and to do related operation and checking every time we start/stop the agent.

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

--HG--
extra : moz-landing-system : lando
2019-09-12 23:13:04 +00:00
Gijs Kruitbosch b4ce4fda42 Bug 1580282 - Remove checks for plugins that are part of extensions and support for loading plugins from the app and profile dir, r=mconley,mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D45450

--HG--
extra : moz-landing-system : lando
2019-09-12 23:15:49 +00:00
Hiroyuki Ikezoe 64f7ca1737 Bug 1578973 - Don't do autofocus process if the target node of 'autofocus' is in a cross-origin document. r=nika
Note that I've confirmed no-cross-origin-autofocus.html works fine with
enabling fission on w3c-test.org.

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

--HG--
extra : moz-landing-system : lando
2019-09-12 22:14:37 +00:00
Dorel Luca 963e95b6db Backed out changeset a956d11fef6e (bug 1369436) for XPCshell failure on dom/push/test/xpcshell/test_notification_http2.js
--HG--
extra : rebase_source : faf44816363b784e7eacd15978d6aec558328ea2
2019-09-13 00:42:28 +03:00
Emma Malysz 8c1fe041e3 Bug 1369436, Load PushComponents.js after startup. r=lina
Differential Revision: https://phabricator.services.mozilla.com/D45079

--HG--
extra : moz-landing-system : lando
2019-09-12 16:53:55 +00:00
Boris Zbarsky 624bd9fd22 Bug 1578173 part 8. Remove support for [Constructor] from the Web IDL parser. r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D45398

--HG--
extra : moz-landing-system : lando
2019-09-12 18:45:33 +00:00
Boris Zbarsky ecfb805c22 Bug 1578173 part 7. Remove remaining uses of [Constructor] from binding tests. r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D45396

--HG--
extra : moz-landing-system : lando
2019-09-12 18:39:26 +00:00
Boris Zbarsky 1128b8dee8 Bug 1578173 part 6. Remove remaining uses of [Constructor] from bindings. r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D45394

--HG--
extra : moz-landing-system : lando
2019-09-12 11:01:17 +00:00
Boris Zbarsky cdf754533a Bug 1578173 part 5. Remove vestigial binaryNames annotations from Bindings.conf. r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D45393

--HG--
extra : moz-landing-system : lando
2019-09-11 21:23:25 +00:00
Boris Zbarsky 14c30e58d6 Bug 1578173 part 4. Switch event subclasses to constructor operations. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D45391

--HG--
extra : moz-landing-system : lando
2019-09-11 14:35:28 +00:00
Boris Zbarsky 122af58092 Bug 1578173 part 3. Remove ChromeConstructor. r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D45390

--HG--
extra : moz-landing-system : lando
2019-09-11 21:04:12 +00:00
Boris Zbarsky 5d31299907 Bug 1578173 part 2. Convert chrome-webidl bits to constructor operations. r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D45389

--HG--
extra : moz-landing-system : lando
2019-09-11 20:55:26 +00:00
Boris Zbarsky c0dd336d70 Bug 1578173 part 1. Add support for constructor operations in the parser. r=edgar
The grammar changes parallel those in https://github.com/heycam/webidl/pull/700

We don't prevent having both a constructor operation and [Constructor] or
[ChromeConstructor], because those extended attributes are about to get
removed, once they are no longer used in our IDL.

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

--HG--
extra : moz-landing-system : lando
2019-09-11 20:44:01 +00:00
Brad Werth 0e430e54bd Bug 1567310 Part 1: Add a ChromeOnly option for suppressing whitespace frames to getBoxQuads. r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D45117

--HG--
extra : moz-landing-system : lando
2019-09-12 19:05:10 +00:00
John Lin 92ce0226c3 Bug 1570337 - p7: fix build error/warning for UNIFIED_SOURCES. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D44588

--HG--
extra : moz-landing-system : lando
2019-09-12 18:19:31 +00:00
John Lin 447114ddf7 Bug 1570337 - p6: repeat calling Drain() until no more output. r=jya
Existing tests will fail when there are more than 1 pending frames when Drain()
is called. Repeatly calling it to ensure all frames will be collected.

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

--HG--
extra : moz-landing-system : lando
2019-09-12 18:19:24 +00:00
John Lin 8123c647d7 Bug 1570337 - p5: test initializing encoder both w/ and w/o specific parameters. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D43688

--HG--
extra : moz-landing-system : lando
2019-09-12 18:19:15 +00:00
John Lin 1083967985 Bug 1570337 - p4: implement Android encoder. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D43687

--HG--
extra : moz-landing-system : lando
2019-09-12 18:19:08 +00:00
John Lin 602e27f76e Bug 1570337 - p3: extract method for reuse. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D45109

--HG--
extra : moz-landing-system : lando
2019-09-12 18:19:00 +00:00
John Lin 4c35be9c69 Bug 1570337 - p2: extend and expose H.264 utility functions. r=jya
Some existing functions that manipulates H.264 bitstream already cover
most of the efforts for converting Android encoder output. With some minor
changes, they can be called by the encoder to avoid code duplications.

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

--HG--
extra : moz-landing-system : lando
2019-09-12 18:18:51 +00:00
John Lin 3000d5dcd1 Bug 1570337 - p1: singletonize sPEMLog. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D43685

--HG--
extra : moz-landing-system : lando
2019-09-12 18:18:37 +00:00
alwu 654898b3ab Bug 1580015 - part2 : add test 'test_webvtt_infinite_processing_loop.html'. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D45567

--HG--
extra : moz-landing-system : lando
2019-09-12 08:13:48 +00:00
alwu 104f98fb8c Bug 1580015 - part1 : do not reentry function 'processCues()'. r=heycam
Accessing `offsetXXX` attributes of element, it would trigger reflow, and sometime it would result in a re-entry of `processCue()` because we would call `processCue()` when `resizecaption` occurs.

One specifical case is that, assigning CSS properties `min-width` and `max-width` at the same video element, in thise case, when we re-enter the `processCues()` and access `offsetXXX`. It seems that the layout system would reprocess those properites again and again and dispatch `resizecaption` when we access `offsetXXX`, which causes an infinite loop, starting from receving `resizecaption`, then calling `processCue()`, accessing `offSetXXX`, triggering reflow, sending `resizecaption` event again.

Therefore, we should stop revisiting `processCues()` if we're already running a processing, we should run a processing once at a time.

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

--HG--
extra : moz-landing-system : lando
2019-09-12 08:13:46 +00:00
Zibi Braniecki 8aee81540e Bug 1578370 - Refactor TriggerInitialDocumentTranslation for readability. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D45589

--HG--
extra : moz-landing-system : lando
2019-09-12 16:07:49 +00:00
Tom Tung c960a1a6b6 Bug 1580238 - Extend the release for the prob of initialization time on QM and add another one to catch the longest time; r=janv,sg
Differential Revision: https://phabricator.services.mozilla.com/D45501

--HG--
extra : moz-landing-system : lando
2019-09-11 13:55:50 +00:00
Kris Maglione f261e424d2 Bug 1580377: Re-disable test_reloadInFreshProcess under Fission. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D45670

--HG--
extra : moz-landing-system : lando
2019-09-12 14:17:49 +00:00
Neil Deakin c3bcfee4c1 Bug 1580506, fix incorrect pointerlock message names, r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D45577

MANUAL PUSH: re-push with eslint bustage fix

--HG--
extra : rebase_source : 88e90063f4ae11170c7151f21deabe6675971323
extra : amend_source : 5895721851fe48ce4f57f6f33838b5b1885fee3b
extra : source : f779d14e3ab8bb8b31a29601e9391775babbc2da
2019-09-12 12:08:41 +00:00
Razvan Maries 3e9327e5b9 Backed out changeset f779d14e3ab8 (bug 1580506) for ES Lint failure on browser_pointerlock_warning.js. CLOSED TREE 2019-09-12 16:02:04 +03:00
Neil Deakin f00a06829c Bug 1580506, fix incorrect pointerlock message names, r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D45577

--HG--
extra : moz-landing-system : lando
2019-09-12 12:08:41 +00:00
Nika Layzell f103e26834 Bug 1579213 - Remove unused fields from ChangeRemoteness API, r=farre
This patch changes a few things about how nsFrameLoader is created, specifically
around the ChangeRemoteness API.

1. The private 'nsFrameLoader::nsFrameLoader' constructor has been simplified to
   only have one overload, shared by the different `::Create` static methods.

2. The creation static method used by `ChangeRemoteness` has changed name to
   `::Recreate`, as the signature is becoming more like the old method.

3. The `mNetworkCreated` bit is preserved when doing a `ChangeRemoteness`, as a
   remoteness change shouldn't be affecting that property.

4. Unused fields are removed from the ChangeRemoteness API.

5. The `remoteType` attribute is now mandatory in the ChangeRemoteness API,
   which simplifies the logic and makes it harder to accidentally misuse.

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

--HG--
extra : moz-landing-system : lando
2019-09-11 08:09:58 +00:00
Kris Maglione d7eecef1e9 Bug 1574593: Silently ignore load attempt on/from discarded BrowsingContext. r=nika
The (non-normative) window.open spec does not specify what should happen when
window.open is called on a window with a null/discarded browsing context, but
in general the lookup and creation rules do not make sense when the window has
no BC. It does, however, specify that we should return null when a target BC
cannot be found or created, and gives us broad discretion over when we decide
to ignore a load request and return null. Since we can't trigger a
cross-process load from a discarded BC, simply aborting in that case seems
like the logical solution.

For Location objects, the spec is more specific, and requires that we ignore
load attempts on Location objects whose documents are null, which in our
implementation corresponds to a discarded BrowsingContext.
LocationBase::SetURI already enforces this, but a second check in
BrowsingContext::LoadURI is probably a good idea as well.

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

--HG--
extra : moz-landing-system : lando
2019-09-12 11:37:01 +00:00
Andreas Pehrson 710f275abc Bug 1575271 - Keep a SharedDummyStream in MediaEncoder for access to the MediaStreamGraph. r=karlt
Differential Revision: https://phabricator.services.mozilla.com/D45195

--HG--
extra : moz-landing-system : lando
2019-09-12 11:26:46 +00:00
Andreas Pehrson fdb303d9f1 Bug 1575271 - Add crashtest. r=karlt
Differential Revision: https://phabricator.services.mozilla.com/D45194

--HG--
extra : moz-landing-system : lando
2019-09-10 05:29:36 +00:00
Henri Sivonen b9752dabba Bug 1561564 - Introduce a JSString WebIDL type. r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D42297

--HG--
extra : moz-landing-system : lando
2019-09-12 10:27:20 +00:00
Mike Conley 69618b0d2e Bug 1579716 - Disable OOP subframe crash test when Fission is not enabled. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D45594

--HG--
extra : moz-landing-system : lando
2019-09-12 07:54:48 +00:00
Jon Coppeard 0de32dc6cd Bug 1580474 - Replace #defines with constants in nsJSEnvironment files r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D45531

--HG--
extra : moz-landing-system : lando
2019-09-12 09:56:52 +00:00
Hiroyuki Ikezoe f61192f0f0 Bug 1541705 - Notify areas of out-of-process subframes from the compositor to the corresponding process. r=botond
Note that the areas are clipped out by all ancestor scroll ports and
their coordinate systems are the screen coordinate.  So that we can tell
arbitrary elements in out-of-process iframes are scrolled out or not with
this area and the transform matrix of the iframe on screen coodinate.

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

--HG--
extra : moz-landing-system : lando
2019-09-12 08:08:45 +00:00
Hiroyuki Ikezoe f869493a22 Bug 1541705 - Factor out functionalities for obsversing animation style counts into testcommon.js. r=boris
We are going to use these functions in gfx/layers/apz/tests/mochitest/ for
fission.

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

--HG--
extra : moz-landing-system : lando
2019-09-12 08:08:20 +00:00
Kris Maglione e1a1356818 Bug 1580220: Fix unhandled rejection logging for cross-origin objects. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D45362

--HG--
extra : moz-landing-system : lando
2019-09-11 14:10:06 +00:00
Alex Chronopoulos 966ab066dc Bug 1580112 - Stop updating the database when the value has not changed. r=alwu
In most of the cases, the value to be stored is the same as the existing value, which does not require an update to the database. Setting something in the database requires disk access. By using this we avoid accessing the disk in the majority of the cases.

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

--HG--
extra : moz-landing-system : lando
2019-09-11 20:21:51 +00:00
Narcis Beleuzu 18c3932ccd Backed out 7 changesets (bug 1570337) for bustages on AndroidDataEncoder.h . CLOSED TREE
Backed out changeset 3fac005abec8 (bug 1570337)
Backed out changeset 46ac027113e1 (bug 1570337)
Backed out changeset ef026d642642 (bug 1570337)
Backed out changeset 1fee7e3711e8 (bug 1570337)
Backed out changeset f98eb813a0e5 (bug 1570337)
Backed out changeset 5f22b364fffa (bug 1570337)
Backed out changeset 28c59c800b76 (bug 1570337)
2019-09-12 04:56:40 +03:00
John Lin 2f38ebe390 Bug 1570337 - p7: fix build error/warning for UNIFIED_SOURCES. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D44588

--HG--
extra : moz-landing-system : lando
2019-09-11 15:12:02 +00:00
John Lin 58beec691c Bug 1570337 - p6: repeat calling Drain() until no more output. r=jya
Existing tests will fail when there are more than 1 pending frames when Drain()
is called. Repeatly calling it to ensure all frames will be collected.

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

--HG--
extra : moz-landing-system : lando
2019-09-11 15:13:46 +00:00
John Lin 61a1b8dbda Bug 1570337 - p5: test initializing encoder both w/ and w/o specific parameters. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D43688

--HG--
extra : moz-landing-system : lando
2019-09-06 22:31:24 +00:00
John Lin a685ec4ca4 Bug 1570337 - p4: implement Android encoder. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D43687

--HG--
extra : moz-landing-system : lando
2019-09-11 15:12:56 +00:00
John Lin c5359b0a30 Bug 1570337 - p3: extract method for reuse. r=jya
Depends on D43686

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

--HG--
extra : moz-landing-system : lando
2019-09-11 15:10:47 +00:00
John Lin 40f3a64d52 Bug 1570337 - p2: extend and expose H.264 utility functions. r=jya
Some existing functions that manipulates H.264 bitstream already cover
most of the efforts for converting Android encoder output. With some minor
changes, they can be called by the encoder to avoid code duplications.

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

--HG--
extra : moz-landing-system : lando
2019-09-11 15:12:56 +00:00
John Lin 5783d6db2d Bug 1570337 - p1: singletonize sPEMLog. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D43685

--HG--
extra : moz-landing-system : lando
2019-09-06 22:30:46 +00:00
Karl Tomlinson 6e1b3f1262 Bug 1578623 use an opaque origin for WorkletGlobalScope r=baku
The environment settings object for a WorkletGlobalScope derives from the
relevant settings object of the main-thread Worklet object, but the origin is
a unique opaque origin.
https://drafts.css-houdini.org/worklets/#set-up-a-worklet-environment-settings-object

Depends on D44775

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

--HG--
extra : moz-landing-system : lando
2019-09-09 00:42:01 +00:00
Karl Tomlinson 17b569260a Bug 1578623 move principal-related data from LoadInfo to WorkletImpl r=baku
The principals used in worklet scripts derive from the relevant settings object
of the main thread Worklet object, rather than the network loads of the scripts.
Moving the data off LoadInfo removes any implication that the principals might
depend on script module loads.

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

--HG--
extra : moz-landing-system : lando
2019-09-09 00:42:05 +00:00
Gerald Squelart f66f85f869 Bug 1571648 - Prevent OOMs from too many or too-big Decoder Doctor issues - r=bryce
DecoderDoctorDiagnostics had no limitations on reported and stored issues.

New limitations, per document:
- No more than 128 issues are kept at any time.
- Issues older than 10 seconds are discarded.
- Issues containing too-long text (more than 2048 characters) are ignored.

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

--HG--
extra : moz-landing-system : lando
2019-09-11 16:55:35 +00:00
Dzmitry Malyshau 6c2bf0f5ad Bug 1575663 - Improve WebIDL bindgen of enum variants starting with a digit r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D42980

--HG--
extra : moz-landing-system : lando
2019-09-11 16:10:45 +00:00
Dzmitry Malyshau 3edde5ecd0 Bug 1575384 - WebIDL: Better error message for trying to inherit from a mixin r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D42736

--HG--
extra : moz-landing-system : lando
2019-09-11 16:05:19 +00:00
Edgar Chen 811663c08e Bug 1578448 - Make img.complete align with spec; r=bzbarsky
If the img has srcset attribute and the current request isn't complete or broken,
the img.complete should return false per spec,
https://html.spec.whatwg.org/multipage/embedded-content.html#dom-img-complete.

We should check srcset or src attribute, checking only mCurrentRequest isn't
enough given that updating mCurrentRequest happens async.

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

--HG--
extra : moz-landing-system : lando
2019-09-11 14:37:39 +00:00
Andrew McCreight 9d5c278b92 Bug 1580427 - Fix the nativeType for WindowProxy. r=bzbarsky
Right now, we end up with the forward declaration of
nsIDOMWindowProxy, which does not exist, instead of the proper type.

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

--HG--
extra : moz-landing-system : lando
2019-09-11 14:25:18 +00:00
John Dai 3cefe1baf5 Bug 1580177 - Fix dom/events/test/test_bug1518442.html fail when Gecko merges to Beta; r=smaug,edgar
Differential Revision: https://phabricator.services.mozilla.com/D45513

--HG--
extra : moz-landing-system : lando
2019-09-11 14:23:56 +00:00
Thomas Nguyen 1b10416bd7 Bug 1580183 - Move prefs setting to ini file in feature policy geolocation test r=baku
Setting prefs in test does not have effect to top level document. We
should move the prefs to default part of ini file

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

--HG--
extra : moz-landing-system : lando
2019-09-11 11:45:53 +00:00
Simon Giesecke 76e17f42d9 Bug 1168606 - Extract DatabaseConnection::ExecuteCachedStatement function. r=ytausky,asuth
Differential Revision: https://phabricator.services.mozilla.com/D41225

--HG--
extra : moz-landing-system : lando
2019-09-11 13:07:05 +00:00
Simon Giesecke 11c156d4b5 Bug 1168606 - Unified handling of literal strings using NS_LITERAL_(C)STRING and removed some duplications. r=ttung,asuth
Harmonized and provided a rationale for defining statement parameter names literally vs. by named constant,
and referencing them in binding calls by index vs. by name.

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

--HG--
extra : moz-landing-system : lando
2019-09-11 13:02:38 +00:00
Simon Giesecke 8612ca8e4b Bug 1168606 - Extracted methods Cursor::OpenOp::PrepareKeyConditionClauses and PrepareIndexKeyConditionClause. r=ttung,asuth
Also reduced duplication within the extracted methods.

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

--HG--
extra : moz-landing-system : lando
2019-09-11 11:51:35 +00:00
Simon Giesecke 95342c2fde Bug 1168606 - Reduce code duplication for different open cursor variants. r=ttung,asuth
Differential Revision: https://phabricator.services.mozilla.com/D40956

--HG--
extra : moz-landing-system : lando
2019-09-11 11:51:24 +00:00
Simon Giesecke f4cb5f1dee Bug 1168606 - Change definition of OpenCursorParams subtypes to allow reducing duplicated code r=ttung,asuth
Differential Revision: https://phabricator.services.mozilla.com/D40955

--HG--
extra : moz-landing-system : lando
2019-09-11 11:51:26 +00:00
Simon Giesecke abad982ec4 Bug 1168606 - Reduce the use of plain pointers, and use const for Cursor data members where possible. r=ttung
Differential Revision: https://phabricator.services.mozilla.com/D40954

--HG--
extra : moz-landing-system : lando
2019-09-11 11:51:28 +00:00
Simon Giesecke 860d44f9b4 Bug 1168606 - Added comments on almost-const data members r=ttung,asuth
Differential Revision: https://phabricator.services.mozilla.com/D42645

--HG--
extra : moz-landing-system : lando
2019-09-11 11:51:20 +00:00
Simon Giesecke 024bb0ac16 Bug 1168606 - Added documentation on Cursor data members. r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D41403

--HG--
extra : moz-landing-system : lando
2019-09-11 11:51:22 +00:00
Cosmin Sabou 281ee9f628 Bug 1580074 - Disable test_crossorigin_iframe.html of fission because of permafailures. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D45505

--HG--
extra : moz-landing-system : lando
2019-09-11 11:32:36 +00:00
Mihai Alexandru Michis b5c83385d6 Backed out 8 changesets (bug 1168606) for failures in idbcursor-continuePrimaryKey.htm
Backed out changeset 066bee573945 (bug 1168606)
Backed out changeset 1485cea56f41 (bug 1168606)
Backed out changeset 4858e4e132de (bug 1168606)
Backed out changeset 5be5a3bf0499 (bug 1168606)
Backed out changeset 6078d5a9c010 (bug 1168606)
Backed out changeset f5aee1ae7282 (bug 1168606)
Backed out changeset acae76cea927 (bug 1168606)
Backed out changeset 0133605c6169 (bug 1168606)

--HG--
extra : rebase_source : 27477feb2e52f4149ede2fe5db9d86b5e322046d
2019-09-11 14:36:57 +03:00
Andrea Marchesini 91b2277029 Bug 1576463 - canvas toDataURL and toBlob should not throw for serialization errors, r=jya
Differential Revision: https://phabricator.services.mozilla.com/D45121

--HG--
extra : moz-landing-system : lando
2019-09-11 05:16:44 +00:00
Simon Giesecke 409cee8a78 Bug 1168606 - Extract DatabaseConnection::ExecuteCachedStatement function. r=ytausky,asuth
Differential Revision: https://phabricator.services.mozilla.com/D41225

--HG--
extra : moz-landing-system : lando
2019-09-11 09:04:02 +00:00
Simon Giesecke 0287e643ca Bug 1168606 - Unified handling of literal strings using NS_LITERAL_(C)STRING and removed some duplications. r=ttung,asuth
Harmonized and provided a rationale for defining statement parameter names literally vs. by named constant,
and referencing them in binding calls by index vs. by name.

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

--HG--
extra : moz-landing-system : lando
2019-09-10 15:36:07 +00:00
Simon Giesecke f7165d415d Bug 1168606 - Extracted methods Cursor::OpenOp::PrepareKeyConditionClauses and PrepareIndexKeyConditionClause. r=ttung,asuth
Also reduced duplication within the extracted methods.

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

--HG--
extra : moz-landing-system : lando
2019-09-10 15:36:11 +00:00
Simon Giesecke 4bfd09c089 Bug 1168606 - Reduce code duplication for different open cursor variants. r=ttung,asuth
Differential Revision: https://phabricator.services.mozilla.com/D40956

--HG--
extra : moz-landing-system : lando
2019-09-10 15:36:15 +00:00
Simon Giesecke 4a9fe9f0a5 Bug 1168606 - Change definition of OpenCursorParams subtypes to allow reducing duplicated code r=ttung,asuth
Differential Revision: https://phabricator.services.mozilla.com/D40955

--HG--
extra : moz-landing-system : lando
2019-09-10 15:36:09 +00:00
Simon Giesecke 9aa284cb0c Bug 1168606 - Reduce the use of plain pointers, and use const for Cursor data members where possible. r=ttung
Differential Revision: https://phabricator.services.mozilla.com/D40954

--HG--
extra : moz-landing-system : lando
2019-09-10 15:36:13 +00:00
Simon Giesecke a947f3b52f Bug 1168606 - Added comments on almost-const data members r=ttung,asuth
Differential Revision: https://phabricator.services.mozilla.com/D42645

--HG--
extra : moz-landing-system : lando
2019-09-10 15:36:01 +00:00
Simon Giesecke f613dbb67c Bug 1168606 - Added documentation on Cursor data members. r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D41403

--HG--
extra : moz-landing-system : lando
2019-09-10 15:36:03 +00:00
Andreas Pehrson b59ffd8e4c Bug 1579526 - Allow deviceId and groupId constraints for privileged getDisplayMedia callers. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D45175

--HG--
extra : moz-landing-system : lando
2019-09-10 19:22:11 +00:00
Andreas Farre 7af5f952e6 Bug 1560110 - Remove skip-ifs for tests. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D45379

--HG--
extra : moz-landing-system : lando
2019-09-11 08:51:09 +00:00
Simon Giesecke 0d566d73d5 Bug 1577202 - Replace assertion for missing mDirectoryLock by a regular failure. r=janv
Differential Revision: https://phabricator.services.mozilla.com/D44681

--HG--
extra : moz-landing-system : lando
2019-09-11 08:17:46 +00:00
Benjamin 934da4e096 Bug 1529068 - Implementation of the navigate-to CSP directive as defined in CSP Level 3. r=ckerschb,mccr8
https://www.w3.org/TR/CSP3/#directive-navigate-to

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

--HG--
extra : moz-landing-system : lando
2019-09-10 22:33:51 +00:00
Andrew McCreight a777ff11b6 Bug 1579897 - Make webIsolated= processes work in about:support. r=mconley,fluent-reviewers,flod
Remove the URLs so they can have a translated string in about:support.

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

--HG--
extra : moz-landing-system : lando
2019-09-11 06:50:45 +00:00
alwu e36ca06c1c Bug 1578609 - part2 : add test 'test_load_source_empty_type.html'. r=bryce
Differential Revision: https://phabricator.services.mozilla.com/D45270

--HG--
extra : moz-landing-system : lando
2019-09-10 20:08:31 +00:00
Alastor Wu 07f8890bbd Bug 1578609 - part1 : only check source element's type attribute when it's not empty. r=bryce
According to the spec [1], we abort loading only when we're sure the type of source element is something we don't support.

If source element's type is empty, it's equal to not having any type, so we won't have to check can play type, we should start loading to see if we can play it or not.

[1] https://html.spec.whatwg.org/multipage/media.html#loading-the-media-resource:attr-source-type

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

--HG--
extra : moz-landing-system : lando
2019-09-10 19:42:25 +00:00
Boris Chiou 4db87c1296 Bug 1574222 - Serialize getComputedStyle on text-decoration properly. r=emilio,dholbert
The wpt will be updated in
https://github.com/web-platform-tests/wpt/pull/18866.

Besides, there are some other test cases use text-decoration, so we
have to update them as well. The rule is: if the test case is not related to
old `text-decoration` longhand, we use `text-decoration-line` instead.
If the test case is for testing the change of `text-decoration` from
longhand to shorthand, we should use the correct serialization.

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

--HG--
extra : moz-landing-system : lando
2019-09-10 21:52:26 +00:00
Boris Zbarsky 4c12cf5540 Bug 1568171. Fix handling of load events if document.open() is called while async scripts are still loading for the original pageload. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D44248

--HG--
extra : moz-landing-system : lando
2019-09-10 20:43:56 +00:00
Jonathan Kew 013da1e4e0 Bug 1577578 - Make font-list IPC messages include a release assertion that the gfxPlatformFontList has been initialized. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D45340

--HG--
extra : moz-landing-system : lando
2019-09-10 15:58:40 +00:00
Kershaw Chang 91aea3aaad Bug 1577196 - Create a new load group if GetDocumentLoadGroup failed r=baku
When GetDocumentLoadGroup returns a null load group, we should create a new one.

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

--HG--
extra : moz-landing-system : lando
2019-09-09 15:54:57 +00:00
Jonathan Watt f447bc4951 Bug 1576465. Fix nsDeviceSensors's cross-origin check for Fission. r=kmag
The only reason dom/system/tests/test_bug1197901.html doesn't fail right now
when Fission is enabled is because the test is racy since the 'load' event
doesn't wait for OOP iframes.  As a result the test finishes "testing" the
OOP-iframe before the OOP-iframe has even loaded.

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

--HG--
extra : moz-landing-system : lando
2019-09-10 10:33:13 +00:00
Paul Zuehlcke 00119452fc Bug 1574480 - Updated browser.js and OfflineAppsChild.jsm to use PermissionManager principal methods. r=johannh,smaug
Differential Revision: https://phabricator.services.mozilla.com/D42620

--HG--
extra : moz-landing-system : lando
2019-09-10 10:57:07 +00:00
Kris Maglione a1cf99d8f7 Bug 1576187: Don't set closed flag on discarded BrowsingContext. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D45319

--HG--
extra : moz-landing-system : lando
2019-09-10 12:01:42 +00:00
Mihai Alexandru Michis 4941b2389f Merge mozilla-central to autoland. 2019-09-10 13:00:45 +03:00
Kris Maglione 165096efe5 Bug 1579820 - Handle window.open() from remote subframes. r=nika
The CommonCreateWindow code requires having a BrowserHost for the tab that's
creating the window, which it tries to get from the requestor's BrowserParent.
For remote BrowserParents, though, there is no BrowserHost, so we need to get
it from the top-level embedder instead.

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

--HG--
extra : moz-landing-system : lando
2019-09-10 09:04:17 +00:00
Dorel Luca 0f892548f9 Backed out 4 changesets (bug 1578576) for causing build failure with microsoft visual studio 2019. a=backout
Backed out changeset e5b3436fc277 (bug 1578576)
Backed out changeset cd2799d2d190 (bug 1578576)
Backed out changeset 13282d7a47a5 (bug 1578576)
Backed out changeset 3064469c073d (bug 1578576)

--HG--
rename : gfx/angle/checkout/src/common/Color.inc => gfx/angle/checkout/src/common/Color.inl
rename : gfx/angle/checkout/src/image_util/copyimage.inc => gfx/angle/checkout/src/image_util/copyimage.inl
rename : gfx/angle/checkout/src/image_util/generatemip.inc => gfx/angle/checkout/src/image_util/generatemip.inl
rename : gfx/angle/checkout/src/image_util/loadimage.inc => gfx/angle/checkout/src/image_util/loadimage.inl
rename : gfx/angle/checkout/src/libANGLE/Version.inc => gfx/angle/checkout/src/libANGLE/Version.inl
rename : gfx/angle/checkout/src/libANGLE/renderer/d3d/d3d11/dxgi_support_table_autogen.cpp => gfx/angle/checkout/src/libANGLE/renderer/d3d/d3d11/dxgi_support_table.cpp
rename : gfx/angle/checkout/src/libGLESv2/proc_table_egl.h => gfx/angle/checkout/src/libGLESv2/proc_table.h
rename : gfx/angle/checkout/src/libGLESv2/proc_table_egl_autogen.cpp => gfx/angle/checkout/src/libGLESv2/proc_table_autogen.cpp
2019-09-10 11:54:20 +03:00
Edgar Chen ab78b9be04 Bug 1579088 - Correct the expecting result for img in test_strict_dynamic_default_src.html; r=ckerschb
The description and expected result of some tests aren't matched.

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

--HG--
extra : moz-landing-system : lando
2019-09-09 17:44:37 +00:00
Edgar Chen 1c24dc8c08 Bug 1579088 - Do not use img.complete check whether the img is loaded; r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D44842

--HG--
extra : moz-landing-system : lando
2019-09-09 17:44:36 +00:00
Mirko Brodesser 55fe4c9738 Bug 1579355: part 11) Factor out `ConvertToLinesAndOutput` from `Write`. r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D44968

--HG--
extra : moz-landing-system : lando
2019-09-09 09:05:07 +00:00
Mirko Brodesser 229095590d Bug 1579355: part 10) Simplify `EndLine`. r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D44967

--HG--
extra : moz-landing-system : lando
2019-09-09 09:04:57 +00:00
Mirko Brodesser 8b4b215760 Bug 1579355: part 9) Factor out `MaybeWrapAndOutputCompleteLines`. r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D44966

--HG--
extra : moz-landing-system : lando
2019-09-09 09:04:48 +00:00
Mirko Brodesser c78e08d669 Bug 1579355: part 8) Replace `CurrentLineContent::mWidth` with local variable. r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D44965

--HG--
extra : moz-landing-system : lando
2019-09-09 09:04:34 +00:00
Mirko Brodesser 6ee8676f31 Bug 1579355: part 7) Add explanatory comment to `aSoftLineBreak`. r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D44964

--HG--
extra : moz-landing-system : lando
2019-09-09 09:04:25 +00:00
Mirko Brodesser a916467523 Bug 1579355: part 6) Simplify `IsSpaceStuffable`. r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D44963

--HG--
extra : moz-landing-system : lando
2019-09-09 09:04:16 +00:00
Mirko Brodesser d3394eda76 Bug 1579355: part 5) Move determining prefix-width to `CurrentLine`. r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D44962

--HG--
extra : moz-landing-system : lando
2019-09-09 09:04:07 +00:00
Mirko Brodesser f0cfac6cd3 Bug 1579355: part 4) Remove unused `nsPlainTextSerializer::mOutput`. r=hsivonen
`nsPlainTextSerialzier::OutputManager` made it superfluous.

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

--HG--
extra : moz-landing-system : lando
2019-09-09 09:03:58 +00:00
Mirko Brodesser b01a7275d1 Bug 1579355: part 3) Remove `nsPlainTextSerializer::mURL`. r=hsivonen
Less state allows simpler reasoning about `nsPlainTextSerializer`.

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

--HG--
extra : moz-landing-system : lando
2019-09-09 09:03:49 +00:00
Mirko Brodesser 4c489da90e Bug 1579355: part 2) Declare more methods const. r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D44959

--HG--
extra : moz-landing-system : lando
2019-09-09 09:03:39 +00:00
Mirko Brodesser dd25c52bd1 Bug 1579355: part 1) Assert `OutputFormatDelSp` is only set if `OutputFormatFlowed` is set. r=hsivonen
Asserts what's stated in nsIDocumentEncoder.idl.

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

--HG--
extra : moz-landing-system : lando
2019-09-09 09:03:30 +00:00
Alex Chronopoulos e8c7250170 Bug 1571821 - Use total frames instead of parsed frames to calculate benchmark. r=alwu
The problem reproduces when the system is loaded and the decoder is dropping most of the frames. When there are two benchmark calculations close to each other, the measured parsed frames of the first calculation can be buffered in the decoder and reported as dropped frames on the second calculation. Then on the second calculation, the number of dropped frames can be greater than the parsed frame which will hit the assert. The number of total frames is a better measure since it counts the frames that appeared in the in VideoSink plus the total dropped frames.

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

--HG--
extra : moz-landing-system : lando
2019-09-09 20:08:59 +00:00
Paul Bone eb520e111a Bug 1578628 - Set the name on the BrowsingContext not the nsDocShell r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D44947

--HG--
extra : moz-landing-system : lando
2019-09-10 07:05:14 +00:00
Paul Bone 151b418b4e Bug 1578628 - Fix a spelling mistake in a comment r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D44946

--HG--
extra : moz-landing-system : lando
2019-09-10 07:05:07 +00:00
Christoph Kerschbaumer 507cd448aa Bug 1566386: Assert that every about: page on Android ships with a CSP. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D45193

--HG--
extra : moz-landing-system : lando
2019-09-10 06:26:14 +00:00
Thomas Nguyen 7a34c52f34 Bug 1579373 - Disabled geolocation permission for crossorigin iframe by default and add tests r=baku
Differential Revision: https://phabricator.services.mozilla.com/D45174

--HG--
extra : moz-landing-system : lando
2019-09-09 20:00:56 +00:00
Nika Layzell dd0e3148bc Bug 1579437 - Check for discarded BrowsingContext in more places, r=farre
Differential Revision: https://phabricator.services.mozilla.com/D45088

--HG--
extra : moz-landing-system : lando
2019-09-09 12:04:13 +00:00
Daosheng Mu a7ca387905 Bug 1579492 - Check if nullptr in DarwinGamepadService::ReportChangedCallback(). r=baku
Differential Revision: https://phabricator.services.mozilla.com/D45135

--HG--
extra : moz-landing-system : lando
2019-09-09 11:58:01 +00:00
Brad Werth f5d13b765b Bug 1538042 Part 2: Add tests of null character searches. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D25293

--HG--
extra : moz-landing-system : lando
2019-09-05 21:03:51 +00:00
John Dai eded859488 Bug 1518442 - Part 5: Add a mochitest for pref-off form data event attribute; r=smaug,edgar
Differential Revision: https://phabricator.services.mozilla.com/D44871

--HG--
extra : moz-landing-system : lando
2019-09-09 13:53:38 +00:00
John Dai 5e255f0239 Bug 1518442 - Part 3: Add dom.formdata.event.enabled preference for Event-based form participation; r=smaug,edgar
Differential Revision: https://phabricator.services.mozilla.com/D43987

--HG--
extra : moz-landing-system : lando
2019-09-09 13:53:34 +00:00
John Dai d2154fae15 Bug 1518442 - Part 2: Implement Event-based form participation; r=smaug,edgar
For Event-based form participation specification PR:
https://github.com/whatwg/html/pull/4239

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

--HG--
extra : moz-landing-system : lando
2019-09-09 13:53:27 +00:00
John Dai f763311585 Bug 1518442 - Part 1: Implement FormDataEvent interface; r=smaug,edgar
Differential Revision: https://phabricator.services.mozilla.com/D43985

--HG--
extra : moz-landing-system : lando
2019-09-09 13:53:25 +00:00
Brindusan Cristian 59aed5845a Backed out changeset 493061169650 (bug 1529591) for build bustages on nsGeolocation.cpp. CLOSED TREE 2019-09-09 17:35:39 +03:00
Alphan Chen cc2cf9eb99 Bug 1578296 - TabListener is only for contentSessionStore on FF desktop r=peterv
Don't need TabListener on Thunderbird

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

--HG--
extra : moz-landing-system : lando
2019-09-09 13:49:27 +00:00
Garvan Keeley 6036e744d1 Bug 1529591 - Check Mac system geo permission prior to showing request permission dialog. Differential Revision: https://phabricator.services.mozilla.com/D44881 r=jdm
Differential Revision: https://phabricator.services.mozilla.com/D45052

--HG--
extra : moz-landing-system : lando
2019-09-06 22:35:59 +00:00
Thomas Nguyen 7da04c50bc Bug 1579388 - Enable featurepolicy pref in beta test_enumerateDevices. r=baku
dom.security.featurePolicy.enabled is enable only in nightly, so some
tests in beta will be failed. We should manually enable the pref in test.

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

--HG--
extra : moz-landing-system : lando
2019-09-09 12:01:49 +00:00
Kris Maglione b7834b6960 Bug 1542415: Part 5 - Re-enable frameloader rebuilding on process switch. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D44739

--HG--
extra : moz-landing-system : lando
2019-09-09 11:50:40 +00:00
Kris Maglione c9bc5f8a41 Bug 1542415: Part 4 - Always rebuild frameloaders on remoteness change in Fission windows. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D44738

--HG--
extra : moz-landing-system : lando
2019-09-09 12:28:09 +00:00
Kris Maglione edd7375038 Bug 1542415: Part 3 - Create new BrowserChild in the same tab group as its opener. r=nika
When we initially create a FrameLoader for a new tab created by a
window.open() call or a link click, it automatically winds up in the correct
tab group, because it's created in the child.

The problem comes when the window navigates to a new origin which requires a
process switch, and then navigates back to the same origin as its opener (for
instance, using `history.back()`). In that case, the parent rebuilds the frame
loader in a new tab group. But, since the child knows that it has an opener,
and that opener is in the same process, it (rightly) expects it to be in the
same tab group as its opener, and puts it there. It then asserts that this
matches the tab group of its actor, and explodes.

This patch fixes that, so that the parent checks whether its BrowsingContext
has an opener, and if does, tells the child to join its tab group.

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

--HG--
extra : moz-landing-system : lando
2019-09-09 11:50:37 +00:00
Kris Maglione e561c0f595 Bug 1542415: Part 2 - Treat in-flight messages from incorrect owner as warnings. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D44736

--HG--
extra : moz-landing-system : lando
2019-09-09 11:50:35 +00:00
Kris Maglione f61a7d3c71 Bug 1542415: Part 1 - Move BrowsingContext ownership checks into a common helper method. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D44735

--HG--
extra : moz-landing-system : lando
2019-09-09 11:50:28 +00:00
Andreas Farre 03d84c8a6e Bug 1577129 - Handle BrowsingContext subframe crashing removals. r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D44365

--HG--
extra : moz-landing-system : lando
2019-09-09 09:56:43 +00:00
Noemi Erli d988a687b9 Backed out 9 changesets (bug 1578623) for causing Windows build bustages CLOSED TREE
Backed out changeset 52a86c60c866 (bug 1578623)
Backed out changeset e4fddd3d24b4 (bug 1578623)
Backed out changeset 65a7c4daec27 (bug 1578623)
Backed out changeset 3badf9215788 (bug 1578623)
Backed out changeset 71e58ee8f684 (bug 1578623)
Backed out changeset 0128e12a910f (bug 1578623)
Backed out changeset 8242877392bd (bug 1578623)
Backed out changeset 6d7be8a22f8b (bug 1578623)
Backed out changeset 3be609a9be36 (bug 1578623)

--HG--
extra : amend_source : b76d374926d247982773b58d12cb26e33d9972e8
2019-09-09 03:37:09 +03:00
Karl Tomlinson 2a772f968e Bug 1578623 remove OriginAttributes duplication by reading from PrincipalInfo r=baku
Differential Revision: https://phabricator.services.mozilla.com/D44918

--HG--
extra : moz-landing-system : lando
2019-09-08 23:44:05 +00:00
Karl Tomlinson 934b121f44 Bug 1578623 include stack with console message for uncaught exception in worklet script r=baku
Differential Revision: https://phabricator.services.mozilla.com/D44609

--HG--
extra : moz-landing-system : lando
2019-09-06 02:10:32 +00:00
Karl Tomlinson dcc752541e Bug 1578623 add stack support to AsyncErrorReporter r=bholley
Differential Revision: https://phabricator.services.mozilla.com/D44608

--HG--
extra : moz-landing-system : lando
2019-09-06 02:10:32 +00:00
Karl Tomlinson 9b7c21c40f Bug 1578623 permit SerializeStack() from worklet thread r=baku
Differential Revision: https://phabricator.services.mozilla.com/D44606

--HG--
extra : moz-landing-system : lando
2019-09-06 02:10:32 +00:00
Karl Tomlinson 18d04e5d8f Bug 1578623 implement WorkletPrincipals::write() r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D44605

--HG--
extra : moz-landing-system : lando
2019-09-06 02:10:31 +00:00
Karl Tomlinson 079bad8d41 bug 1578623 store PrincipalInfo on WorkletImpl for off-main-thread use r=baku
Differential Revision: https://phabricator.services.mozilla.com/D44603

--HG--
extra : moz-landing-system : lando
2019-09-08 23:44:05 +00:00
Karl Tomlinson e9f3cabd45 Bug 1578623 use an opaque origin for WorkletGlobalScope r=baku
The environment settings object for a WorkletGlobalScope derives from the
relevant settings object of the main-thread Worklet object, but the origin is
a unique opaque origin.
https://drafts.css-houdini.org/worklets/#set-up-a-worklet-environment-settings-object

Depends on D44775

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

--HG--
extra : moz-landing-system : lando
2019-09-06 02:10:33 +00:00
Karl Tomlinson 40e181a9ae Bug 1578623 move principal-related data from LoadInfo to WorkletImpl r=baku
The principals used in worklet scripts derive from the relevant settings object
of the main thread Worklet object, rather than the network loads of the scripts.
Moving the data off LoadInfo removes any implication that the principals might
depend on script module loads.

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

--HG--
extra : moz-landing-system : lando
2019-09-06 02:10:33 +00:00
Andreea Pavel 2973dc2810 Bug 1571904 - disabled test on all platforms r=bc
Differential Revision: https://phabricator.services.mozilla.com/D45140

--HG--
extra : moz-landing-system : lando
2019-09-08 15:00:52 +00:00
Edgar Chen c67da9f7a3 Bug 1577499 - Part 3: Add cross-origin test for has-been-user-activated flag; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D44914

--HG--
extra : moz-landing-system : lando
2019-09-06 17:05:41 +00:00
Edgar Chen 493285c71b Bug 1577499 - Part 2: Add tests for transient user activation; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D44544

--HG--
extra : moz-landing-system : lando
2019-09-06 22:48:52 +00:00
Edgar Chen 2d3cc9c52b Bug 1577499 - Part 1: Implement transient activation flag; r=smaug
https://github.com/whatwg/html/pull/3851

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

--HG--
extra : moz-landing-system : lando
2019-09-07 19:12:20 +00:00
Miko Mynttinen 6bf1bd586a Bug 1578576 - Part 4: Update webgl-conf expectations r=jgilbert
Depends on D44581

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

--HG--
extra : moz-landing-system : lando
2019-09-07 13:39:16 +00:00
Miko Mynttinen e110583d7c Bug 1578576 - Part 3: Prefer ES2 for WebGL1 r=jgilbert
Depends on D44580

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

--HG--
extra : moz-landing-system : lando
2019-09-07 19:38:21 +00:00
Mike Conley 43a586d471 Bug 1566196 - Enable subframe crashing regression test. r=layely
The test originally assumed that the BrowsingContext for the crashing
frame would get destroyed and replaced with a new one. Having read through
some of bug 1563619 though, it looks as if we preserve the BrowsingContext
after the subframe crashes, so I've modified the test to skip that check.

It also looks like we have to wait until the WindowGlobalParent is created
asynchronously from the about:blank load that's initiated in the content
process before we can query the subframe for its current location, so
I've added a waitForCondition for that.

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

--HG--
extra : moz-landing-system : lando
2019-09-07 17:03:39 +00:00
Imanol Fernandez ef96affe67 Bug 1579028 - Do not call surface->Commit() if composition failed in WebGLContext::GetVRFrame. r=jgilbert,rbarker
PresentScreenBuffer() or screen->PublishFrame() may fail for different reasons. In that case we shouldn't call surface->Commit() because it may be in a not swaped state or not available.

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

--HG--
extra : moz-landing-system : lando
2019-09-06 20:55:51 +00:00
Gurzau Raul 812644ff5f Backed out changeset 8c25acd6a557 (bug 1237782) for wpt failures at controller-on-disconnect.https.html 2019-09-07 14:32:37 +03:00
Jonathan Kingston 64f59b042f Bug 1237782 - Remove http override and add appcache pref r=baku
Differential Revision: https://phabricator.services.mozilla.com/D44472

--HG--
extra : moz-landing-system : lando
2019-09-07 07:45:30 +00:00
Brindusan Cristian 1b00e04863 Backed out 2 changesets (bug 1566196) for bc failures in CTypes.cpp. CLOSED TREE
Backed out changeset eaf4a3284f00 (bug 1566196)
Backed out changeset 2de26156c571 (bug 1566196)
2019-09-07 02:28:58 +03:00
Narcis Beleuzu 77240d9965 Backed out 5 changesets (bug 1518442) as requested by jdai. CLOSED TREE
Backed out changeset 9143aef9bd5e (bug 1518442)
Backed out changeset b1b08f66996c (bug 1518442)
Backed out changeset 1f3d36108982 (bug 1518442)
Backed out changeset 1ac7b20bb1d8 (bug 1518442)
Backed out changeset f280db1076a4 (bug 1518442)
2019-09-07 01:07:50 +03:00
John Dai 3f8a244a4d Bug 1518442 - Part 5: Add a mochitest for pref-off form data event attribute; r=smaug,edgar
Differential Revision: https://phabricator.services.mozilla.com/D44871

--HG--
extra : moz-landing-system : lando
2019-09-06 20:51:01 +00:00
John Dai a128680dbf Bug 1518442 - Part 3: Add dom.formdata.event.enabled preference for Event-based form participation; r=smaug,edgar
Differential Revision: https://phabricator.services.mozilla.com/D43987

--HG--
extra : moz-landing-system : lando
2019-09-06 20:50:52 +00:00
John Dai 6635020ec7 Bug 1518442 - Part 2: Implement Event-based form participation; r=smaug,edgar
For Event-based form participation specification PR:
https://github.com/whatwg/html/pull/4239

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

--HG--
extra : moz-landing-system : lando
2019-09-06 20:50:50 +00:00
John Dai c01608b314 Bug 1518442 - Part 1: Implement FormDataEvent interface; r=smaug,edgar
Differential Revision: https://phabricator.services.mozilla.com/D43985

--HG--
extra : moz-landing-system : lando
2019-09-06 20:50:43 +00:00
Mike Conley e069b70a33 Bug 1566196 - Enable subframe crashing regression test. r=layely
The test originally assumed that the BrowsingContext for the crashing
frame would get destroyed and replaced with a new one. Having read through
some of bug 1563619 though, it looks as if we preserve the BrowsingContext
after the subframe crashes, so I've modified the test to skip that check.

It also looks like we have to wait until the WindowGlobalParent is created
asynchronously from the about:blank load that's initiated in the content
process before we can query the subframe for its current location, so
I've added a waitForCondition for that.

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

--HG--
extra : moz-landing-system : lando
2019-09-06 20:40:15 +00:00
Brendan Dahl 5915a3e4bf Bug 1575620 - Fix refreshing session restore when using prototype cache. r=smaug
The session restore page keeps its restore list within a text input field
so that the values are persisted even if the page is refreshed. When form
elements were loaded with the prototype cache we didn't call
DoneCreatingElement after creating the element, which means the form values
weren't restored.

The list of elements that require DoneCreatingElement and DoneAddingChildren
to be called was in three (now four) different places, so I moved them to
a central spot in nsIContent to share in all locations. This also highlighted
that the check for <output> nodes is missing from the XML content sink.

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

--HG--
extra : moz-landing-system : lando
2019-09-06 20:27:09 +00:00
alwu 677f012080 Bug 1579136 - do not read content from null NAL. r=jya
Dealing with a case where `DecodeNALUnit()` returns nullptr which we should not try to create bit reader and decode anything.

In addition, wrap these logic to `DecodedISlice()` in order to keep consistent with a case where we decode SEI.

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

--HG--
extra : moz-landing-system : lando
2019-09-06 20:11:22 +00:00
Frederic Wang 63f73c09e6 Bug 1579457 - Introduce GlobalEventHandlers/DocumentAndElementEventHandlers/ElementCSSInlineStyle mixin. r=bzbarsky
This patch converts NoInterfaceObject interfaces GlobalEventHandlers and
DocumentAndElementEventHandlers to mixins and introduce a new
ElementCSSInlineStyle mixin for the style IDL attribute. These are shared by
various existing interfaces but there is no web-exposed behavior change.

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

--HG--
extra : moz-landing-system : lando
2019-09-06 19:34:55 +00:00
shindli b99fd194b2 Backed out changeset 5e9663384022 (bug 1575620) for causing bustages in builds/worker/workspace/build/src/obj-firefox/dist/include/nsIContent.h CLOSED TREE 2019-09-06 22:47:18 +03:00
Nika Layzell ff18afeafd Bug 1562029 - Remove fission.oopif.attribute support, r=farre
Differential Revision: https://phabricator.services.mozilla.com/D44859

--HG--
extra : moz-landing-system : lando
2019-09-06 14:45:51 +00:00
Ryan Alderete 2e2b52b880 Bug 1572846 - Update Clearkey to use NSS for decryption instead of OpenAES r=bryce,jld
Clearkey previously relied on OpenAES to do its encryption.  In order to
facilitate future changes and the need for CBC support, switch to NSS, which
should be more flexible and actively maintained.

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

--HG--
extra : moz-landing-system : lando
2019-09-05 19:19:06 +00:00
Brendan Dahl c377fd351d Bug 1575620 - Fix refreshing session restore when using prototype cache. r=smaug
The session restore page keeps its restore list within a text input field
so that the values are persisted even if the page is refreshed. When form
elements were loaded with the prototype cache we didn't call
DoneCreatingElement after creating the element, which means the form values
weren't restored.

The list of elements that require DoneCreatingElement and DoneAddingChildren
to be called was in three (now four) different places, so I moved them to
a central spot in nsIContent to share in all locations. This also highlighted
that the check for <output> nodes is missing from the XML content sink.

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

--HG--
extra : moz-landing-system : lando
2019-09-05 22:26:25 +00:00
Dave Townsend df895249c6 Bug 1550058: Move most keyboard shortcut handling out of XBL. r=masayuki
Most of our keyboard shortcut handling is handled by nsXBLWindowKeyHandler along
with nsXBLPrototypeHandler. With the impending removal of XBL this needs to
change.

This patch moves nsXBLWindowKeyHandler to dom/events/GlobalKeyListener and copies
nsXBLPrototypeHandler to dom/events/KeyEventHandler. Windows, text elements and
XUL <keyset> are changed to use the new copies and anything unnecessary for
those is stripped out.

XBL handler elements still remain using the existing nsXBLPrototypeHandler path.
Some of the code is ripped out there to make it compile. There is probably a
lot more that can be removed but since the whole of XBL is likely gone soon I'm
not sure it is worth cleaning that up much.

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

--HG--
rename : dom/xbl/nsXBLWindowKeyHandler.cpp => dom/events/GlobalKeyListener.cpp
rename : dom/xbl/nsXBLWindowKeyHandler.h => dom/events/GlobalKeyListener.h
rename : dom/xbl/nsXBLPrototypeHandler.cpp => dom/events/KeyEventHandler.cpp
rename : dom/xbl/nsXBLPrototypeHandler.h => dom/events/KeyEventHandler.h
rename : dom/xbl/builtin/ShortcutKeyDefinitionsForBrowserCommon.h => dom/events/ShortcutKeyDefinitionsForBrowserCommon.h
rename : dom/xbl/builtin/ShortcutKeyDefinitionsForEditorCommon.h => dom/events/ShortcutKeyDefinitionsForEditorCommon.h
rename : dom/xbl/builtin/ShortcutKeyDefinitionsForInputCommon.h => dom/events/ShortcutKeyDefinitionsForInputCommon.h
rename : dom/xbl/builtin/ShortcutKeyDefinitionsForInputCommon.h => dom/events/ShortcutKeyDefinitionsForTextAreaCommon.h
rename : dom/xbl/builtin/ShortcutKeys.cpp => dom/events/ShortcutKeys.cpp
rename : dom/xbl/builtin/ShortcutKeys.h => dom/events/ShortcutKeys.h
rename : dom/xbl/builtin/android/ShortcutKeyDefinitions.cpp => dom/events/android/ShortcutKeyDefinitions.cpp
rename : dom/xbl/builtin/android/moz.build => dom/events/android/moz.build
rename : dom/xbl/builtin/emacs/ShortcutKeyDefinitions.cpp => dom/events/emacs/ShortcutKeyDefinitions.cpp
rename : dom/xbl/builtin/android/moz.build => dom/events/emacs/moz.build
rename : dom/xbl/builtin/mac/ShortcutKeyDefinitions.cpp => dom/events/mac/ShortcutKeyDefinitions.cpp
rename : dom/xbl/builtin/android/moz.build => dom/events/mac/moz.build
rename : dom/xbl/builtin/unix/ShortcutKeyDefinitions.cpp => dom/events/unix/ShortcutKeyDefinitions.cpp
rename : dom/xbl/builtin/android/moz.build => dom/events/unix/moz.build
rename : dom/xbl/builtin/win/ShortcutKeyDefinitions.cpp => dom/events/win/ShortcutKeyDefinitions.cpp
rename : dom/xbl/builtin/android/moz.build => dom/events/win/moz.build
extra : moz-landing-system : lando
2019-09-06 17:10:40 +00:00
Geoff Brown 56ca134785 Bug 1579272 - Cleanup obviously fennec-centric test annotations; r=bc
Remove test manifest annotations that specifically target fennec,
or likely target the android 4.3 emulator.

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

--HG--
extra : moz-landing-system : lando
2019-09-06 16:51:10 +00:00
Cosmin Sabou 732b97195a Backed out changeset 7dc9a45ef7d6 (bug 1237782) for causing browser chrome failures on browser_disableAppcache.js CLOSED TREE 2019-09-06 19:10:20 +03:00
Boris Zbarsky 2742e32812 Bug 1577016. Improve our error reporting for nullable dictionary operation arguments. r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D43678

--HG--
extra : moz-landing-system : lando
2019-09-06 15:34:50 +00:00
Jonathan Kingston a8f4386427 Bug 1237782 - Remove http override and add appcache pref r=baku
Differential Revision: https://phabricator.services.mozilla.com/D44472

--HG--
extra : moz-landing-system : lando
2019-09-06 15:02:34 +00:00
Cosmin Sabou 54e16b14e3 Backed out 6 changesets (bug 1518442) as requested by jdai.
Backed out changeset 74c27d7d13c5 (bug 1518442)
Backed out changeset a092042068ab (bug 1518442)
Backed out changeset 1df8f544b3b7 (bug 1518442)
Backed out changeset 65f7059b0080 (bug 1518442)
Backed out changeset c8fbe42eba38 (bug 1518442)
Backed out changeset e7a459689227 (bug 1518442)

--HG--
extra : rebase_source : 938405a9643076c7aa894059bcdd8d20a8110873
2019-09-06 17:58:57 +03:00