654183 Commits

Author SHA1 Message Date
Cameron McCormack
faf479d778 Bug 1553731 - Part 1: Rename nsFrameIdList.h to FrameIdList.h. r=mats
Differential Revision: https://phabricator.services.mozilla.com/D32603

--HG--
rename : layout/generic/nsFrameIdList.h => layout/generic/FrameIdList.h
extra : moz-landing-system : lando
2019-06-01 08:03:32 +00:00
Gabriele Svelto
76021a664b Bug 1555917 - Exception handler and crash reporter client cleanup r=froydnj
This patch includes multiple changes cleaning up various aspects of the crash
reporter client and exception handler:

* Some Unix-specific code was moved out from the base crashreporter client
  code and into the appropriate platform implementation
* Functions used to open files in the crashreporter client now accept C++
  `std::ios` flags instead of unreadable booleans
* Useless character conversion routines were removed from the
  minidump-analyzer
* Crash annotations are not serialized into a huge string anymore every time
  they change. They are all written out individually during an exception.
* `WriteEscapedMozCrashReason()` uses the exception-safe `my_strlen()` instead
  of plain `strlen()`
* The Windows-specific DLL-blocklist shutdown was removed from the Linux &
  macOS Breakpad callbacks
* The `CrashReporterHost`, `CrashReporterClient` and
  `CrashReporterMetadataShmem` classes now take `nsACString` references
  instead of `nsCString` ones since they never modify their contents

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

--HG--
extra : moz-landing-system : lando
2019-05-31 21:54:03 +00:00
Henrik Skupin
4af7918854 Bug 1509877 - [raptor] Refactor mach script for code readability and PEP 8. r=perftest-reviewers,Bebe
Depends on D32801

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

--HG--
extra : moz-landing-system : lando
2019-05-31 14:43:39 +00:00
Henrik Skupin
cb6ce127a9 Bug 1509877 - [raptor] Allow the use of a custom binary for desktop browsers. r=sparky
Depends on D32800

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

--HG--
extra : moz-landing-system : lando
2019-05-31 00:04:35 +00:00
Henrik Skupin
7ab8eca5d6 Bug 1509877 - [raptor] Fix detection of Android as platform. r=Bebe
Differential Revision: https://phabricator.services.mozilla.com/D32800

--HG--
extra : moz-landing-system : lando
2019-05-31 14:43:05 +00:00
Hiroyuki Ikezoe
94908e024a Bug 1488871 - Add an explicit style flush to make sure the added textbox and popupset is styled before proceeding tests in browser_UrlbarInput_unit.js. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D22641

--HG--
extra : moz-landing-system : lando
2019-06-01 03:25:46 +00:00
Emilio Cobos Álvarez
39abf032fe Bug 1488871 - Don't flush layout in AsyncScrollPortEvent::Run. r=mats
I'd claim that we don't need it because, in order to enqueue the event, we
already need to have overflowed the event in a normal reflow.

For now this should not break anything (or anything that wasn't already racy
depending on when we paint).

The only reason the flush is there is according to roc is to decide whether to
fire the event, and because it needs the layout information:

  https://bugzilla.mozilla.org/show_bug.cgi?id=771822#c4

In practice, however, all the layout information we need we have already
computed by the time we post the event.

We don't expose the rects via the event details, which is what could get
out-of-date, so this patch could only mean that we fire the event slightly more
often in cases where people remove stuff from the DOM, right after we do layout
and the content has overflowed. But that's actually pretty unlikely.

This event in general is pretty problematic because it exposes when we do
layout and when we paint, which is not great. Its test coverage is also pretty
low (test_overflow_event.html, which of course still passes without this).

I still want to do this change first since it's trivial to back out if needed.

Then I'd want to change how it fires to match the scrolled area change event
(which would allow us to remove the WillPaintObserver stuff), after verifying
that chrome consumers are still fine with that, and then put behind a pref and
hide it from content, while we leave time for chrome consumers to migrate away
from it, and allow us to revert if something breaks.

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

