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

772484 Коммитов

Автор SHA1 Сообщение Дата
alwu ae857daa8e Bug 1734327 - only use AOMDecoder when MOZ_AV1 is defined. r=bryce
Differential Revision: https://phabricator.services.mozilla.com/D127692
2021-10-06 18:49:58 +00:00
Matthew Gaudet 3f20b90025 Bug 1731070 - Implement ReadableStream.tee() r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D126002
2021-10-06 18:43:02 +00:00
Matthew Gaudet 3bcfc27cef Bug 1730589 - Initial Implementation of ReadableStreams using WebIDL and DOM technologies r=smaug
This patch begins re-implements ReadableStreams using WebIDL and DOM technology (vs the existing JS streams implementation).   Some more background is [here](https://docs.google.com/document/d/1MWRkF32KV60ngOY-Ip4PnKbCMvl6VK_Y9QLED8MJJxg/edit#)

This is guarded under a configure flag `--enable-dom-streams`

1. ByteStreams and ReadableStream.tee will come in future patches.
2. I intentionally crash in other parts of the DOM that require streams (Fetch, Response, Blob), until the integration work is done in future patches.

   My current plan for that integration doesn't involve re-creating the alternative 'external streams' API from SpiderMonkey's implementation, but I have yet to do enough development to verify that will work.

Differential Revision: https://phabricator.services.mozilla.com/D122643
2021-10-06 18:43:01 +00:00
Avinash a078f6adad Bug 1698349 - Changed the .small selectors to .small-button and since there were no uses of medium found that selector was removed . r=mhowell,mtigley,Itiel
Differential Revision: https://phabricator.services.mozilla.com/D125341
2021-10-06 18:18:04 +00:00
Andi-Bogdan Postelnicu 5482810b38 Bug 1734285 - fix mixing bitwise with bool operators. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D127639
2021-10-06 17:37:56 +00:00
Itiel b0e4975d00 Bug 1734187 - Improve HCM for the new upgrade dialog r=Mardak
Differential Revision: https://phabricator.services.mozilla.com/D127562
2021-10-06 16:59:54 +00:00
Tooru Fujisawa 952c68f8ee Bug 1723417 - Part 3: Update comment for async functions. r=yulia
Differential Revision: https://phabricator.services.mozilla.com/D127477
2021-10-06 16:19:54 +00:00
Tooru Fujisawa e358822269 Bug 1723417 - Part 2: Update comment for Promise combinator methods. r=yulia
Differential Revision: https://phabricator.services.mozilla.com/D127476
2021-10-06 16:19:53 +00:00
Tooru Fujisawa 51491841cf Bug 1723417 - Part 1: Update comment for Promise internal and simple methods. r=yulia
Differential Revision: https://phabricator.services.mozilla.com/D127475
2021-10-06 16:19:53 +00:00
Marian-Vasile Laza b139f7c95a Backed out changeset a586415a372b (bug 1661152) for causing bc failures on browser_partitionedLocalStorage.js. CLOSED TREE 2021-10-06 21:00:43 +03:00
Benjamin VanderSloot 4b6f68e098 Bug 1661152 - hasStorageAccess will return false when all cookies are blocked. r=timhuang
- Adding a test to validate behavior on non-tracking first-party requests
- Correct the result of a tracking same-origin request (now hasStorageAccess() == false when cookiePolicy = 2)
- Add check near the top of Document::HasStorageAccess to immediately return false when cookiePolicy is REJECT.

Differential Revision: https://phabricator.services.mozilla.com/D126399
2021-10-06 16:19:05 +00:00
Gijs Kruitbosch 4ba8832b34 Bug 1734246 - fix English text for 'show you how' button to use first person singular instead, r=fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D127686
2021-10-06 16:18:02 +00:00
Luca Greco 3f6092e28e Bug 1733781 - Ensure test_ext_new_tab_processType.html closes the tabs opened from its test cases. r=mixedpuppy
NOTE: this issue in the test_ext_new_tab_processType.html test was not actually the one triggering
the intermittent failures being tracked by this bug, but while investigating the issue I did notice
an unexpected tab in the screenshots attached to the failures and looked into fix it to confirm
if it was related or not to the failures triggered while running test_ext_webrequest_basic.html.

Differential Revision: https://phabricator.services.mozilla.com/D127484
2021-10-06 16:14:22 +00:00
Luca Greco e8774b5955 Bug 1733781 - Fix test_ext_webRequest_basic.html timeout failures. r=mixedpuppy
The underlying reasons for the test to fail for a timeout seems to be the same
ones that D94613 was meant to fix:

- a favicon request may be triggered at a random time while one of the test case
  in the test file is asserting the intercepted web requests

- a previous run (in particular when running under --verify or as part of a TV job)
  may have cached the stylesheet and the resulting webrequest may not match
  the properties expected (and asserted) by the test case

The original patch was attached and pushed to autoland from Bug 1633189
(see https://bugzilla.mozilla.org/show_bug.cgi?id=1633189#c46), but it seems that
it has been backed out (https://bugzilla.mozilla.org/show_bug.cgi?id=1633189#c47)
and instead we ended up landing a patch (D123339) that skipped the test in
linux-asan-opt.

NOTE:
- The unexpected favicon request which was making the test case to permafail
  on the build infrastructure is only triggered when "browser.chrome.guess_favicon"
  is set to true, which is actually explicitly set in mochitest-common.ini, but
  apparently those preferences are not being set when the test is executed locally
  through `mach mochitest` / `mach test`

- To be able to reproduce the same behavior when running the test locally,
  the pref has to be set through the --setpref command line option:

     mach mochitest --setpref "browser.chrome.guess_favicon=true" ...

Differential Revision: https://phabricator.services.mozilla.com/D127398
2021-10-06 16:14:21 +00:00
owlishDeveloper 7a6decb12a Bug 1734028 - Update GeckoView Contributor Guide r=geckoview-reviewers,agi,calu
Differential Revision: https://phabricator.services.mozilla.com/D127493
2021-10-06 16:12:02 +00:00
Tom Schuster 8e643f5b0b Bug 1734320 - Expose structuredClone in Sandbox. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D127641
2021-10-06 16:10:44 +00:00
Nihanth Subramanya d79be2b492 Bug 1734183 - Add CIRA to TRR telemetry provider-key list. r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D127563
2021-10-06 15:53:48 +00:00
Emilio Cobos Alvarez 96d7a82b21 Bug 1734359 - Make system toolbar dark on windows dark mode. r=cmartin
This can be accomplished by the undocumented DWMWA_USE_IMMERSIVE_DARK_MODE.

You can test this by going to "Customize Toolbar" and checking "Title Bar", or
opening any native dialog like e.g. the profile creation window / the profile
manager / etc.

Differential Revision: https://phabricator.services.mozilla.com/D127636
2021-10-06 15:30:00 +00:00
Emilio Cobos Alvarez 4dbd654e4c Bug 1734297 - Don't use native <input> appearance on Windows dark mode. r=desktop-theme-reviewers,dao
Also, change XUL button borders to match HTML <input>s and <button>s.

Differential Revision: https://phabricator.services.mozilla.com/D127633
2021-10-06 15:29:59 +00:00
Emilio Cobos Alvarez 51b1017370 Bug 1734226 - Use a single pref to determine whether system colors follow the Firefox theme. r=desktop-theme-reviewers,dao
Now that windows is going to support dark colors, we want to make it
behave like other platforms in this regard.

Having a single pref for this seems better.

Differential Revision: https://phabricator.services.mozilla.com/D127624
2021-10-06 15:29:59 +00:00
Tim Huang 763b888847 Bug 1731988 - Part 5: Updatet the documentation in StoragePrincipalHelper.h r=dimi
Differential Revision: https://phabricator.services.mozilla.com/D127440
2021-10-06 14:57:00 +00:00
Tim Huang 7776c7e67d Bug 1731988 - Part 4: Add gTest for the StoragePrincipalHelper::GetPrincipal(). r=dimi
This patch adds tests for the StoragePrincipalHelper::GetPrincipal() but
only for the version which accepts a channel. The reason why we don't
add tests for window version is because there is no way to setup window
in gTest.

Differential Revision: https://phabricator.services.mozilla.com/D127439
2021-10-06 14:57:00 +00:00
Tim Huang 1849ce5a27 Bug 1731988 - Part 3: Implement StoragePrincipalHelper::GetPrincipal() functions. r=dimi
This patch implements the StoragePrincipalHelper::GetPrincipal() which
is designed to be used to get the principal from the window/channel
according to the given principal type.

Differential Revision: https://phabricator.services.mozilla.com/D127438
2021-10-06 14:56:59 +00:00
Tim Huang c3ea5f426d Bug 1731988 - Part 2: Support eForeignPartitionedPrincipal for StoragePrincipalHelper::GetOriginAttributes(). r=dimi
Differential Revision: https://phabricator.services.mozilla.com/D127436
2021-10-06 14:56:59 +00:00
Tim Huang 0d2eb797fd Bug 1731988 - Part 1: Add a new PrincipalType `eForeignPartitionedPrincipal` for StoragePrincipalHelper. r=dimi
In order to support always partitioned third-party storage,
like the service worker, in the future, we need to have another
principal type which uses partitioned principal in a third-party context
and regular principal in a first-party context.

Differential Revision: https://phabricator.services.mozilla.com/D127435
2021-10-06 14:56:59 +00:00
Andrew Osmond db0498fdc5 Bug 1732115 - Part 6. Update test annotations. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D126384
2021-10-06 14:41:19 +00:00
Andrew Osmond 774ef22598 Bug 1732115 - Part 5. Remove reorientation code from RasterImage. r=tnikkel
This is now all handled in the layers below.

Differential Revision: https://phabricator.services.mozilla.com/D126383
2021-10-06 14:41:18 +00:00
Andrew Osmond 211e37f75c Bug 1732115 - Part 4. Add/use reorienting decoding pipeline. r=tnikkel
This part hooks up the swizzling code from earlier to the AVIF and JPEG
decoder pipelines.

Differential Revision: https://phabricator.services.mozilla.com/D126382
2021-10-06 14:41:18 +00:00
Andrew Osmond 09266efcbc Bug 1732115 - Part 3. Refactor decoder pipeline to partially use Unoriented/OrientedPixel. r=tnikkel
Rather than change every use of IntSize/Rect/Point in image/, this patch
attempts to draw the line at the relevant parts of the decoding pipeline
to prevent confusion about which size and orientation we are working
with.

Differential Revision: https://phabricator.services.mozilla.com/D126381
2021-10-06 14:41:17 +00:00
Andrew Osmond e2050d4c94 Bug 1732115 - Part 2. Move OrientedPixel and related to image/Orientation.h. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D126380
2021-10-06 14:41:17 +00:00
Andrew Osmond 1afab525ff Bug 1732115 - Part 1. Add swizzling support for reorienting by row. r=tnikkel
This is a new swizzle operation which allows us process a reorientation
row by row into its new orientation. This will be used in a later part
in the series in the image decoding pipeline.

Differential Revision: https://phabricator.services.mozilla.com/D126379
2021-10-06 14:41:17 +00:00
Cristian Tuns ed43fdd207 Backed out changeset 55ab13abb8c2 (bug 1556362) for causing wpt failures on ElementInternals. CLOSED TREE 2021-10-06 11:14:57 -04:00
Andreas Pehrson 3775fad341 Bug 1729964 - Fix data race on static logging-only nsTimerImpl members. r=xpcom-reviewers,KrisWright
Tsan with MOZ_LOG=nsTimerImpl:5 reveals this race.

Differential Revision: https://phabricator.services.mozilla.com/D126920
2021-10-06 14:33:41 +00:00
Andreas Pehrson 404b158fe7 Bug 1729964 - Move timer-release threading assert from TimerThread to nsTimerImpl. r=xpcom-reviewers,nika
Differential Revision: https://phabricator.services.mozilla.com/D127622
2021-10-06 14:33:41 +00:00
Andreas Pehrson 8104de54c0 Bug 1729964 - Fix linker error. r=baku
Differential Revision: https://phabricator.services.mozilla.com/D126918
2021-10-06 14:33:40 +00:00
Rob Wu bab8d4c04d Bug 1734396 - Use Utils.fetch to fetch x5u r=leplatrem
Differential Revision: https://phabricator.services.mozilla.com/D127660
2021-10-06 14:30:38 +00:00
hxu 55e1e8e14a Bug 1731263 - Add QM_WARNONLY_TRY to some IPC calls in CacheAPI, which might be related to potential shutdown hang; r=dom-storage-reviewers,jstutte
Differential Revision: https://phabricator.services.mozilla.com/D126092
2021-10-06 13:59:09 +00:00
Sandor Molnar ac87f8501e Backed out 4 changesets (bug 1733335) for causing multiple dt failures. CLOSED TREE
Backed out changeset 8c14ac28d042 (bug 1733335)
Backed out changeset 066819ce0e86 (bug 1733335)
Backed out changeset c44e1bb6d9ff (bug 1733335)
Backed out changeset 4cd1efb42295 (bug 1733335)
2021-10-06 17:49:47 +03:00
Edgar Chen 109341e188 Bug 1556362 - Implement form attribute of ElementInternals; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D125900
2021-10-06 13:51:40 +00:00
Sandor Molnar c4af240897 Backed out 4 changesets (bug 1730998) for frequent Android gv-junit failures. CLOSED TREE
Backed out changeset 92641110e5c9 (bug 1730998)
Backed out changeset 7e496a4d1b55 (bug 1730998)
Backed out changeset 60d769e12932 (bug 1730998)
Backed out changeset 64a2b879aa79 (bug 1730998)
2021-10-06 16:43:50 +03:00
Emilio Cobos Álvarez eba2ff593c Bug 1734176 - The test also fails in swgl sometimes.
Differential Revision: https://phabricator.services.mozilla.com/D127650
2021-10-06 12:34:33 +00:00
Luca Greco 251e19c4e4 Bug 1688040 - part11: Fix dom::Promise leaked by RequestWorkerRunnable::ProcessHandlerResult when handling the result of an async method call. r=baku
This patch fixes a leak that I spotted while investigating a separate shutdown leak triggered by D121683

(This one is not strictly related to D121683, but apparently none of the xpcshell tests part of this
stack of patches reported it at a shutdown leak, nevertheless it was detected as a shutdown leak
while running the test_ext_identity.html mochitest on the background service worker, after
the other leak specific to D121683 was fixed, and after investigating it using cc logs and heapgraph's
find_roots.py I confirmed that it's a shutdown leak introduced here in RequestWorkerRunnable::ProcessHandlerResult).

Differential Revision: https://phabricator.services.mozilla.com/D122968
2021-10-06 12:28:25 +00:00
Luca Greco 9c38ce75ec Bug 1688040 - part10.4: Test ExtensionPort instance appended to port.onMessage callback arguments is strictly same instance of the same port. r=mixedpuppy
This patch is a test-only follow up to part 8.2, both of the TODOs added in part 8.2 and removed in this patch
depends from the changes introduced in "part 10.1", "part 10.22" and "part 10.3" right before this one.

This patch adds an additional assertion to the smoke tests for the runtime API part of
test_ext_webidl_api_request_handler.js to confirm that the ExtensionPort instance received as the
last parameter of the port.onMessage listener is strictly equal to the `port` the listener was
added on.

Differential Revision: https://phabricator.services.mozilla.com/D122967
2021-10-06 12:28:25 +00:00
Luca Greco b212416ba4 Bug 1688040 - part10.3: Store weakptr in the ports lookup map and clear the entry when released. r=baku
Differential Revision: https://phabricator.services.mozilla.com/D107555
2021-10-06 12:28:24 +00:00
Luca Greco b69f48cd4a Bug 1688040 - part10.2: Return existing ExtensionPort instance based on the ExtensionPortDescriptor portId. r=baku
The extensions expect that ExtensionPort instances they get in the calls to the
port event listeners to always be the same, and to be also strictly equal to the
object port got from browser.runtime.connect or browser.runtime.onConnect:

```
const port = browser.runtime.connect();
port.onDisconnect.addListener(disconnectedPort => {
  // port === disconnectedPort => true
});
```

This patch does add an extension port lookup map in the ExtensionBrowser
class and a new ExtensionBrowser::GetPort method which is responsible of
providing the expected behavior (returning an existing istance if one is
found in the lookup map).

Differential Revision: https://phabricator.services.mozilla.com/D107554
2021-10-06 12:28:24 +00:00
Luca Greco 3bb81b1d2d Bug 1688040 - part10.1: Support prepending or appending api object instance to the listener call arguments. r=baku
Differential Revision: https://phabricator.services.mozilla.com/D107553
2021-10-06 12:28:24 +00:00
Luca Greco 7b70ba9812 Bug 1688040 - part9: Implement setting/clearing and reporting browser.runtime.lastError from ChromeCompatCallbackHandler::RejectedCallback. r=baku
This patch does:
- add to ExtensionBrowser two new data members to keep track of value for the browser.runtime.lastError and if it was checked while
  the chrome compatible callback was being executed
- add to ExtensionBrowser 3 new methods to set, get and clear the lastError value
- add a reference to the ExtensionBrowser to all API namespaces and API objects classes, because it has to be then propagated to the
  ChromeCompatCallbackHandler instances that are being attached to the promise result of the async API methods calls if the caller did
  pass the optional callback parameter
- tweak the ChromeCompatCallbackHandler class to set the lastError value before calling the callback in ChromeCompatCallbackHAndler::RejectedCallback
  and then clear it after the call has been completed and report it to the console if it wasn't checked
- change the ExtensionRuntime::GetLastError methhod to restrieve and return the value from the ExtensionBrowser instance

Differential Revision: https://phabricator.services.mozilla.com/D107327
2021-10-06 12:28:23 +00:00
Luca Greco 7105532924 Bug 1688040 - part8.3: Add xpcshell tests for browser.runtime.connect/onConnect and Port API. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D106706
2021-10-06 12:28:23 +00:00
Luca Greco ccb44983aa Bug 1688040 - part8.2: Handle ExtensionPort API requests r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D106705
2021-10-06 12:28:23 +00:00
Luca Greco 69f285c947 Bug 1688040 - part8.1: Add stub method for string and jsvalue properties. r=baku
Differential Revision: https://phabricator.services.mozilla.com/D106704
2021-10-06 12:28:22 +00:00