Commit Graph

674564 Commits

Author SHA1 Message Date
Perry Jiang
289cec9298 Bug 1456995 - enable Service Workers' parent-intercept mode on Nightly r=asuth,jgraham
Due to limitations in the test harness, the "serviceworker_e10s" (for mochitest
and xpcshell) and "sw-e10s" (for WPT) values will match mozinfo's "nightly_build"
value, unless overridden by "--setpref dom.serviceWorkers.parent_intercept=..."
provided at the CLI.

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

--HG--
extra : moz-landing-system : lando
2019-10-08 23:47:48 +00:00
Perry Jiang
398ea07602 Bug 1456995 - give InternalRequest::mMozErrors a default initializer r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D44514

--HG--
extra : moz-landing-system : lando
2019-10-08 23:47:36 +00:00
Perry Jiang
2f362be636 Bug 1456995 - make browser_devtools_serviceworker_interception.js compatible with parent-intercept r=asuth
- Listen for observer topics in the parent-process when in parent intercept mode
- Remove an extra postMessage call (and the corresponding message handler)

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

--HG--
extra : moz-landing-system : lando
2019-10-08 23:47:26 +00:00
Alexander J. Vincent
614b38cb05 Bug 1508165, build bustage fix for a no-longer-used variable. 2019-10-08 21:28:16 -07:00
Brendan Dahl
237d762715 Bug 1510785 - Skip all XBL related tests when XBL is disabled. r=bzbarsky
XBL will be disabled on android, so these tests must be skipped. Where possible
tests are copied to create shadow DOM tests.

Depends on D45615

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

--HG--
rename : layout/inspector/tests/test_bug522601.xhtml => layout/inspector/tests/test_bug522601-shadow.xhtml
rename : layout/inspector/tests/test_bug609549.xhtml => layout/inspector/tests/test_bug609549-shadow.xhtml
rename : layout/reftests/bugs/334829-1a.xhtml => layout/reftests/bugs/334829-1a-shadow.xhtml
rename : layout/reftests/bugs/334829-1b.xhtml => layout/reftests/bugs/334829-1b-shadow.xhtml
rename : layout/reftests/bugs/386310-1b.html => layout/reftests/bugs/386310-1b-shadow.html
rename : layout/reftests/bugs/386310-1c.html => layout/reftests/bugs/386310-1c-shadow.html
rename : layout/reftests/bugs/386310-1d.html => layout/reftests/bugs/386310-1d-shadow.html
rename : layout/reftests/bugs/482592-1a.xhtml => layout/reftests/bugs/482592-1a-shadow.xhtml
rename : layout/reftests/bugs/482592-1b.xhtml => layout/reftests/bugs/482592-1b-shadow.xhtml
rename : layout/reftests/css-selectors/sibling-combinators-on-anon-content-1.xhtml => layout/reftests/css-selectors/sibling-combinators-on-anon-content-1-shadow.xhtml
rename : layout/reftests/css-selectors/sibling-combinators-on-anon-content-2.xhtml => layout/reftests/css-selectors/sibling-combinators-on-anon-content-2-shadow.xhtml
rename : layout/reftests/dom/multipleinsertionpoints-appendmultiple.xhtml => layout/reftests/dom/multipleinsertionpoints-appendmultiple-shadow.xhtml
rename : layout/reftests/dom/multipleinsertionpoints-appendsingle-1.xhtml => layout/reftests/dom/multipleinsertionpoints-appendsingle-1-shadow.xhtml
rename : layout/reftests/dom/multipleinsertionpoints-appendsingle-2.xhtml => layout/reftests/dom/multipleinsertionpoints-appendsingle-2-shadow.xhtml
rename : layout/reftests/dom/multipleinsertionpoints-insertmultiple.xhtml => layout/reftests/dom/multipleinsertionpoints-insertmultiple-shadow.xhtml
rename : layout/reftests/dom/multipleinsertionpoints-insertsingle-1.xhtml => layout/reftests/dom/multipleinsertionpoints-insertsingle-1-shadow.xhtml
rename : layout/reftests/dom/multipleinsertionpoints-insertsingle-2.xhtml => layout/reftests/dom/multipleinsertionpoints-insertsingle-2-shadow.xhtml
rename : layout/reftests/dom/multipleinsertionpoints-ref2.xhtml => layout/reftests/dom/multipleinsertionpoints-ref2-shadow.xhtml
rename : layout/reftests/ib-split/insert-into-split-inline-5.html => layout/reftests/ib-split/insert-into-split-inline-5-shadow.html
extra : moz-landing-system : lando
2019-10-08 23:52:46 +00:00
Brendan Dahl
a51ca19772 Bug 1510785 - Support disabling XBL related tests. r=gbrown
Adds a way for mochitest, reftest, and crashtests to skip XBL related
tests when XBL is disabled. Also, add an app constant so JS can
check whether XBL is enabled.