--HG--
extra : moz-landing-system : lando
2019-06-01 03:25:46 +00:00
Hiroyuki Ikezoe
ae04cb8bb0 Bug 1488871 - Add an exception for the placeholder in the urlbar flickers to browser_windowopen.js. r=mconley
recordFrames has been wallpapering these flickers because the function ends up
calling FlushPendingNotifications in AsyncScrollPortEvent::Run() and we hadn't
noticed the wallpaper until we tried to remove the FlushPendingNotifications in
AsyncScrollPortEvent::Run().

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

--HG--
extra : moz-landing-system : lando
2019-06-01 03:26:36 +00:00
Emilio Cobos Álvarez
6bb1997f39 Bug 1488871 - Make browser_windowopen.js workaround account for the toolbar background. r=florian,mconley
With the other patch in this bug, we get two rects, not > 5.

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

--HG--
extra : moz-landing-system : lando
2019-06-01 03:26:36 +00:00
Boris Zbarsky
768b65d83a Bug 1555374. Use StaticPrefs accessors for various prefs that moved to StaticPrefs recently. r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D33060

--HG--
extra : moz-landing-system : lando
2019-06-01 02:29:26 +00:00
Nick Alexander
9366390a2b Bug 1555158 - Part 4: Default to -b firefox --skipHar in mach browsertime. r=dpalmeiro
Differential Revision: https://phabricator.services.mozilla.com/D33326

--HG--
extra : moz-landing-system : lando
2019-06-01 02:23:46 +00:00
Nick Alexander
2c85bd96b3 Bug 1555158 - Part 3: Make mach visualmetrics calculate contentfulSpeedIndex. r=dpalmeiro
Differential Revision: https://phabricator.services.mozilla.com/D33325

--HG--
extra : moz-landing-system : lando
2019-06-01 02:23:37 +00:00
Nick Alexander
7666bb7d95 Bug 1555158 - Part 2: Accept system ImageMagick on Linux. r=dpalmeiro
Differential Revision: https://phabricator.services.mozilla.com/D32923

--HG--
extra : moz-landing-system : lando
2019-06-01 02:23:22 +00:00
Nick Alexander
ae0bdfac53 Bug 1555158 - Part 1: Point mach browsertime --setup at mozilla/browsertime github repository. r=dpalmeiro
Key features in this commit:

- support for `contentfulSpeedIndex` visual metric
- support for the Gecko Window Recorder (Desktop only)
- support for the Gecko Profiler (Desktop only)
- partial support for GeckoView on Android

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

--HG--
extra : moz-landing-system : lando
2019-06-01 02:23:09 +00:00
Nick Alexander
3df6d400a1 Bug 1549781 - Ensure browsertime state path is created before use. r=dpalmeiro
Differential Revision: https://phabricator.services.mozilla.com/D32906

--HG--
extra : moz-landing-system : lando
2019-06-01 02:22:55 +00:00
Cosmin Sabou
b93ad0326f Backed out 3 changesets (bug 1553731) for build bustages on nsIFrame.h CLOSED TREE
Backed out changeset 90ed9808e1c0 (bug 1553731)
Backed out changeset b8669aa5a820 (bug 1553731)
Backed out changeset 0d0bf5d84a3c (bug 1553731)

--HG--
rename : layout/generic/FrameIdList.h => layout/generic/nsFrameIdList.h
2019-06-01 04:23:49 +03:00
Cameron McCormack
4ea9edb03a Bug 1553731 - Part 3: Make nsIFrame::Is___Frame() avoid reading from memory. r=mats
Differential Revision: https://phabricator.services.mozilla.com/D32605

--HG--
extra : moz-landing-system : lando
2019-06-01 01:04:54 +00:00
Cameron McCormack
652d7c4b22 Bug 1553731 - Part 2: Generate FrameIdList.h and FrameTypeList.h from Python. r=mats,glandium
Differential Revision: https://phabricator.services.mozilla.com/D32604

--HG--
extra : moz-landing-system : lando
2019-06-01 01:04:46 +00:00
Cameron McCormack
c4adc9d346 Bug 1553731 - Part 1: Rename nsFrameIdList.h to FrameIdList.h. r=mats
Differential Revision: https://phabricator.services.mozilla.com/D32603

