Commit Graph

754202 Commits

Author SHA1 Message Date
Emma Malysz
d9dacff0ad Bug 1705539, move panel rules out of toolkit style sheets and into browser.css r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D112375
2021-04-19 23:34:36 +00:00
Masayuki Nakano
91572af027 Bug 1705598 - part 8: Make WSRunScanner::AutoInclusiveAncestorBlockElementsJoiner() take editing host instead of HTMLEditor r=m_kato
Depends on D112508

Differential Revision: https://phabricator.services.mozilla.com/D112509
2021-04-19 23:25:47 +00:00
Masayuki Nakano
16c03a3b47 Bug 1705598 - part 7: Make WSRunScanner::GetRangeContainingInvisibleWhiteSpacesAtRangeBoundaries() take editing host instead of HTMLEditor r=m_kato
Depends on D112507

Differential Revision: https://phabricator.services.mozilla.com/D112508
2021-04-19 23:25:47 +00:00
Masayuki Nakano
7c39f920b9 Bug 1705598 - part 6: Make WSRunScanner::GetRangesForDeletingAtomicContent() take editing host instead of HTMLEditor r=m_kato
Depends on D112506

Differential Revision: https://phabricator.services.mozilla.com/D112507
2021-04-19 23:25:46 +00:00
Masayuki Nakano
73372428c9 Bug 1705598 - part 5: Make WSRunScanner::GetRangeInTextNodesToForwardDeleteFrom() and WSRunScanner::GetRangeInTextNodesToBackspaceFrom() take editing host instead of HTMLEditor r=m_kato
Depends on D112505

Differential Revision: https://phabricator.services.mozilla.com/D112506
2021-04-19 23:25:46 +00:00
Masayuki Nakano
dd0159dcf3 Bug 1705598 - part 4: Make WSRunScanner::ScanNextVisibleNodeOrBlockBoundary() and WSRunScanner::ScanPreviousVisibleNodeOrBlockBoundary() take editing host instead of HTMLEditor r=m_kato
Depends on D112504

Differential Revision: https://phabricator.services.mozilla.com/D112505
2021-04-19 23:25:46 +00:00
Masayuki Nakano
265f751419 Bug 1705598 - part 3: Make WSRunScanner::GetPreviousEditableCharPoint() and WSRunScanner::GetInclusiveNextEditableCharPoint() take editing host instead of HTMLEditor r=m_kato
Depends on D112503

Differential Revision: https://phabricator.services.mozilla.com/D112504
2021-04-19 23:25:45 +00:00
Masayuki Nakano
a7b87b61b1 Bug 1705598 - part 2: Make the constructor of WSRunScanner take editing host instead of HTMLEditor r=m_kato
I think that it's no matter to make `WSRunScanner` work without editing host.
Therefore, this patch make it take pointer of `Element` rather than reference.

Depends on D112502

Differential Revision: https://phabricator.services.mozilla.com/D112503
2021-04-19 23:25:45 +00:00
Masayuki Nakano
9227d30f9b Bug 1705598 - part 1: Get rid of WSRunScanner::mHTMLEditor r=m_kato
It's not referred by anybody.

Differential Revision: https://phabricator.services.mozilla.com/D112502
2021-04-19 23:25:45 +00:00
Mitchell Hentges
8c5acba80f Bug 1703092: Don't provide cpu_brand in telemetry if None r=sheehan
Glean is throwing an error if a string metric is `None`.
Since `get_cpu_brand()` can return `None`, only update telemetry if it's
set.

Depends on D110847

Differential Revision: https://phabricator.services.mozilla.com/D110858
2021-04-19 23:17:06 +00:00
Mitchell Hentges
0cdb31f286 Bug 1698616: Bump python dependencies r=firefox-build-system-reviewers,glandium
Did you know that our version of requests was from 2015? Phwoar!
This bumps `jinja2`, `py`, `pyyaml`, `requests` and `urllib3`.
There's significant risk for regressions due to breaking changes,
though due to the dynamic nature of Python, they're tricky to track
down.

The potential breaking changes I'm expecting to potentially affect
us are:

* `requests@2.11.0`: No longer accepts non-strings as header values.
* `requests@2.16.0`: `requests.packages` namespace was removed due to
  packages no longer being vendored. The namespace has been
  incrementally restored over future releases, but it's unclear to
  what degree.
* `requests@2.24.0`: Redirect resolution now only happens when
  `allow_redirects` is `True`.
* `requests` version of `urllib3` was bumped from `1.13.1` to `1.26`,
  unsure what repercussions that will have.

Differential Revision: https://phabricator.services.mozilla.com/D108526
2021-04-19 23:17:01 +00:00
Markus Stange
a29fcf0959 Bug 1705842 - Allow opening empty menus, by putting a placeholder item in place. r=harry
This is exercised by one of the subtests of
browser/components/extensions/test/browser/browser_ext_menus_replace_menu.js :

The menu is opened while it's empty, and then the content items are added
asynchronously while the menu is open.

If we try to open an NSMenu with zero NSMenuItems, macOS immediately closes the
menu after opening it. With a placeholder item it stays open as expected.

Differential Revision: https://phabricator.services.mozilla.com/D112458
2021-04-19 23:08:36 +00:00
Markus Stange
01f82d18dd Bug 1705842 - Support inserting and removing menu elements while the menu is open. r=harry
This makes the WebExtension API menus.refresh() work.

Differential Revision: https://phabricator.services.mozilla.com/D112457
2021-04-19 23:08:36 +00:00
Markus Stange
02c085c927 Bug 1705842 - Add WillInsertChild and WillRemoveChild. r=harry
Differential Revision: https://phabricator.services.mozilla.com/D112456
2021-04-19 23:08:35 +00:00
Markus Stange
a9744be335 Bug 1705842 - Create generic CreateMenuChild and AddMenuChild methods. r=harry
Differential Revision: https://phabricator.services.mozilla.com/D112455
2021-04-19 23:08:35 +00:00
Markus Stange
935fc2584e Bug 1705842 - Remove unnecessary null check and submenu assignment. r=harry
Differential Revision: https://phabricator.services.mozilla.com/D112454
2021-04-19 23:08:34 +00:00
Markus Stange
8fce76f595 Bug 1705842 - Change internal visibility before calling MenuChildChangedVisibility. r=harry
This will make a difference once code inside MenuChildChangedVisibility starts
calling IsVisible(). The method name has "Changed" in it, so it should be called
after the change.

Differential Revision: https://phabricator.services.mozilla.com/D112453
2021-04-19 23:08:34 +00:00
Markus Stange
7c3e29a98e Bug 1705842 - Make sure that items that are un-hidden while the menu is open get their icon set up. r=harry
Before, we were only calling SetUpIcon if the item was visible during menu
construction on menu opening, but not if the item became visible after menu
opening.

Differential Revision: https://phabricator.services.mozilla.com/D112452
2021-04-19 23:08:34 +00:00
Markus Stange
25ac7914a4 Bug 1705842 - Allow showing and hiding items with the collapsed/hidden attributes while a menu is open. r=harry
Differential Revision: https://phabricator.services.mozilla.com/D112451
2021-04-19 23:08:33 +00:00
Markus Stange
ca9f8e2db0 Bug 1705842 - Combine the two methods and properly update mVisibleItemsCount, and add some asserts. r=harry
Differential Revision: https://phabricator.services.mozilla.com/D112450
2021-04-19 23:08:33 +00:00
Markus Stange
c48e8404c1 Bug 1705842 - Make InsertChildNativeMenuItem support nsMenuItemX, too. r=harry
Differential Revision: https://phabricator.services.mozilla.com/D112449
2021-04-19 23:08:33 +00:00
Markus Stange
98e6596cf3 Bug 1705842 - Move command registration and NSMenuItem target/action initialization into nsMenuItemX. r=harry
This means that it'll happen even if the menu item is not visible. This will make
it possible to make a menu item visible after initial menu construction.

Differential Revision: https://phabricator.services.mozilla.com/D112448
2021-04-19 23:08:32 +00:00
Markus Stange
388df46cfd Bug 1705842 - Add nsMenuItemX::IsVisible() and nsMenuX::IsVisible(). r=harry
Differential Revision: https://phabricator.services.mozilla.com/D112447
2021-04-19 23:08:32 +00:00
Masayuki Nakano
7ce105e3db Bug 1705519 - Make Document::ExecCommand not stop handling selectall command when there is no editable content r=smaug
When `document.execCommand("selectall")` is called, it should behave exactly
same as "Select All" in the UI for compatibility with the other browsers.