Depends on D45614

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

--HG--
extra : moz-landing-system : lando
2019-10-08 23:52:33 +00:00
Brendan Dahl
ac5283b5c0 Bug 1510785 - Add way to disable XBL in servo. r=emilio
Adds a feature "moz_xbl" that when disabled causes the XBL code in servo to
be stubbed out.

Depends on D45613

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

--HG--
extra : moz-landing-system : lando
2019-10-08 23:52:26 +00:00
Brendan Dahl
c68cd30ef2 Bug 1510785 - Only build XBL related code when MOZ_XBL is defined. r=bzbarsky
When XBL is disabled, no code in dom/xbl will be built. Also, adds ifdefs
to remove any of the XBL related code elsewhere. There's definitely more
that can be done here, but I think it's better to wait to do the rest of
the cleanup when we actually remove the code.

Depends on D45612

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

--HG--
extra : moz-landing-system : lando
2019-10-08 23:52:14 +00:00
Brendan Dahl
8f5cb3d17d Bug 1510785 - Add build option for disabling XBL. r=chmanchester
Defaults XBL to disabled on android, but still enabled for desktop.

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

--HG--
extra : moz-landing-system : lando
2019-10-08 23:52:07 +00:00
Alexander J. Vincent
eb2ce4c505 Bug 1508165, remove support for treecol[type=password]. r=MattN,webidl,smaug
Differential Revision: https://phabricator.services.mozilla.com/D48573

--HG--
extra : moz-landing-system : lando
2019-10-08 23:46:23 +00:00
Perry Jiang
87c3eb5a96 Bug 1575185 - Subscribe content processes spawning Service Workers to permission updates r=asuth
Previously, Service Workers could spawn in a process that isn't subscribed
to permission updates, which could happen if that process hadn't loaded any
same-origin documents. To address this, parent-process logic for spawning
Service Workers would snapshot the permissions state to be sent to a content
process.

Unfortunately, this approach could lead to outdated, unsynchronized permissions.
Note that nsIPermissionManager::SetPermissionsWithKey is only used to initialize
permissions for a given key and is a no-op if already called with the same key
in a given process. As a result, the following sequence of events could happen:

Assume a content process CP that isn't subscribed to permission changes for an
origin A:

1) Parent process decides to spawn an origin A Service Worker in CP,
snapshotting a value V for permission P.
2) The Service Worker is spawned in CP, setting CP's permission manager's
permission P to value V (for origin A).
3) Parent process updates its permission P to a value A', which is not
broadcasted to CP (because it's not subscribed).
4) By now, the initial Service Worker has been terminated, and the parent
process decides once again to spawn an origin A Service Worker in CP.
5) The Service Worker is spawned in CP, but the call to SetPermissionsWithKey
is a no-op, leaving CP1 with a mismatched value for permission P.

An additional scenario is if the parent process updates a permission during a
remote Service Worker's lifetime.

This patch, which would subscribe CP1 to permission updates when the parent
process knows a Service Worker would be spawned in CP1, prevents these problems.

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

--HG--
extra : moz-landing-system : lando
2019-10-09 02:23:41 +00:00
Andreas Pehrson
cea60bb690 Bug 1586387 - Don't append a device change message to a graph that is going away. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D48553