--HG--
rename : layout/generic/nsFrameIdList.h => layout/generic/FrameIdList.h
extra : moz-landing-system : lando
2019-06-01 01:04:44 +00:00
Cameron McCormack
112bcc43db Bug 1554461 - Use an array to store nsContinuationStates when the number of them is low. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D32617

--HG--
extra : moz-landing-system : lando
2019-05-31 11:42:42 +00:00
Mike Shal
e52ded1092 Bug 1553065 - Move profile-use mozconfig info into common mozconfigs; r=firefox-build-system-reviewers,chmanchester
The 3-tier PGO builds used a separate mozconfig called 'profile-use' for
the final tier. This created a problem when it rode to beta, since the
same mozconfig was used for all trees, which meant we ended up with
nightly branding on beta builds.

With the PGO-enabling logic in common mozconfigs, we can enable it by
setting the MOZ_PGO_PROFILE_USE environment variable from the task
definition. All of the final-tier PGO builds now use the nightly, beta,
etc mozconfigs like before, so branding should be intact.

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

--HG--
extra : moz-landing-system : lando
2019-05-31 23:56:16 +00:00
Mike Shal
f5680f2fee Bug 1553065 - Use MOZ_LTO environment variable in mozconfig.unix; r=firefox-build-system-reviewers,chmanchester
This makes it consistent with bug 1530908 and 1536194.

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

--HG--
extra : moz-landing-system : lando
2019-05-31 23:56:12 +00:00
Steve Fink
544e52612a Bug 1167452 - Unbarrier lookup for delete r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D31960

--HG--
extra : moz-landing-system : lando
2019-05-31 23:34:34 +00:00
Steve Fink
57cd8badd1 Bug 1167452 - Make weakmap marking incremental r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D31959

--HG--
extra : moz-landing-system : lando
2019-05-31 23:34:11 +00:00
Steve Fink
6eee7b5e6f Bug 1167452 - Barrier weakmap operations and maintain weak keys table during incremental collections. r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D31958

--HG--
extra : moz-landing-system : lando
2019-05-31 23:33:48 +00:00
Cosmin Sabou
bb748896e1 Backed out changeset 118a2ee53436 (bug 1555150) for xpcshell failures on /test_css-properties-db.js. CLOSED TREE 2019-06-01 02:27:33 +03:00
Cosmin Sabou
85466f08fd Backed out 2 changesets (bug 1486042) for causing crashes @ servo_arc::Arc<T>::drop_slow. CLOSED TREE
Backed out changeset 5e85998c4d97 (bug 1486042)
Backed out changeset d083a8bd98ed (bug 1486042)
2019-06-01 02:19:19 +03:00
Micah Tigley
6530cdd60b Bug 1107456 - Part 2: Test that RDM's viewport's outer size values remain unaffected at different zoom levels. r=bradwerth
Depends on D32778

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

--HG--
extra : moz-landing-system : lando
2019-05-31 17:45:21 +00:00
Micah Tigley
387239448c Bug 1107456 - Part 1: While in RDM, scale the inner size values of the viewport using the device's full zoom to find its outer size. r=bradwerth,Ehsan
We want to ensure the RDM browser's outer window sizes are not affected as the page is zoomed in or out. In the context of RDM, the size of the browser window will be the same as the viewport so I believe it's safe to assume that the window's outer size will be equal to its inner size when the zoom level is set to 100%.

I found we can get this value by using the presentation context's `GetDeviceZullZoom` method and applying it to the inner sizes of the RDM viewport.

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

--HG--
extra : moz-landing-system : lando
2019-05-30 23:37:14 +00:00
Mark Striemer
9b169ea3a5 Bug 1551213 - Update commands on show in HTML about:addons r=mixedpuppy,kmag
Differential Revision: https://phabricator.services.mozilla.com/D33304

