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

642372 Коммитов

Автор SHA1 Сообщение Дата
Edwin Gao bb0492c3e0 Bug 1535784 - disable all instances of test_event_listener_leaks.html r=jmaher
Disabled all instances of test_event_listener_leaks.html scattered across the `dom/` test suite.

There exists a bug, 1530894 to track the failures, which has seen no movement for the 3 weeks it has been on file for.

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

--HG--
extra : moz-landing-system : lando
2019-03-18 18:15:46 +00:00
David Walsh 49fd5b4237 Bug 1534808 - Backed out changeset 33f142760b69 - Don't check for JavaScript before showing debugger source tab title r=jlast
I talked to Harald and he doesn't want this.

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

--HG--
extra : moz-landing-system : lando
2019-03-18 16:18:24 +00:00
Emilio Cobos Álvarez 09763b1ac3 Bug 1533201 - Make cssPropertySupportsType take an enum. r=heycam,rcaliman
Differential Revision: https://phabricator.services.mozilla.com/D22427

--HG--
extra : moz-landing-system : lando
2019-03-18 16:38:48 +00:00
Martin Balfanz b6f5c669e6 Bug 1535015 - Add null-check for mainMaxSize; r=mtigley
Differential Revision: https://phabricator.services.mozilla.com/D23659

--HG--
extra : moz-landing-system : lando
2019-03-18 10:16:47 +00:00
Andrea Marchesini f758ec03c2 Bug 1536064 - Get rid of bug GetPrincipalDontAssertMainThread, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D23840

--HG--
extra : moz-landing-system : lando
2019-03-18 12:31:22 +00:00
Emilio Cobos Álvarez 63dc1243e4 Bug 1529537 - Make all font-metrics-affecting properties cascade early. r=heycam
And make font-size computation work on the whole font of the parent, not just
accounting for the parent's font-size.

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

--HG--
extra : moz-landing-system : lando
2019-03-18 16:27:54 +00:00
Connor Sheehan 8e9e6070a4 Bug 1535011: update `versioncontrol.rst` r=dustin
Small updates to the version control documents regarding
upgrading `robustcheckout.py`. I noticed that we still
reference `build-puppet` from it's former home on hgmo
and don't include OpenCloudConfig in our list of places
we need to vendor `robustcheckout` changes.

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

--HG--
extra : moz-landing-system : lando
2019-03-16 13:38:05 +00:00
Steve Fink 1e1c6a0cbd Bug 1534440 - Document GCPolicy<T>::isValid r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D23046

--HG--
extra : moz-landing-system : lando
2019-03-18 11:22:37 +00:00
Andrea Marchesini 5e54909a70 Bug 1534343 - Document should check if its mCookieSettings exists before using it, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D23764

--HG--
extra : moz-landing-system : lando
2019-03-18 17:12:10 +00:00
shindli 66a5ef2991 Backed out changeset c0996caf797f (bug 1523761) for bc failures in browser/components/customizableui/test/browser_947914_button_history.js CLOSED TREE 2019-03-18 19:20:56 +02:00
shindli 8940f3f1cb Backed out 4 changesets (bug 1534313) for causing a perfmafailing Gtest in /builds/worker/workspace/build/application/firefox/gmp-clearkey CLOSED TREE
Backed out changeset fe17244230e8 (bug 1534313)
Backed out changeset fc232edfe6e8 (bug 1534313)
Backed out changeset eae4a9ff0b9b (bug 1534313)
Backed out changeset f4252f238b68 (bug 1534313)
2019-03-18 18:53:33 +02:00
shindli a7af1edc71 Backed out 3 changesets (bug 1353013) for a11y failures in accessible/tests/mochitest/relations/test_tabbrowser.xul CLOSED TREE
Backed out changeset af8bce2330e9 (bug 1353013)
Backed out changeset a3d1302b06c0 (bug 1353013)
Backed out changeset 976afd1adf84 (bug 1353013)
2019-03-18 18:21:16 +02:00
Brad Werth f0e3a29287 Bug 1501665 Part 13: Add a test of Responsive Design Mode resizing of meta viewports. r=gl
This test uses a Document with a fixed-width meta viewport. This test
simulates resizing the RDM pane from a wide landscape size to a small
square size, and back again. It does this again with meta viewport
support turned on.

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

