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

87833 Коммитов

Автор SHA1 Сообщение Дата
Boris Zbarsky bbc03b9834 Bug 1214364 part 2. Remove the dead code around MethodNotNewObjectError. r=peterv
I don't know when we stopped raising them, but we did at some point.

I am leaving the capability to not generate a union's ToJSVal method, because I will need it soon.

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

--HG--
extra : moz-landing-system : lando
2019-10-23 18:04:30 +00:00
Boris Zbarsky 3a2aa6f9b1 Bug 1214364 part 1. Only output conversions to/from JSON for dictionaries that need it. r=peterv
This saves about 200KB of codesize on Linux64 without LTO.  No effect with LTO,
but is needed for the following patches to work.

Very few dictionaries need these conversions, so explicit opt-in is fine.

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

--HG--
extra : moz-landing-system : lando
2019-10-23 15:58:29 +00:00
Emilio Cobos Álvarez 30240152f3 Bug 1591132 - Make it easy to switch on and off these assertions in different build configurations. r=froydnj
Put them behind a MOZ_HASH_TABLE_CHECKS_ENABLED define, which right now is only
defined in DEBUG builds, preserving behavior.

MakeImmutable becomes an empty inline function when disabled, which should be
zero-cost.

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

--HG--
extra : moz-landing-system : lando
2019-10-28 23:27:30 +00:00
Olli Pettay 574f798fb3 Bug 1586750, don't compile event handlers on unloaded windows r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D48983

--HG--
extra : moz-landing-system : lando
2019-10-28 21:08:50 +00:00
Alexander J. Vincent 4061cf92e2 Bug 1476659, remove invertSelection from mozilla-central, r=NeilDeakin
Differential Revision: https://phabricator.services.mozilla.com/D50407

--HG--
extra : moz-landing-system : lando
2019-10-28 20:58:38 +00:00
Kagami Sascha Rosylight 8ae1d6eba9 Bug 1591849 - Support [Pure] for stringifier attributes r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D50795

--HG--
extra : moz-landing-system : lando
2019-10-28 20:39:09 +00:00
Boris Zbarsky 033a03eb89 Bug 1591491. Add more use of FakeString::ShareOrDependUpon. r=froydnj
If someone then saves the resulting string, this will let us avoid a copy.

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

--HG--
extra : moz-landing-system : lando
2019-10-28 20:41:59 +00:00
Arthur Iakab 470c5a07f1 Backed out 2 changesets (bug 1591803) for causing build busatges on PermissionManager.idl. CLOSED TREE
Backed out changeset 060f159fa43d (bug 1591803)
Backed out changeset b53a3d8c408d (bug 1591803)
2019-10-28 22:12:01 +02:00
Ehsan Akhgari 0863c29589 Bug 1591803 - Part 1: Remove the dead code in NotificationTelemetryService; r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D50752

--HG--
extra : moz-landing-system : lando
2019-10-28 14:10:09 +00:00
Emilio Cobos Álvarez ee8c3bb702 Bug 1591712 - Remove useless OwnerDoc() checks in MediaPlayackDelayPolicy. r=alwu
OwnerDoc() always return non-null.

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

--HG--
extra : moz-landing-system : lando
2019-10-28 17:29:08 +00:00
Andrew McCreight ab1d1edf7b Bug 1591447, part 3 - Fix some name shadowing. r=mconley
Eslint complains about this, so fix it.

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

--HG--
extra : moz-landing-system : lando
2019-10-28 16:58:27 +00:00
Andrew McCreight deeda66d4f Bug 1591447, part 2 - Remove some addContentEventListener arguments in browser_bug1058164.js that aren't needed. r=mconley
browser_bug1058164.js doesn't need the full generality, so trim it
down a bit.

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

--HG--
extra : moz-landing-system : lando
2019-10-28 16:58:25 +00:00
Andrew McCreight 4f574805d8 Bug 1591447, part 1 - Copy over and use BrowserTestUtils.addContentEventListener() in browser_bug1058164. r=mconley
browser_bug1058164 wants to test the behavior of event handling for
frame scripts using BrowserTestUtils.addContentEventListener(). In bug
1586393, I'm changing addContentEventListener() to not use frame
scripts, so this test will no longer be testing that. To work around
that, I'm making a copy of that method specific to the test.

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

--HG--
extra : moz-landing-system : lando
2019-10-28 16:58:17 +00:00
John Dai 3a77b15ccb Bug 1589027 - Fix object.tabIndex should return 0 by default; r=smaug
The spec change HTMLObjectElement tabIndex default to 0, but `test_object_plugin_nav.html` will fail due to HTMLObjectElement’s sequence focus and .focus() rely on default tabIndex. In this patch I separate the logic to not rely on default tabIndex for HTMLObjectElement's plugin type and align the spec.

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