And also this patch fixes a bug of the WPT.  `selectionchange` event should
be fired, but asynchronously.  Therefore, Chrome also fails the check.

Differential Revision: https://phabricator.services.mozilla.com/D112307
2021-04-19 23:03:54 +00:00
Tooru Fujisawa
5508a33216 Bug 1695349 - Part 3: Remove endian handling from ObjLiteralStencil. r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D112497
2021-04-19 23:02:52 +00:00
Tooru Fujisawa
be0a6bf070 Bug 1695349 - Part 2: Rename XDRState::peekRawUint32 to XDRState::peekUint32. r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D112496
2021-04-19 23:02:52 +00:00
Tooru Fujisawa
463c38b9ee Bug 1695349 - Part 1: Remove endian handling from XDRState methods. r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D112495
2021-04-19 23:02:52 +00:00
Masatoshi Kimura
b09353a135 Bug 1234520 - Re-enable test_bug344861.html, test_bug369370.html, test_bug741266.html on Windows. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D112471
2021-04-19 23:01:39 +00:00
Steve Fink
2dcfa49f82 Bug 1706115 - add encoding errors=... param to mozunit mocked open() r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D112622
2021-04-19 22:17:17 +00:00
R. Martinho Fernandes
4ecee0b048 Bug 1677866 - Report memory allocated by cert_storage crate r=keeler,emilio
Differential Revision: https://phabricator.services.mozilla.com/D107105
2021-04-19 22:12:56 +00:00
Jan Horak
b76e13fb5d Bug 1418792 Start drag operation on touch event on draggable area; r=stransky
Add support for dragging window on touch event.

Differential Revision: https://phabricator.services.mozilla.com/D112370
2021-04-19 22:12:01 +00:00
Kartikaya Gupta
570147386a Bug 1662379 - Add test. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D112501
2021-04-19 22:02:03 +00:00
Kartikaya Gupta
8a17781edb Bug 1662379 - Listen for events in bubble phase rather than capture phase. r=botond
The events being listened for here are mouse events, all of which
go through both the bubble and capture phases. It's not clear to
me why I originally added this listener in the capture phase; it
is more useful in the bubble phase because then it resolves the
promise after the event has triggered listeners registered on the
target element, rather than before.

Note also that prior to the promis-ification of this function, the
callback was called inside a setTimeout(0) wrapper, which would
automatically have deferred the callback to after the event dispatch
was completed. So technically the promis-ification of this function
introduced a functional change because now the promise can get
resolved before the event dispatch is complete, and in particular,
before listeners on the target element get run. This didn't affect
anything in practice because none of the existing callers actually
have such a listener on the target element. The next patch adds
one though, and exposed this behaviour difference when I rebased it
across the promis-ification change..

This patch removes the capture:true listener option, causing the
listener to get registered in the bubble phase.

Differential Revision: https://phabricator.services.mozilla.com/D112500
2021-04-19 22:02:02 +00:00
sotaro
619fd6d13e Bug 1706000 - Remove WebRenderBridgeParent::mPaused r=jnicol,gfx-reviewers
WebRenderBridgeParent::mPaused does not hold correct paused state, initial state of mPaused was always false. And CompositorBridgeParent already keeps correct paused state.