--HG--
extra : source : 2fa518cb0dfc656c6f0c5d5dfbad38348be6f31f
2019-03-18 15:00:17 +00:00
Brad Werth b5929dd4f2 Bug 1501665 Part 12: Update RDM viewport size reporting to make it consistent with zoomed presshells. r=gl
There are two viewports: the layout (or content) viewport, and the visual
viewport. This change ensures that we are both setting and checking the
visual viewport size, which is the size shown in the RDM control bar.
It is still possible to get the layout viewport with getContentSize().

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

--HG--
extra : source : afaf26d7df4235daef3157d74b3bcd69761c6393
2019-03-18 15:00:57 +00:00
Brad Werth b2a1c08a45 Bug 1501665 Part 11: Add a new test of meta viewport with zero display width. r=botond
This test ensures that when meta viewport width is fixed, and a viewport
is requested with zero width, the viewport is assigned a height equal to
the scaled display height.

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

--HG--
extra : source : 5bdf0ad9dc6639dd86499fded67183f77407a8ee
2019-03-18 15:00:53 +00:00
Brad Werth 9a86c02a44 Bug 1501665 Part 10: Modify viewport resize zoom scaling to account for clamped zoom levels. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D21291

--HG--
extra : source : 520dd24a73fc1a224c38c93ab91d36eecce727ed
2019-03-18 14:59:12 +00:00
Brad Werth 1f70e7449b Bug 1501665 Part 9: Early exit around an unnecessary call to UpdateVisualViewportSize. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D21287

--HG--
extra : source : 3542bf2b89ddf170efe6c723a64f297868bc7db1
2019-03-18 14:58:49 +00:00
Brad Werth 16be774e5b Bug 1501665 Part 8: Allow MVM::RequestReflow to adjust resolution, and do so when destroying the MVM. r=botond
Currently the MobileViewportManager leaves somethings permanently changed
even after it is destroyed: it may have changed the resolution of
the Document, and it may have set a fixed size for the visual viewport.
Both of these changes need to be un-done to return to normal display of
the Document.

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

--HG--
extra : source : 088dc24eabc75eea96301d50550e0a8817f5f809
2019-03-18 14:58:31 +00:00
Brad Werth ba8e9742ef Bug 1501665 Part 7: Add a new function to allow visual viewport size to be un-set. r=smaug
Once nsIPresShell::SetVisualViewportSize is called, we currently have
no way to restore the default viewport sizing behavior. This corrects that.
We need the default behavior to get correctly-placed scrollbars when
turning off meta viewport handling in Responsive Design Mode panes.

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

--HG--
extra : source : 178210eb72baa05f877b3a35e0c94d0b23880d13
2019-03-18 14:58:07 +00:00
Brad Werth 8a637ac0e3 Bug 1501665 Part 6: Fix an edge case in Document::GetViewportInfo to return css scaled sizes. r=botond
This fixes a problem in an edge case that we are evidently not testing.
If width is 0 and height is auto, we are currently setting height to
the unscaled (not CSS units) display height value.

In addition to this fix, this patch does two drive-by cleanups of code
that uses "defaultScale":

    The redundantly-defined defaultPixelScale is removed.
    The masking block-level definition of defaultScale is renamed to bestFitScale.

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

--HG--
extra : source : 9eebe767ef20b9ec635d90fc9844cf7dbe3403de
2019-03-18 14:57:47 +00:00
Brad Werth c2c75edc72 Bug 1501665 Part 5: Change UpdateShouldBuildAsyncZoomContainer to check if document is zoomable. r=botond
Also update ScrollFrameHelper::LayoutScrollbars() to correctly handle
overlay scrollbars when zoomed in in RDM.

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

--HG--
extra : source : 6a84e97d0e62839c3028a3c3ac89cd944f8e39e5
2019-03-18 14:57:20 +00:00
Brad Werth 7fc19a53b5 Bug 1501665 Part 4: Use the new function as a replacement for APZAllowZooming. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D19239

