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

82311 Коммитов

Автор SHA1 Сообщение Дата
Chun-Min Chang 303117e873 Bug 1500713: P5 - Unit test for BufferReader. r=kinetik
Differential Revision: https://phabricator.services.mozilla.com/D22814

--HG--
extra : moz-landing-system : lando
2019-03-29 23:38:29 +00:00
Jonathan Kew f5e8791f61 Bug 1533428 - patch 4 - Include chromium-config.mozbuild in the moz.build for a bunch more directories, so that IPC-related headers are available. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D22922

--HG--
extra : moz-landing-system : lando
2019-04-01 14:32:44 +00:00
Jonathan Kew 7b161f3e1f Bug 1533428 - patch 3 - Avoid including gfxTextRun.h in the CanvasRenderingContext2d.h header. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D22918

--HG--
extra : moz-landing-system : lando
2019-04-01 14:32:32 +00:00
Jonathan Kew a978a2a32d Bug 1533428 - patch 2 - Move the Orientation enum from gfxFont to nsFontMetrics to enable some #include-elimination, in particular to avoid including gfxTextRun.h in nsFontMetrics.h. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D22913

--HG--
extra : moz-landing-system : lando
2019-04-01 14:32:19 +00:00
shindli 0dedef1eed Bug 1539208 - P1 - Return an error when the Reponse object is null'd;
Reviewers: mayhemer, baku

Reviewed By: mayhemer

Bug #: 1539208

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

--HG--
extra : rebase_source : f5e71904f20f35ea71ce2742ecd92d014da15e79
2019-04-01 17:35:46 +03:00
shindli 65afe7e3f7 Bug 1539208 - P2 - Use RandomNum while failing to get a random number from RandomGenerator;
Reviewers: asuth, baku

Reviewed By: baku

Subscribers: reviewbot

Bug #: 1539208

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

--HG--
extra : rebase_source : df8e1b893174c6b8d62c65d7d787ac9907456cde
2019-04-01 17:34:38 +03:00
Thomas Wisniewski 2a2217c700 Bug 1495880 - update our cors/no-cors header safelisting to match the Fetch spec; r=hsivonen,ckerschb
update XHR cors/no-cors header safelisting to match the Fetch spec

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

--HG--
extra : moz-landing-system : lando
2019-04-01 05:20:15 +00:00
Masayuki Nakano e28c807e5a Bug 1533989 - Make InputEvent.data and InputEvent.dataTransfer not expose clipboard data if user disables clipboard events r=smaug
If user disables clipboard events, it means that they don't want to expose
clipboard data to web apps even if web apps cannot handle "paste" operation.
Therefore, they must not want to leak clipboard data with `InputEvent.data`
and `InputEvent.dataTransfer`.

This patch makes `InputEvent::GetData()` and `InputEvent::GetDataTransfer()`
returns empty string or new `DataTransfer` object which has only empty string
if:
- They are called by content JS.
- The event is a trusted event.
- `inputType` value is `insertFromPaste` or `insertFromPasteAsQuotation`.

The reason why we don't return null for both is, Input Events spec declares
`data` or `dataTransfer` shouldn't be null in the `inputType` values.  And
the reason why we don't return empty `DataTransfer` is, web apps may expect
at least one data is stored in non-null `dataTransfer` value.

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

--HG--
extra : moz-landing-system : lando
2019-03-29 16:08:11 +00:00
Oana Pop Rus dfaadda751 Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-04-01 13:01:20 +03:00
Oana Pop Rus efc7ca12d3 Merge autoland to mozilla-central. a=merge 2019-04-01 12:45:40 +03:00
Andreea Pavel c2f93b1a58 Backed out 2 changesets (bug 1539208) for causing bug 1540569 a=backout
Backed out changeset 7b17d77256be (bug 1539208)
Backed out changeset cec67adbdbb6 (bug 1539208)
2019-04-01 10:36:18 +03:00
Andrea Marchesini 1fb706a4f0 Bug 1540514 - Use NS_NewURIOnAnyThread in URL API, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D25534