--HG--
extra : moz-landing-system : lando
2019-10-08 21:39:30 +00:00
Emma Malysz
1417210039 Bug 1586344, Updating Marionette test cases for removal of the <textbox> XBL binding. Inputs are now handled directly by input elements. r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D48205

--HG--
extra : moz-landing-system : lando
2019-10-09 09:18:34 +00:00
Logan Smyth
b05f195249 Bug 1572214 - Part 3: Update debugger to use new react-redux flow-typed bindings for better typechecking. r=jlast
Depends on D48477

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

--HG--
extra : moz-landing-system : lando
2019-10-08 17:59:46 +00:00
Logan Smyth
34a6a14f57 Bug 1572214 - Part 2: Override Prettier Flow config to allow templatized call syntax. r=jlast
Depends on D48476

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

--HG--
extra : moz-landing-system : lando
2019-10-08 17:57:16 +00:00
Logan Smyth
47e9214a80 Bug 1572214 - Part 1: Add more Flow type annotations and tweak logic to match in a few places. r=jlast
Differential Revision: https://phabricator.services.mozilla.com/D48476

--HG--
extra : moz-landing-system : lando
2019-10-08 17:56:44 +00:00
Janice Shiu
22104a71dd Bug 1587242 - refactor ValueExtractor prototype into an ES6 class r=marcosc
Differential Revision: https://phabricator.services.mozilla.com/D48353

--HG--
extra : moz-landing-system : lando
2019-10-09 01:57:07 +00:00
Masayuki Nakano
92ead719bd Bug 1566795 - part 5: Make the for loop of HTMLEditor::RemoveInlinePropertyInternal() partially selected text nodes r=m_kato
If selection range is not in **one** text node, `RemoveInlinePropertyInternal()`
collects target nodes with `SubtreeContentIterator`.  It only collects topmost
nodes which are **entirely** contained in the range (it's enough because their
descendants will be handled by `RemoveStyleInside()` recursively).

The reasons why it uses `SubtreeContentIterator` rather than
`PreContentIterator` must be:
1. Performance reason.
2. Assuming there are no multiple text nodes.
3. Not expects that user removes text node styles come from parent block.

The reason 2 is wrong because when removing a style, all browsers don't
join text nodes which was in removing element with adjacent text nodes.
(I.e., we cannot change this behavior for compatibility.)

The reason 3 is of course wrong we're struggling with this scenario.

Therefore, `RemoveInlinePropertyInternal()` needs to collect partially
selected text nodes by itself (if there are).  Then, we can merge the
single text node selected case with the `for` loop.

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

--HG--
extra : moz-landing-system : lando
2019-10-08 09:24:47 +00:00
Jared Wein
3bbca5bdc3 Bug 1586647 - Hide the Firefox Accounts button if identity.fxaccounts.enabled=false. r=sfoster
Differential Revision: https://phabricator.services.mozilla.com/D48416

--HG--
extra : moz-landing-system : lando
2019-10-09 01:21:47 +00:00
Jared Wein
b7872d74f9 Bug 1572464 - Show a different message on the login-intro if the user is signed in to Sync. r=sfoster,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D48403

--HG--
extra : moz-landing-system : lando
2019-10-09 01:21:43 +00:00
Jared Wein
0324279a0a Bug 1576501 - Ignore error when loading the Migration Wizard in automation. r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D48401

--HG--
extra : moz-landing-system : lando
2019-10-09 01:21:47 +00:00
Jared Wein
69b5240b0b Bug 1576501 - Ignore expected error messages for duplicate logins. r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D48400

--HG--
extra : moz-landing-system : lando
2019-10-09 01:21:40 +00:00
Jared Wein
bc67349475 Bug 1576501 - Ignore error messages from browser-sync. r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D48399

--HG--
extra : moz-landing-system : lando
2019-10-09 01:21:28 +00:00
Jared Wein
4f42dbb5d2 Bug 1576501 - Form fields in about: pages should not get login-related information. r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D48398

--HG--
extra : moz-landing-system : lando
2019-10-09 01:21:28 +00:00
Jared Wein
c2a6921ecb Bug 1576501 - Don't search for login autocomplete results on about: pages. r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D48397