--HG--
extra : source : cf42ea4e8443cdcb5f446dfb95d92d5998f55f24
2019-03-18 14:56:55 +00:00
Brad Werth 83ef115c9e Bug 1501665 Part 3: Add a new function to determine if a document can use resolution zooming. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D19238

--HG--
extra : source : 731d7ee06d86794fb9ec58b32f1495ad11205a1c
2019-03-18 14:56:32 +00:00
Brad Werth 64131401a1 Bug 1501665 Part 2: Set the inRDMPane property on Documents as they enter/leave RDM. r=gl
Differential Revision: https://phabricator.services.mozilla.com/D19237

--HG--
extra : source : 8e0afe4a041a2fde722ffcbf2dcee10265c87e19
2019-03-18 14:56:09 +00:00
Brad Werth 642e907b47 Bug 1501665 Part 1: Add a webidl property to Document to track if it's in an RDM pane. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D19235

--HG--
extra : source : be1026de486b096cee639ca584b1e8108c4b73cb
2019-03-18 14:55:51 +00:00
shindli b7de66af4f Backed out 13 changesets (bug 1501665) for failing a11y tests in accessible/tests/mochitest/relations/test_tabbrowser.xul CLOSED TREE
Backed out changeset 2fa518cb0dfc (bug 1501665)
Backed out changeset afaf26d7df42 (bug 1501665)
Backed out changeset 5bdf0ad9dc66 (bug 1501665)
Backed out changeset 520dd24a73fc (bug 1501665)
Backed out changeset 3542bf2b89dd (bug 1501665)
Backed out changeset 088dc24eabc7 (bug 1501665)
Backed out changeset 178210eb72ba (bug 1501665)
Backed out changeset 9eebe767ef20 (bug 1501665)
Backed out changeset 6a84e97d0e62 (bug 1501665)
Backed out changeset cf42ea4e8443 (bug 1501665)
Backed out changeset 731d7ee06d86 (bug 1501665)
Backed out changeset 8e0afe4a041a (bug 1501665)
Backed out changeset be1026de486b (bug 1501665)
2019-03-18 18:08:58 +02:00
Kershaw Chang 111ff1b2e8 Bug 1521729 - P2: Fix failure tests r=mayhemer
Due to the p1 patch, the first time we get the result back from NS_ShouldSecureUpgrade is always asynchronously.
This means that the first http request could be completed slower than the http requests opened after the first one. There are some tests affected by this change, since these tests assume that http requests should be completed in the same order as these requests were created.
This patch fixes the tests by introducing a new method in nsIHttpProtocolHandler. This method returns a promise and makes sure the HSTS data is ready to read synchronously when the promise is resolved.
Once the HSTS is ready to read, the order of open/close channels will be the same.

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

--HG--
extra : moz-landing-system : lando
2019-03-18 14:50:56 +00:00
Kershaw Chang 50316df2bb Bug 1521729 - P1: Support to get the result from NS_ShouldSecureUpgrade asynchronously r=mayhemer
1. Make nsHttpChannel::OnBeforeConnect async.
2. There are two ways to get the result from NS_ShouldSecureUpgrade. One is getting the result synchronously from the input reference and the other is via the provided callback.
Note that the callback is only used when the storage is not ready to read at startup.

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

--HG--
extra : moz-landing-system : lando
2019-03-18 15:48:21 +00:00
Yuan Cheng ad8f4def53 Bug 1523761 - Move the syncedTabs strings from browser.dtd to fluent, r=Gijs,flod
Differential Revision: https://phabricator.services.mozilla.com/D22980

--HG--
extra : moz-landing-system : lando
2019-03-15 18:46:46 +00:00
berkay.barlas 7feefb5c15 Bug 1135593 Make The Reader Mode controls sidebar not affected by page zoom actions r=Gijs
Roll up existing commits

Make updateFontSizeButtonControls separate method

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

--HG--
extra : moz-landing-system : lando
2019-03-15 20:22:31 +00:00
Emilio Cobos Álvarez ac54c9333b Bug 1534494 - Try to bring some more sanity into our font code. r=manishearth
It's not very easy to understand on its current state, and it causes subtle bugs
like bug 1533654.

It could be simpler if we centralized where the interactions between properties
are handled. This patch does this.

This patch also changes how MathML script sizes are tracked when scriptlevel
changes and they have relative fonts in between.

