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

1113 Коммитов

Автор SHA1 Сообщение Дата
Markus Stange a36e8a2b81 Bug 1715145 - Remove now-unnecessary per-window appearance override. This reverts bug 1700371. r=emilio
Depends on D117098

Differential Revision: https://phabricator.services.mozilla.com/D117099
2021-06-08 02:01:10 +00:00
Edgar Chen 1ebbd60592 Bug 1685421 - Part 2: Stop using NS_ERROR_DOM_HIERARCHY_REQUEST_ERR in nsINode; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D113344
2021-06-02 13:43:39 +00:00
Neil Deakin 0b4418c6a7 Bug 1696214, use moveToAnchor to position the tab and places tooltips so that the close and mute button tooltips appear correctly, r=jaws
This involves changing moveToAnchor to be allowed while the popup is showing. This change allows the buttons within the tab to use the normal algorithm for determining the tooltip position. This also fixes bug 1695900 so that tooltips for items in bookmarks menus also appear offset as well. Only the main tab and bookmarks on the toolbar appear aligned with the button's bottom edge.

Differential Revision: https://phabricator.services.mozilla.com/D115558
2021-05-31 13:07:35 +00:00
Peter Van der Beken f206ae96e4 Bug 1712725 - Stop clearing JS things when calling mozilla::DropJSObjects. r=mccr8
There's a pattern of clearing JS things when calling mozilla::DropJSObjects,
but mozilla::DropJSObjects already clears the JS things itself by calling
CycleCollectedJSRuntime::RemoveJSHolder.

Differential Revision: https://phabricator.services.mozilla.com/D115885
2021-05-27 08:35:40 +00:00
Neil Deakin 525d4000cd Bug 1709439, activateItem should allow any descendant of an open submenu to be used, r=mstange,emilio
This patch also fixes an issue where hidden native items could be activated, and makes the
error message consistent between both implementations in this case.

Differential Revision: https://phabricator.services.mozilla.com/D114503
2021-05-10 18:44:03 +00:00
Markus Stange 404f71ee33 Bug 1706434 - For native menus, make XULPopupElement.getOuterScreenRect() return the rect that the menu was initialized with. r=tnikkel
The position of this rectangle is the position at which we asked the OS to open the menu.

Depends on D112803

Differential Revision: https://phabricator.services.mozilla.com/D112804
2021-04-20 22:16:07 +00:00
Markus Stange a70e89dbac Bug 1704879 - Allow specifying the command event's button field in XULPopupElement.activateItem. r=emilio
Depends on D111956

Differential Revision: https://phabricator.services.mozilla.com/D111979
2021-04-20 22:13:24 +00:00
Markus Stange 1ec4d9e9cb Bug 1704948 - Forward mouse button to menuitem command event. r=smaug,robwu
Differential Revision: https://phabricator.services.mozilla.com/D111956
2021-04-20 17:44:16 +00:00
Markus Stange f1ced6e117 Bug 1704948 - Give XULCommandEvent a button property. r=smaug,preferences-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D111955
2021-04-20 17:44:16 +00:00
Markus Stange 1807ef4020 Bug 1704554 - Make XULPopupElement::GetState go through the popup manager. r=tnikkel
Depends on D112273

Differential Revision: https://phabricator.services.mozilla.com/D112274
2021-04-16 16:18:29 +00:00
Henri Sivonen b7b414389d Bug 1619240 - Remove dom/xul/test/test_bug486990.xhtml test. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D112032
2021-04-15 16:07:13 +00:00
Narcis Beleuzu daa77699e2 Backed out 7 changesets (bug 1704948, bug 1704879) for bc failures on browser_ext_menus_capture_secondary_click.js
Backed out changeset 02705918c4bf (bug 1704879)
Backed out changeset 79945b876a1d (bug 1704879)
Backed out changeset eb725de20b11 (bug 1704948)
Backed out changeset 454597ac2ba3 (bug 1704948)
Backed out changeset a43a8ef206ea (bug 1704948)
Backed out changeset 2369e321069e (bug 1704948)
Backed out changeset bdf396edd692 (bug 1704948)
2021-04-15 03:30:52 +03:00
Markus Stange 9e9970605b Bug 1704879 - Allow specifying the command event's button field in XULPopupElement.activateItem. r=emilio
Depends on D111956

