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

666971 Коммитов

Автор SHA1 Сообщение Дата
Drew Willcoxon 292a6bb2ce Bug 1575038 - Quantumbar: Record engagement event telemetry when openViewOnFocus is triggered without mouse clicks. r=dao
We need to start engagement event recording when the view opens due to `openViewOnFocus`. We already do for mouse clicks since we call `engagementEvent.start` from `_on_mousedown`. But we don't for the Ctrl/Command-L key shortcut. The shortcut command calls `openLocation` in browser.js, which calls `gURLBar.startQuery` but not `engagementEvent.start`.

Every time we call `engagementEvent.start`, we do it before calling `input.startQuery`. The one exception is in `input._on_drop` because there we just handle the dropped value directly instead of starting a new query with it.

The inverse is also mostly true, i.e., every time we call `input.startQuery`, we also call `engagementEvent.start`. The three exceptions are: in UITour (where it looks like we should be calling `urlbar.search` instead), in `UrlbarInput` after picking a keyword offer result, and in `openLocation` in browser.js (mentioned above). So really the only valid place is after picking a keyword entry.

So, it makes sense to move `engagementEvent.start()` into `input.startQuery` so that callers don't have to call it. I added an `event` param to `startQuery`, since `engagementEvent.start` needs one. I considered removing that need. It's possible, but then we would need a way to avoid calling `engagementEvent.start` in the keyword offer case, so `startQuery` would need something like a `suppressEngagementEvent` param. `event` basically functions as that, so I left it.

Another thing to point out about this patch is that I chose to record a "typed" value when the pageproxystate is invalid and the view opens due to `openViewOnFocus`. The view does not show the user's top sites in that case, so "topsites" seems wrong.

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

--HG--
extra : moz-landing-system : lando
2019-08-22 14:50:42 +00:00
Sebastian Streich 5c3cba344d Bug 1505412 - Skip CSP-Nonce check for CSP-Ro+Redirected Channels r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D36916

--HG--
extra : moz-landing-system : lando
2019-08-22 15:23:17 +00:00
tanhengyeow 414d88b93e Bug 1575254 - WebSocket Inspector Test: Filtering using the dropdown menu. r=Honza
Test for filtering messages using the dropdown menu.

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

--HG--
extra : moz-landing-system : lando
2019-08-22 14:44:42 +00:00
Masayuki Nakano 3822de5442 Bug 1574852 - part 9: Move `HTMLEditRules::CreateStyleForInsertText()` to `HTMLEditor` r=m_kato
Differential Revision: https://phabricator.services.mozilla.com/D42780

--HG--
extra : moz-landing-system : lando
2019-08-22 07:33:41 +00:00
Lee Salzman abec95ddc1 Bug 1571838 - Backed out changeset a6f3fd30a0a7 (bug 1443181). r=jbonisteel
Differential Revision: https://phabricator.services.mozilla.com/D43080

--HG--
extra : moz-landing-system : lando
2019-08-22 15:15:08 +00:00
Mike Conley 8e0abb2869 Bug 1573279 - Add a preference to control the Picture-in-Picture toggle to about:preferences. r=mstriemer,fluent-reviewers,flod
The preference is only exposed if media.videocontrols.picture-in-picture.enabled is set
to true.

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

--HG--
extra : moz-landing-system : lando
2019-08-22 15:01:02 +00:00
Jon Coppeard 3985fb3dc9 Bug 1575801 - Move all GC scheduling method definitions to new Scheduling.cpp file r=allstarschh
This is just code motion, there shouldn't be any change to functionality.

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

--HG--
extra : moz-landing-system : lando
2019-08-22 12:50:33 +00:00
lloan f30cf2008f Bug 1575181 - Clearing search output when clearing the input. r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D42797

--HG--
extra : moz-landing-system : lando
2019-08-22 14:27:50 +00:00
Gabriele Svelto 303c5ce8d0 Bug 1566855 - Submit incomplete crashes by synthesizing a minimal .extra file with sensible crash annotations r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D42575

--HG--
rename : toolkit/crashreporter/test/browser/browser_aboutCrashesResubmit.js => toolkit/crashreporter/test/browser/browser_aboutCrashesIncomplete.js
extra : moz-landing-system : lando
2019-08-20 20:54:35 +00:00
Botond Ballo 6faa60ff7c Bug 1575498 - Null-check state->mParent in GetStateForRoot(). r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D42909