With this patch, any explicitly specified font-size is treated the same (being a
scriptlevel boundary), regardless of whether it's either an absolute size, a
relative size, or a wide keyword.

Relative lengths always resolve relative to the constrained size, which allows
us to avoid the double font-size computation, and not give up on sanity with
keyword font-sizes.

I think given no other browser supports scriptlevel it seems like the right
trade-off.

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

--HG--
extra : moz-landing-system : lando
2019-03-18 15:37:03 +00:00
Eitan Isaacson c35dbb6950 Bug 1479042 - Handle text insertion and name change events as live regions and announce. r=yzen
Differential Revision: https://phabricator.services.mozilla.com/D21612

--HG--
extra : moz-landing-system : lando
2019-03-15 23:10:42 +00:00
Eitan Isaacson 6d8e53ccd1 Bug 1479042 - Add Android announcement event plumbing. r=yzen
Depends on D21610

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

--HG--
extra : moz-landing-system : lando
2019-03-05 19:36:05 +00:00
Emilio Cobos Álvarez 4baf60220e Bug 1533654 - Don't call PrefillDefaultForGeneric when inheriting font-family. r=heycam
This is the low-risk fix for this issue, that we should get into 67.

What's going on here is that font-family is tracked via the font list, from the
POV of the style system the font list is generally just the
RefPtr<SharedFontList>, but in Gecko there's also mDefaultGenericId.

The way we end up with the right mDefaultGenericId is fishy at best, bogus at
worst. I left various fixmes over time related to a bunch of this code.

After my patch, we end up with a mDefaultGenericId of serif, rather than the
right one (none).

The parent font always has none because nsLayoutUtils::ComputeSystemFont always
sets it to none if the font is known.

Before my patch, PrefillDefaultForGeneric with aGenericId of none (from the
parent), which makes it the default generic id for the current language, serif
in this case.

Before my optimization, apply_declaration_ignoring_phase called
copy_font_family_from, which resets both the font list _and_ the default
generic.

This patch achieves the same effect by not having the first mutation in the
first place.

This code is still terribly fishy in any case, all the _skip_font_family stuff
is just ridiculous. I'll try to clean up a bit after this, but for 68.

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

--HG--
extra : moz-landing-system : lando
2019-03-12 00:48:27 +00:00
jlashton c25998b4da Bug 1513546 - Change error message for GetKeyedScalarByEnum lookup in ApplyKeyedScalarActions r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D23818

--HG--
extra : moz-landing-system : lando
2019-03-18 15:25:51 +00:00
Sebastian Hengst 757f55aa2c Bug 1535666 - Explicitly turn on new cert error pages in browser_aboutCertError_noSubjectAltName.js to let it pass on beta r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D23728

--HG--
extra : moz-landing-system : lando
2019-03-18 15:27:16 +00:00
David Walsh a6b375e4cc Bug 1536114 - Update columnn breakpoint colors for debugger r=jlast
This is a clone of the original column breakpoints color patch.  This time it was created with gecko-dev and branched off of autoland/branches/default/tip.  Try:  https://treeherder.mozilla.org/#/jobs?repo=try&revision=51348054bb53779bf6264f91be4d806adf22ff82

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

--HG--
extra : moz-landing-system : lando
2019-03-18 15:19:56 +00:00
Erica Wright 5d103831b6 Bug 1522919 - Add histograms to count fingerprinting and cryptomining blocking states per page load. r=johannh
Add histograms to count fingerprinting and cryptomining blocking states per page load.

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

--HG--
extra : moz-landing-system : lando
2019-03-18 15:21:52 +00:00
Emilio Cobos Álvarez a6bbc0eb10 Bug 1395964 - Don't clear the previously painted image on intrinsic size changes. r=tnikkel
This is needed if we want to handle cases like the reporter's example or Google
Images. Rendering the old image upscaled is much better than not rendering
anything while it's loading.

I added a test for the reframing bit, but I don't know how to add a test for the
second bit.

Differential Revision: https://phabricator.services.mozilla.com/D23127
2019-03-18 16:20:34 +01:00
Emilio Cobos Álvarez 2884637218 Bug 1395964 - Make image loading changes not reframe. r=tnikkel
Bug 1472637 makes the decision of whether to construct an image frame not depend
on this, so this is sound.

