Commit Graph

647007 Commits

Author SHA1 Message Date
Emilio Cobos Álvarez
235779278c Bug 1542935 - Re-introduce a call to EnsureStyleFlush from PresShell::Init to fix an Android scrolling regression. r=heycam
Sorry for the vague commit message, but I haven't dug yet on why or how the
Android code is depending on this.

This call used to be part of nsPresContext::CompatibilityModeChanged, which
unconditionally called PresShell::EnsureStyleFlush.

This was not (in theory, at least) always necessary. There's there's no point in
ensuring a style flush is going to happen if styles haven't changed, and
CompatibilityModeChanged() didn't actually guarantee that the compat mode was
different at all before my patch.

Styles only change if the compat mode actually changes (since then selectors
become case-sensitive or case-insensitive), or more obviously when you insert or
remove the quirks.css stylesheet, and in that case ApplicableStylesChanged makes
sure that the flush happens.

Yet here we are, and not having that early call to EnsureStyleFlush, even in the
case there's no quirks mode or quirks sheet change or anything of that sort
(this happens even on XUL docs, which are always FullStandards) makes the first
(and only the first) browsing session in Geckoview have terrible scrolling
performance.

I'm calling it a day for today, will investigate as time permits in bug 1544185.

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

--HG--
extra : moz-landing-system : lando
2019-04-15 05:26:27 +00:00
Csoregi Natalia
e478deffdb Merge mozilla-central to autoland. CLOSED TREE 2019-04-15 12:47:30 +03:00
Csoregi Natalia
1b2636e851 Merge inbound to mozilla-central. a=merge 2019-04-15 12:44:31 +03:00
Frederik Braun
8a6f82023e Bug 1544008: follow-up: clang-format. CLOSED TREE
Differential Revision: https://phabricator.services.mozilla.com//D27479

--HG--
extra : amend_source : e791c1ed730aaaecba4253980ba6f9a71af5cbd4
2019-04-15 11:10:00 +02:00
Frederik Braun
0c5c6ee474 Bug 1544008 - re-allow systemprincipal load for discovery pane r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D27291

--HG--
extra : moz-landing-system : lando
2019-04-15 08:03:58 +00:00
Mike Conley
2fcda12c4d Bug 1544345 - Fix perma orange on test_setSinkId.html caused by redeclaring a variable with let. r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D27464

--HG--
extra : moz-landing-system : lando
2019-04-15 03:37:08 +00:00
Yoshi Cheng-Hao Huang
1f64fc3823 Bug 1522061 - Part 2: implement isCCTraceKind with JS_FOR_EACH_TRACEKIND. r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D27068
2019-04-15 10:22:38 +08:00
Yoshi Cheng-Hao Huang
714d7e04c5 Bug 1522061 - Part 1: rename to TraceKindCanBeGray. r=jonco
TypeParticipatesInCC is confusing, as this function is used to tell if a
TraceKind can be marked gray.

Differential Revision: https://phabricator.services.mozilla.com/D27067
2019-04-15 10:22:30 +08:00
sotaro
074201caaa Bug 1544074 - Remove WS_EX_LAYERED and WS_EX_TRANSPARENT r=mattwoodrow
Bug 1525183 imported chromium workaround. But it caused a device specific regression. The change removes WS_EX_LAYERED and WS_EX_TRANSPARENT, but it keeps WS_EX_NOREDIRECTIONBITMAP, since it is necessary for memory usage reduction.

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

--HG--
extra : moz-landing-system : lando
2019-04-15 01:24:26 +00:00
James Teh
1a6f689917 Bug 1454865: PanelMultiView: When entering a subview using the keyboard, focus the first button after the Back button in the subview. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D26067

--HG--
extra : moz-landing-system : lando
2019-04-15 01:38:15 +00:00
James Teh
4e6ac5b1e0 Bug 1477673: Refactor PanelMultiView keyboard navigation to use a TreeWalker. r=Gijs,johannh
Previously, this code cached a list of controls on first use and used that for navigation.
This refactor addresses several issues:

1. There is now a separate focus order for tab/shift+tab and down/up arrows.
    This allows menulists, textboxes, etc. which use the arrow keys themselves to be focused with tab, but skipped with the arrows.
    This means the user won't fall into these controls when using the up/down arrow keys and be confused by the subsequent arrowing behaviour.

2. When a menulist, textbox, etc. is focused, the arrow keys, space and enter are now passed to the control.
    This is a better fix for handling of the arrow keys by menulists (bug 1522092).
    It also fixes left arrow in a textarea moving to the previous view instead of moving the caret (bug 1489874).