--HG--
extra : moz-landing-system : lando
2019-08-22 07:15:52 +00:00
Cosmin Sabou 8b02e5fb07 Backed out 5 changesets (bug 1575055) for xpcshell failures on js/CompileOptions.h. CLOSED TREE
Backed out changeset 6ba35efeddf6 (bug 1575055)
Backed out changeset 6039cf3a63f0 (bug 1575055)
Backed out changeset aa3a237d49d8 (bug 1575055)
Backed out changeset aa9f3f8f1f2c (bug 1575055)
Backed out changeset 400ea400fba2 (bug 1575055)
2019-08-22 17:08:22 +03:00
Emilio Cobos Álvarez cf63cf46ad Bug 1572252 - Properly null-check a variable in debug-only code.
Differential Revision: https://phabricator.services.mozilla.com/D43054

--HG--
extra : moz-landing-system : lando
2019-08-22 13:05:44 +00:00
ffxbld 409e5b7a75 No Bug, mozilla-central repo-update HSTS HPKP blocklist remote-settings - a=repo-update r=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D43052

--HG--
extra : moz-landing-system : lando
2019-08-22 13:43:50 +00:00
tanhengyeow 5e069e954d Bug 1575329 - WebSocket Inspector Test: Clear frames. r=Honza
Test for clearing frames.

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

--HG--
extra : moz-landing-system : lando
2019-08-22 07:16:20 +00:00
Jan de Mooij 9a25fb72c5 Bug 1575470 - Move icache flushing code to Architecture-*.h/cpp files. r=tcampbell,lth
This makes it easier to see the implementation for a particular platform
without getting confused by code for other platforms.

The SPARC code was deleted because we don't have a JIT backend for it anymore.

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

--HG--
extra : moz-landing-system : lando
2019-08-22 13:37:03 +00:00
Christian Holler 1577bd20a8 Bug 1575493 - Create a RequestContext in the HTTP fuzzing target. r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D42815

--HG--
extra : moz-landing-system : lando
2019-08-22 13:38:16 +00:00
Thomas Wisniewski d1694a0fd4 Bug 1564594 - Add an Enhanced Search webcompat site patch r=nalexander,denschub
This patch ultimately overrides the user-agent which Fennec users send to Google Search pages, choosing a phone- or tablet-specific UA as appropriate.

It involves adding four new metadata keys to the webcompat addon's metadata for user-agent overrides: blocks, permanentPref, experiment, telemetryKey:

- "blocks" specifies URLs for which any requests should be aborted. This allows us to block the Google service worker for now, as it has caused "content corrupted" issues in the past with other enhanced search addons (see https://github.com/wisniewskit/google-search-fixer/issues/1).
- "permanentPref" specifies an about:config preference, which dictates whether the injection is used. Users may set this to `false` to disable the injection outright, and permanently; `true` or `undefined` values allow the injection to function normally.
- "experiment" specifies the name of the experiment this feature is optionally gated behind. Only a Fennec-specific implementation is provided in this patch. The implementation simply queries Switchboard to determine if the experiment is active.
- "telemetryKey" specifies which telemetry key should be flipped to "true" when this injection runs. We will use this to note whether enhanced search has actually been enabled for this profile. Only a Fennec-specific implementation is given in this patch, which actually just sets a Fennec Shared Preference, which Fennec's core telemetry ping later reads in Java to know what the ping should contain.

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

--HG--
extra : moz-landing-system : lando
2019-08-21 20:32:27 +00:00
Nathan Froyd 70244dab64 Bug 1575544 - make scalar info constructors constexpr; r=chutten
Marking these constructors as `constexpr` encourages the compiler to
constant-initialize most of the `gScalars` array, rather than generating
a giant glob of code to move the (constant) values into the array at
runtime.

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

--HG--
extra : moz-landing-system : lando
2019-08-21 17:49:02 +00:00
Jan Varga 9f906cd7c4 Bug 1563023 - Part 1: Implement per client usage tracking; r=asuth
This patch adds a fixed-size array of client usages to OriginInfo and modifies
quota tracking APIs to require the client type to be passed in.
A new method ResetUsageForClient is implemented. The method is used during
client-specific origin clearing. ResetUsageForClient is much faster than calling
GetUsageForOrigin and calling DecreaseUsageForOrigin after that.
LockedUsage now has an assertion that verifies that the total sum of client
usages matches total origin usage. This method should be called instead of
touching mUsage directly.
A new assertion is added to GetQuotaObject which verifies that passed file
belongs to the given persistence type, origin, and client.

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

--HG--
extra : moz-landing-system : lando
2019-08-22 13:06:48 +00:00
Ted Campbell bb991b5d3a Bug 1575055 - Avoid duplicating CompileOptions constructor code. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D42562

--HG--
extra : moz-landing-system : lando
2019-08-22 13:08:03 +00:00
Ted Campbell a48949b99c Bug 1575055 - Remove redundant overrides in ReadOnlyCompileOptions. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D42561

--HG--
extra : moz-landing-system : lando
2019-08-22 13:08:01 +00:00
Ted Campbell 179e9bf7ab Bug 1575055 - Unify JS::CompileOptions::canLazilyParse and forceFullParse_. r=jandem
If either the Realm or the request needs full-parsing, we disable lazy
parsing.

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

--HG--
extra : moz-landing-system : lando
2019-08-22 13:07:57 +00:00
Ted Campbell 3cab8e70c6 Bug 1575055 - Privatize js::CompileOptions::strictMode. r=jandem
We already have an accessor to make sure this is can only be set but not
cleared so hide the underlying storage.

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

--HG--
extra : moz-landing-system : lando
2019-08-22 13:08:10 +00:00
Ted Campbell 6e9b305ee3 Bug 1575055 - Cleanup CompileOptions::setIntroductionInfo. r=jandem
The hasIntroductionInfo flag is equivalent to checking for the existance
introducerFilename so use that instead. Also remove unused setter for
the introducer script.

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

--HG--
extra : moz-landing-system : lando
2019-08-22 13:07:53 +00:00
Masayuki Nakano 7ed950a31c Bug 1574852 - part 8: Move `HTMLEditRules::WillInsert()` to `HTMLEditor` r=m_kato
Differential Revision: https://phabricator.services.mozilla.com/D42778

--HG--
extra : moz-landing-system : lando
2019-08-22 07:08:19 +00:00
Ehsan Akhgari a28e327a39 Bug 1572271 - Part 2: Increase the timeout of mochitest-browser-chrome on Windows debug to 90 minutes; r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D42988

--HG--
extra : moz-landing-system : lando
2019-08-22 01:58:38 +00:00
Ehsan Akhgari c5fe8bca85 Bug 1572271 - Part 1: Force a GC during the cleanup of antitracking tests since there is not enough idle time between these tests for GCs to kick in naturally; r=baku
This prevents a whole host of OOM issues from occurring intermittently
when running these tests.

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

--HG--
extra : moz-landing-system : lando
2019-08-22 00:32:24 +00:00
Luca Greco ef1c0b40d8 Bug 1574431 - Preserve installTelemetryInfo when rebuilding the DB from the addons manifest files. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D42281

--HG--
extra : moz-landing-system : lando
2019-08-22 12:22:31 +00:00
Noemi Erli 1353cb7336 Backed out 5 changesets (bug 1575055) for causing build bustages in mozJSComponentLoader.cpp CLOSED TREE
Backed out changeset e29819477913 (bug 1575055)
Backed out changeset f770e1398276 (bug 1575055)
Backed out changeset 3ee4fd0e20e0 (bug 1575055)
Backed out changeset 51f0929a5c8d (bug 1575055)
Backed out changeset 45f0e989e56e (bug 1575055)
2019-08-22 15:15:16 +03:00
Ted Campbell 64ba0d5e30 Bug 1575055 - Avoid duplicating CompileOptions constructor code. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D42562

--HG--
extra : moz-landing-system : lando
2019-08-22 11:59:42 +00:00
Ted Campbell 094cb37502 Bug 1575055 - Remove redundant overrides in ReadOnlyCompileOptions. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D42561

--HG--
extra : moz-landing-system : lando
2019-08-21 16:17:03 +00:00
Ted Campbell e43da611d4 Bug 1575055 - Unify JS::CompileOptions::canLazilyParse and forceFullParse_. r=jandem
If either the Realm or the request needs full-parsing, we disable lazy
parsing.

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

--HG--
extra : moz-landing-system : lando
2019-08-22 08:25:09 +00:00
Ted Campbell cc0b0ce09c Bug 1575055 - Privatize js::CompileOptions::strictMode. r=jandem
We already have an accessor to make sure this is can only be set but not
cleared so hide the underlying storage.

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

--HG--
extra : moz-landing-system : lando
2019-08-22 11:58:13 +00:00
Ted Campbell 18ba55b0b4 Bug 1575055 - Cleanup CompileOptions::setIntroductionInfo. r=jandem
The hasIntroductionInfo flag is equivalent to checking for the existance
introducerFilename so use that instead. Also remove unused setter for
the introducer script.

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

--HG--
extra : moz-landing-system : lando
2019-08-21 16:16:41 +00:00
Tim Huang 02045f09e3 Bug 1574930 - Part 3: Add a test case for making sure that the track counter displays properly and fix an issue for BrowserTestUtils.waitForAttribute(). r=nhnt11,johannh
This patch adds a test case to check the visibility of the track counter
is correct in different situations, including zero tracker, one tracker
and multiple trackers.

Also, this patch fixes an issue that the
BrowserTestUtils.waitForAttributes() won't work if the waiting
attributes doesn't have a value or has an empty string as its value.
We check the value of the observing attribute to verify if it is
existing, however an empty string will be treated as a false, so it
won't pass the check if the attribute doesn't have a value. Hence, we
should use hasAttribute() instead of getAttribute() to check the
existence of the attribute.

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

--HG--
extra : moz-landing-system : lando
2019-08-22 09:48:59 +00:00
Tim Huang 9fb9109290 Bug 1574930 - Part 2: Fix the issue the the number of blocked trackers is still shown if the count is zero. r=nhnt11
By only hiding the tracker counter when the tracker counter is zero and
show the counter always other than that. By doing so,  the counter
would be shown properly according the tracker number.

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

--HG--
extra : moz-landing-system : lando
2019-08-22 09:34:21 +00:00
Tim Huang e127d3cf82 Bug 1574930 - Part 1: Use the app locale for the tracker counter number in protections panel. r=nhnt11,Ehsan
We use the locale of the application to show the number of the trakcer
counter.

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

--HG--
extra : moz-landing-system : lando
2019-08-21 09:08:56 +00:00
Masayuki Nakano ed5707df5b Bug 1574852 - part 7: Get rid of `HTMLEditRules::ClearCachedStyles()` r=m_kato
It's declared, but not defined.

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

--HG--
extra : moz-landing-system : lando
2019-08-22 06:03:52 +00:00
Masayuki Nakano f135e00456 Bug 1574852 - part 6: Move `HTMLEditRules::CacheInlineStyles()` to `HTMLEditor` r=m_kato
Differential Revision: https://phabricator.services.mozilla.com/D42776

--HG--
extra : moz-landing-system : lando
2019-08-22 05:13:50 +00:00
Henri Sivonen 8ff12d0550 Bug 1575769 - Link jsrust to standalone SpiderMonkey unconditionally. r=bbouvier
Differential Revision: https://phabricator.services.mozilla.com/D43015

--HG--
extra : moz-landing-system : lando
2019-08-22 09:39:29 +00:00
Cosmin Sabou 3ab9ae7fb3 Bug 1425175 - Adjust test expectations. a=test-only 2019-08-22 13:41:13 +03:00
Christian Holler a5c67a2bba Bug 1567170 - Avoid thread leak in media fuzzing target. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D41719

--HG--
extra : moz-landing-system : lando
2019-08-22 10:29:29 +00:00
sotaro c423c98aca Bug 1557858 - Add multiple WebRenderBridgeParents support in WebRenderImageHost r=nical
Uses wr::PipelineId to identify user of WebRenderImageHost.

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

--HG--
extra : moz-landing-system : lando
2019-08-22 10:20:02 +00:00
Emilio Cobos Álvarez 6b8d2e3f18 Bug 1574499 - nsWebBrowser::mIsActive / mActivating seem dead. r=farre
Differential Revision: https://phabricator.services.mozilla.com/D42314

--HG--
extra : moz-landing-system : lando
2019-08-21 17:28:05 +00:00
arthur.iakab 78189c52eb Merge mozilla-central to autoland 2019-08-22 12:59:31 +03:00
arthur.iakab fce05e83d9 Merge inbound to mozilla-central a=merge
--HG--
extra : amend_source : ded5891c5b5c9f36755115cb34365e117a63b2dd
2019-08-22 12:52:11 +03:00
Cosmin Sabou a5e3e00d01 Bug 1571583 - Disable test_urgent_start.html on mac debug cause of leaks. r=jmaher 2019-08-22 10:02:17 +03:00
Landry Breuil ed949fb424 Bug 1564897 - replace remaining dots by underscores when formatting libxul_list r=glandium 2019-08-22 09:00:41 +03:00
Masayuki Nakano ab4e7103b0 Bug 1574852 - part 5: Move `HTMLEditRules::ReapplyCachedStyles()` to `HTMLEditor` r=m_kato
Differential Revision: https://phabricator.services.mozilla.com/D42775

--HG--
extra : source : 6456b7a6cc679d744637e639d37cb73e795c1357
2019-08-22 05:12:28 +00:00
Brian Hackett 85deb303e4 Bug 1572280 Part 3 - Reparse sources with GC'ed scripts to get all breakpoint positions, r=loganfsmyth.
Depends on D41127

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

--HG--
extra : moz-landing-system : lando
2019-08-22 00:05:23 +00:00