--HG--
extra : moz-landing-system : lando
2019-10-09 01:21:21 +00:00
Jared Wein
b789d753cb Bug 1576501 - Fail mochitest-browser about:logins tests if they write to the console unexpectedly. r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D48396

--HG--
extra : moz-landing-system : lando
2019-10-09 01:21:13 +00:00
Noemi Erli
ea6e0bc746 Backed out changeset c30194bd49f9 (bug 1587227) for failing in browser_contextmenu_sendpage.js 2019-10-09 04:04:46 +03:00
Alexander Surkov
9dc56a5bf5 Bug 1587104 - do not pick up accessible name from containing XUL toolbaritem r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D48581

--HG--
extra : moz-landing-system : lando
2019-10-09 00:09:47 +00:00
Daisuke Akatsuka
bf1179ad8a Bug 1586634: Add a test for the pref which enables the compatibility tool. r=pbro,rcaliman
Differential Revision: https://phabricator.services.mozilla.com/D48324

--HG--
extra : moz-landing-system : lando
2019-10-09 00:35:40 +00:00
Daisuke Akatsuka
7e29410b9e Bug 1586634: Enable the compatibility tool by devtools.inspector.compatibility.enabled pref. r=pbro,rcaliman
Differential Revision: https://phabricator.services.mozilla.com/D48323

--HG--
extra : moz-landing-system : lando
2019-10-09 00:35:32 +00:00
Daisuke Akatsuka
070a64c7e7 Bug 1586634: Add a sidebar panel for the compatibility tool. r=rcaliman,gl
Differential Revision: https://phabricator.services.mozilla.com/D48322

--HG--
extra : moz-landing-system : lando
2019-10-09 00:37:55 +00:00
David Walsh
03797d6eff Bug 1544930 - Improve visibility of the highlighted line r=jlast
Differential Revision: https://phabricator.services.mozilla.com/D48223

--HG--
extra : moz-landing-system : lando
2019-10-08 21:35:08 +00:00
Mark Hammond
b3e9a07002 Bug 1587227 - ensure sendtab devices list is populated before Sync is initialized. r=lina
Differential Revision: https://phabricator.services.mozilla.com/D48619

--HG--
extra : moz-landing-system : lando
2019-10-09 00:23:13 +00:00
Paul Bone
b6d24ade18 Bug 1585159 - Don't grow nursery in a last-ditch GC r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D48292

--HG--
extra : moz-landing-system : lando
2019-10-08 23:51:22 +00:00
Paul Bone
32fc4906ae Bug 1585159 - Allow the shell to invoke a last-ditch GC r=jonco
I want to add this option to the gc() shell builtin to write a test case for
this bug.

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

--HG--
extra : moz-landing-system : lando
2019-10-08 23:51:18 +00:00
Sam Foster
13f15730a5 Bug 1556953 - Only fill with an exact match when tabbing between fields in a login form. r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D47191

--HG--
extra : moz-landing-system : lando
2019-10-08 23:49:54 +00:00
Sam Foster
23f72bc330 Bug 1586304 - Increase timeout for dismissed attention notifications. r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D48605

--HG--
extra : moz-landing-system : lando
2019-10-08 23:46:01 +00:00
Christian Holler
9d0310b514 Bug 1580320 - Check return value of PeerConnectionImpl::GetFingerprint. r=drno
Differential Revision: https://phabricator.services.mozilla.com/D48509

--HG--
extra : moz-landing-system : lando
2019-10-08 17:52:27 +00:00
Michael Froman
848b82fa19 Bug 1583997 - prefer ffvpx mp3 decoding on android. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D47674

--HG--
extra : moz-landing-system : lando
2019-10-08 22:44:07 +00:00
Paul Bone
eb451e88d9 Bug 1585688 - Make test work when configured for 256KB chunks r=jonco
This test sets the minimum nursery size to 16MB. But on some configurations
the nursery's maximum is 4MB (16 * 256KB chunks, eg on mobile). Setting the
minimum greater than the maximum is forbidden. This patch sets the maximum
and minimum nursery sizes in the test to avoid this problem.

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