3. This improves handling of dynamic updates to the panel.
    For example, elements that are initially disabled and enabled later will be navigable.
    This is because the next element is determined dynamically by the TreeWalker, rather than using a cached list.

4. The interim fix for bug 1522092 disabled PanelMultiView keyboard navigation.
    This caused some regressions, including arrow keys/activation on the Site Identity Report a Problem link (bug 1539976) and some controls not being navigable if the Site Identity panel is opened using the mouse (bug 1539984).
    With the above fixes, we can now re-enable PanelMultiView keyboard navigation in the Site identity panel and thus fix these regressions.

5. Previously, PanelMultiView keyboard navigation was disabled in the main toolbar overflow menu.
    This is because the search box can be added to the overflow menu, which previously caused problems for the arrow keys.
    With the above fixes, we can now safely enable PanelMultiView keyboard navigation in the overflow menu.

6. PanelMultiView keyboard tests have been added.
    Previously, we relied on tests specific to various panels to exercise this functionality.

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

--HG--
extra : moz-landing-system : lando
2019-04-15 01:38:08 +00:00
Mike Conley
50caaa08a3 Bug 1543128 - Have PictureInPictureChild detect clicks on Picture-in-Picture toggle if visible. r=jaws
Depends on D26806

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

--HG--
extra : moz-landing-system : lando
2019-04-15 01:09:46 +00:00
Mike Conley
416db4aeac Bug 1543128 - Have PictureInPictureToggleChild set hover states on the no-controls <video> widget manually. r=jaws
Depends on D26805

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

--HG--
extra : moz-landing-system : lando
2019-04-15 01:09:26 +00:00
Mike Conley
559f6fe0f2 Bug 1543128 - Get rid of most of the AnonymousContent toggle implementation, but leave some things stubbed out for a later patch. r=jaws,zbraniecki
Depends on D26804

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

--HG--
extra : moz-landing-system : lando
2019-04-15 01:09:12 +00:00
Mike Conley
32421e3690 Bug 1543128 - Add a no-controls <video> UAWidget binding to show the Picture-in-Picture toggle. r=jaws
Depends on D26803

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

--HG--
extra : moz-landing-system : lando
2019-04-15 01:08:52 +00:00
Mike Conley
f957ebe843 Bug 1543128 - Fire UAWidgetSetupOrChange for the no-controls <video> case on Desktop. r=jya
The Picture-in-Picture toggle buttons are now part of the video controls UAWidget
bindings, so we need to construct a UAWidget for the no-controls case for Desktop
to make that toggle available.

Up until now, we've never needed a no-controls UAWidget for Desktop, since we
never needed to show UI in that case.

Depends on D26809

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

--HG--
extra : moz-landing-system : lando
2019-04-15 01:08:32 +00:00
Mike Conley
189f9c4505 Bug 1542756 - Bug 1543128 - Add option to only return visible nodes from nsIDOMWindowUtils.nodesFromRect. r=emilio
Depends on D26778

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

--HG--
extra : moz-landing-system : lando
2019-04-15 01:08:12 +00:00
Mike Conley
c0298fe7f6 Bug 1543122 - Add the simple Picture-in-Picture toggle to the <video controls/> binding, still preffed off by default. r=jaws
This also stops the PictureInPictureToggleChild from tracking videos with controls for now.

Depends on D26777

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

--HG--
extra : moz-landing-system : lando
2019-04-15 01:07:53 +00:00
Mike Conley
3cebfb583c Bug 1543122 - Add a privileged UAWidget-accessible WebIDL API for triggering Picture-in-Picture. r=jya,Ehsan
Depends on D26776

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

--HG--
extra : moz-landing-system : lando
2019-04-15 01:07:33 +00:00
Mike Conley
827f8a0905 Bug 1543122 - Add a preference for controlling whether or not we display a toggle for Picture-in-Picture on <video> elements. r=jaws
Depends on D26775

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

--HG--
extra : moz-landing-system : lando
2019-04-15 01:07:13 +00:00
Mike Conley
25829adc57 Bug 1543122 - Allow passing a static list of preference values to UAWidgets upon construction. r=bgrins
Differential Revision: https://phabricator.services.mozilla.com/D26775

--HG--
extra : moz-landing-system : lando
2019-04-15 01:06:54 +00:00
Dan Glastonbury
a114224ced Bug 1526972 - P8: Reset InInvalidSubtree when processing unrelated frames. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D26141