Differential Revision: https://phabricator.services.mozilla.com/D111979
2021-04-14 22:24:31 +00:00
Markus Stange ac179ed1ba Bug 1704948 - Forward mouse button to menuitem command event. r=smaug,robwu
Differential Revision: https://phabricator.services.mozilla.com/D111956
2021-04-14 21:23:28 +00:00
Markus Stange 81d211846c Bug 1704948 - Give XULCommandEvent a button property. r=smaug,preferences-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D111955
2021-04-14 21:23:27 +00:00
Markus Stange d60b8c5380 Bug 1704212 - Move part of nsXULElement::OpenMenu into a new method called nsXULPopupManager::HideMenu. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D111660
2021-04-13 02:52:41 +00:00
Markus Stange b4750b7fb3 Bug 1704209 - Make XULPopupElement.activateItem work for native menus. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D111521
2021-04-13 02:52:41 +00:00
Markus Stange d9d0069c71 Bug 1704206 - Add XULPopupElement.activateItem as a way to activate menu items. r=tnikkel,emilio
Differential Revision: https://phabricator.services.mozilla.com/D111519
2021-04-12 00:32:19 +00:00
David Parks 7a4e918916 Bug 1682030 - Clean up NPAPI plugin fallback behavior. r=jmathies,emilio
Similifies use of EventStates and ObjectType/FallbackType enums since most states they represented are no longer valid with the removal of NPAPI plugins.  The state machine for (unsupported) plugin elements is now much simpler but still distinguishes between HTML fallbacks, fallbacks leading to a "BROKEN" state (e.g. failing to load the image the element refers to), and fallbacks that would simply lead the element to occupy an empty region.  The last type of fallback is behind a pref "layout.use-plugin-fallback" and is disabled by default.

Simplifying the state machine allows us to clean up nsObjectLoadingContent.  We also update many of the enums which refered to plugins, which would otherwise get confusing.

Differential Revision: https://phabricator.services.mozilla.com/D107158
2021-04-06 19:28:18 +00:00
Csoregi Natalia d68661e2cc Backed out 24 changesets (bug 1682030) for bustage on ProcessHangMonitor.cpp and nsCOMPtr.h. CLOSED TREE
Backed out changeset 5b1644096477 (bug 1682030)
Backed out changeset 35ae60eea3c7 (bug 1682030)
Backed out changeset 3eca76a6d639 (bug 1682030)
Backed out changeset 259c45447ad9 (bug 1682030)
Backed out changeset de9222dc8c31 (bug 1682030)
Backed out changeset 2986c7e14349 (bug 1682030)
Backed out changeset 6af3410bdb93 (bug 1682030)
Backed out changeset 42b0621c2927 (bug 1682030)
Backed out changeset 366e3e371858 (bug 1682030)
Backed out changeset 9adb2865adea (bug 1682030)
Backed out changeset 6af6af3bc03a (bug 1682030)
Backed out changeset da94a91b35ae (bug 1682030)
Backed out changeset 9143da258d0e (bug 1682030)
Backed out changeset 5e20d06952ba (bug 1682030)
Backed out changeset 6253d7e1ce7d (bug 1682030)
Backed out changeset 0e06ddeea3e2 (bug 1682030)
Backed out changeset 9c58d57c9e44 (bug 1682030)
Backed out changeset e90edd89430e (bug 1682030)
Backed out changeset 5861b8166b10 (bug 1682030)
Backed out changeset b4b88cdc7993 (bug 1682030)
Backed out changeset b80054e9805c (bug 1682030)
Backed out changeset 580d857674c0 (bug 1682030)
Backed out changeset a9cdf93c2662 (bug 1682030)
Backed out changeset 9c9c8b4998e2 (bug 1682030)
2021-04-06 03:54:12 +03:00
David Parks ef8f5b1e09 Bug 1682030 - Clean up NPAPI plugin fallback behavior. r=jmathies,emilio
Similifies use of EventStates and ObjectType/FallbackType enums since most states they represented are no longer valid with the removal of NPAPI plugins.  The state machine for (unsupported) plugin elements is now much simpler but still distinguishes between HTML fallbacks, fallbacks leading to a "BROKEN" state (e.g. failing to load the image the element refers to), and fallbacks that would simply lead the element to occupy an empty region.  The last type of fallback is behind a pref "layout.use-plugin-fallback" and is disabled by default.

Simplifying the state machine allows us to clean up nsObjectLoadingContent.  We also update many of the enums which refered to plugins, which would otherwise get confusing.