--HG--
extra : moz-landing-system : lando
2019-10-08 11:59:47 +00:00
Mike Shal
07e8548c0b Bug 1581279 - Fix ./mach clobber --full for Python3; r=firefox-build-system-reviewers,chmanchester
Differential Revision: https://phabricator.services.mozilla.com/D48615

--HG--
extra : moz-landing-system : lando
2019-10-08 22:49:07 +00:00
Jason Laster
da78b4b773 Bug 1585802 - Enable redux timings when debugJsModules is on.
Differential Revision: https://phabricator.services.mozilla.com/D47978

--HG--
extra : moz-landing-system : lando
2019-10-08 20:10:20 +00:00
Jorg K
4c4181f772 Bug 1583348 - Implement gTest for mozilla::dom::DOMParser::CreateWithoutGlobal(). r=bz 2019-10-08 23:18:24 +02:00
sotaro
3546b3c622 Bug 1585278 - Add option of enabling performance debugging counters of DirectComposition r=nical,jrmuizel
IDCompositionDevice is replaced by IDCompositionDevice2. It is necessary for IDCompositionDeviceDebug usage. And for using IDCompositionDevice2, _WIN32_WINNT and NTDDI_VERSION is updated from Windows 8 to Windows 8.1.

Workaround MinGW build failure.

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

--HG--
extra : moz-landing-system : lando
2019-10-07 20:09:17 +00:00
Glenn Watson
b4d8e0c7ca Bug 1587084 - Restore the picture caching enabled preference. r=nical
The previous patch fixed the bug in the non-picture caching code
path, so we can re-enable the preference now.

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

--HG--
extra : moz-landing-system : lando
2019-10-09 08:07:36 +00:00
Thomas Nguyen
e66558e70c Bug 1584787 - Fix incorrect assignment when cloning document. r=baku
Differential Revision: https://phabricator.services.mozilla.com/D47772

--HG--
extra : moz-landing-system : lando
2019-10-04 16:33:34 +00:00
Dão Gottwald
986df12c96 Bug 1586589 - Replace obsolete <textbox> comments in urlbar code. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D48675

--HG--
extra : moz-landing-system : lando
2019-10-09 13:18:15 +00:00
Julian Descottes
67267e8314 Bug 1586680 - Prevent showing caret browsing prompt when using StyleEditor shortcut r=bgrins
Depends on D48313

caret browsing is enabled by the F7 shortcut, and devtools style editor is toggled via shift+F7.
When the DevTools toolbox is using a browser element, using shift+F7 in the toolbox will first trigger caret browsing and then toggle the style-editor.
The DevTools shortcut is added via a XUL key in DevToolsStartup.jsm but I didn't manage to prevent the shift+F7 event from triggering the caret-browsing keypress callback.
So instead, check if shiftKey is true in the caret-browsing callback and bail out.
In theory, unless explicitly supported, the callback should bailout if any modifier is pressed.

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

--HG--
extra : moz-landing-system : lando
2019-10-09 13:00:15 +00:00
Julian Descottes
c10ca786f7 Bug 1586680 - prevent scroll lock from middle click events in DevTools toolbox r=nchevobbe
Depends on D48312

When the DevTools toolbox is using a <browser> element, middle click will start the scroll lock feature on macos and windows.
Catch all middleclick events from the toolbox and preventDefault to avoid this.

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

--HG--
extra : moz-landing-system : lando
2019-10-09 12:59:57 +00:00
Julian Descottes
d3b9bbed08 Bug 1586680 - prevent default contextmenu events from DevTools html panels r=nchevobbe
With the removal of ContextMenuSpecialProcessChild.jsm in Bug 1581925, the default HTML context menu will start showing up when right clicking in empty areas of the HTML based DevTools panels.
The toolbox is will catch and stop all context menu events when they are coming from HTML documents.
For XUL panels, we still want context menu events to trigger their default behavior which we use to display custom context menus in those panels.

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

--HG--
extra : moz-landing-system : lando
2019-10-09 12:57:14 +00:00