--HG--
extra : moz-landing-system : lando
2019-03-31 17:21:17 +00:00
Sylvestre Ledru ef0bfc3822 Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2019-03-31 15:12:55 +00:00
Bogdan Tara 2738efcf98 Merge inbound to mozilla-central. a=merge 2019-03-31 12:00:08 +03:00
Thomas Wisniewski e1236ec692 Bug 1411725 - have XHR responseURL use the final channel URL so the expected URLs for substituted protocols like web-extension: are returned; r=mayhemer
have XHR responseURL use the final channel URL so the expected URLs for substituted protocols like web-extension: are returned

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

--HG--
extra : moz-landing-system : lando
2019-03-31 01:31:12 +00:00
Narcis Beleuzu db7f220d5c Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-03-30 23:45:55 +02:00
Narcis Beleuzu d20e1695b0 Merge autoland to mozilla-central. a=merge 2019-03-30 23:43:56 +02:00
Emilio Cobos Álvarez 7d6f6c28d7 Bug 1536582 - Autogenerate Servo_ binding functions with cbindgen. r=boris
This depends on https://github.com/eqrion/cbindgen/pull/308. Other than that,
this should be ready to go.

There's still a bit more magic than what I'd like to eventually. I should be
able to make cbindgen not rename types if it doesn't know about them, or
something.

