Commit Graph

746293 Commits

Author SHA1 Message Date
Emilio Cobos Álvarez
249b7dc00a Bug 1691397 - Intrinsic sizes that depend on percentage-sized abspos ancestors should account for containing-block padding correctly. r=layout-reviewers,mats
Abspos boxes resolve against the pading box, and we were failing to
increase the percentage basis in that case if box-sizing was
content-box.

This is partially the cause of bug 1691374.

Differential Revision: https://phabricator.services.mozilla.com/D104389
2021-02-25 15:05:50 +00:00
Ted Campbell
c4c2d069d8 Bug 1694044 - Remove implementation of js::LookupPropertyPure. r=jandem
Combine implementation of:
  - NativeLookupPropertyInline
  - LookupPropertyPure

Instead of checking for `is<NativeObject>`, check for a lookupProperty hook
which is more indicative of what we are worried about.

Differential Revision: https://phabricator.services.mozilla.com/D106240
2021-02-25 14:58:58 +00:00
Ted Campbell
dd39a2a8f0 Bug 1694044 - Merge similar implementations into NativeLookupOwnPropertyInline. r=jandem
Merge the following implementations:
  - NativeLookupOwnPropertyInline
  - NativeLookupOwnPropertyNoResolve
  - LookupOwnPropertyPure

Use templates to differential different handling of resolve hooks. This tries
to maintain most of the existing nuance to avoid changing too much at once.

We no longer support anything with a lookupProperty hook. Previously the JITs
would tolerate them, but in practice do nothing useful. One case was for
environment objects which triggered this during SetProp but would later
abort. The other case was TypedObjects which are no longer meaningully
supported by the JITs and are treated no differently than unknown.

Differential Revision: https://phabricator.services.mozilla.com/D106239
2021-02-25 14:58:57 +00:00
Ted Campbell
187a93fbea Bug 1694044 - Rename LookupPropertyInline / LookupOwnPropertyInline. r=jandem
These only support NativeObjects, so rename for clarity.

Differential Revision: https://phabricator.services.mozilla.com/D106238
2021-02-25 14:58:57 +00:00
Ted Campbell
5b61d5d3d8 Bug 1694044 - NativeLookupOwnPropertyNoResolve does not need to root. r=jandem
Depends on D105885

Differential Revision: https://phabricator.services.mozilla.com/D106235
2021-02-25 14:58:56 +00:00
Dale Harvey
cfe3d13030 Bug 1694694 - Ensure QuickSuggest searches are case insensitive r=adw
Differential Revision: https://phabricator.services.mozilla.com/D106326
2021-02-25 14:57:35 +00:00
Tim Nguyen
f1901aae2b Bug 1694936 - Fix appearance of some <description> tags in identity panel. r=pbz
Differential Revision: https://phabricator.services.mozilla.com/D106473
2021-02-25 14:40:15 +00:00
Emilio Cobos Álvarez
8743599d19 Bug 1676078 - Try to fix and re-enable test_datepicker_keyboard_open. r=Gijs
Now that we have a saner setup for popup hiding / showing.

Differential Revision: https://phabricator.services.mozilla.com/D106474
2021-02-25 14:30:34 +00:00
Emilio Cobos Álvarez
fe58c377b3 Bug 1694413 - Use hidePopup rather than the hidden attribute to hide datetime picker. r=Gijs
On macos re-showing it without using `hidden` can cause, apparently,
extra popuphidden events. Let's do the right thing and close the popup
properly using hidePopup().

This code wasn't being hit before bug 1339380 because we relied on the
parent side to hide it, which did correctly fire the events.

Differential Revision: https://phabricator.services.mozilla.com/D106431
2021-02-25 14:13:14 +00:00
Jeff Muizelaar
13e6a365b0 Bug 1694680 - Fix qcms_data_create_rgb_with_gamma.
This fixes a number of problems:

1. The check around get_rgb_colorants was inverted. This caused us to
   only continue if the colorants were wrong.

2. get_rgb_colorants can just return the Matrix instead of taking
   a reference to it.

3. No tests

