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

713337 Коммитов

Автор SHA1 Сообщение Дата
Julian Descottes 30d3c6963b Bug 1641796 - Add a debugger test for service worker sources on page reload r=jlast
Depends on D79053

Differential Revision: https://phabricator.services.mozilla.com/D79059
2020-06-16 07:56:14 +00:00
Julian Descottes 072c5a72e7 Bug 1641796 - Add tests for serviceworker navigation in target list r=ochameau
Depends on D79465

Differential Revision: https://phabricator.services.mozilla.com/D79053
2020-06-16 07:55:18 +00:00
Julian Descottes 10c6ab83ff Bug 1641796 - Add a flag to disable service worker target destruction on navigation r=ochameau
Depends on D77425

Differential Revision: https://phabricator.services.mozilla.com/D79465
2020-06-16 07:54:58 +00:00
Julian Descottes f0287cc47b Bug 1641796 - Emit onTargetDestroyed/Available for serviceworker targets when navigating with localTab toolbox r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D77425
2020-06-16 07:54:40 +00:00
Andy Wingo ef7070f255 Bug 1645820 - Mark MWasmStackResult as being a call result capture r=lth
Flag was missing, as MWasmStackResult doesn't inherit from
MWasmResultBase.

Depends on D79698

Differential Revision: https://phabricator.services.mozilla.com/D79699
2020-06-16 03:11:04 +00:00
Kershaw Chang d4338024af Bug 1640105 - Don't initialize user agent components in socket process r=dragana
Since system info service may not be available in socket process, user agent components should be initialized in parent process only.

Differential Revision: https://phabricator.services.mozilla.com/D79153
2020-06-15 18:14:29 +00:00
Kershaw Chang bd91b973bb Bug 1640105 - Don't launch socket process during shutdown r=dragana
Depends on D77303

Differential Revision: https://phabricator.services.mozilla.com/D77304
2020-06-15 18:14:29 +00:00
Kershaw Chang e1aaf7e9c2 Bug 1640105 - Initialize necessary services eariler r=dragana
Initialize http handler, DNS service, and IOService earlier to avoid crash.

Differential Revision: https://phabricator.services.mozilla.com/D77303
2020-06-09 14:44:19 +00:00
Andy Wingo f39c6a22f7 Bug 1645819 - Fix Ion spew for WebAssembly functions r=lth
CompileInfo::script_ is null for wasm, so avoid calling info.filename()
/ info.line() in that case.

Example backtrace:

  js::BaseScript::sourceObject (this=0x0)
  js::BaseScript::scriptSource (this=0x0)
  js::BaseScript::filename (this=0x0)
  js::jit::CompileInfo::filename (this=0x7ffec6422618)
  js::jit::DumpMIRExpressions

Differential Revision: https://phabricator.services.mozilla.com/D79698
2020-06-16 03:08:54 +00:00
Coroiu Cristina b1dfdc31c5 Backed out 2 changesets (bug 1622212) for build bustage at /dom/base/nsGlobalWindowOuter.cpp on a CLOSED TREE
Backed out changeset 9ab804814442 (bug 1622212)
Backed out changeset 07a08a71e259 (bug 1622212)
2020-06-16 10:38:40 +03:00
Simon Giesecke 784bda2d9b Bug 1645450 - Remove elements by index rather than searching in dom/base. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D79515
2020-06-15 17:04:40 +00:00
Simon Giesecke 14c8c23125 Bug 1645450 - Remove elements by index rather than searching in dom/audiochannel. r=baku
Differential Revision: https://phabricator.services.mozilla.com/D79514
2020-06-15 17:04:27 +00:00
Simon Giesecke 1e42310e51 Bug 1645450 - Remove elements by index rather than searching in docshell. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D79513
2020-06-15 17:04:20 +00:00
Simon Giesecke 08dfb8127e Bug 1645447 - Add ForwardIterator::Remove and EndLimitedIterator::Remove functions. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D79512
2020-06-15 17:04:08 +00:00
Dimi Lee 87a2eb06f5 Bug 1622212 - P2. Add a testcase r=baku,englehardt
Depends on D78634

Differential Revision: https://phabricator.services.mozilla.com/D78635
2020-06-16 07:15:59 +00:00
Dimi Lee 805fdac0ad Bug 1622212 - P1. Always use ContentBlocking::ShouldAllowAccessFor to set mStorageAccessPermissionGranted flag r=baku
The mStorageAccessPermissionGranted variable determins the result of
HasStorageAccess API, which should sync with the result of the
ContentBlocking::ShouldAllowAccessFor.

