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

772520 Коммитов

Автор SHA1 Сообщение Дата
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
Luca Greco 87d5d63980 Bug 1688040 - part7.4: Add xpcshell test for browser.runtime API called from a background service worker. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D106703
2021-10-06 12:28:22 +00:00
Luca Greco f9b1ca88b1 Bug 1688040 - part7.3: Adapt child/ext-runtime.js to handle webidl API request. r=zombie
Differential Revision: https://phabricator.services.mozilla.com/D106702
2021-10-06 12:28:21 +00:00
Luca Greco aebd5b068d Bug 1688040 - part7.2: Listen for background service worker changes and emit internal event to ensure extension.wakeupBackground promise is resolved. r=zombie
Depends on D106700

Differential Revision: https://phabricator.services.mozilla.com/D106701
2021-10-06 12:28:21 +00:00
Luca Greco 2be3791be5 Bug 1688040 - part7.1: Added WebIDL-based binding for the browser.runtime WebExtensions API. r=baku
Differential Revision: https://phabricator.services.mozilla.com/D106700
2021-10-06 12:28:21 +00:00
Luca Greco 656e8251e8 Bug 1688040 - part6: Added chrome global as a BindingAlias of the browser global. r=baku
Differential Revision: https://phabricator.services.mozilla.com/D103351
2021-10-06 12:28:20 +00:00
Luca Greco a73062e1f9 Bug 1688040 - part5: Added WebIDL-based binding for the browser.alarms WebExtensions API. r=baku
Differential Revision: https://phabricator.services.mozilla.com/D102928
2021-10-06 12:28:20 +00:00
Luca Greco ce341c641b Bug 1688040 - part4.3: cover WebIDL-based browser.test API with smoke tests r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D102644
2021-10-06 12:28:20 +00:00
Luca Greco a84c17bb95 Bug 1688040 - part4.2: Hook up browser.test API webidl binding to ExtensionBrowser. r=baku
Differential Revision: https://phabricator.services.mozilla.com/D102643
2021-10-06 12:28:19 +00:00
Luca Greco 46f824c0c7 Bug 1688040 - part4.1: Initial WebIDL-based bindings for browser.test API namespace r=baku
Differential Revision: https://phabricator.services.mozilla.com/D102642
2021-10-06 12:28:19 +00:00
Luca Greco 2a47f8f67d Bug 1688040 - part3: python script to generate webidl definitions from WebExtension API JSON schema files. r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D87717
2021-10-06 12:28:18 +00:00
Luca Greco 5fa4780d3f Bug 1688040 - part2.2: validate and normalize webidl API requests arguments using the JSON API schemas r=zombie,mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D86204
2021-10-06 12:28:18 +00:00
Luca Greco 88161bd04b Bug 1688040 - part2.1: Allow storing normalized arguments in the mozIExtensionAPIRequest object. r=baku
Differential Revision: https://phabricator.services.mozilla.com/D102641
2021-10-06 12:28:17 +00:00
Luca Greco e473c8d18b Bug 1688040 - part1.6: adapting parent context to workers r=zombie
This is currently a temporary quick approach to more quickly verify the
worker child context with a sample of API calls proxied to the main process
(currently using the alarms API, as it is pretty small and simple).

It is likely better for this patch to create a new parent context that is specifically
meant to be used for the worker proxied contexts.

Differential Revision: https://phabricator.services.mozilla.com/D86203
2021-10-06 12:28:17 +00:00
Luca Greco e2e214db41 Bug 1688040 - part1.5: use ProcessConduit in worker child context r=zombie
Differential Revision: https://phabricator.services.mozilla.com/D86202
2021-10-06 12:28:17 +00:00