But this removes most of the manual binding function implementations (all but
the ones that are declared via macros, which cbindgen doesn't see across).

I need to give up on the _Drop functions taking an Owned<T> because of
instantiation order fiasco. In order to define DefaultDelete I need Owned to be
complete, but I cannot do it after including the generated file since some
declarations already instantiate the specialization. Oh well.

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

--HG--
rename : servo/components/style/cbindgen.toml => servo/ports/geckolib/cbindgen.toml
extra : moz-landing-system : lando
2019-03-30 20:18:33 +00:00
Masayuki Nakano 3e64f2c30d Bug 1539356 - Mark EditorBase::InsertNodeTransaction() as MOZ_CAN_RUN_SCRIPT r=m_kato
This patch marks `EditorBase::InsertNodeTransaction()` **and** its callers as `MOZ_CAN_RUN_SCRIPT`.

Unfortunately, this patch tells us that some `GetSomething()` methods may destroy the editor since `HTMLEditRules::GetNodesForOperation()`, `HTMLEditRules::GetNodesFromPoint()` and `HTMLEditRules::GetNodesFromSelection()` may change the DOM tree.  Additionally, initialization methods may destroy the editor since it may insert a bogus `<br>` node.

Note that this patch also removes some unused methods. I.e., they are not result of some cleaning up the code. This patch just avoids marking unused methods as `MOZ_CAN_RUN_SCRIPT`.

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

--HG--
extra : moz-landing-system : lando
2019-03-30 11:55:29 +00:00
Noemi Erli aca368bbe4 Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-03-30 11:34:38 +02:00
Noemi Erli 73e1da0906 Merge inbound to mozilla-central. a=merge 2019-03-30 11:32:42 +02:00
Noemi Erli 1ab5dc40f6 Merge autoland to mozilla-central. a=merge 2019-03-30 11:31:35 +02:00
Chun-Min Chang 949167ee63 Bug 1500713: P4 - Return NullableTimeUnit from MP3TrackDemuxer::Duration(). r=jya
Differential Revision: https://phabricator.services.mozilla.com/D24302

--HG--
extra : moz-landing-system : lando
2019-03-29 23:38:29 +00:00
Chun-Min Chang 9a23c18c8f Bug 1500713: P3 - Prevent duration in GetBuffered from being overestimated. r=kinetik,jya
Depends on D19097

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

--HG--
extra : moz-landing-system : lando
2019-03-29 23:38:28 +00:00
Chun-Min Chang 97d1b59173 Bug 1500713: P2 - Seek MP3 parser to the original position if it fails parsing. r=kinetik,jya
Depends on D19096

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

--HG--
extra : moz-landing-system : lando
2019-03-29 23:38:28 +00:00
Chun-Min Chang 321883e56f Bug 1500713: P1 - MP3 Test for the files with VBRI headers. r=kinetik
Differential Revision: https://phabricator.services.mozilla.com/D19096

--HG--
extra : moz-landing-system : lando
2019-03-29 23:38:27 +00:00
Oana Pop Rus 43fadb6745 Backed out changeset 447c87c2d139 (bug 1539356) on request of Jorg K. a=backout 2019-03-30 00:42:32 +02:00
Oana Pop Rus a16538cfd6 Merge mozilla-central to inbound. a=merge CLOSED TREE 2019-03-30 00:11:11 +02:00
Oana Pop Rus a759d6f62b Merge inbound to mozilla-central. a=merge 2019-03-29 23:54:39 +02:00
Ciure Andrei 696c9d2139 Backed out changeset e356ebea641d (bug 1539578) for causing browser_WebCrypto_telemetry.js to perma fail CLOSED TREE 2019-03-29 21:21:33 +02:00
Cameron McCormack 3357fd0d3a Bug 1474793 - Part 13: Build and use shared memory user agent style sheets in parent and content processes. r=emilio,kmag
MozReview-Commit-ID: JasksR7F22Z

Depends on D17199

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

--HG--
extra : moz-landing-system : lando
2019-03-30 00:23:49 +00:00
Emilio Cobos Álvarez 9ebd6eb639 Bug 1538732 - Don't let inspector change random content state. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D25417

--HG--
extra : moz-landing-system : lando
2019-03-29 17:20:39 +00:00
J.C. Jones f7a8b4c054 Bug 1448408 - Web Authentication - Don't immediately abort on visibility events r=keeler
The published recommendation of L1 for WebAuthn changed the visibility/focus
listening behaviors to a SHOULD [1], and Chromium, for reasons like our SoftU2F
bug [0], opted to not interrupt on tabswitch/visibility change.

Let's do the same thing.

This changes the visibility mechanism to set a flag on an ongoing transaction,
and then, upon multiple calls to the FIDO/U2F functions, only aborts if
visibility had changed. Otherwise, subsequent callers return early.

This is harder to explain than it is really to use as a user. I think. At least,
my testing feels natural when I'm working within two windows, both potentially
prompting WebAuthn.

Note: This also affects FIDO U2F API.

[0] https://bugzilla.mozilla.org/show_bug.cgi?id=1448408#c0
[1] https://www.w3.org/TR/webauthn-1/#abortoperation

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

--HG--
extra : moz-landing-system : lando
2019-03-29 17:59:08 +00:00
Andrea Marchesini 6a4e37ae32 Bug 1540159 - XMLHttpRequestUpload must bind itself to valid nsIGlobalObject in workers, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D25407

--HG--
extra : moz-landing-system : lando
2019-03-29 17:22:39 +00:00
Noemi Erli cb48453c36 Merge mozilla-central to inbound. a=merge CLOSED TREE 2019-03-30 11:35:28 +02:00
Jeff Gilbert 498b71e5e9 No bug - clang-format -p dom/canvas 2019-03-29 23:42:18 -07:00
Cosmin Sabou ce019d68b5 Bug 1531988 - Disable dom/media/test/test_cloneElementVisually_mediastream.html for frequent failures. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D25509

--HG--
extra : moz-landing-system : lando
2019-03-31 16:10:20 +00:00
Cosmin Sabou 9a511545e8 Bug 1492340 - Disable dom/tests/mochitest/fetch/test_fetch_cors_sw_reroute.html for frequent failures. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D25513

--HG--
extra : moz-landing-system : lando
2019-03-31 16:12:23 +00:00
Mike Conley 2db690d857 Bug 1538987 - Follow-up: skip incrementing the DOM_CONTENTPROCESS_OS_PRIORITY_RAISED probe for the initialization case. r=gsvelto
Differential Revision: https://phabricator.services.mozilla.com/D25440

--HG--
extra : moz-landing-system : lando
2019-03-29 22:07:13 +00:00
Gabriele Svelto 75f09dd912 Bug 1536850 - Properly detect when the browser is shutting down to avoid taking content process minidumps too late r=Ehsan
This code was already present but it had two flaws: the first one was that the
variable used to prevent minidumps from being taken when shutting down was not
being initialized which caused it to be true most of the time and thus
prevented captures even in valid scenarios. The second was that we relied on
the "profile-before-change" change event to detect shutdown but this often
happens after we've already started closing tabs and shutting down processes
thus the minidump generation would often race against it.

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

--HG--
extra : moz-landing-system : lando
2019-03-29 19:17:56 +00:00
Oana Pop Rus dc9eba46cc Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-03-30 00:05:29 +02:00
Tom Tung f770fd0631 Bug 1539666 - Add more warning message while a URL is not recognized by MozURL and mark these directries as obsolete to pass the upgrade; r=asuth
We found this issue by finding out a url with trailing "-" cannot parsed by
MozURL (more specifically, rust-url). This patch tries to fix all related
unparsed url issues at once. So, the first thing we want to fix here is to make
it more easier to be debugged. Thus, this patch adds more QM_WARNING while
MozURL::Init() is failing to parse the url. Secondly, if failures happen during
metadata restoring or upgrading, breaking the whole initialization or upgrades
is not the thing we want. Ideally, the best approach would be somehow keep the
directory and wait until the problem on MozURL to be fixed. Then, upgrade the
directroy. However, it's relative hard to do and might have many edge cases.
Therefore, this patch take the approach of removing them in these situation.
Note that restoring and upgrading should be rarly happens.

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

--HG--
extra : moz-landing-system : lando
2019-03-29 20:08:24 +00:00
Byron Campen [:bwc] 379c5bfe4e Bug 1534692 - Part 8: In setIdentityProvider, fall back to the target peer identity if a peerIdentity is not passed. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D24793

--HG--
extra : moz-landing-system : lando
2019-03-29 18:38:56 +00:00
Byron Campen [:bwc] 6c79e60e7c Bug 1534692 - Part 6: Simplify this identity verification code. Fixes a bug where sRD would not wait for the verification to complete when the target peer identity was set. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D24791

--HG--
extra : moz-landing-system : lando
2019-03-29 20:51:19 +00:00
Byron Campen [:bwc] f247c46edd Bug 1534692 - Part 5: Teach PeerConnectionIdp to cope with SDP with no media sections. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D24790

--HG--
extra : moz-landing-system : lando
2019-03-29 18:37:51 +00:00
Byron Campen [:bwc] d624fdbce8 Bug 1534692 - Part 4: Stop closing the pc when identity validation fails, because that's not what the spec says to do. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D24789

--HG--
extra : moz-landing-system : lando
2019-03-29 18:37:44 +00:00
Ruihui Yan 2dbc54f868 Bug 1508819 - Enable ESLint for dom/bindings (manual changes). r=nika
Depends on D13891

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

--HG--
extra : moz-landing-system : lando
2019-03-29 16:47:06 +00:00
Ruihui Yan 894c13cd76 Bug 1508819 - Enable ESLint for dom/bindings (automatic changes) r=nika
Differential Revision: https://phabricator.services.mozilla.com/D13891

--HG--
extra : moz-landing-system : lando
2019-03-28 09:11:04 +00:00
Lee Salzman a00853db4b Bug 1539026 - Skia m74 fuzzing. r=rhunt 2019-03-26 14:52:45 -04:00
Jan Varga 77fcbc5f34 Bug 1533651 - Don't check result of PSessionStorageObserverChild::SendDeleteMe; r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D24878
2019-03-26 12:51:12 +01:00