--HG--
extra : moz-landing-system : lando
2019-10-28 15:50:59 +00:00
Masayuki Nakano a434f646f8 Bug 1577058 - part 2: Make `nsFrameSelection::CommonPageMove()` handle `nsFrameSelection::ScrollSelectionIntoView()` too r=smaug
Currently, `nsFrameSelection::CommonPageMove()` is called before every caller
calls `nsFrameSelection::ScrollSelectionIntoView()`.  However, when an editing
host has focus, the scroll target may be outside of it.  In such case, without
moving caret, user may want only to scroll the scrollable element.

Chrome behaves like so.  Chrome also can scroll outside scrollable element
of focused editing host.  However, it scrolls caret into view only when
caret is moved actually.  Therefore, it makes sense to follow this behavior.

This patch makes `nsFrameSelection::CommonPageMove()` also call
`nsFrameSelection::ScrollSelectionIntoView()`.  However, it newly takes
`SelectionIntoView` flag for making callers can choose the condition.  I.e.,
`ScrollSelectionIntoView()` should be called always, or only when selection
is actually changed, or shouldn't be called.

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

--HG--
extra : moz-landing-system : lando
2019-10-28 10:03:37 +00:00
Razvan Maries 5461b139a7 Backed out changeset e48111fd8ea2 (bug 1586189) as per Tom's request. CLOSED TREE 2019-10-28 16:17:46 +02:00
Mirko Brodesser dc1dc0f9f0 Bug 1587433: part 2) Correct some comments and declare some variables const. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D50607

--HG--
extra : moz-landing-system : lando
2019-10-28 08:45:33 +00:00
Mirko Brodesser 3682e4b36b Bug 1587433: part 1) Slightly refactor `nsRange::CharacterDataChanged` in order to make it understanable. r=smaug
The method performed too many tasks. Now, some of the tasks are
abstracted away, simplifying reasoning about it.

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

--HG--
extra : moz-landing-system : lando
2019-10-28 08:44:29 +00:00
Simon Giesecke 38c02fb8ce Bug 1586189 - Re-implement waitForMessage based on waitForContentEvent. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D49752

--HG--
extra : moz-landing-system : lando
2019-10-18 17:53:15 +00:00
Ehsan Akhgari 17090782fb Bug 1590922 - Fix parsing the blocklist in nsContentUtils::IsURIInList(); r=baku
Differential Revision: https://phabricator.services.mozilla.com/D50549

--HG--
extra : moz-landing-system : lando
2019-10-28 10:57:24 +00:00
Edgar Chen f8c0061b8f Bug 1586772 - Enable test_bug907892.html on Fission; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D50664

--HG--
extra : moz-landing-system : lando
2019-10-28 11:37:52 +00:00
Edgar Chen 5c03d212e3 Bug 1587062 - Move SandboxFlags from DocShell to BrowsingContext; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D50663

--HG--
extra : moz-landing-system : lando
2019-10-28 11:48:30 +00:00
Thomas Nguyen feddf115a9 Bug 1590321 - Rewrite browser_test_referrer_loadInOtherProcess.js to work with fission enabled r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D50570

--HG--
extra : moz-landing-system : lando
2019-10-28 09:44:30 +00:00
Rob Wu 57e66afc2a Bug 1589754 - Rename nsGlobalWindowInner::GetTopLevelPrincipal r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D50068

--HG--
extra : moz-landing-system : lando
2019-10-24 12:57:21 +00:00
Rob Wu 1884e2a75a Bug 1589754 - Fix permissions.query in top-level document r=tnguyen
Differential Revision: https://phabricator.services.mozilla.com/D50067

--HG--
extra : moz-landing-system : lando
2019-10-24 12:57:23 +00:00
Cosmin Sabou c55cda47e6 Bug 1336075 - Disable test on mac and windows debug due to frequent failures. r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D48590

--HG--
extra : moz-landing-system : lando
2019-10-24 14:28:55 +00:00
Cosmin Sabou 3c54e28fc8 Backed out 2 changesets (bug 1577058) for causing bug 1541915 to nearly permafail.
Backed out changeset c556c5228132 (bug 1577058)
Backed out changeset d00a7e091efd (bug 1577058)
2019-10-27 17:38:58 +02:00
Rob Wu 96a36aa07a Bug 1591114 - test_bug260264.html should await SpecialPowers.testPermission r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D50488