Differential Revision: https://phabricator.services.mozilla.com/D107158
2021-04-05 23:48:42 +00:00
Stephen A Pohl 6bd166e648 Bug 1700371: Override the NSWindow appearance based on the lightweight theme. r=mac-reviewers,mstange
Differential Revision: https://phabricator.services.mozilla.com/D109981
2021-03-31 16:38:10 +00:00
Dorel Luca a8b376a3d1 Backed out 2 changesets (bug 1700371) as per dev's request
Backed out changeset 840762c09a0a (bug 1700371)
Backed out changeset e70f3af0e7f2 (bug 1700371)
2021-03-31 06:00:44 +03:00
Stephen A Pohl 0080232ffc Bug 1700371: Improve contrast of close, minimize and maximize buttons on macOS with a light Firefox theme when the system is in dark mode. r=mac-reviewers,mstange
Differential Revision: https://phabricator.services.mozilla.com/D109981
2021-03-30 20:07:09 +00:00
Emilio Cobos Álvarez 6dafa2423f Bug 1688424 - Fix tooltips on <tree> elements in (x)html documents. r=smaug
titletip=true is set in nsXULTooltipListener for trees. Ideally the
default TooltipTextProvider would handle `<tree>` and we could remove
the tree-specific logic from nsXULTooltipListener, but while that's not
the case, we don't want to override the behavior and prevent the default
event handling for those.

Differential Revision: https://phabricator.services.mozilla.com/D110109
2021-03-29 17:00:54 +00:00
Edgar Chen e33744908c Bug 1699284 - Part 4: Continue to search/try next accesskey target if current target is not focusable; r=masayuki
For example, if the target element is disabled, we could not move focus to it,
then we cycle to next accesskey target.

Differential Revision: https://phabricator.services.mozilla.com/D109621
2021-03-25 16:09:54 +00:00
Edgar Chen 2b1df652ef Bug 1699284 - Part 3: Simplify nsXULElement::PerformAccesskey; r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D109607
2021-03-25 16:09:54 +00:00
Edgar Chen 51ffc89b34 Bug 1699284 - Part 2: Delegate focus handling to Element if accesskey won't cause activation; r=masayuki
So Element could decide how focus should be handled if accesskey shouldn't cause
activation, e.g. label element would forward focus to control element.

This could make behavior saner a bit, though there is still something we could
improve, e.g. if the control element doesn't have same accesskey, we are unable
to cycle to the next one in order while pressing same accesskey again.

But this is still better than stuck somewhere if label element is not focusable.

Differential Revision: https://phabricator.services.mozilla.com/D109067
2021-03-25 16:09:53 +00:00
Simon Giesecke 760cc7e936 Bug 1679522 - Fix include directives and forward declarations. r=andi,necko-reviewers,jgilbert
- Add missing include directives and forward declarations.
- Remove some extra include directives.
- Add missing namespace qualifications.
- Move include directives out of namespace in toolkit/xre/GlobalSemaphore.h

Differential Revision: https://phabricator.services.mozilla.com/D98894
2021-03-25 10:19:44 +00:00
Simon Giesecke 613e20d136 Bug 1184468 - Use nsBaseHashtable::Values. r=xpcom-reviewers,nika
Differential Revision: https://phabricator.services.mozilla.com/D108587
2021-03-24 17:56:49 +00:00
Edgar Chen 2eb5ab24ce Bug 1699755 - Part 1: Rename local variable content in nsXULElement::PerformAccesskey to element; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D109168
2021-03-21 23:15:07 +00:00
Edgar Chen 7cc94abb58 Bug 1694674 - Unify nsXULElement::RegUnRegAccessKey and nsGenericHTMLElement::RegUnregAccessKey; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D109087
2021-03-19 23:26:21 +00:00
Simon Giesecke f4f7c593e0 Bug 1692835 - Remove nsJSThingHashtable. r=xpcom-reviewers,nika
The only use of nsJSThingHashtable is replaced by a direct use of
nsBaseHashtable.

Differential Revision: https://phabricator.services.mozilla.com/D105971
2021-03-02 09:02:19 +00:00
Simon Giesecke 9af107a839 Bug 1691913 - Rename nsBaseHashtable::Put to InsertOrUpdate. r=xpcom-reviewers,necko-reviewers,jgilbert,dragana,nika
This makes the naming more consistent with other functions called
Insert and/or Update. Also, it removes the ambiguity whether
Put expects that an entry already exists or not, in particular because
it differed from nsTHashtable::PutEntry in that regard.

Differential Revision: https://phabricator.services.mozilla.com/D105473
2021-02-26 09:11:46 +00:00
Simon Giesecke 4f75368dcb Bug 1691913 - Rename nsBaseHashtable::GetOrInsert(With) to LookupOrInsert(With). r=xpcom-reviewers,necko-reviewers,jgilbert,dragana,nika
The functions should be called "Lookup" rather than "Get" because they return
a DataType& (rather than UserDataType).