--HG--
extra : moz-landing-system : lando
2019-05-31 22:19:50 +00:00
Charlie Marlow
aa48f14906 Bug 1555150: adding support for CSS text underline offset to the style system r=emilio
support  for from-font listed in the CSS spec will be implemented in a later bug

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

--HG--
extra : moz-landing-system : lando
2019-05-31 21:09:11 +00:00
Dana Keeler
4a553d09d1 bug 1554152 - use the auto-clearing TLS context for connections with origin attributes from private contexts r=KevinJacobs
PSM has two instances of TLS bookkeeping structures ("SharedSSLState"): a
"public" one for most connections and a "private" one that automatically clears
its state when the last private browsing context (usually a window) closes.
Since we moved to separating connections by origin attributes, the latter is
largely redundant because keying by origin attributes already separates
connections from different contexts, even when using the "public" shared TLS
state structure. However, it still has the advantage of clearing its state when
the last private browsing context closes. This patch updates the decision of
which SharedSSLState to use by taking into account origin attributes. That is,
if the origin attributes of the connection has a private browsing ID that isn't
the default (unset), we'll use the auto-clearing SharedSSLState. This has the
effect of auto-clearing cached client auth certificate state for private
contexts when the last private browsing window closes. It also clears
accumulated TLS intolerance state in the private context, but that isn't as
relevant any more since we don't do TLS fallback by default.

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

--HG--
extra : moz-landing-system : lando
2019-05-31 21:59:10 +00:00
Jason Orendorff
d5499f2ad6 Bug 1543590 - Don't crash trying to fire a dead frame's onPop handler. r=jimb
Mutating Debugger state between the time a callback-triggering event is
reported to js::Debugger::onSomeEventSlowPath and the time the
callback is actually called can invalidate assumptions, and multiple Debuggers
are a way to do that, part 183.

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

--HG--
extra : moz-landing-system : lando
2019-05-31 22:11:33 +00:00
Emilio Cobos Álvarez
21d5c25734 Bug 1553769 - Make nsIWidget::SetFocus infallible, and make it take an enum class. r=NeilDeakin
Only gtk returns failure ever, and nobody checks the result anyway.

Use an enum class so that it's clear from the caller what it means.

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

--HG--
extra : moz-landing-system : lando
2019-05-31 22:13:56 +00:00
Tomislav Jovanovic
e17e958ced Bug 1514809 - Enable userScripts API on release by default r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D33356

--HG--
extra : moz-landing-system : lando
2019-05-31 22:05:17 +00:00
Cosmin Sabou
6095e3c3c4 Backed out changeset 69f10997c98f (bug 1555771) for build bustages. CLOSED TREE 2019-06-01 01:13:36 +03:00
Jared Wein
7a6ab18537 Bug 1556050 - Keep the login-list header visible while scrolling the list. r=_6a68
Differential Revision: https://phabricator.services.mozilla.com/D33324

--HG--
extra : moz-landing-system : lando
2019-05-31 21:18:25 +00:00
Jared Wein
0043cfc344 Bug 1556045 - Revealing a password then selecting another login should reset the reveal-checkbox state. r=_6a68
Differential Revision: https://phabricator.services.mozilla.com/D33321

--HG--
extra : moz-landing-system : lando
2019-05-31 21:18:28 +00:00
Jared Wein
971ba041d1 Bug 1555957 - Saving and deleting a stored login should exit the 'edit' mode. r=_6a68
Differential Revision: https://phabricator.services.mozilla.com/D33271

--HG--
extra : moz-landing-system : lando
2019-05-31 21:19:54 +00:00
Edouard Oger
d94afcd4dc Bug 1555771 - Update Sync and FxA illustrations. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D33234

--HG--
extra : moz-landing-system : lando
2019-05-31 21:23:19 +00:00
Emilio Cobos Álvarez
80e62fe4db Bug 1555944 - Make nsIContent::GetBindingParent return an element. r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D33308
2019-05-31 23:31:59 +02:00
Emilio Cobos Álvarez
6ada67c323 Bug 1555216 - Cache owner doc in the BindContext. r=bzbarsky
And use it to avoid some pointer chases per the review comments of D32949.