--HG--
extra : moz-landing-system : lando
2019-04-15 00:23:21 +00:00
Dan Glastonbury
d0154f8169 Bug 1526972 - P7: Move AutoBuildingDisplayList constructor into .cpp r=miko
Differential Revision: https://phabricator.services.mozilla.com/D26140

--HG--
extra : moz-landing-system : lando
2019-04-15 00:23:19 +00:00
Dan Glastonbury
a161bca51c Bug 1526972 - P6: Mark invalidated SubDocument frame as modified. r=miko,mattwoodrow
Depends on D24463

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

--HG--
extra : moz-landing-system : lando
2019-04-15 00:23:17 +00:00
Dan Glastonbury
fe78904f60 Bug 1526972 - P5: Avoid HasModifiedFrame check for new nsDisplayItems. r=miko
aBuilder->InInvalidSubtree() tracks the modified state. Save the state
during construction of nsDisplayItem and use in ProcessItemFromNewList.

Depends on D24462

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

--HG--
extra : moz-landing-system : lando
2019-04-15 00:23:15 +00:00
Dan Glastonbury
ec2db657b0 Bug 1526972 - P4: Limit AnyContentAncestorModified frame walk to frame of outer item. r=miko
Don't walk frame tree all the way to the root.

Depends on D24461

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

--HG--
extra : moz-landing-system : lando
2019-04-15 00:23:13 +00:00
Dan Glastonbury
821a5af7e1 Bug 1526972 - P3: De-virtualize HasDeletedFrame(). r=miko
To avoid expensive virtual dispatch in PreProcessDisplayList().

Depends on D24460

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

--HG--
extra : moz-landing-system : lando
2019-04-15 00:23:11 +00:00
Dan Glastonbury
d6813ac163 Bug 1526972 - P2: Re-order mItem->CanBeReused()/mItem->HasDeletedFrame(). r=miko
To short-circuit the expensive call with a flag check.

Depends on D24459

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

--HG--
extra : moz-landing-system : lando
2019-04-15 00:23:09 +00:00
Dan Glastonbury
a9319e3ae3 Bug 1526972 - P1: Compress bool state into bit flags. r=miko
Also move to first cache-line (64-bytes) of nsDisplayItem to improve D-cache hit
when accessing mFrame, mItemFlags, etc.

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

--HG--
extra : moz-landing-system : lando
2019-04-15 00:23:07 +00:00
Brian Birtles
86cd66683b Bug 1543304 - Add MOZ_DBG support for nsCSSPropertyID and nsCSSPropertyIDSet; r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D26856

--HG--
extra : moz-landing-system : lando
2019-04-14 23:48:05 +00:00
Brian Birtles
ab20b9cbd4 Bug 1543304 - Add iterators to nsCSSPropertyIDSet; r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D26855

--HG--
extra : moz-landing-system : lando
2019-04-14 23:47:51 +00:00
Andrea Marchesini
6f470dae23 Bug 1515913 - Implement nsICookieService.removeCookiesFromRootDomain, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D27289

--HG--
extra : moz-landing-system : lando
2019-04-12 20:27:21 +00:00
Masayuki Nakano
b19088bb41 Bug 1543966 - part 2: Make "HTML editor commands" and "document state commands" singleton classes r=m_kato
Some "HTML editor commands" are stateful due to storing tag name to handle it
with specific command.  However, we can make it stateless with retrieving
tag name from command name once per command only when it's necessary.  The
runtime cost must be really cheap since we can map it with hash table.

This patch makes them stateless and singleton classes.  So, we can save
footprint and allocation runtime cost with this change.

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

--HG--
extra : moz-landing-system : lando
2019-04-15 07:29:17 +00:00
Masayuki Nakano
6d9c401af5 Bug 1543966 - part 1: Make "editing commands" and "editor commands" singleton classes r=m_kato
Different from the comment in `EditorCommands.h`, editing commands and
editor commands are instantiated for each editable document or each
`HTMLInputElement` or `HTMLTextareaElement`.  Therefore, even though they
are stateless, we allocate too many instances of them.  We should make
them singleton classes to reduce the footprint and save runtime allocation
cost.

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

--HG--
extra : moz-landing-system : lando
2019-04-15 07:49:46 +00:00
Florin Strugariu
ae84bf2e0a Bug 1518791 Add Microsoft Outlook to tp6 r=davehunt
Recording in bug comment.

https://drive.google.com/open?id=1p1hCJfW-d0gbEZNWHP3NMIr4sI3lPHEV

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