--HG--
extra : moz-landing-system : lando
2019-10-24 16:42:51 +00:00
Rob Wu 34c77beb98 Bug 1591102 - Let some SpecialPowers.pushPermissions callers use promises r=jdm
Some callers of SpecialPowers.pushPermissions wrapped the call in a
promise. That is not needed; directly use the returned promise instead.

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

--HG--
extra : moz-landing-system : lando
2019-10-27 15:28:41 +00:00
Alex Henrie 74cc0f4dce Bug 1591490 - Use the NS_IS_SURROGATE_PAIR macro everywhere. r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D50697

--HG--
extra : moz-landing-system : lando
2019-10-27 05:05:51 +00:00
Masayuki Nakano 7a894386f2 Bug 1577058 - part 2: Make `nsFrameSelection::CommonPageMove()` handle `nsFrameSelection::ScrollSelectionIntoView()` too r=smaug
Currently, `nsFrameSelection::CommonPageMove()` is called before every caller
calls `nsFrameSelection::ScrollSelectionIntoView()`.  However, when an editing
host has focus, the scroll target may be outside of it.  In such case, without
moving caret, user may want only to scroll the scrollable element.

Chrome behaves like so.  Chrome also can scroll outside scrollable element
of focused editing host.  However, it scrolls caret into view only when
caret is moved actually.  Therefore, it makes sense to follow this behavior.

This patch makes `nsFrameSelection::CommonPageMove()` also call
`nsFrameSelection::ScrollSelectionIntoView()`.  However, it newly takes
`SelectionIntoView` flag for making callers can choose the condition.  I.e.,
`ScrollSelectionIntoView()` should be called always, or only when selection
is actually changed, or shouldn't be called.

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

--HG--
extra : moz-landing-system : lando
2019-10-27 01:44:55 +00:00
Brad Werth 4305c71244 Bug 1561227 Part 2: Define and fire an internal event when BrowserChild has finished resizing. r=botond,emilio
This event is useful for tests that resize the RDM pane and need to
know when all resolution adjusting effects are complete.

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

--HG--
extra : moz-landing-system : lando
2019-10-25 21:05:48 +00:00
Emilio Cobos Álvarez e444a94218 Bug 1589766 - Experiment with implementing zoom as a transform + transform-origin shorthand. r=xidorn
This is a gross hack, of course, but has the advantage of not breaking sites
that use both zoom and -moz-transform / -moz-transform-origin.

There should be no behavior change when the pref is off, of course, and the
webcompat team wanted to experiment with this.

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

--HG--
extra : moz-landing-system : lando
2019-10-26 14:17:28 +00:00
Jan Varga 8ea2bacbc6 Bug 1591394 - QM: Add more getters to DirectoryLock; r=ttung
Differential Revision: https://phabricator.services.mozilla.com/D50610

--HG--
extra : moz-landing-system : lando
2019-10-26 08:50:43 +00:00
Jeff Walden 3e64c882fe Bug 1591655 - Remove the unnecessary |proto| argument from |JS::NewPromiseObject| and its callers, seeing as all callers pass |nullptr| (and therefore uniformly request the default prototype). r=jandem,bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D50695

--HG--
extra : moz-landing-system : lando
2019-10-26 08:14:05 +00:00
Andre Natal b0b2bb1db1 Bug 1590368 - Fix for Permafailing build bustage on OnlineSpeechRecognitionService.cpp:220:12: error: variable 'rv' set but not used on Linux x64 opt when Gecko 72 merges to Beta on 2019-12-02 r=smaug
Permafailing build bustage on OnlineSpeechRecognitionService.cpp:220:12: error: variable 'rv' set but not used on Linux x64 opt when Gecko 72 merges to Beta on 2019-12-02

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

--HG--
extra : moz-landing-system : lando
2019-10-26 07:11:49 +00:00
Makoto Kato 67ecac7a24 Bug 1453190 - Don't get editing session during destroying docshell. r=masayuki
When closing window / documnet, if content modifies an element that has
contenteditable via unload event, it hits assertion in
`nsDocShell::EnsureEditorData` due to destroying document. So we should
return error before getting editing session.

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

--HG--
extra : moz-landing-system : lando
2019-10-25 10:23:31 +00:00
Karl Tomlinson c8963484d2 Bug 1591254 set WorkletNodeEngine input and output span lengths appropriately for zero inputs and outputs r=padenot
AudioNodeTrack::ProcessInput() uses ProcessBlock() when input and output
counts are <= 1.

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

--HG--
extra : moz-landing-system : lando
2019-10-25 12:57:46 +00:00
Brian Grinstead ec30cc58df Bug 1587142 - Remove most XBL tests in dom/ r=bzbarsky
The following tests are not removed and need to be ported to Shadow DOM:
- test_bug330925.xhtml
- test_bug372086.html
- test_bug319374.xhtml

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