Differential Revision: https://phabricator.services.mozilla.com/D33288
2019-05-31 23:31:57 +02:00
Emilio Cobos Álvarez
abecd6b5f9 Bug 1555216 - Make CharacterData::BindToTree and Element::BindToTree more parallel. r=bzbarsky
They're supposed to be, but they have diverged quite a bit...

This unifies them again.

Depends on D32949

Differential Revision: https://phabricator.services.mozilla.com/D32950
2019-05-31 23:31:55 +02:00
Emilio Cobos Álvarez
6917a38081 Bug 1555216 - Change the signature of BindToTree to be (BindContext&, nsINode& aParentNode). r=bzbarsky
BindContext was going to have way more information at first, but then I realized
that most of the things I wanted to know were basically a flag away using the
parent node.

Still I think it's worth it, now experimenting with BindToTree will only mean
adding a field to a struct that's included from a couple cpp files, instead of a
massive pain.

I also think this is clearer, and doing this highlights quite a few
inconsistencies in our code which I've left untouched, but commented with
FIXMEs.

Steps are:

$ for file in $(rg 'nsresult BindToTree\(' | cut -d : -f 1 | sort | uniq); do sed -i 's#nsresult BindToTree(Document\* aDocument, nsIContent\* aParent,#nsresult BindToTree(BindContext\&, nsINode\& aParent)#g' $file; done
$ for file in $(rg 'nsresult BindToTree\(' | cut -d : -f 1 | sort | uniq); do sed -i 's#                      nsIContent\* aBindingParent) override#override#g' $file; done
$ for file in $(rg '::BindToTree\(' | cut -d : -f 1 | sort | uniq); do sed -i 's#::BindToTree(Document\* aDocument, nsIContent\* aParent,#::BindToTree(BindContext\& aContext, nsINode\& aParent)#g' $file; done
$ for file in $(rg '::BindToTree\(' | cut -d : -f 1 | sort | uniq); do sed -i 's#nsIContent\* aBindingParent)##g' $file; done
$ for file in $(rg '::BindToTree\(' | cut -d : -f 1 | sort | uniq); do sed -i 's#::BindToTree(aDocument, aParent, aBindingParent)#::BindToTree(aContext, aParent)#g' $file; done
$ ./mach clang-format

Then manual fixups.

Depends on D32948

Differential Revision: https://phabricator.services.mozilla.com/D32949
2019-05-31 23:31:52 +02:00
Mark Striemer
75dec50c7b Bug 1532724 - Part 2: Handle HTML about:addons options page in APIs r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D30731

--HG--
extra : moz-landing-system : lando
2019-05-31 16:21:02 +00:00
Mark Striemer
ce0c11236e Bug 1532724 - Part 1: Inline options browser for HTML about:addons details r=rpl,kmag
Differential Revision: https://phabricator.services.mozilla.com/D29787

--HG--
extra : moz-landing-system : lando
2019-05-31 14:05:53 +00:00
Jason Laster
59a1eb73d0 Bug 1552039 - filter breakpoints to the right of the line. r=davidwalsh
Differential Revision: https://phabricator.services.mozilla.com/D33012

--HG--
extra : moz-landing-system : lando
2019-05-31 21:15:43 +00:00
Simon Fraser
fb0607bb62 Bug 1554733 Use robustcheckout for periodic file udpates r=tomprince
Differential Revision: https://phabricator.services.mozilla.com/D32843

--HG--
extra : moz-landing-system : lando
2019-05-30 19:55:32 +00:00
ffxbld
ac2e3743d0 No Bug, taskcluster/docker/funsize-update-generator pipfile-update. r=sfraser
Differential Revision: https://phabricator.services.mozilla.com/D33467

--HG--
extra : moz-landing-system : lando
2019-06-03 10:33:38 +00:00
Andrea Marchesini
08a835687c Bug 1554847 - Improve cross-origin checks in canvas API - Fix WPT, r=annevk
Differential Revision: https://phabricator.services.mozilla.com/D32794

--HG--
extra : moz-landing-system : lando
2019-06-03 09:55:25 +00:00