--HG--
extra : moz-landing-system : lando
2019-04-15 07:50:35 +00:00
Aaron Klotz
2484ee1608 Bug 1503538: Part 5 - Add static DLL dependency blocking to SandboxBroker; r=bobowen
Depends on D27146

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

--HG--
extra : moz-landing-system : lando
2019-04-12 09:47:13 +00:00
Paul Adenot
2d6777812d Bug 1543444 - Allow audible playbackRate to go down to 0.25 instead of 0.5. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D27063

--HG--
extra : moz-landing-system : lando
2019-04-12 07:34:11 +00:00
Edwin Gao
c6f63cc607 Bug 1536278 - re-enable test_accessiblecaret_cursor_mode.py tests on windows10-aarch64 r=whimboo,jmaher
Changes:
- re-enable the accessiblecaret test on windows10-aarch64

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

--HG--
extra : moz-landing-system : lando
2019-04-15 07:17:21 +00:00
Alex Catarineu
6b2106e24a Bug 1542309 - Set firstPartyDomain to public suffix if getBaseDomain fails. r=baku
Right now the firstPartyDomain is not set when host is in the public suffix list. The patch fixes it by setting firstPartyDomain to eTLD.getPublicSuffix in these cases.

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

--HG--
extra : moz-landing-system : lando
2019-04-12 15:44:40 +00:00
Jan de Mooij
fba2d34e37 Bug 1541404 part 1 - Move initEnvironmentChain from BaselineCompiler to BaselineCodeGen. r=djvj
Also has some other minor prologue-related changes. The interpreter code here
is slightly less optimal than it could be, but that will be easier to address
in follow-up changes.

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

--HG--
extra : moz-landing-system : lando
2019-04-12 14:08:03 +00:00
Aaron Klotz
5b40d0b92a Bug 1503538: Part 4 - Add injected static import blocking to launcher process; r=mhowell
Depends on D27145

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

--HG--
extra : moz-landing-system : lando
2019-04-11 22:32:29 +00:00
Aaron Klotz
1a74deabad Bug 1503538: Part 3 - Changes to NativeNt and ImportDir to allow for blocking injected static DLL dependencies; r=mhowell
Differential Revision: https://phabricator.services.mozilla.com/D27145

--HG--
extra : moz-landing-system : lando
2019-04-12 19:58:01 +00:00
Joel Maher
8303fe23c5 Bug 1543044 - ensure high_value_tasks has a default value when we fail to get data from treeherder/seta. r=Callek
ensure high_value_tasks has a default value when we fail to get data from treeherder/seta.

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

--HG--
extra : moz-landing-system : lando
2019-04-14 12:35:13 +00:00
Thomas Wisniewski
7886db55f5 Bug 1541598 - Have FetchBody::SetMimeType convert from ByteStrings to UTF8 CStrings to not corrupt Unicode values; r=hsivonen
Have FetchBody::SetMimeType convert from ByteStrings to UTF8 CStrings to not corrupt Unicode values

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

--HG--
extra : moz-landing-system : lando
2019-04-14 15:02:39 +00:00
Dale Harvey
8078078268 Bug 1544214 - Add Yandex to list of multi locale search extensions. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D27446

--HG--
extra : moz-landing-system : lando
2019-04-14 11:26:31 +00:00
Jonathan Kew
071e1eefe0 Bug 1541959 - Add a WPT reftest for rendering of text-transform with combinations of values. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D27438

--HG--
extra : moz-landing-system : lando
2019-04-14 11:07:14 +00:00
Jonathan Kew
19813f4032 Bug 1541959 - Fix WPT parsing tests for text-transform to reflect proper serialization of multiple values. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D27403

--HG--
extra : moz-landing-system : lando
2019-04-14 11:06:54 +00:00
Jonathan Kew
504abab69a Bug 1541959 - Allow full-width and/or full-size-kana values of text-transform to be combined with a case transformation. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D27402

--HG--
extra : moz-landing-system : lando
2019-04-14 11:06:41 +00:00
violet
fa3b85a4da Bug 1544270 - Change 1.f * something to float(something) r=longsonr
Change 1.f * something to float(something)

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

--HG--
extra : moz-landing-system : lando
2019-04-14 09:32:19 +00:00
violet
1ce98d921c Bug 1544209 - Should not scale mFontSizeScaleFactor for user space r=longsonr
We already get the user space metrics, mFontSizeScaleFactor is irrelevant
and the scaling should not be applied in the first place.

Otherwise we will get very wrong bounding box when <text> has SVG transform
or the font has extreme size.

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

--HG--
extra : moz-landing-system : lando
2019-04-14 07:41:42 +00:00