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

860 Коммитов

Автор SHA1 Сообщение Дата
Barret Rennie 40ef20ce28 Bug 1743404 - Add IOUtils::{Get,Set}WindowsFileAttributes r=nika
Differential Revision: https://phabricator.services.mozilla.com/D133835
2021-12-17 17:21:22 +00:00
Toshihito Kikuchi baa43db813 Bug 1743663 - Remove windowContext.hasActivePeerConnections. r=peterv
TabUnloader.jsm can directly call windowGlobal.hasActivePeerConnections(),
so windowContext.hasActivePeerConnections is not needed.

Differential Revision: https://phabricator.services.mozilla.com/D132654
2021-12-16 16:14:13 +00:00
Richa Sharma fca992af50 Bug 1470651 - Support cookieStoreId option in contentScripts.register r=rpl,robwu
Differential Revision: https://phabricator.services.mozilla.com/D124537
2021-12-13 12:30:26 +00:00
Alexandre Poirot 679bde75eb Bug 1740543 - Expose xpcom's GetErrorName() to JS. r=xpcom-reviewers,nika
This will help JS codebase decipher what a given nsresult refers to.

Differential Revision: https://phabricator.services.mozilla.com/D130879
2021-12-09 14:00:39 +00:00
Florian Quèze c27db31462 Bug 1744991 - add ChromeUtils.vsyncEnabled to allow checking from tests if vsync remained enabled, r=mstange.
Differential Revision: https://phabricator.services.mozilla.com/D133204
2021-12-09 11:27:40 +00:00
Norisz Fay 1b759d112f Backed out changeset 4628f9ff25a5 (bug 1740543) for causing build bustages on ErrorNames CLOSED TREE 2021-12-09 12:44:14 +02:00
Alexandre Poirot 2ecfb8077f Bug 1740543 - Expose xpcom's GetErrorName() to JS. r=xpcom-reviewers,nika
This will help JS codebase decipher what a given nsresult refers to.

Differential Revision: https://phabricator.services.mozilla.com/D130879
2021-12-09 10:02:53 +00:00
Csoregi Natalia 4bac4f56b0 Backed out changeset d847e5e30768 (bug 1470651) for failures on test_ext_contentScripts_register.js. CLOSED TREE 2021-12-07 16:09:50 +02:00
Richa Sharma 463122ddd5 Bug 1470651 - Support cookieStoreId option in contentScripts.register r=rpl,robwu
Differential Revision: https://phabricator.services.mozilla.com/D124537
2021-12-07 13:30:09 +00:00
Barret Rennie 83586dfc28 Bug 1741465 - Support reading files larger than UINT32_MAX if using a large enough offset r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D132262
2021-12-03 17:21:52 +00:00
Alexandru Michis f236a62bde Backed out changeset b6ebaaea0102 (bug 1741465) for causing bustages in IOUtils.cpp
CLOSED TREE
2021-12-01 23:42:21 +02:00
Barret Rennie d7de7c8631 Bug 1741465 - Support reading files larger than UINT32_MAX if using a large enough offset r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D132262
2021-12-01 20:35:21 +00:00
Mathew Hodson 691b1a0c53 Bug 1741548 - Add ignoreAbsent option to `IOUtils.getChildren` method. r=barret
Remove an incorrect comment.

Differential Revision: https://phabricator.services.mozilla.com/D131323
2021-11-25 10:45:55 +00:00
Barret Rennie 39e465e39d Bug 1739702 - Rename IOUtils.touch to IOUtils.setModificationTime r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D131957
2021-11-25 02:19:20 +00:00
Florian Queze d8095fad35 Bug 1742662 - Remove unused 'filename' field in the ChromeUtils.requestProcInfo results, r=gerald.
Differential Revision: https://phabricator.services.mozilla.com/D131952
2021-11-24 10:46:46 +00:00
Florian Queze b4944967c3 Bug 1742472 - Merge cpuKernel and cpuUser fields into cpuTime in the ChromeUtils.requestProcInfo results, r=gerald.
Differential Revision: https://phabricator.services.mozilla.com/D131835
2021-11-24 10:46:45 +00:00
Butkovits Atila 193530a2df Backed out changeset 2ebd54655436 (bug 1739702) for causing failres at test_ioutils_stat_set_modification_time.html. CLOSED TREE 2021-11-24 06:41:13 +02:00
Barret Rennie f310df5b88 Bug 1739702 - Rename IOUtils.touch to IOUtils.setModificationTime r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D131957
2021-11-24 03:52:14 +00:00
Toshihito Kikuchi 599a77edff Bug 1734099 - Never unload tabs with active RTCPeerConnection instances. r=peterv,jesup
This patch makes sure the Tab Unloading feature does not unload tabs that have
active peer connections not to disrupt browsing experience based on WebRTC peer
connections.