We need to avoid reframing to fix this bug because otherwise we lose track of
the previously painted image.

Differential Revision: https://phabricator.services.mozilla.com/D23127
2019-03-18 16:18:52 +01:00
Emilio Cobos Álvarez 59c8f44032 Bug 1472637 - Don't display alt text while loading, to match other UAs. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D18518

--HG--
extra : moz-landing-system : lando
2019-03-18 15:15:13 +00:00
Vincent Lequertier 84776f249e Bug 1535092 - Make JSScript::argumentsOptimizationFailed return void instead of a bool;r=iain
Differential Revision: https://phabricator.services.mozilla.com/D23797

--HG--
extra : moz-landing-system : lando
2019-03-18 15:07:04 +00:00
Brad Werth a9e11d10e3 Bug 1501665 Part 13: Add a test of Responsive Design Mode resizing of meta viewports. r=gl
This test uses a Document with a fixed-width meta viewport. This test
simulates resizing the RDM pane from a wide landscape size to a small
square size, and back again. It does this again with meta viewport
support turned on.

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

--HG--
extra : moz-landing-system : lando
2019-03-18 15:00:17 +00:00
Brad Werth c491305528 Bug 1501665 Part 12: Update RDM viewport size reporting to make it consistent with zoomed presshells. r=gl
There are two viewports: the layout (or content) viewport, and the visual
viewport. This change ensures that we are both setting and checking the
visual viewport size, which is the size shown in the RDM control bar.
It is still possible to get the layout viewport with getContentSize().

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

--HG--
extra : moz-landing-system : lando
2019-03-18 15:00:57 +00:00
Brad Werth 58e5965fd4 Bug 1501665 Part 11: Add a new test of meta viewport with zero display width. r=botond
This test ensures that when meta viewport width is fixed, and a viewport
is requested with zero width, the viewport is assigned a height equal to
the scaled display height.

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

--HG--
extra : moz-landing-system : lando
2019-03-18 15:00:53 +00:00
Brad Werth e77eba40ba Bug 1501665 Part 10: Modify viewport resize zoom scaling to account for clamped zoom levels. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D21291

--HG--
extra : moz-landing-system : lando
2019-03-18 14:59:12 +00:00
Brad Werth 217c46ca45 Bug 1501665 Part 9: Early exit around an unnecessary call to UpdateVisualViewportSize. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D21287

--HG--
extra : moz-landing-system : lando
2019-03-18 14:58:49 +00:00
Brad Werth a4eaa45fd4 Bug 1501665 Part 8: Allow MVM::RequestReflow to adjust resolution, and do so when destroying the MVM. r=botond
Currently the MobileViewportManager leaves somethings permanently changed
even after it is destroyed: it may have changed the resolution of
the Document, and it may have set a fixed size for the visual viewport.
Both of these changes need to be un-done to return to normal display of
the Document.

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

--HG--
extra : moz-landing-system : lando
2019-03-18 14:58:31 +00:00
Brad Werth 1e6b91bfc7 Bug 1501665 Part 7: Add a new function to allow visual viewport size to be un-set. r=smaug
Once nsIPresShell::SetVisualViewportSize is called, we currently have
no way to restore the default viewport sizing behavior. This corrects that.
We need the default behavior to get correctly-placed scrollbars when
turning off meta viewport handling in Responsive Design Mode panes.

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

--HG--
extra : moz-landing-system : lando
2019-03-18 14:58:07 +00:00
Brad Werth 046007b94f Bug 1501665 Part 6: Fix an edge case in Document::GetViewportInfo to return css scaled sizes. r=botond
This fixes a problem in an edge case that we are evidently not testing.
If width is 0 and height is auto, we are currently setting height to
the unscaled (not CSS units) display height value.

In addition to this fix, this patch does two drive-by cleanups of code
that uses "defaultScale":

    The redundantly-defined defaultPixelScale is removed.
    The masking block-level definition of defaultScale is renamed to bestFitScale.

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

--HG--
extra : moz-landing-system : lando
2019-03-18 14:57:47 +00:00