Differential Revision: https://phabricator.services.mozilla.com/D106463
2021-02-25 13:57:05 +00:00
Dale Harvey
10848e756a Bug 1693890 - Defer loading QuickSuggest data until idle r=adw
Differential Revision: https://phabricator.services.mozilla.com/D106318
2021-02-25 13:46:30 +00:00
Brindusan Cristian
39abcde940 Backed out 10 changesets (bug 1694140, bug 1694886, bug 1688688) for devtools failures on browser_CORS-console-warnings.js. CLOSED TREE
Backed out changeset 1b7367a27d9a (bug 1694886)
Backed out changeset d5a70a3143ad (bug 1694140)
Backed out changeset 74adaced5c0a (bug 1694140)
Backed out changeset 0b8f857e3f90 (bug 1694140)
Backed out changeset 45a8dc952aba (bug 1694140)
Backed out changeset 299f17e9cb6f (bug 1694140)
Backed out changeset 6beb9dd48ef3 (bug 1694140)
Backed out changeset 5f6688e8fe4c (bug 1694140)
Backed out changeset ae1fa0484c91 (bug 1688688)
Backed out changeset 8a0f5c24ed9a (bug 1688688)
2021-02-25 16:07:39 +02:00
Nicolas Chevobbe
ccd6e112a5 Bug 1694873 - [devtools] Fix browser_webconsole_network_messages_status_code.js intermittent. .
Differential Revision: https://phabricator.services.mozilla.com/D106429
2021-02-25 13:27:45 +00:00
Jeff Muizelaar
4ac01c88b7 Bug 1694670. Fix the OOB check in write_u32/u16. r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D106362
2021-02-25 13:18:47 +00:00
Kershaw Chang
c7dc3fd5c1 Bug 1688092 - Make sure mTrrA and mTrrAAAA are set properly before dispatching them r=necko-reviewers,valentin
See [[ https://bugzilla.mozilla.org/show_bug.cgi?id=1694628#c1 | bug 1694628 ]] for details.

Differential Revision: https://phabricator.services.mozilla.com/D106415
2021-02-25 13:07:04 +00:00
Kershaw Chang
ef06b68b6c Bug 1688092 - Update ODoHConfigs when the TTL expires r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D106075
2021-02-25 13:07:04 +00:00
Kershaw Chang
61d4a64bb0 Bug 1688864 - P2: Add more tests for ODoH r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D106074
2021-02-25 13:07:04 +00:00
Kershaw Chang
82433f5beb Bug 1688864 - P1: Reduce duplicate test code for ODoH r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D106073
2021-02-25 13:07:03 +00:00
Julian Descottes
2349ac9ca8 Bug 1694886 - [devtools] Extract test helper getTargetForTab(tab) to shared-head.js r=nchevobbe
Depends on D106037

Differential Revision: https://phabricator.services.mozilla.com/D106405
2021-02-25 12:58:16 +00:00
Julian Descottes
13d48a2ee6 Bug 1694140 - [devtools] Rename TargetFactory to TabTargetFactory and update filename r=ochameau
Depends on D106032

Differential Revision: https://phabricator.services.mozilla.com/D106037
2021-02-25 12:58:16 +00:00
Julian Descottes
86d04516e5 Bug 1694140 - [devtools] Stop using TargetFactory:forTab in netmonitor to retrieve the parent toolbox r=bomsy,ochameau
Depends on D106002

The goal is to reduce the usage of the getToolbox(target) API.
It feels like exposing toolbox on the connector should be a more straightforward way of achieving the same thing?

Differential Revision: https://phabricator.services.mozilla.com/D106032
2021-02-25 12:58:15 +00:00
Julian Descottes
2c32ed1ce4 Bug 1694140 - [devtools] Remove unused getTargetForTab helper on gDevTools r=ochameau
Depends on D106001

This is only used internally: https://searchfox.org/mozilla-central/search?path=&q=getTargetForTab
Can be inlined and removed from DevToolsShim

Differential Revision: https://phabricator.services.mozilla.com/D106002
2021-02-25 12:58:15 +00:00
Julian Descottes
1ac3484028 Bug 1694140 - [devtools] Stop using TargetFactory.forTab outside of devtools r=rpl,ochameau
Depends on D106000

Differential Revision: https://phabricator.services.mozilla.com/D106001
2021-02-25 12:58:14 +00:00
Julian Descottes
982c525960 Bug 1694140 - [devtools] Stop using TargetFactory forTab in devtools browser mochitests r=nchevobbe
Depends on D105999

This patch is mostly a mechanical rewrite of:
```lang=javascript
const target = await TargetFactory.forTab(tab);
const toolbox = await gDevTools.showToolbox(target, "inspector");
```
to
```lang=javascript
const toolbox = await gDevTools.showToolboxForTab(tab, { toolId: "inspector" });
```

The main changes are:
- if the target was actually used in the test, it is now retrieved from toolbox.target
- the arguments for showToolboxForTab are using an option argument, to avoid the occasional showToolbox("inspector", null, null, null, startTime, null, reason);

I suspect that any signature rewrite mistake would have been caught on try.
There a few less mechanical changes:
- devtools/client/framework/test/browser_toolbox_screenshot_tool.js the toolId "console" was omitted because this id doesn't match any tool (author probably meant "webconsole")
- a few tests were: 1/ first creating a target, 2/ looping on tool definitions to get supported tools 3/ opening the toolbox with each supported tool. To support this I extracted a helper called `getSupportedToolIds` which opens a temporary toolbox to list all supported tool ids
- all the tests under storage/ use a single helper to start the test, which can open toolboxes for both tab targets and other targets. This made it more complicated to refactor. We could also drop this part and just refactor each test when we actually modify forTab/showToolbox to only work with descriptors

All in all the goal of this stack is to pave the way to stop handling targets when using forTab/showToolbox, and behind the scenes stop replying on targets to cache open toolboxes. We don't aim to kill all the call sites, just get them to a smaller number so that the next refactors will be easier.

Differential Revision: https://phabricator.services.mozilla.com/D106000
2021-02-25 12:58:14 +00:00
Julian Descottes
5b183d1d77 Bug 1694140 - [devtools] Stop using TargetFactory.forTab in devtools code r=perftest-reviewers,ochameau
Depends on D105998

Differential Revision: https://phabricator.services.mozilla.com/D105999
2021-02-25 12:58:14 +00:00
Julian Descottes
a49f853e14 Bug 1694140 - [devtools] Add getToolboxForTab and closeToolboxForTab helpers on gDevTools r=ochameau
Depends on D105743

Differential Revision: https://phabricator.services.mozilla.com/D105998
2021-02-25 12:58:13 +00:00
Julian Descottes
b0dd175880 Bug 1688688 - Use showToolboxTab to open DevTools in wpt marionetteexecutor r=jgraham
Depends on D105740

WPT runner can target several older versions of Firefox, so only use the new showToolboxForTab when the API is available on DevToolsShim

Differential Revision: https://phabricator.services.mozilla.com/D105743
2021-02-25 12:58:13 +00:00
Julian Descottes
050bfe4fcb Bug 1688688 - [devtools] Add a simple helper to start devtools for wptrunner r=ladybenko
The webplatform test runner recently added an option to open devtools during their tests.
The current implementation relies on TargetFactory::forTab and gDevTools::showToolbox.
Those methods will most likely change as we move away from targets and start using descriptors.

See previous WPT PR at https://github.com/web-platform-tests/wpt/pull/27309

Differential Revision: https://phabricator.services.mozilla.com/D105740
2021-02-25 12:58:12 +00:00
Valentin Gosu
40eb1379d9 Bug 1694457 - Add pref for reporting confirmation event telemetry r=nhnt11,necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D106264
2021-02-25 12:52:28 +00:00
Mihai Alexandru Michis
d1dca2c0a5 Backed out 2 changesets (bug 1684139) for causing xpcshell failures in test_subprocess.js
CLOSED TREE

Backed out changeset 52cfd9509136 (bug 1684139)
Backed out changeset 23e0fa285d90 (bug 1684139)
2021-02-25 14:47:15 +02:00
Jared Wein
8f326f38b5 Bug 1692330 - Hide the 'Add a keyword for this search' when inside of a login form. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D106314
2021-02-25 12:15:23 +00:00
Neil Deakin
86db2fec08 Bug 1691499, add a link field to notification bar buttons to use a link instead, convert learn more buttons in notification bars to links, r=mstriemer,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D105750
2021-02-25 12:00:39 +00:00
Nicolas B. Pierron
18034ea053 Bug 1690570 - Batch JS Shell tests on Android to run a single ADB command. r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D105039
2021-02-25 11:47:27 +00:00
Nicolas B. Pierron
9c84572d9c Bug 1690570 - Fix python style in gdb/run-tests.py . r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D105038
2021-02-25 11:47:27 +00:00
Nicolas B. Pierron
0c635c7669 Bug 1692253 - Create a thread to handle ADB process timeout. r=jmaher,gbrown
This change add the ability to yield the output as it is produced, by
creating a thread responsible for killing the process if it takes too
long.

This way we can loop with blocking I/O on stdout in python, while the
process is running concurrently. The loop ends when the process exit
either by itself or after being killed by the timeout.

Differential Revision: https://phabricator.services.mozilla.com/D105037
2021-02-25 11:47:26 +00:00
Valentin Gosu
255cb65e3b Bug 1694345 - Disable prefs that trigger off-main-thread use of mock registry r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D106080
2021-02-25 11:40:02 +00:00
yulia
b3f97ee239 Bug 1686218 - top level await should throw the current module error, not the cycle root error; r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D101465
2021-02-25 11:30:55 +00:00
yulia
50efd46fb1 Bug 1689499 - Replace GetAsyncCycleRoot with [[CycleRoot]] field;r=jorendorff
Differential Revision: https://phabricator.services.mozilla.com/D103808
2021-02-25 11:30:54 +00:00
yulia
15455e0975 Bug 1689499 - fix throwing check in asyncModuleExecutionRejected when reaching an errored module the second time;r=jorendorff
Differential Revision: https://phabricator.services.mozilla.com/D103788
2021-02-25 11:30:54 +00:00
yulia
c046d1977b Bug 1689499 - Add test to show cycle issue with multiple parents;r=jorendorff
Differential Revision: https://phabricator.services.mozilla.com/D103787
2021-02-25 11:30:53 +00:00
Snehaa2296
a0a331ee19 Bug 1491055 - Remove JS_New and use JS::Construct in JS_New consumers. r=arai
Differential Revision: https://phabricator.services.mozilla.com/D106257
2021-02-25 11:10:42 +00:00
Ganesh Sundar C
346483f4d2 Bug 1670124 - Forbid \8 and \9 in strict mode strings and template literals. r=jwalden
Differential Revision: https://phabricator.services.mozilla.com/D95580
2021-02-25 10:58:09 +00:00
Eden Chuang
bcc0d952de Bug 1684139 - Adding mozilla specific wpt for timer nesting level in workers r=dom-worker-reviewers,asuth
This patch is developed from D104136#3396152.

This patch creates WorkerTestUtils.webidl under dom/webidl for testing workers with internal APIs. These APIs are exposed to workers only and controlled by dom.workers.testing.enabled pref.

This patch creates a Mozilla-specific web-platform test, testing/web-platform/mozilla/test/workers/worker_timer_nesting_level.html, to test the timer nesting level implementation for workers.

To simplify the test implementation, this patch does not implement the webidl under dom/chrome-webidl/ suggested by D104136#3396152.

Depends on D104136

Differential Revision: https://phabricator.services.mozilla.com/D105332
2021-02-25 10:14:12 +00:00
Eden Chuang
c426e61809 Bug 1684139 - Implement timer nesting level for workers r=dom-worker-reviewers,asuth
This patch implements the timer nesting level for workers according to https://html.spec.whatwg.org/#timer-initialisation-steps.

If the timer's nesting level is larger than 5 and the interval time is less than 4, the timer should be clamped to 4.

Differential Revision: https://phabricator.services.mozilla.com/D104136
2021-02-25 10:14:12 +00:00
Sebastian Hengst
880c2d5b98 Bug 1694810 - add back url/failure.html failure expectation for Windows with Fission enabed. DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D106410
2021-02-25 09:48:31 +00:00
Mirko Brodesser
6c86225872 Bug 1694643: add "-manual" to filenames of manual drag WPT. r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D106276
2021-02-25 09:02:21 +00:00
Brindusan Cristian
6f8f3d0e90 Backed out 5 changesets (bug 1694229) for geckoview failures. CLOSED TREE
Backed out changeset 5ce24c91b0c1 (bug 1694229)
Backed out changeset 7fef19f47442 (bug 1694229)
Backed out changeset a70e27ec7747 (bug 1694229)
Backed out changeset 6a5d472e1b05 (bug 1694229)
Backed out changeset d32085239f92 (bug 1694229)
2021-02-25 09:27:50 +02:00
Ian Neal
22e0c0b5b8 Bug 1692706 - Update ccache stats parser for ccache 4.x. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D105863
2021-02-25 07:00:39 +00:00
Drew Willcoxon
5c28daf615 Bug 1693126 - Add telemetry for when users disable Quick Suggest. r=harry,nanj
This adds event telemetry that's recorded when the
`browser.urlbar.suggest.quicksuggest` pref is toggled. This pref corresponds to
the checkbox in about:preferences#search labeled "Show suggested and sponsored
results in the address bar".

I used `contextservices.quicksuggest` as the event telemetry category name to be
similar to the `contextual.services.quicksuggest.*` scalars. Event names are
limited to 30 chars, so it couldn't be exactly the same.

This is based on my earlier revision for scalar telemetry in D106173.

Depends on D106173

Differential Revision: https://phabricator.services.mozilla.com/D106248
2021-02-25 06:21:32 +00:00
Drew Willcoxon
da79f59395 Bug 1693927 - Record keyed scalar telemetry for impressions and clicks on Quick Suggest results. r=harry,nanj
This adds three new keyed scalars:

* `contextual.services.quicksuggest.impression`: Incremented when a Quick
  Suggest result is shown in an address bar engagement where the user picks any
  result.
* `contextual.services.quicksuggest.click`: Incremented when the user picks a
  Quick Suggest result (not including the help button).
* `contextual.services.quicksuggest.help``: Incremented when the user picks the
  onboarding help button in a Quick Suggest result.

The changes to telemetry.rst and Scalars.yaml have more details.

I modified `TelemetryEvent.typeFromElement()` to return `"help"` for clicks on
the help button so that the quick suggest provider can tell whether the main
part of the result was picked or the help button. I left `"tiphelp"` for tip
help buttons in case anything depends on that.

Depends on D106060

Differential Revision: https://phabricator.services.mozilla.com/D106173
2021-02-25 06:21:30 +00:00