To enable JS code to access the number of active peer connections, this patch
moves `nsPIDOMWindowInner::mTotalActivePeerConnections` to `WindowGlobalParent`.

Differential Revision: https://phabricator.services.mozilla.com/D128761
2021-11-18 22:59:12 +00:00
Barret Rennie 0a42a75031 Bug 1723082 - Support reading files > INT32_MAX in IOUtils r=Gijs
Previously, if you attempted to read a file greater than INT32_MAX in size, we
would either fail to read the file (on release) or crash (on debug). This is
due to the implementation of _PR_MD_READ accepting an int32_t of bytes to read
instead of a uint32_t, which nsFileStream::Read accepts and passes on.

Differential Revision: https://phabricator.services.mozilla.com/D131161
2021-11-17 03:55:36 +00:00
Alexandru Michis 2d0c990efe Backed out 3 changesets (bug 1741247, bug 1723082, bug 1736175) for causing PathUtils.normalize failures.
CLOSED TREE

Backed out changeset 55165cf4b7bb (bug 1736175)
Backed out changeset 492f5ca3b592 (bug 1723082)
Backed out changeset ce199e98a0c5 (bug 1741247)
2021-11-17 03:12:07 +02:00
Barret Rennie 72b138b1d8 Bug 1723082 - Support reading files > INT32_MAX in IOUtils r=Gijs
Previously, if you attempted to read a file greater than INT32_MAX in size, we
would either fail to read the file (on release) or crash (on debug). This is
due to the implementation of _PR_MD_READ accepting an int32_t of bytes to read
instead of a uint32_t, which nsFileStream::Read accepts and passes on.

Differential Revision: https://phabricator.services.mozilla.com/D131161
2021-11-17 00:28:58 +00:00
Randell Jesup b257161e3a Bug 1738765: Process-isolate ServiceWorkers if they match an allow-list of sites r=nika,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D130113
2021-11-08 19:53:06 +00:00
Markus Stange df441c491f Bug 1726480 - Add IOUtils::OpenFileForSyncReading. r=dom-worker-reviewers,asuth
This exposes synchronous file reading to workers. It's intended to be used
by profiler symbolication.
The API only supports reading into an existing Uint8Array. This avoids
creating garbage, and minimizes copies.
It also keeps the file open so that it doesn't need to be reopened for
each read.

The implementation uses nsFileStream.

I first tried an implementation which used mmap + memcpy rather than read,
but it didn't work for files larger than 2GiB due to limitations in NSPR's
mmap support, and the profiler needs to read >2GiB files.
Specifically, the profiler sometimes needs to read
/System/Library/dyld/dyld_shared_cache_arm64e , which is 2.2GiB big on
macOS 11.5.

Differential Revision: https://phabricator.services.mozilla.com/D124207
2021-11-04 19:47:29 +00:00
Luca Greco ada0a324e1 Bug 1636629 - Log a more explicit error message on invalid redirects. r=asuth,mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D128736
2021-10-26 16:44:10 +00:00
Iulian Moraru a946af09ec Backed out 2 changesets (bug 1636629) for causing xpcshell failures on test_ext_permissions_api.js. CLOSED TREE
Backed out changeset 9791a5dc84d8 (bug 1636629)
Backed out changeset 8ec39d08c9af (bug 1636629)
2021-10-25 22:17:27 +03:00
Luca Greco ad6629602d Bug 1636629 - Log a more explicit error message on invalid redirects. r=asuth,mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D128736
2021-10-25 17:49:33 +00:00
Valentin Gosu 59ecb94eef Bug 1613629 - Show extra DNS flags in about:networking#dns r=nhnt11,fluent-reviewers,flod
The DNS cache will have a bunch of extra keys we use to separate entries
in the hashtable. If these flags are not displayed in about:networking it
will appear as though we have multiple entries for the same key in the cache,
which is not true. They will differ based on these extra flags/keys.