Differential Revision: https://phabricator.services.mozilla.com/D112518
2021-04-19 21:59:46 +00:00
Yoshi Cheng-Hao Huang
c63ca4d51c Bug 1705733 - Replace threads.empty() check with CanUseExtraThreads(). r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D112532
2021-04-19 21:59:33 +00:00
Narcis Beleuzu
058229227c Bug 1704293 - Fix lint on Codegen.py . CLOSED TREE 2021-04-20 01:48:50 +03:00
Florian Quèze
c7da51d612 Bug 1703583 - fix tests that keep waitForEvent or topicObserved promises pending, r=Gijs,zombie.
Differential Revision: https://phabricator.services.mozilla.com/D111116
2021-04-19 21:56:05 +00:00
Florian Quèze
c238647be5 Bug 1703583 - automatically reject waitForEvent, waitForCondition and topicObserved promises at the end of a browser test, r=Gijs.
Differential Revision: https://phabricator.services.mozilla.com/D111115
2021-04-19 21:56:04 +00:00
mr.robot
b9fba56cf6 Bug 1695396: Moved isFirstStub_ into IRGenerator in CacheIR.h r=iain
Differential Revision: https://phabricator.services.mozilla.com/D111649
2021-04-19 21:35:28 +00:00
Emma Malysz
a06d7c858b Bug 1703060, format tab manager panel for proton styles r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D112268
2021-04-19 20:22:48 +00:00
Harry Twyford
69f3cff169 Bug 1706127 - Introduce openContextMenuSubmenu devtools helper. r=mac-reviewers,mstange
Differential Revision: https://phabricator.services.mozilla.com/D112640
2021-04-19 20:01:37 +00:00
Emilio Cobos Álvarez
8e47e5abc2 Bug 1705877 - image-set() should influence intrinsic size of the image. r=dholbert,layout-reviewers
https://drafts.csswg.org/css-images-4/#image-set-notation has:

> [...] it also specifies the image’s natural resolution, overriding any other
> source of data that might supply a natural resolution.

Astounding that there was literally no WPT for this at all. I added three: one
for backgrounds, one for list-style-image, and one for `content`. Cursor is not
handled on this patch because that one requires a fair amount of extra work.

Differential Revision: https://phabricator.services.mozilla.com/D112474
2021-04-19 19:55:27 +00:00
Tom Schuster
ca0d2c502e Bug 1705977 - Add more monochrome settings to CUPS. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D112526
2021-04-19 19:53:02 +00:00
Tom Schuster
a137d1ce39 Bug 1704293 - Use Maybe<PropertyDescriptor> for GetOwnPropertyOp. r=jandem
Also switches the "default" GetOwnPropertyDescriptor implementation to Maybe<PropertyDescriptor>.

Differential Revision: https://phabricator.services.mozilla.com/D112371
2021-04-19 19:51:59 +00:00
Tom Schuster
b728526ade Bug 1704293 - Use Maybe<PropertyDescriptor> for BaseProxyHandler::getOwnPropertyDescriptor in DOM and XPConnect. r=jandem,smaug
Differential Revision: https://phabricator.services.mozilla.com/D112037
2021-04-19 19:51:59 +00:00
Tom Schuster
3ad7d3318b Bug 1704293 - Use Maybe<PropertyDescriptor> for BaseProxyHandler::getOwnPropertyDescriptor in js/. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D111730
2021-04-19 19:51:58 +00:00
Agi Sferro
431a0117b0 Bug 1704194 - Add non-about:blank test to tabs_create_cookieStoreId. r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D112228
2021-04-19 19:42:40 +00:00
Agi Sferro
15db873142 Bug 1704194 - Use appropriate principal when creating new tabs. r=aklotz,robwu,ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D112101
2021-04-19 19:42:39 +00:00
Jason Orendorff
afe498ed92 Bug 1662559 - Part 20: Tweak some comments in NameOpEmitter.h. r=arai
Depends on D108301

Differential Revision: https://phabricator.services.mozilla.com/D108302
2021-04-19 19:28:11 +00:00
Jason Orendorff
c3249f07a1 Bug 1662559 - Part 19: Emit DeclarationKind::PrivateName declarations and use all the optimized paths in PrivateOpEmitter. r=arai
At the same time, the initialization and storage of private methods is changed
to what the PrivateOpEmitter expects.

There are some barely-observable differences in behavior, resulting in two jit-test changes:

*   fields/bug1683784.js - An error message changed. Not really better or worse.

*   js/src/jit-test/tests/parser/script-source-extent.js - The debugger is able
    to observe initializers as individual scripts. We are no longer using
    initializers for private methods that can be optimized, and the debugger
    therefore observes the change.  I adjusted the test to expect the new
    behavior.

All js/src/tests pass.

Depends on D108300

Differential Revision: https://phabricator.services.mozilla.com/D108301
2021-04-19 19:28:11 +00:00