This patch removes using nsGloWindowOuter's logic and alwasys use
ShouldAllowAccessFor while creating a new document.

Differential Revision: https://phabricator.services.mozilla.com/D78634
2020-06-16 07:15:52 +00:00
James Teh 9d14fdc961 Bug 1645731: Don't expose the autocomplete popup panel as an alert for accessibility. r=nchevobbe
There was already code to do this, but it was acting on a div instead of the XUL panel.

Differential Revision: https://phabricator.services.mozilla.com/D79635
2020-06-16 06:58:12 +00:00
Mark Hammond a04a30cd9c Bug 1645742 - ensure FxA has a push subscription as well as whether it has expired. r=rfkelly
Differential Revision: https://phabricator.services.mozilla.com/D79783
2020-06-16 05:53:45 +00:00
Johann Hofmann 2c1092dc68 Bug 1642899 - Consider entity allow lists for cookie purging. r=dimi,ewright
This commit is made a bit harder to understand by a couple of changes
that I felt were necessary to make:

- I refactored the code for purging a single origin into the maybePurgePrincipal function.
- I updated the logger to actually allow for different log levels (to get debug logging)

Differential Revision: https://phabricator.services.mozilla.com/D79386
2020-06-15 19:20:45 +00:00
Geoff Brown 64be5ecf18 Bug 1645888 - Make remotexpcshelltests.py py2/py3 compatible; r=bc
Resolve two py3 issues in remotexpcshelltests.py:
 - use six.iteritems() to iterate on the env dict
 - use 'wb' to create the log file