Differential Revision: https://phabricator.services.mozilla.com/D105472
2021-02-26 09:11:45 +00:00
Tim Nguyen 159428759d Bug 1590884 - Move XUL accesskey handling to DOM and remove nsXULLabelFrame. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D106233
2021-02-24 14:46:28 +00:00
Emilio Cobos Álvarez e2c6f319f3 Bug 1694393 - Make it easy to enable nsIContent::List() in opt builds. r=smaug
By using a separate define than DEBUG.

Differential Revision: https://phabricator.services.mozilla.com/D106137
2021-02-23 20:08:13 +00:00
Emilio Cobos Álvarez df1d722325 Bug 1693658 - Point to HTMLConstructor from nsXULElement::Construct. r=smaug
I was playing with this code for bug 1693446 and I had to debug with rr
where the illegal constructors were coming from to figure out what the
right thing to do was. This comment hopefully saves that time to someone
(or even me) in the future.

DONTBUILD

Differential Revision: https://phabricator.services.mozilla.com/D105683
2021-02-18 23:08:14 +00:00
Simon Giesecke 661e25bf09 Bug 1692880 - Make Put accept DataType instead of wrapping UserDataType. r=xpcom-reviewers,necko-reviewers,nika
Differential Revision: https://phabricator.services.mozilla.com/D104850
2021-02-16 15:53:33 +00:00
smolnar 1afbbe67e1 Backed out 5 changesets (bug 1691894) for causing hazard failures in nsXULPrototypeCache. CLOSED TREE
Backed out changeset 22dc870ee609 (bug 1691894)
Backed out changeset 58c31e9d6ae3 (bug 1691894)
Backed out changeset 7483e84149d8 (bug 1691894)
Backed out changeset f977d6cfa973 (bug 1691894)
Backed out changeset db4503476f34 (bug 1691894)
2021-02-15 16:43:23 +02:00
Simon Giesecke 3c29a68440 Bug 1691894 - Make Put accept DataType instead of wrapping UserDataType. r=xpcom-reviewers,necko-reviewers,nika
Differential Revision: https://phabricator.services.mozilla.com/D104850
2021-02-15 10:04:46 +00:00
Markus Stange 396d38c967 Bug 1691169 - Remove unused code that indicated "bright titlebar foreground" to the widget. r=spohl
Depends on D104300

Differential Revision: https://phabricator.services.mozilla.com/D104301
2021-02-09 21:17:19 +00:00
Tim Nguyen 794eb5c783 Bug 1691310 - Remove allowEvents DOM property from XULElement. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D104337
2021-02-08 10:22:56 +00:00
Emilio Cobos Álvarez fcc0c13711 Bug 1686822 - Execute currently-non-cacheable module scripts in the XUL content sink. r=smaug
See the comments. I'm not sure what the testing story is for the
prototype cache...

Differential Revision: https://phabricator.services.mozilla.com/D101851
2021-01-18 17:38:56 +00:00
Emilio Cobos Álvarez bd8cffdd58 Bug 1351248 - Simplify nsIFrame::IsFocusable API. r=layout-reviewers,mats
We always compute the tabindex value, so just return it to the caller
all the time. This allows us to use early-returns which makes the code a
bit easier to follow.

This patch shouldn't change behavior.

Differential Revision: https://phabricator.services.mozilla.com/D100423
2021-01-03 23:30:51 +00:00
Kagami Sascha Rosylight 00c44d3b04 Bug 1680167 - Part 4: MOZ_CAN_RUN_SCRIPT in dom/xul r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D98627
2020-12-03 22:08:44 +00:00
Kagami Sascha Rosylight 1e9bd44120 Bug 1680167 - Part 2: MOZ_CAN_RUN_SCRIPT in dom/html r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D98625
2020-12-03 22:15:56 +00:00
Dave Townsend 26af9ac6e2 Bug 1659949: Fix is atom setting for elements within localized elements. r=smaug
When re-creating element prototypes for elements within localized elements we
must set the mIsAtom correctly on the prototype.

Differential Revision: https://phabricator.services.mozilla.com/D97799
2020-12-03 00:53:18 +00:00
Tim Nguyen 78d18899ac Bug 1678523 - Prevent unexpected flushes in XULTreeAccessible.cpp. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D97955
2020-11-26 08:49:56 +00:00
Simon Giesecke dd80614fa0 Bug 1678062 - Remove unnecessary includes. r=andi
Differential Revision: https://phabricator.services.mozilla.com/D97467

Depends on D96561
2020-11-23 16:12:02 +00:00