--HG--
extra : moz-landing-system : lando
2019-10-25 22:38:08 +00:00
Brendan Dahl b774381431 Bug 1590044 - Fix root HTML element attribute persistence. r=smaug
Attribute persistence for root elements should be handled by nsXULWindow,
not XULPersist. This was causing browser.xhtml with an <html> root to be
slightly smaller on each new window during the test
"open-features-non-integer-height.html."

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

--HG--
extra : moz-landing-system : lando
2019-10-25 20:14:25 +00:00
Edwin Takahashi a5bb04283f Bug 1591257 - remove skiaContent fuzzy condition from dom/html/reftests/autofocus/reftest.list r=gbrown
Changes:
- remove skiaContent from `dom/html/reftests/autofocus/reftest.list`

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

--HG--
extra : moz-landing-system : lando
2019-10-25 20:19:41 +00:00
Ciure Andrei 706c89437b Backed out 8 changesets (bug 1561227) for causing browser_viewport_resizing_scrollbar.js to permafail CLOSED TREE
Backed out changeset aa00b1b62ea7 (bug 1561227)
Backed out changeset b22440a67078 (bug 1561227)
Backed out changeset 4776cec83ae8 (bug 1561227)
Backed out changeset ac88bbefb95f (bug 1561227)
Backed out changeset aef3cfa2f539 (bug 1561227)
Backed out changeset a3759e1a04e2 (bug 1561227)
Backed out changeset cfcf79794049 (bug 1561227)
Backed out changeset 97be65338edf (bug 1561227)

--HG--
rename : devtools/client/responsive/test/browser/browser_viewport_zoom_toggle.js => devtools/client/responsive/test/browser/browser_toggle_zoom.js
2019-10-26 00:00:48 +03:00
Brad Werth 5007e7e93c Bug 1561227 Part 2: Define and fire an internal event when BrowserChild has finished resizing. r=botond,emilio
This event is useful for tests that resize the RDM pane and need to
know when all resolution adjusting effects are complete.

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

--HG--
extra : moz-landing-system : lando
2019-10-24 23:42:52 +00:00
kriswright 10581910fe Bug 1591226 - Convert network.http.referer.defaultPolicy.* to static prefs r=njn
Converts network.http.referer.defaultPolicy, network.http.referer.defaultPolicy.trackers, network.http.referer.defaultPolicy.pbmode, and network.http.referer.defaultPolicy.trackers.pbmode to static prefs and updates the uses of their old mirror values.

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

--HG--
extra : moz-landing-system : lando
2019-10-25 19:13:19 +00:00
kriswright 87eaba1b18 Bug 1591226 - Convert network.http.referer.XOriginTrimmingPolicy to static pref. r=njn
Converts network.http.referer.XOriginTrimmingPolicy to a static pref. Leverages do_not_use_directly and a getter to clamp the pref value.

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

--HG--
extra : moz-landing-system : lando
2019-10-25 04:55:12 +00:00
kriswright 22476a1d9e Bug 1591226 - Convert network.http.referer.trimmingPolicy to static pref. r=njn
Converts network.http.referer.trimmingPolicy and leverages do_not_use_directly with a getter to clamp the value.

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

--HG--
extra : moz-landing-system : lando
2019-10-25 04:53:08 +00:00
kriswright 45ce89e55d Bug 1591226 - Convert network.http.referer.XOriginPolicy to static pref. r=njn
Converts network.http.referer.XOriginPolicy to a static pref and leverages 'do_not_use_directly' and a getter in order to clamp the value.

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

--HG--
extra : moz-landing-system : lando
2019-10-25 04:52:05 +00:00
kriswright 23017ea284 Bug 1591226 - Convert network.http.referer.referrerLengthLimit to static pref. r=njn
Converts network.http.referer.referrerLengthLimit to a static pref and replaces its mirror variable.

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

--HG--
extra : moz-landing-system : lando
2019-10-25 04:25:38 +00:00
kriswright be277687fd Bug 1591226 - Convert network.http.sendRefererHeader to a static pref. r=njn
Converts network.http.sendRefererHeader to a static pref. The original mirror variable was clamped between 0 and 2, so the pref has been updated with DoNotUseDirectly and a getter.

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

--HG--
extra : moz-landing-system : lando
2019-10-25 04:20:39 +00:00
kriswright 9ac026787f Bug 1591226 - Convert network.http.referer.hideOnionSource to a static pref. r=njn
Converts network.http.referer.hideOnionSource to a static pref and removes its mirror variable and varcache pref definition.

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

--HG--
extra : moz-landing-system : lando
2019-10-25 04:16:29 +00:00