Differential Revision: https://phabricator.services.mozilla.com/D128888
2021-10-20 14:21:16 +00:00
Emilio Cobos Álvarez 1aa3a9e868 Bug 1736545 - WindowGlobal.getExistingActor can return null. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D128870
2021-10-19 13:04:19 +00:00
Daisuke Akatsuka 483cfde5a5 Bug 1678607: Make BookmarkTagsChanged event have tags. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D128328
2021-10-18 04:43:44 +00:00
Daisuke Akatsuka 4e72afc41d Bug 1678607: Implement a mechanism to fire bookmark-tags-changed event. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D128326
2021-10-18 04:43:44 +00:00
Alexandru Michis 5b0d89d8d6 Backed out 3 changesets (bug 1678607) for causing bc failures in browser_bookmark_add_tags.js
Backed out changeset bf20be578758 (bug 1678607)
Backed out changeset fd3fbf15e95d (bug 1678607)
Backed out changeset 2688fa3d2bc2 (bug 1678607)
2021-10-18 03:10:58 +03:00
Daisuke Akatsuka 3e6e360d62 Bug 1678607: Make BookmarkTagsChanged event have tags. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D128328
2021-10-17 22:47:37 +00:00
Daisuke Akatsuka ef8ed2e02d Bug 1678607: Implement a mechanism to fire bookmark-tags-changed event. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D128326
2021-10-17 22:47:36 +00:00
Luca Greco 73f6d61afa Bug 1730919 - Add 'Extension Suspend' profiler marker from ChannelWrapper::Suspend. r=florian,mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D125722
2021-10-11 13:26:28 +00:00
Florian Queze 19119e94a7 Bug 1734597 - Make about:processes fallback to cycle count to decide if a thread or process is active to workaround low CPU timing precision on Windows, r=dthayer,fluent-reviewers,flod.
Differential Revision: https://phabricator.services.mozilla.com/D127813
2021-10-11 12:46:28 +00:00
Daisuke Akatsuka 4ab0a903c6 Bug 1678627: Implement a mechanism to fire bookmark-time-changed event. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D125924
2021-10-07 22:10:20 +00:00
Daisuke Akatsuka a1a45ffa6a Bug 1678626: Implement a mechanism to fire bookmark-guid-changed event. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D125770
2021-10-05 00:53:46 +00:00
Daisuke Akatsuka dcae9cb128 Bug 1678626: Introduce PlacesBookmarkChanged class. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D125769
2021-10-05 00:53:45 +00:00
Daisuke Akatsuka e59acf8e6b Bug 1678624: Implement a mechanism to fire bookmark-url-changed event. r=mak
Depends on D103148

Differential Revision: https://phabricator.services.mozilla.com/D103883
2021-10-05 00:53:44 +00:00
Daisuke Akatsuka d246521ee5 Bug 1678623: Implement a mechanism to fire bookmark-title-changed event. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D103147
2021-10-01 12:01:29 +00:00
Dan Minor 7e6caf3eeb Bug 1642415 - Use metasource in FileSource; r=platform-i18n-reviewers,extension-reviewers,gregtatum,zombie
Differential Revision: https://phabricator.services.mozilla.com/D125239
2021-09-22 18:16:07 +00:00
Emily McDonough 4f6abc1d13 Bug 1721265 Part 2 - Send information about CSS page-size values to the print frontend through FinishPrintPreview r=emilio
This adds an optional paper orientation to PrintPreviewResultInfo populates it
from the CSS page size when finishing print preview. The value is then placed
in the PrintPreviewSuccessInfo to be sent to the frontend.

Differential Revision: https://phabricator.services.mozilla.com/D124248
2021-09-21 16:38:53 +00:00
Florian Quèze 3ba2c38074 Bug 1665318 - reduce the overhead of collecting memory information for about:processes, r=dthayer.
Differential Revision: https://phabricator.services.mozilla.com/D125729
2021-09-16 19:59:56 +00:00
Nika Layzell 537f680c5a Bug 1722880 - Part 2: Expose windowContext getter to JSWindowActors, r=smaug
This will be used by the Pdfjs actor to get isInBFCache

Differential Revision: https://phabricator.services.mozilla.com/D124099
2021-09-03 15:26:13 +00:00
Nika Layzell c525c65ff8 Bug 1722880 - Part 1: Add IsInBFCache to WindowContext, and make it non-SHIP compatible, r=smaug,necko-reviewers,dragana
This field will be useful to JS code such as JSWindowActors which need to be
able to detect when their WindowContext is no longer active.

Differential Revision: https://phabricator.services.mozilla.com/D124098
2021-09-03 15:26:13 +00:00
Andrew Creskey 46162554f6 Bug 1717920 - Add scrolling metrics to history metadata r=mossop,botond,edgar
Disabled by default, browser.places.interactions.enabled, this adds scrolling metrics (time spent scrolling and distance scrolled) to the history metadata.

Differential Revision: https://phabricator.services.mozilla.com/D120656
2021-09-02 14:11:56 +00:00
Matt Woodrow b8eef01e83 Bug 1708403 - Make resetting of scroll position for drawSnapshot opt-in. r=mstange,kmag
Differential Revision: https://phabricator.services.mozilla.com/D117613
2021-08-25 20:49:18 +00:00
criss bccf559d4b Backed out changeset 8868fe82dafd (bug 1708403) for causing failures on test_drawSnapshot_fixed.html. CLOSED TREE 2021-08-25 04:08:24 +03:00
Matt Woodrow bb02f9029f Bug 1708403 - Make resetting of scroll position for drawSnapshot opt-in. r=mstange,kmag
Differential Revision: https://phabricator.services.mozilla.com/D117613
2021-08-25 00:21:01 +00:00