Some cleanup rides along (I couldn't resist).

Differential Revision: https://phabricator.services.mozilla.com/D79753
2020-06-16 03:50:24 +00:00
Lars T Hansen b06363cce6 Bug 1643653 - document the logic of wasm compiler and feature availability. r=bbouvier
High-level documentation for how compiler and feature selection are
used to compute compiler and feature availability.

Differential Revision: https://phabricator.services.mozilla.com/D78485
2020-06-16 03:33:36 +00:00
Severin c26d4965f3 Bug 1641412 - Pass all possible UNs/PWs to doorhanger;r=MattN,sfoster
Differential Revision: https://phabricator.services.mozilla.com/D77190
2020-06-16 02:43:43 +00:00
Drew Willcoxon 15284e839e Bug 1645511 - Improve the provider manager's provider.updateBehavior calls. r=mak
I considered wrapping `provider.tryMethod("updateBehavior", queryContext)` in a
promise in case there are implementations that aren't async or don't return a
promise. But there's only one implementation of `updateBehavior`, it's async,
and we probably won't end up with any more implementations, so for simplicity I
didn't.

Differential Revision: https://phabricator.services.mozilla.com/D79559
2020-06-16 01:09:26 +00:00
Drew Willcoxon 7024c06712 Bug 1640045 - Replace PlacesSearchAutocompleteProvider with UrlbarSearchUtils, remove its parseSubmissionURL function, and init the search service on the first query. r=mak
* Replace PlacesSearchAutocompleteProvider with UrlbarSearchUtils.
  * Move the module from toolkit to browser. The only consumers of
    PlacesSearchAutocompleteProvider are urlbar and UnifiedComplete.
  * I'd like to add functions to UrlbarUtils instead, but
    PlacesSearchAutocompleteProvider adds itself as an observer for search
    engine changes, and it keeps some state so that alias lookups are O(1). It
    has an init function to set that up. That's not quite as easy to do if I
    just added some functions to UrlbarUtils, and I think that O(1) lookups of
    aliases are worth keeping (vs. O(number of installed engines)), so I kept a
    separate module, now called UrlbarSearchUtils.
* Init the search service (via UrlbarSearchUtils) from
  UrlbarProvidersManager.startQuery so that every module involved in querying
  doesn't need to do it.
* Remove PlacesSearchAutocompleteProvider.currentEngine. Previous consumers can
  simply use Services.search directly now that the service is initialized early
  (see previous point).
* Remove PlacesSearchAutocompleteProvider.parseSubmissionURL. Here again
  consumers can use Services.search directly.

Differential Revision: https://phabricator.services.mozilla.com/D79244
2020-06-16 01:08:38 +00:00
Kriyszig a39858820c Bug 1637632 - Add browser tests for the CompatibilityActor r=mtigley,daisuke
Added browser test for CompatibilityActor to check consistency and
correctness.
Thse test include:
* Test for no issue
* Test for simple issue
* Test for invalid CSS rule
* Test for aliases
* Test for browser specific issues
* Test for multiple issues for same element

Differential Revision: https://phabricator.services.mozilla.com/D78956
2020-06-15 23:21:07 +00:00
Kriyszig 0d68d9f541 Bug 1637632 - Create a compatibility actor and connect it to Inspector's Compatibility panel r=mtigley,daisuke,devtools-backward-compat-reviewers
This patch adds a `CompatibilityActor` that calls the MDNCompatibility
library from the devtool server.
This patch exposes `_declarations` from the `StyleRuleActor` and the
a new function `formDeclaration` responsible for populating the
declarations property.
As a check for correctness, the patch replaces the `pageStyle.getApplied`
call in the Compatibility Panel on the client with `compatibility.getNodeCssIssues`
fetching the array of compatibility issues directly and removing the
dependency on MDNCompatibility library for client side computation of
compatibility issues.

Differential Revision: https://phabricator.services.mozilla.com/D77060
2020-06-10 09:09:00 +00:00
Nika Layzell 3002ab2ab5 Bug 1508306 - Part 2: Fix Large-Allocation tests for new changes, r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D78999
2020-06-15 23:24:09 +00:00
Nika Layzell cde53b3bec Bug 1508306 - Part 1: Migate the Large-Allocation handler to DocumentLoadListener, r=mattwoodrow,necko-reviewers,geckoview-reviewers,agi,valentin
This removes the diagnostic warnings which used to be logged when the
Large-Allocation header was present, but failed to switch into a
Large-Allocation process. Due to the low adoption of the header, this shouldn't
be too large of a problem, but we can look into re-adding the diagnostics if
needed in the future.

The new codepath no longer performs multiple network requests for
Large-Allocation resources, and now relies on the battle-tested
DocumentLoadListener codepath for process switching.

Differential Revision: https://phabricator.services.mozilla.com/D78998
2020-06-15 23:24:07 +00:00
Nika Layzell 5b6ea0f456 Bug 1640019 - Part 8: Remove unnecessary ASSERT_UNLESS_FUZZING when looking up CP, r=mattwoodrow
This assertion would spuriously fire if a content process died after its id was
taken.

Differential Revision: https://phabricator.services.mozilla.com/D78976
2020-06-15 23:24:05 +00:00
Nika Layzell c867d0930c Bug 1640019 - Part 7: Remove the unused 'navigateAndRestoreByIndex' method, r=Gijs
This method was used by GroupedSHistory for prerendering, and was missed when we
ripped out the incomplete code.

Differential Revision: https://phabricator.services.mozilla.com/D78975
2020-06-15 23:24:02 +00:00
Nika Layzell 24afe9ee3d Bug 1640019 - Part 6: Get rid of the rebuild_frameloaders pref, r=Gijs
This pref was enabled on all platforms, and the codepath which has it disabled
has been untested for some time. Remove the pref to simplify the code handling
the old case.

Differential Revision: https://phabricator.services.mozilla.com/D78974
2020-06-15 23:24:00 +00:00
Nika Layzell ae9eaf84c4 Bug 1640019 - Part 5: Remove a number of now-unused 'updateBrowserRemoteness' parameters, r=Gijs
These were only used by process switches triggered via DocumentChannel, which
now take the PROCESS_BEHAVIOR_STANDARD codepath.

Differential Revision: https://phabricator.services.mozilla.com/D78973
2020-06-15 23:23:58 +00:00
Nika Layzell 4a9372aa21 Bug 1640019 - Part 4: Get rid of PROCESS_BEHAVIOR_CUSTOM, r=mattwoodrow,Gijs,necko-reviewers,valentin
As tabbrowser now uses `PROCESS_BEHAVIOR_STANDARD`, `PROCESS_BEHAVIOR_CUSTOM` is
now unused. This patch removes that now-unused code.

Differential Revision: https://phabricator.services.mozilla.com/D78972
2020-06-15 23:23:56 +00:00
Nika Layzell 025dcf4a90 Bug 1640019 - Part 3: Also allow switching between remote and non-remote, r=mattwoodrow,necko-reviewers,valentin
Due to the PPDC process switching changes, we also handle switching between
remote and non-remote browsers with DocumentLoadListener. Adds support to
CanonicalBrowsingContext::ChangeFrameRemoteness to allow it to handle non-remote
browsers as well.

Differential Revision: https://phabricator.services.mozilla.com/D78971
2020-06-15 23:23:53 +00:00
Nika Layzell 0e74912c80 Bug 1640019 - Part 2: Use new process switch logic in tabbrowser, r=mattwoodrow,Gijs
Add a series of extra hooks and methods to allow tabbrowser to use the new
process switching codepath. This duplicates some of the logic from
`updateBrowserRemoteness` into event handlers.

Differential Revision: https://phabricator.services.mozilla.com/D78970
2020-06-15 23:23:46 +00:00
Nika Layzell 212943c862 Bug 1640019 - Part 1: Support toplevel process switches outside of tabbrowser, r=mattwoodrow
This new process switching behavior is only enabled for some browser elements,
which have specified a specific attribute. Turning this on for all browsers with
a `remote` attribute causes breakage in reftests.

The initial version does not handle switching from remote to parent or
vice-versa, that is covered in a later part.

Differential Revision: https://phabricator.services.mozilla.com/D78969
2020-06-15 23:23:43 +00:00
Bogdan Tara 74ca6cc819 Backed out changeset 26231891f004 (bug 1644943) for browser_backforward_userinteraction.js and browser_sessionHistory.js failures CLOSED TREE 2020-06-16 02:46:15 +03:00
Kagami Sascha Rosylight e9e26d8b3a Bug 1643072 - Enable symlink for non-JS files on Windows r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D78090
2020-06-15 22:22:50 +00:00
Scott 453b8005f9 Bug 1645870 - individual newtab stories targeting prefs for spocs or recs r=gvn
Differential Revision: https://phabricator.services.mozilla.com/D79748
2020-06-15 22:51:32 +00:00
Cosmin Sabou e936ad494b Backed out changeset 5777919cd214 (bug 1400317) for causing Windows MinGW all bustages on WinThemeData.cpp. CLOSED TREE 2020-06-16 02:08:51 +03:00
Andrew McCreight 208d20a42e Bug 1645908 - Eliminate gratuitous use of dom::danger::GetJSContext() in ForceShrinkingGC(). r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D79756
2020-06-15 22:37:10 +00:00
Matt Woodrow d075fa7e08 Bug 1644943 - Create single webprogress for CanonicalBrowsingContext, regardless of process the browser element contents are in. r=nika,kmag,Gijs
I think at this point we can remove all of RemoteWebProgressManager, some/all of the TabProgressListener recreations, and probably a bunch more.

Differential Revision: https://phabricator.services.mozilla.com/D79240
2020-06-15 22:01:34 +00:00
Michael Kaply f0a55de8c1 Bug 1645774 - Use proper textContent for section title. r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D79734
2020-06-15 22:01:19 +00:00
Gijs Kruitbosch 5704d91227 Bug 1645586 - picture in picture shortcut should no-op if disabled, r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D79710
2020-06-15 22:17:27 +00:00
Gijs Kruitbosch f4baf697be Bug 1645607 - avoid changing plain text documents when entering reader mode, r=jaws
The issue in this bug was caused by reader mode replacing the 'pre' tag
that we use to wrap plaintext documents with a series of paragraphs.
This change affected the original document. Instead, we can put the
paragraphs in a clone of the original document, which is fine for
reader mode and avoids altering the original.

Differential Revision: https://phabricator.services.mozilla.com/D79713
2020-06-15 22:03:09 +00:00
cbrewster 82df51ad78 Bug 1645281: Limit the size of box shadow render tasks r=gw,Bert
Differential Revision: https://phabricator.services.mozilla.com/D79593
2020-06-15 22:01:26 +00:00
Jason Orendorff 0c81b8bfee Bug 1599769 - Part 2: Update test262 tests. r=jwalden
The previous changeset made a change to test262-update.py. This changeset is
the result of running the script, like this:

    cd js/src/tests
    python test262-update.py --revision 4a8e49b3ca7f9f74a4cafe6621ff9ba548ccc353

The revision is taken from the first line of js/src/tests/test262/GIT-INFO; the
purpose of specifying that revision is to run the script again using the same
input, so that the output reflects only changes to the script itself, not new
tests.

Differential Revision: https://phabricator.services.mozilla.com/D76394
2020-06-15 16:56:58 +00:00
Jason Orendorff 033a5e6ba7 Bug 1599769 - Part 1: Ship Promise.any. r=jwalden.
Differential Revision: https://phabricator.services.mozilla.com/D76393
2020-06-15 21:57:04 +00:00
Jason Orendorff be9fb07ce4 Bug 1634847 - Handle creating a new generator Debugger.Frame from onPop. r=jwalden.
Differential Revision: https://phabricator.services.mozilla.com/D76392
2020-06-15 16:56:56 +00:00
Hiroyuki Ikezoe d427812e04 Bug 1645900 - Use AutoTArray for sampling animation values. r=boris
In the sampling methods, we do basically sample an animation value for each
CSS property other than transform-like properties.

Differential Revision: https://phabricator.services.mozilla.com/D79749
2020-06-15 21:50:06 +00:00