Commit Graph

7114 Commits

Author SHA1 Message Date
Jonathan Kew
6ca182d055 Bug 1454598 - part 2 - Allow variation fonts to record a weight range in gfxFontEntry, and update font-matching to handle ranges. r=jwatt 2018-04-25 07:18:23 +01:00
Brian Grinstead
c79ba311f8 Bug 1456682 - Remove nsIDOMXULTreeElement;r=bz
MozReview-Commit-ID: 2QstcmlXh9S

--HG--
extra : rebase_source : 7f767686c65426a1079c0b10092d32dee91a4e3b
2018-04-25 06:58:56 -07:00
Eitan Isaacson
c947f9b6ab Bug 1454783 - Remove non-Android presenters in AccessFu. r=yzen
--HG--
extra : rebase_source : 1ed88a48b387022ec3e48d4dca7574744b09064d
2018-04-24 14:43:00 +03:00
Eitan Isaacson
70e1c57e9b Bug 1454785 - Make TakeFocus user initiated. r=surkov
--HG--
extra : rebase_source : 554b1a7dabcdd3f14e67028ad5effc69dabed4b9
2018-04-23 09:02:00 +03:00
Jonathan Watt
156c4af1ec Bug 1436048: Use user defined types for font-stretch / font-style. r=jfkthame,jwatt
Co-authored-by: Emilio Cobos Álvarez <emilio@crisal.io>

MozReview-Commit-ID: 7ONYtICeAqb
2018-04-23 18:22:05 +02:00
Masayuki Nakano
043e93a8ba Bug 1451672 - part 21: Refine TextEditor::TypedText() r=m_kato
According to existing comments, TextEditor::TypedText() and
HTMLEditor::TypedText() are intentional bottleneck to debug.  However, only
for that purpose, it and its internal methods are made virtual.  This really
doesn't make sense.

So, this patch creates TextEditor::OnInputText() for callers of TypedText()
with non-empty string, TextEditor::OnInputParagraphSeparator() for callers
of TypedText() with eTypeBreak (Enter key or insertParagraphSeparator),
HTMLEditor::OnInputLineBreak() for callers of TypedText() with eTypeBR
(Shift + Enter or insertLineBreak).  Additionally, this creates internal
non-virtual methods for XPCOM methods which are used as internal methods of
TypedText().  One is InsertTextAsAction() for nsIPlatintextEditor.insertText().
the other is InsertParagraphSeparator() for nsIPlaintextEditor.insertLineBreak().

Although those new methods are not have "WithTransaction" postfix, they must
be clearer they'll use transactions since user input and actions should be
undo-able.

MozReview-Commit-ID: AmOkMqovIKA

--HG--
extra : rebase_source : 9c0f4b25fa2a36ad2f3394f72eb290824c31d82a
2018-04-16 23:43:36 +09:00
Masayuki Nakano
80c2ea82ed Bug 1451672 - part 9: Create TextEditor::DeleteSelectionAsAction() as implementation of nsIEditor::DeleteSelection() r=m_kato
First, EditorBase::DeleteSelection() is never used since
TextEditor::DeleteSelection() overrides it but does not call it.  So, this patch
makes EditorBase::DeleteSelection() only returns NS_ERROR_NOT_IMPLEMENTED.

Next, EditorBase::DeleteSelectionImpl() actually removes content for
TextEditor::DeleteSelection().  So, it should be named as
DeleteSelectionWithTransaction().  However, it'll be done in the following
patch.  On the other hand, its callers are EditorBase::HandleKeyPressEvent()
and EditorBase::DeleteSelectionAndPrepareToCreateNode().  Fortunately, they
can be moved to TextEditor simply.  Therefore this patch moves the methods
to TextEditor for making related methods in a place.

Then, we can make the implementation of nsIEditor::TextEditor() as a non-virtual
method, TextEditor::DeleteSelectionAsAction().

MozReview-Commit-ID: KXFDhW3G9lA

--HG--
extra : rebase_source : 15986979279b2cae3b61cda1bf6bf3d9e4987f3f
2018-04-11 17:37:49 +09:00
Dorel Luca
65669dae30 Merge mozilla-inbound to mozilla-central. a=merge 2018-04-21 02:00:04 +03:00
Boris Zbarsky
45a3faf8f6 Bug 1455052 part 12. Remove JS uses of nsIDOMEvent. r=masayuki,kmag
MozReview-Commit-ID: 5g0H3rzxTXt
2018-04-20 12:55:31 -04:00
Brian Grinstead
824507efc4 Bug 1455392 - Remove checkState from nsIDOMXULCheckboxElement and nsIDOMXULButtonElement;r=bz,surkov
There aren't any consumers for the third state, so `checked` is enough.

MozReview-Commit-ID: BpcQX2acA6C

--HG--
extra : rebase_source : f43c9fbe8d774208d203e4d819f39d3d99da05ff
2018-04-20 09:37:03 -07:00
Cosmin Sabou
dcacfcfc71 Backed out 2 changesets (bug 1454598) as requested by Mossop in developers channel. a=backout
Backed out changeset b673e87d6134 (bug 1454598)
Backed out changeset 072dc1504ce6 (bug 1454598)
2018-04-20 06:45:39 +03:00
Brindusan Cristian
b29d60aaaa Backed out changeset 99ec19154f8a (bug 1454081) for browser chrome failures on browser_test_resolution.js. CLOSED TREE 2018-04-19 22:06:08 +03:00
Eitan Isaacson
71f43ca16b Bug 1454081 - Fix accessible coordinates in APZ viewports. r=surkov, r=yzen, r=jchen 2018-04-19 09:19:00 -04:00
Jonathan Kew
6f1e2a29b3 Bug 1454598 - part 2 - Allow variation fonts to record a weight range in gfxFontEntry, and update font-matching to handle ranges. r=jwatt 2018-04-19 13:28:13 +01:00
Nika Layzell
be8b24333a Bug 1444991 - Part 1: Read webidl's Bindings.conf, and pass it into xpidl, r=mccr8
This information is read in order to handle correctly selecting the native
type and header files for WebIDL types.
2018-04-17 19:20:58 -04:00
Csoregi Natalia
cc8f2c09f1 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-04-18 01:39:35 +03:00
Csoregi Natalia
12a8bddd95 Merge inbound to mozilla-central. a=merge 2018-04-18 00:52:25 +03:00
Alex Gaynor
015fb6557b Bug 1454628 - fixed compilation with --disable-accessibility builds; r=aklotz
This was broken by bug 1453979.

MozReview-Commit-ID: JtJqICb2vBP

--HG--
extra : rebase_source : 90aa93a1591b0d8c0705fd79fdf9a64c5ee15e57
2018-04-17 13:01:19 -04:00
Alexander Surkov
b59a2588ee Bug 1446671 - convert mochitest/textcaret/test_browserui.xul test into a browser test, r=yzen, gijs 2018-04-11 16:13:30 -04:00
Alex Gaynor
6666b550ef Bug 1453979 - use ContiguousEnumSerializerInclusive for serializing enums in a11y IPC code; r=MarcoZ
MozReview-Commit-ID: 92S42SkSEEP

--HG--
extra : rebase_source : c549b4bd6de72ecd321c556b3330de92060973ec
2018-04-13 10:51:43 -04:00
shindli
cdc66c6a3b Backed out changeset 99c2396a4c87 (bug 1453979) for mozmake.exe failures in z:/build/build/src/accessible/ipc/win/DocAccessibleChild.cpp on a CLOSED TREE 2018-04-16 21:07:44 +03:00
Alex Gaynor
6e06627ff1 Bug 1453979 - use ContiguousEnumSerializerInclusive for serializing enums in a11y IPC code; r=MarcoZ
MozReview-Commit-ID: 92S42SkSEEP

--HG--
extra : rebase_source : 6689ffd790390892faa4a80c60737934afda7477
2018-04-13 10:51:43 -04:00
James Teh
c68c566fd8 Bug 1453876: Fix accessibility blocking of the Ask.com Toolbar. r=eeejay
Bug 1421018 intended to block the Ask.Com Toolbar (tbnotifier.exe).
This is basically malware and is responsible for a huge number of unnecessary accessibility instantiations.
However, there seems to have been some confusion and we ended up blocking tbnnotifier.exe instead.
This changes that block to tbnotifier.exe.

MozReview-Commit-ID: 2gZF8sYeGtb

--HG--
extra : rebase_source : 3d14a24c12748edfc31ddf7dac51bca491abd744
2018-04-13 15:12:13 +10:00
Andrew McCreight
3f7472aec1 Bug 1449670, part 1 - Convert IsNodeOfType(nsINode::eTEXT) to IsText(). r=bz
This method is not a virtual call, and also looks nicer.

This patch was mostly generated by a Python script, but I manually
cleaned up the code in a few places where statements didn't need to be
split across multiple lines any more.

MozReview-Commit-ID: 8JExxqSRc59

--HG--
extra : rebase_source : df6330a89e8d65dfe7a6fda0c8cb9f9732302efc
2018-04-12 15:41:00 -07:00
Andreea Pavel
69ae5fe098 Merge mozilla-central to autoland. a=merge on a CLOSED TREE 2018-04-14 00:58:36 +03:00
Jonathan Watt
1e7f76576a Bug 1436048 part 1 - Use a user defined type for font weight everywhere. r=jfkthame,emilio
--HG--
extra : rebase_source : 2e267ff99de6f52484e34ac15c39e5ca8b473394
2018-04-13 20:34:37 +01:00
Tom Bannister
988d18881f Bug 1434710 - Replaced all instances of mozilla::IndexSequence, mozilla::MakeIndexSequence and mozilla::IndexSequenceFor with std::index_sequence, std::make_index_sequence and std::index_sequence_for and removed mfbt/IndexSequence.h. r=botond
MozReview-Commit-ID: 1Ema7TUNr5v

--HG--
extra : rebase_source : e5bb164dbe19993214e8c16f92b0a1f5d2ff3fa1
2018-04-09 21:12:13 +10:00
Sebastian Hengst
0819f35e51 Backed out 4 changesets (bug 525063) on request from Andi. a=backout
Backed out changeset 516c4fb1e4b8 (bug 525063)
Backed out changeset 6ff8aaef2866 (bug 525063)
Backed out changeset bf13e4103150 (bug 525063)
Backed out changeset d7d2f08e051c (bug 525063)
2018-04-13 16:01:28 +03:00
arthur.iakab
b9f0fcc3d6 Merge mozilla inbound to mozilla-central a=merge 2018-04-13 12:43:21 +03:00
Marco Zehe
1682e25e09 Bug 1453606 - Add tests for Accessible name and Description Computation spec test cases, r=surkov
MozReview-Commit-ID: 8vmdEF3Rm7V

--HG--
extra : rebase_source : 78fa6b0b5d97bb00f121becde9cf86ddf9434981
2018-04-12 13:28:26 +02:00
James Teh
7f39c5ef15 Bug 1453873: Stop firing accessible focus events for JAWS when combo box options are selected. r=MarcoZ
These events were a hack implemented in bug 703198.
At that time, JAWS required focus events for selection changes in a collapsed combo box.
However, these events also fire for expanded combo boxes.
This is problematic with e10s because now, for an expanded combo box, the real focus events come from the XUL dropdown implemented in the parent process, which is not associated with the document a11y tree in any way.
JAWS seems to cope just fine with value changes for Firefox combo boxes now and VFO have agreed that this is the correct path forward.

MozReview-Commit-ID: Iefop25bFe0

--HG--
extra : rebase_source : a86e5d73d560853bb50e1d8e3bbd11431aba8eb0
2018-04-13 14:14:50 +10:00
Eitan Isaacson
f5f21328b5 Bug 1449364 - Create SessionAccessibility for GeckoSession. r=jchen r=yzen 2018-04-12 13:46:47 -07:00
James Teh
7d61c9f99e Bug 1453555: Fix accessibility group info for <select size="1"> options. r=surkov
In the e10s implementation, Accessible::NativeState for the options doesn't include the invisible state. (It does with e10s disabled.)
In HTMLSelectOptionAccessible::NativeState, rather than just flipping (xor) the invisible state, absolutely ensure it gets removed. We don't want to *add* the invisible state if it isn't there.
This allows group position info to be calculated correctly.

MozReview-Commit-ID: LPEVhOOm2NT

--HG--
extra : rebase_source : 3091ca1826b216bb7c91eb62aafc16f79b786272
2018-04-12 16:32:19 +10:00
Eliza Balazs
004b044bd6 Bug 1429575 - Disable test_browserui.xul for frequent failure on linux. r=gbrown
--HG--
extra : rebase_source : 1b012fc9e10219f3c5e64a7e55f4e8febeca121d
2018-04-12 02:18:00 +03:00
Margareta Eliza Balazs
d4e35cf8f7 Backed out 2 changesets (bug 1449364, bug 1453278) for rc4 and 42 perma failures in layout/base/tests/test_bug332655-2.html and testInputConnection on a CLOSED TREE
Backed out changeset 7149139c60d9 (bug 1449364)
Backed out changeset bcfee006ebaa (bug 1453278)
2018-04-12 15:30:20 +03:00
Eitan Isaacson
29d6c7e5d5 Bug 1449364 - Create SessionAccessibility for GeckoSession. r=jchen r=yzen 2018-04-11 15:21:00 +03:00
Boris Zbarsky
a730b3a9ad Bug 1453053 part 1. Remove useless QIs to nsIDOMNode. r=qdot
MozReview-Commit-ID: GokPD2buxzN
2018-04-12 00:06:25 -04:00
Noemi Erli
97108d5fb8 Backed out changeset 11a9cb8e8200 (bug 1446671) for ES Linting opt failures on accessible/tests/browser/events/browser_test_textcaret.js on a CLOSED TREE 2018-04-12 04:35:22 +03:00
Alexander Surkov
a64f999c41 Bug 1446671 - Convert mochitest/textcaret/test_browserui.xul test into a browser test. r=yzen, gijs 2018-04-11 16:13:30 -04:00
Eliza Balazs
4119735d14 Bug 1411145 - Disable test_embeds.xul for frequent failures on linux. r=gbrown
--HG--
extra : rebase_source : 41ca81b6d670a959e7434abbb54be7dadc3a7b09
2018-04-09 09:30:00 -07:00
Tristan Bourvon
a3a77c0312 Bug 525063 - Initialize uninitialized class attributes in m-c. r=ehsan 2018-04-10 21:11:02 +02:00
Ciure Andrei
873d562bc3 Backed out 8 changesets (bug 1451169) on request from njn a=backout
Backed out changeset b92f856e15a8 (bug 1451169)
Backed out changeset 348e825756fa (bug 1451169)
Backed out changeset 624d82428726 (bug 1451169)
Backed out changeset 4d51610ca08e (bug 1451169)
Backed out changeset bb76a9589717 (bug 1451169)
Backed out changeset c145fbd03947 (bug 1451169)
Backed out changeset 6d36289e0f54 (bug 1451169)
Backed out changeset 914fb7cd9fc3 (bug 1451169)

--HG--
extra : histedit_source : 94de6631919f895dec422bc0e564f5baf885ba4a%2C18f52c6c11d3064d3137a6847575effb7d407894
2018-04-11 11:22:05 +03:00
arthur.iakab
50132b1765 Backed out changeset 090f4e5a8d73 (bug 1446671) For failing Test verify on accessible/tests/browser/events/browser_test_textcaret.js on a CLOSED TREE 2018-04-10 22:12:51 +03:00
Alexander Surkov
833fe43cb6 Bug 1446671 - convert mochitest/textcaret/test_browserui.xul test into a browser test, r=yzen, gijs 2018-04-10 14:02:19 -04:00
Tim Nguyen
1d19015df5 Bug 1437302 - Fix width of textbox[type=number] consumers. r=Paolo, Neil Deakin
--HG--
rename : toolkit/themes/linux/global/numberbox.css => toolkit/themes/shared/numberbox.inc.css
extra : amend_source : d9161dc8d21b958488b7304849a5e8c164f660bb
2018-03-26 14:34:39 +02:00
Boris Zbarsky
f2f3fe42ff Bug 1452185 part 3. Remove unnecessary nsIDOMXULElement includes. r=qdot
MozReview-Commit-ID: Ft5MnbFtyB9
2018-04-09 16:30:32 -04:00
Boris Zbarsky
77f8167eb3 Bug 1452185 part 2. Remove nsIDOMXULElement use in JS. r=qdot
MozReview-Commit-ID: 2JIybnXaudR
2018-04-09 16:30:32 -04:00
Emilio Cobos Álvarez
0ea369c6a3 Bug 1450717: Remove unneeded / inconsistent arguments from nsCSSFrameConstructor. r=mats
Much in the spirit of bug 1442207.

They're not only unneeded, and cheap to get, but also we call them
inconsistently with the light DOM and flattened tree parent (like ContentRemoved
for display: contents), so they're really confusing, and kind of a footgun.

MozReview-Commit-ID: 9u3Kp8Kpp5i
2018-04-07 15:37:39 +02:00
alexander :surkov
0dcb085ffc Bug 1451673 - "Crash in mozilla::a11y::HTMLTableAccessible::IsProbablyLayoutTable" r=MarcoZ
--HG--
extra : rebase_source : c062393f4350cd9897358fe3ba142bb3e072f235
2018-04-05 10:24:00 +03:00
Boris Zbarsky
88937275cc Bug 1449631 part 9. Remove nsIDOMEventTarget::AddEventListener. r=smaug
Also switch the XPCOM-y version of EventTarget::AddEventListner to a
Nullable<bool> for aWantsUntrusted.

The three-arg overload of AddEventListener in ContentFrameMessageManager was
never called, so all the AddEventListener overloads there are not needed.

MozReview-Commit-ID: 4IhqHmPVWzE
2018-04-05 13:42:42 -04:00
Boris Zbarsky
1dce94cf16 Bug 1449631 part 2. Remove nsIDOMEventTarget::RemoveEventListener. r=smaug
We can't have a null content in
ScrollbarActivity::StopListeningForScrollAreaEvents, because only viewport
frames have a null GetContent().

MozReview-Commit-ID: 9iAg0ivVqqG
2018-04-05 13:42:40 -04:00
Nicholas Nethercote
a560608963 Bug 1451169 - Use nsStaticAtom* instead of nsStaticAtom** in Element.h. r=baku
And then fix up everything else that needs to change as well.

MozReview-Commit-ID: GDMfERqdQAc

--HG--
extra : rebase_source : 01fe06c3182245a409099a53383d92bf4fa0155c
2018-04-03 13:21:06 +10:00
Nicholas Nethercote
5f08f2ad31 Bug 1451169 - Use nsStaticAtom* const instead of nsStaticAtom** in DocAccessible.cpp. r=davidb
MozReview-Commit-ID: 6brOOd7hFqV

--HG--
extra : rebase_source : 0d783d878db5a844f49bc04c48012b76aba982c3
2018-04-03 22:15:30 +10:00
Nicholas Nethercote
86ae6e9859 Bug 1451169 - Use nsStaticAtom* instead of nsStaticAtom** in nsAccessibilityService.h. r=davidb
MozReview-Commit-ID: ELDULed7sWF

--HG--
extra : rebase_source : bff720f0fdc9b9c41128299bfc1f32cdef1404f4
2018-04-03 11:20:13 +10:00
Nicholas Nethercote
30c7ab35fe Bug 1451169 - Change nsRoleMapEntry::roleAtom from nsStaticAtom** to nsStaticAtom* const. r=davidb
And likewise for AttrCharacteristics::attributeName.

MozReview-Commit-ID: DwGzWCCKcVP

--HG--
extra : rebase_source : ac595af0b0da2cee36b5aecf4474880fbe993f11
2018-04-03 10:55:33 +10:00
Alexander Surkov
6efd466d44 Bug 1446671 - enable logging for textcaret/test_browserui.xul 2018-04-03 13:41:26 -04:00
Paolo Amadini
bd53878f66 Bug 1434860 - Part 2 - Remove support for menu-button toolbar buttons. r=enn
MozReview-Commit-ID: MTLaIPzg7a

--HG--
extra : rebase_source : edcefa844e36f8e1ff4199580502d516d26b0f8f
extra : amend_source : ca4896a89bb7b45aef8d782d31e47d4ed3be5351
extra : source : 54f36172186d7345c6aeb92fd3c1254717156767
2018-04-03 16:26:03 +01:00
Alexander Surkov
1b66a81b51 Bug 1449530 - fix bustage of a11cb2c5d1f9c CLOSED TREE 2018-04-03 11:00:48 -04:00
Alexander Surkov
4c64dee806 Bug 1449530 - clean up ATK states mapping, r=eeejay 2018-04-03 10:26:57 -04:00
Ciure Andrei
5d841a3421 Merge inbound to mozilla-central. a=merge 2018-03-30 01:06:18 +03:00
David Major
40c8e34acf Bug 1449337: Don't take the first VectoredExceptionHandler slot away from ASan. r=Jamie 2018-03-29 10:18:14 -04:00
Boris Zbarsky
4370006c40 Bug 1449404 part 3. Get rid of nsIContent::AppendTextTo. r=mccr8 2018-03-28 18:01:47 -04:00
Bogdan Tara
39d9b048b9 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-03-27 12:16:26 +03:00
Bogdan Tara
302a55b534 Merge inbound to mozilla-central. a=merge 2018-03-27 12:12:57 +03:00
Boris Zbarsky
df07d2d834 Bug 1447890 part 5. Remove nsISelection::RemoveAllRanges. r=mystor
MozReview-Commit-ID: EeMje9KW6An
2018-03-27 00:35:23 -04:00
Boris Zbarsky
74e28b0d19 Bug 1447890 part 2. Remove nsISelection::RemoveRange. r=mystor
MozReview-Commit-ID: JXq5FYNNXPJ
2018-03-27 00:35:22 -04:00
Boris Zbarsky
54d1f87ff4 Bug 1447890 part 1. Remove nsISelection::AddRange. r=mystor
MozReview-Commit-ID: 1JNLZp7tbII
2018-03-27 00:35:22 -04:00
Boris Zbarsky
17509bc9da Bug 1449019. Actually propagate out exceptions from the innerHTML getter. r=smaug
I moved the IgnoreErrors decl so it would come after the OOMReporter decl and I
could add the new conversion operator.

MozReview-Commit-ID: B1S6DXmZfvE
2018-03-26 16:41:43 -04:00
Boris Zbarsky
98a683f9e1 Backed out changeset 1023e033bfa6 (bug 1132934) because it hasn't been reviewed yet.
MozReview-Commit-ID: LXefIp2OG6Q
2018-03-26 16:47:31 -04:00
Boris Zbarsky
0ce4de30db Bug 1132934 part 1. Actually propagate out exceptions from the innerHTML getter. r=smaug
MozReview-Commit-ID: KEqsx836qQn
2018-03-26 16:41:43 -04:00
Henri Sivonen
66abf4340e Bug 1448575 - Use AssignLiteral/AssignASCII for short ASCII constant strings in nsAccessibilityService. r=surkov
MozReview-Commit-ID: 1ONYQDKNf01

--HG--
extra : rebase_source : 6f8ead44feb750f759e847a422ecc09f4cbecf65
2018-03-24 20:06:05 +02:00
James Teh
83a22d7047 Bug 1448091 part 2: AccessibleHandler: Don't repeatedly and unnecessarily refresh the cache after the first change. r=MarcoZ
The singleton AccessibleHandlerControl maintains a global cache generation counter which is incremented whenever any node is changed.
The handler for each node tracks the cache generation at the time its cache was initialized.
To check whether the cache needs to be updated, the handler compares its generation against the global generation from AccessibleHandlerControl.
If they differ, it refreshes the cache.
Previously, the handler didn't update its cache generation after refreshing.
This meant that every single query after the first change would refresh the whole cache, even if there wasn't a second change.
This resulted in a huge number of wasted cache updates for clients such as JAWS which hold onto accessibles, rather than releasing them and fetching them again for each update.

MozReview-Commit-ID: 80d4n1cIjzQ

--HG--
extra : rebase_source : a0903ddb33eba5381a232a661deaa3754b92406f
2018-03-23 11:53:01 -04:00
James Teh
46dc3c27be Bug 1448091 part 1: Accessible HandlerProvider: Return an error if refreshing the cache fails. r=MarcoZ
BuildDynamicIA2Data can't return an HRESULT; failure is communicated by the fact that the unique id in the data is set to 0.
However, IGeckoBackChannel::Refresh returned S_OK even if BuildDynamicIA2Data failed.
We now check the unique id and return an appropriate error code if it's 0.
Among other things, this means that the handler will return an error when querying dead objects instead of returning stale cache data.

MozReview-Commit-ID: IorDRHCItD8

--HG--
extra : rebase_source : 1b3b8393309ccefac27d0228aa528cd6fa55ad35
2018-03-23 11:44:05 -04:00
James Teh
ab44d98e0d Bug 1431256 correction: AccessibleHandler: Really return E_NOINTERFACE for IEnumVARIANT if there are no children. r=MarcoZ
A typo meant we were checking the address of mChildCount, not the value.

MozReview-Commit-ID: 7Hit3FBy9pr

--HG--
extra : amend_source : edb85b8e73184e47cd9ff42c0442f89d5f3c5152
2018-03-22 17:57:34 -04:00
Noemi Erli
1270a21724 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-03-23 01:00:18 +02:00
Emilio Cobos Álvarez
e341b20ec4 Bug 1447483: Merge nsStyleContext and ServoStyleContext, rename to ComputedStyle. r=jwatt on a CLOSED TREE
MozReview-Commit-ID: JPopq0LudD
2018-03-22 20:06:24 +01:00
Emilio Cobos Álvarez
5dd797f154 Back out changeset b683bb3f22a1 (Bug 1447483) for not landing with all the files. r=me on a CLOSED TREE
This reverts commit 1808914126bb9f9e4a82d2c3d7ac961885fe7d62.

MozReview-Commit-ID: 5skESBseEvo
2018-03-22 20:05:22 +01:00
Emilio Cobos Álvarez
ca5ac79cca Bug 1447483: Merge nsStyleContext and ServoStyleContext, rename to ComputedStyle. r=jwatt
MozReview-Commit-ID: JPopq0LudD
2018-03-22 19:48:42 +01:00
James Teh
25c5e06a69 Bug 1431256 part 4: Remove IEnumVARIANT from the AccessibleHandler payload. r=MarcoZ
Now that the handler implements IEnumVARIANT itself (and uses our own internal method to retrieve the children), caching this remote interface is pointless.

MozReview-Commit-ID: FyagiEcHMP2

--HG--
extra : rebase_source : 267568164fb46d98c8cde22dfbb4f36f2afceb8c
2018-01-19 11:40:42 +10:00
James Teh
4ce4f0dab8 Bug 1431256 part 3: AccessibleHandler: When a client requests children, fetch them optimally using a single cross-process call. r=MarcoZ
This implements IEnumVARIANT locally using the new method provided by HandlerProvider.
This avoids marshaling full objects for text leaf accessibles (instead using HandlerTextLeaf), which is much faster.
It also avoids a pointless cross-process call to IEnumVARIANT::Reset (and possibly IEnumVARIANT::Clone).
Finally, it caches children after the first query so that clients (such as UI Automation) which walk children one by one don't incur separate cross-process calls for every child.

MozReview-Commit-ID: KUIXQoXxInQ

--HG--
extra : rebase_source : a6c0a56c2bb65e227f7c45eb1b767e7df19efa49
2018-03-21 11:03:45 -04:00
James Teh
7603de4f18 Bug 1431256 part 2: AccessibleHandler: Implementation of IAccessible2 for text leaf accessibles using data provided in AccChildData. r=MarcoZ
For text leaf accessibles, the HandlerProvider::AllChildren property provides text and other necessary information in an AccChildData struct, rather than providing the full accessible object.
Therefore, we must provide a specific local implementation of IAccessible2 which answers queries based on the data provided in this struct.

MozReview-Commit-ID: 8BYMF59EoTe

--HG--
extra : rebase_source : 0cdc01158f7fd1a04b0751a0a1703f9aa03cbe4c
2018-03-21 10:56:11 -04:00
James Teh
39c71764d7 Bug 1431256 part 1: Accessible HandlerProvider: Implement a method to optimally retrieve all children in a single call. r=MarcoZ
When considering a large document, a huge number of the children we return are text leaf nodes.
Marshaling full objects is expensive, but for text leaf nodes, the client is only interested in the text and a few other pieces of information.
Therefore, rather than returning the full object for text leaf accessibles, we just return the text and other necessary information.
For other non-text children, we return the full object as usual.

In addition, clients normally use the IEnumVARIANT interface to retrieve children in a single call.
However, it doesn't allow you to specify a starting index.
Therefore, you must first call the Reset method to reset the starting point to 0.
Practically, this means an extra cross-process call whenever the caller fetches children.
When dealing with a large document, this can be a significant number of wasted calls.
This new method retrieves all children always starting at the first using a single call.

MozReview-Commit-ID: A9lc7BBTWdb

--HG--
extra : rebase_source : d50507c182ab7760c17c5e7bb9956f46a3dc188c
2018-03-21 10:08:53 -04:00
Boris Zbarsky
bf1ef0641d Bug 1444143 part 10. Remove unnecessary QIs to Ci.nsIFrameLoader in JS. r=mystor
nsFrameLoader is on WebIDL bindings, so those QIs are no-ops anyway, unless the given object is no a frameloader to start with.

MozReview-Commit-ID: IPiW70H5NPc
2018-03-21 22:43:17 -04:00
Boris Zbarsky
29d232e53f Bug 1447098 part 1. Rename FromContent on various DOM classes to FromNode. r=mystor
MozReview-Commit-ID: 202nkbmkwfR
2018-03-21 17:39:04 -04:00
Samuel Thibault
127ee40c95 Bug 1445954 - atk: Fix getTextAfter/Before/AtOffset in character boundary case. r=surkov 2018-03-16 05:52:00 -04:00
arthur.iakab
abcb47d8cc Merge inbound to mozilla-central. a=merge 2018-03-21 21:13:11 +02:00
Miko Mynttinen
65c6bee9d6 Bug 1445302 - Replace TArray.RemoveElementAt(TArray.Length() - 1) pattern with TArray.RemoveLastElement() or TArray.PopLastElement() r=froydnj
MozReview-Commit-ID: rGjabnP2iz

--HG--
extra : rebase_source : 1ef6c5ce028ac9ebd9f3176d57835c43fe46bada
2018-03-13 14:51:33 +01:00
Adrian Wielgosik
af8740d569 Bug 1447392 - Remove all members from nsIDOMNodeList. r=bz
MozReview-Commit-ID: 68xF7CTMpKB

--HG--
extra : rebase_source : 28b9c5e31d1c93b5c56743e12909eb749e8688f9
2018-03-20 19:02:08 +01:00
Sylvestre Ledru
67f287235a Bug 1446809 - Ride along: also remove some mobile/xul/ legacy declaration r=florian
MozReview-Commit-ID: 102syxweBN3

--HG--
extra : rebase_source : e742121c5d2090dcbd87eda3e0e0eaff0cdab0e3
extra : source : e6b888d19add6d0c60605e685f6263a86af97a9e
2018-03-19 10:43:17 +01:00
Csoregi Natalia
fc0283f66c Backed out 10 changesets (bug 1446809) for failing on jsat/test_content_integration.html . CLOSED TREE
Backed out changeset 42146f3856d0 (bug 1446809)
Backed out changeset e6b888d19add (bug 1446809)
Backed out changeset 2293192557ef (bug 1446809)
Backed out changeset 643d30faeef8 (bug 1446809)
Backed out changeset 73639fbb3a61 (bug 1446809)
Backed out changeset df179cf0797d (bug 1446809)
Backed out changeset 04c46f107d24 (bug 1446809)
Backed out changeset 9b98c5aad44c (bug 1446809)
Backed out changeset 347d7259df0f (bug 1446809)
Backed out changeset 2a350e323713 (bug 1446809)
2018-03-21 11:17:38 +02:00
Sylvestre Ledru
a9678b1e63 Bug 1446809 - Ride along: also remove some mobile/xul/ legacy declaration r=florian
MozReview-Commit-ID: 102syxweBN3

--HG--
extra : rebase_source : c0d2f05dd5fca7a1d67001847042ded93016fd26
extra : histedit_source : dbce0cd3244708fb3ab09254dcfd07ec69dbdd67
2018-03-19 10:43:17 +01:00
Sylvestre Ledru
0cdbcfd5ac Bug 1446809 - Remove some b2g leftover in accessible/ r=surkov
MozReview-Commit-ID: KXg0kOCHbwQ

--HG--
extra : rebase_source : 546208b106970d36692cf8f3c7edcc08ff2fa649
extra : histedit_source : a97d2ab4fb4b6a4b47fb856cb9edd1edb970c59b
2018-03-18 19:26:28 +01:00
Samuel Thibault
6f09cb80ba Bug 1445968 Accessible: factorize and optimize testing for password role r=surkov
--HG--
extra : rebase_source : 5f945bab6c2c86d059893082f9f04d6ac4492f73
2018-03-16 13:02:00 +02:00
Emilio Cobos Álvarez
48957d62c0 Bug 1446954: Cleanup !stylo and styloVsGecko test expectations. r=xidorn
MozReview-Commit-ID: J2glxiCWBVn
2018-03-20 11:29:51 +01:00
Boris Zbarsky
89ea512161 Bug 1446711 part 7. Switch the nsIDOMMouseEvent::MOZ_SOURCE_* constants over to MouseEventBinding. r=qdot
We can't include MouseEventBinding.h in MouseEvents.h because that produces
this include loop:

MouseEventBinding.h -> UIEventBinding.h ->
nsGlobalWindow.h -> nsGlobalWindowInner.h -> nsRefreshDriver.h ->
AnimationEventDispatcher.h -> AnimationComparator.h -> Animation.h ->
EffectCompositor.h -> PseudoElementHashEntry.h -> Element.h ->
PointerEventHandler.h -> MouseEvents.h -> MouseEventBinding.h

MozReview-Commit-ID: 6FNksGil7uD
2018-03-20 00:16:06 -04:00
Prathiksha
34f8913287 Bug 1444443 - Remove unsafeSetInnerHTML in test_mutation.html. r=johannh
MozReview-Commit-ID: LK9uPylXNk9

--HG--
extra : rebase_source : 3648f3d1441d62d8795c5bf89372c1113775d639
2018-03-27 19:22:09 +05:30
Xidorn Quan
3181988f2e Bug 1449400 part 2 - Remove some dependencies from ServoStyleSet.h and add some random stuff to fix breakage. r=emilio
Some of the definitions are needed for the headers removal in
following patches.

MozReview-Commit-ID: BCj7U7RgBLj

--HG--
extra : rebase_source : e8e437f76c4db6ec930ea0481b6c1a38129a5477
extra : source : a1c42220e5070fa4beea438859ab0daec3f3fe7b
2018-03-29 22:15:46 +11:00
Boris Zbarsky
2f66e620e3 Bug 1446533 part 12. Remove nsIDOMCharacterData. r=mystor
MozReview-Commit-ID: KXex3Rjcire
2018-03-19 15:47:42 -04:00
Samuel Thibault
39ed413777 Bug 1346535 - atk: Introduce U+FEFF characters to match AT-SPI offsets with DOM offsets. r=surkov, r=dbaron 2018-03-16 15:57:00 -04:00
James Teh
7e1997102b Bug 1444851 - a11y::HandlerProvider: Clear the interceptor target reference when disconnecting remotes. r=aklotz
If a handlerProvider call is pending on another thread, CoDisconnectObject won't release this HandlerProvider immediately.
However, the interceptor and its target might be destroyed.

MozReview-Commit-ID: 75SyPMIpit0

--HG--
extra : amend_source : a80f50f754c9be171e9262b13136e95005bc62af
2018-03-19 11:03:18 +02:00
Tooru Fujisawa
1adba8c1fc Bug 1442465 - Part 4.2: Stop unnecessarily awaiting on BrowserTestUtils.removeTab (simple part). r=dao 2018-03-19 11:16:45 +09:00
Aaron Klotz
0db58e8c1e Bug 1446280: Ensure a11y::SetInstantiator only runs once; r=eeejay
--HG--
extra : rebase_source : 384dc706b72ff9a9f73da261bc441e60083ed266
2018-03-16 12:23:46 -06:00
Dorel Luca
17320c327a Backed out changeset a66043ecf949 (bug 1346535) for build bustages 2018-03-17 00:08:00 +02:00
Samuel Thibault
57a8fb9615 Bug 1346535 atk: Introduce U+FEFF characters to match AT-SPI offsets with DOM offsets r=surkov 2018-03-16 05:11:00 +02:00
Kris Maglione
de97dac4da Bug 1443964: Follow-up: Remove no-cpows-in-test rule from files listed in .hgignore. r=bustage
MozReview-Commit-ID: GctiWN0Y9XO

--HG--
extra : rebase_source : 62958563eddf970f8be917032dda8cdaa969157f
2018-03-16 12:40:59 -07:00
Sylvestre Ledru
fa45a3c670 Bug 1443080 - Use the static call for static methods (not instance) r=Ehsan
MozReview-Commit-ID: JwHh4bzxuTR

--HG--
extra : rebase_source : 5f5e37517aa80c2e7b5933962178d761074886e7
2018-03-16 14:29:15 +01:00
Dão Gottwald
b408bbc765 Bug 1445572 - Rename mCurrentTab / mCurrentBrowser to _selectedTab / _selectedBrowser. r=jaws
MozReview-Commit-ID: IjH4bFnf5FA

--HG--
extra : rebase_source : 4e5e2d3bab9f9555ccf9265131516dd4bfb22d2e
2018-03-14 09:59:06 +01:00
Nicholas Nethercote
d41188c796 Bug 1445117 - Remove duplicates from nsGkAtoms. r=froydnj
In each case, the atom had an obvious name and a weird name. Where possible, I
kept the obvious name and commented out the weird name, viz:

- `mixed` over `_mixed` for "mixed"
- `el` over `el_` for "el"
- `other` over `other_` for "other"
- `remote` over `Remote` for "remote"

But for several of them I didn't do that, because the weird name is used
within the HTML5 parser -- which is a huge pain to modify because it involves
code generated by code from another repo -- so I kept the weird name and
commented out the obvious name, viz:

- `list_` over `list` for "list"
- `svgSwitch` over `_switch` for "switch"
- `set_` over `set` for "set"

MozReview-Commit-ID: Jp3CpdWXNDm

--HG--
extra : rebase_source : 421ce5316772f1951488307e81f2ceee696d363d
2018-03-14 10:27:25 +11:00
Trisha
d8d2ae0cd5 Bug 1442280 - Replaced aAccessible->Role() with Accessible::IsTable()method. r=surkov 2018-03-13 15:56:03 +08:00
Eitan Isaacson
2b07e271d1 Bug 1387608 - Check if tempPosition is null in pivot move by text. r=surkov 2018-03-22 15:10:00 -04:00
Boris Zbarsky
37b111ac2a Bug 1447472 part 2. Remove nsIDOMCustomEvent. r=qdot
MozReview-Commit-ID: 3NPqLIU8cka
2018-03-26 14:53:51 -04:00
Tim Nguyen
635ae2f3e3 Backed out changeset 2ccae202b2c2 (bug 1445099) for landing the wrong patch 2018-03-26 16:30:12 +02:00
Tim Nguyen
0646b66ea2 Bug 1445099 - Remove unused properties from browser binding. r=enndeakin
--HG--
rename : toolkit/themes/linux/global/numberbox.css => toolkit/themes/shared/numberbox.inc.css
2018-03-26 16:28:06 +02:00
Tokio Kajitsuka
de03ee873d Bug 865615 - Remove Accessible::DOMNode. r=surkov
Replace Accessible::DOMNode with Accessible::GetNode version

--HG--
extra : rebase_source : c8b2480e3ec521afbc3979d6932b6876c85796b5
2018-03-23 00:52:14 +09:00
David Major
524a6c226d Bug 1324110: Add braces to initialization in ProxyAccessible.cpp to appease clang-cl. r=Jamie 2018-03-22 14:20:56 -04:00
Timothy Guan-tin Chien
f0ad43f510 Bug 1442800 - Let New_Accessible take Element instead of nsIContent r=surkov
The passed nsIContent is always an Element.

MozReview-Commit-ID: IMvWuK6MIra

--HG--
extra : source : 5ba61f06a008e7d1d162329945f2ab132c224181
extra : intermediate-source : c7f94aad31aea1e7015e6df0a828cda3f3729b0b
2018-03-06 13:47:43 -08:00
Narcis Beleuzu
298d1d55b5 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-03-13 12:36:54 +02:00
Daniel Holbert
3dec324930 Bug 1444964: Add needed #includes and namespaces to fix non-unified build bustage in accessible/base. r=surkov
MozReview-Commit-ID: GWz3Mwj07Wf

--HG--
extra : rebase_source : 3281fef98230010966c5759fd8b8e186aeade50c
2018-03-12 11:03:55 -07:00
Noemi Erli
ac0a30f58c Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-03-13 01:16:04 +02:00
Dão Gottwald
3a59da2e31 Bug 1444891 - Remove the statuspanel binding. r=jaws
MozReview-Commit-ID: KcpOYuObiNG

--HG--
extra : rebase_source : 6784b6b8ae7d9615fedfc6e4bb7ac2d27c297f72
2018-03-12 20:47:31 +01:00
Nabeel Ahsen
c8354affda Bug 1436961 - Remove obsolete XPCOMUtils.jsm imports in accessible/jsat/. r=dao
MozReview-Commit-ID: 4NBiYQkz5wb
2018-03-11 14:08:55 -05:00
L. David Baron
6ecac72ef7 Bug 1444633: Include nsString.h in TextAttrs.h. r=dholbert 2018-03-11 21:34:13 -07:00
Tom Ritter
f572733682 Bug 1444169 Fix capitalization for a few Windows files r=aklotz
MozReview-Commit-ID: BlWgIVobOBK

--HG--
extra : rebase_source : 71a8052c562aa7be510e3a4c13a0ca698a04a5ac
2018-03-08 14:49:59 -06:00
Dorel Luca
30edeead7c Merge mozilla-central to mozilla-inbound. a=merge 2018-03-09 12:01:54 +02:00
Yura Zenevich
5a5a814950 Bug 1443871 - ensure eXPCOM consumer flag is always set if the service still exists. r=surkov
MozReview-Commit-ID: 8BYRPqH7jvq
2018-03-09 00:50:28 -05:00
Yura Zenevich
7f105867c2 Bug 1443150 - unset doc accessible's document node at the very end of its shutdown. r=surkov
MozReview-Commit-ID: FoSaZ7lkk6G
2018-03-09 00:47:08 -05:00
Yura Zenevich
f1493ab792 Bug 1444003 - remove shutdown timer when xpcAccessibleService's refcount grows over 1. r=surkov
MozReview-Commit-ID: 8qQWdRkE1tb
2018-03-09 00:45:15 -05:00
Timothy Guan-tin Chien
686d0472da Bug 1442800 - Let New_Accessible take Element instead of nsIContent r=surkov
The passed nsIContent is always an Element.

MozReview-Commit-ID: IMvWuK6MIra

--HG--
extra : rebase_source : 520c6ea9d3bd90e480224315e0fc0ce7e5b7db27
2018-03-06 13:47:43 -08:00
Gurzau Raul
3a353942ca Backed out changeset 564cb9725e12 (bug 1442800) for failing on browser_test_docload.js on a CLOSED TREE 2018-03-09 01:19:51 +02:00
Alexander Surkov
6f3a0a3837 Bug 1257669 - crashes calling nsIPresShell::AddRefreshObserverInternal on a null pres shell, r=eeejay 2018-03-12 16:03:19 -04:00
Cosmin Sabou
f8e4b21bcd Backed out changeset 349222d58373 (bug 1442800) for frequent wpt failures on a CLOSED TREE 2018-03-07 22:18:44 +02:00
Timothy Guan-tin Chien
bdad54c522 Bug 1442800 - Let New_Accessible take Element instead of nsIContent r=surkov
The passed nsIContent is always an Element.

MozReview-Commit-ID: IMvWuK6MIra

--HG--
extra : rebase_source : 520c6ea9d3bd90e480224315e0fc0ce7e5b7db27
2018-03-06 13:47:43 -08:00
Bogdan Tara
e3282a1fb3 Merge inbound to mozilla-central. a=merge 2018-03-07 12:03:48 +02:00
Eitan Isaacson
108ac5905a Bug 1402999 - Don't process DOM event on dead document. r=surkov
--HG--
extra : rebase_source : 6cf1790f4e62f17c2f712806ce2c59b71af71741
2018-03-06 10:05:00 +02:00
James Teh
f84eedf97c Bug 1434822 part 3: On Windows, when a content Accessible shuts down, disconnect all associated remote clients. r=MarcoZ
To improve performance for cross-process COM, we disable COM garbage collection.
However, this means we never receive Release calls from clients, so defunct accessibles can never be deleted.
Since we know when an accessible is shutting down, we can work around this by forcing COM to disconnect this object from all of its remote clients, which will cause associated references to be released.

MozReview-Commit-ID: 5sIuxnaRJWj

--HG--
extra : rebase_source : e5c54e4f107b2db39d77277020aa939a6a283bd8
extra : histedit_source : 0a964ba20363cc1b8880d78e5d214dae0f758a01
2018-02-22 22:00:36 +10:00
Timothy Guan-tin Chien
e1b7b86b11 Bug 1442029 - Move XBL accessibility role="xul:colorpicker" and role="xul:colorpickertile" into XULMap.h r=enndeakin+6102,surkov
- Remove the colorpickertile binding as it's no longer useful.
- Remove nsAccessibilityService::CreateAccessibleByType() as it has nothing to do anymore.
- Remove nsCoreUtils::XBLBindingRole()

MozReview-Commit-ID: E21yljdsSLl

--HG--
extra : rebase_source : f0db5893107ee0c493291c7c0bafaaef1d4bcffa
2018-03-02 09:53:55 -08:00
Timothy Guan-tin Chien
bcee161778 Bug 1439773 - Move XBL accessibility role="xul:text" and role="xul:link" into XULMap.h r=enndeakin+6102
MozReview-Commit-ID: 4RY0ttkwbCB

--HG--
extra : rebase_source : 398c648110d84e34d55a64e1528a8b239d618670
2018-03-02 09:50:39 -08:00
Marco Zehe
b5cd972f23 Bug 1442196 - Expose an XML role of 'form' on a form element if it has an accessible name, r=surkov
MozReview-Commit-ID: 8vhHcWyg2

--HG--
extra : rebase_source : 38a3a73848c2c19f8cddee9c52af95274f894a27
2018-03-05 12:37:35 +01:00
Timothy Guan-tin Chien
5dbdc07e62 Bug 1439778 - Move XBL accessibility role="xul:panel" into XULMap.h r=surkov
MozReview-Commit-ID: LqdGEZqRTWA

--HG--
extra : rebase_source : 3c09fad59731eca97024bf52f68180c254c4e8ee
extra : source : adbe14b1537b1cb1ec3f390ed3703edbfeb799d8
2018-03-01 13:21:00 -08:00
Ciure Andrei
199c24a789 Merge inbound to mozilla-central. a=merge 2018-03-02 12:16:06 +02:00
Bogdan Tara
0a896b5418 Backed out changeset 918b41fa66d9 (bug 1434822) is causing 1442523. a=backout 2018-03-02 11:27:08 +02:00
Timothy Guan-tin Chien
90a5e0e595 Bug 1440383 - Remove XBL accessibility role="xul:pane" and role="none" r=surkov
MozReview-Commit-ID: GJ0aouAzS77

--HG--
extra : rebase_source : e6c6cefc73618f1815726566f6bc9e00561b236c
2018-02-28 13:09:29 -08:00
Dorel Luca
0abbbf16b7 Backed out changeset 9ac28273f156 (bug 1440383) as requested by timdream 2018-03-01 20:32:29 +02:00
Tiberius Oros
61d400da1c Merge inbound to mozilla-central. a=merge 2018-03-01 19:29:00 +02:00
James Teh
a2e576c75c Bug 1434822 part 3: On Windows, when a content Accessible shuts down, disconnect all associated remote clients. r=MarcoZ
To improve performance for cross-process COM, we disable COM garbage collection.
However, this means we never receive Release calls from clients, so defunct accessibles can never be deleted.
Since we know when an accessible is shutting down, we can work around this by forcing COM to disconnect this object from all of its remote clients, which will cause associated references to be released.

MozReview-Commit-ID: 5sIuxnaRJWj

--HG--
extra : rebase_source : 9059dbed02bf78b4be5b544c8b3bc14f0ca088c8
2018-02-22 22:00:36 +10:00
Dorel Luca
6735016b56 Merge mozilla-cental to mozilla-inbound. r=merge
--HG--
extra : rebase_source : f7e0a6b0f2925bd159de4d665c02493dab9b6282
2018-03-02 00:21:23 +02:00
Emilio Cobos Álvarez
2988d4e66d Bug 1442207: Remove unneeded arguments to nsIMutationObserver. r=smaug
aDocument is always content->OwnerDoc().
aContainer is always content->GetParent().

Differential Revision: https://phabricator.services.mozilla.com/D664

MozReview-Commit-ID: 4xwPCOnhyIL
2018-03-01 22:45:17 +01:00
Cosmin Sabou
8320ef0c68 Backed out changeset edc99bb899ac (bug 1440106) for OS X mochitest failures at docload/test_docload_root.html. 2018-03-01 06:34:52 +02:00
Eitan Isaacson
9785857f82 Bug 1440106 - Filter out hidden window. r=Jamie
--HG--
extra : rebase_source : 09bafc19dd602319c3b5f3d4bec0cab886dfc059
2018-02-28 12:25:00 +02:00
Alexander Surkov
ea486874e9 Bug 857348 - assert if defunct state is out of sync with content ref, rs=jamie 2018-02-27 16:34:12 -05:00
Florian Quèze
c714053d73 Bug 1433175 - scripted patch to replace Components.classes[, Components.interfaces.nsI, Components.utils. and Components.results. with Cc, Ci, Cu and Cr, r=Mossop. 2018-02-28 18:51:33 +01:00
Emilio Cobos Álvarez
9f26540cc4 Bug 1441547: Make character data change notifications use a const reference for the info parameter. r=smaug
It's not intended to be mutated.

MozReview-Commit-ID: 5nkD1YkidlV

--HG--
extra : rebase_source : 810d429208fa3eaf30e220e77a7d27107cb77346
2018-02-27 15:30:27 +01:00
Andreea Pavel
fa0861e443 Merge mozilla-inbound to mozilla-central. a=merge on a CLOSED TREE 2018-02-28 00:24:02 +02:00
Emilio Cobos Álvarez
f3344c9f7b Bug 1425759: Update test expectations. r=smaug,xidorn
This is enough to get the stylo-enabled build green.

There's still some orange in WPT with stylo disabled (due to interfaces not
exposed and that) that I'll update tomorrow.

Will send a different patch on top of this for that, though I'll land together.

MozReview-Commit-ID: CsN5CM93RUz
2018-02-27 12:39:58 +01:00
Emilio Cobos Álvarez
7dffe29d8f Bug 1432490: Make nsComputedDOMStyle::GetStyleContext / GetStyleContextNoFlush not take a presShell. r=bz
Everyone calls them with the shell of the current composed document, and this
allows the multi-presShell stuff to just be in UpdateCurrentStyleSources /
DoGetStyleContextNoFlush.

The only reason we need to use OwnerDoc()->GetShell() instead of the composed
doc in GetStyleContext / GetStyleContextNoFlush is Element::GetBindingURL, which
does expect to get the binding URL for stuff outside of the composed doc (and
changing that gave me a useless browser).

That's technically a behavior change on the cases that used to pass nullptr, but
I think all callers are fine with that. I could also just add a special function
for that particular case, it may be worth it.

MozReview-Commit-ID: 2XlnkgdgDCK
2018-02-25 02:23:59 +01:00
Sebastian Hengst
7be9fed7d0 merge mozilla-inbound to mozilla-central. a=merge 2018-02-24 02:58:35 +02:00
Florian Quèze
682b1ec3b2 Bug 1440284 - change this.EXPORTED_SYMBOLS back to var EXPORTED_SYMBOLS in JS modules, r=mccr8. 2018-02-23 20:50:01 +01:00
Adrian Wielgosik
35f8ed790f Bug 1440741 - Remove all members from nsIDOMHTMLFormElement. r=qdot
MozReview-Commit-ID: 2UcUy4MkVsM

--HG--
extra : rebase_source : ddc6c18c5015ebc5569defa09b32c40e83939886
2018-02-23 19:28:08 +01:00
Mark Banner
3e6b2c9400 Bug 1440711 - Enable no-unused-vars for global scope on jsm files in accessible/. r=surkov
MozReview-Commit-ID: DMsHpliLTOi

--HG--
extra : rebase_source : 528581974ca2e37e139be1a7ac354ce80eef9464
2018-02-23 16:50:43 +00:00
James Teh
4eacecd159 Bug 1437417 part 2: Don't block accessibility instantiation for newer RealPlayer builds with accessibility performance fixes. r=MarcoZ
RealPlayer's use of accessibility was blocked in bug 1418535 due to severe performance problems caused by its use of accessibility.
This is fixed in newer builds, so we want to allow those while still blocking older builds.

MozReview-Commit-ID: 5XlY4IM5qHf

--HG--
extra : rebase_source : b14251b697c5d2a08c613b4a402214f6bd4f475f
2018-02-13 16:50:23 +10:00
James Teh
58fcef6d33 Bug 1437417 part 1: a11y: Fix some issues in IsModuleVersionLessThan and make it reusable. r=MarcoZ
1. Move IsModuleVersionLessThan into the Compatibility class and export it in the header file.

2. The function previously referred to the third component of the version as the minor version; i.e. it was testing major.bbbb.minor.dddd.
This is incorrect and might confuse people using this in future code.
The minor version is the second component; i.e. major.minor.cccc.dddd.
cccc and dddd are often named build and revision, but the naming here is less consistent.

3. Rather than accepting separate version components, the function now accepts a single 64 bit value.
This makes comparison easier and also allows for comparison against magic values in other code; e.g. a value meaning "all versions".
This value can be created from separate components using the MAKE_FILE_VERSION macro.

4. Previously, it was assumed that a dll path could not be longer than MAX_PATH, but it can actually be longer.
The function now handles this.

5. The function previously didn't do any error checking, which could have led to null pointer dereferences and possibly other pain.
This was fine when it was only being used for JAWS, which we know always has version info, but this could be problematic for other callers.
We return true if there is a failure, assuming that no version info implies an earlier version.

6. The code now uses smart pointers instead of raw pointers, making memory management simpler.

7. Updated the JAWS version check accordingly.

MozReview-Commit-ID: 9Y6gUQSX0P5

--HG--
extra : rebase_source : 595408140d8611d38fef1211ef41c53e4b65e90c
2018-02-13 16:48:16 +10:00
Aaron Klotz
a26b59fe0b Bug 1424505: Block osk.exe from UIA instantiation; r=Jamie 2018-02-20 12:24:47 -07:00
Hiroyuki Ikezoe
1b0cba9367 Bug 1417354 - Introduce nsIDocument::GetPresContext(). r=smaug
It would be convenient to get nsPresContext from nsIDocument.

MozReview-Commit-ID: Ei6V3UE8XGr

--HG--
extra : rebase_source : 8d2a917eb62cf341e4e1810451fd01c01dbc3bad
2018-02-21 07:00:10 +09:00
Masayuki Nakano
cf83ee7bb4 Bug 1438157 - part 2: Remove unnecessary second argument of EventUtils.synthesizeKey() r=smaug
Note that this patch also replaces legacy VK_* with KEY_*, and replaces
synthesizeKey() for inputting some characters with sendString() because
it's better and clearer what it does and it sets shiftKey state properly.

MozReview-Commit-ID: De4enbjux3T

--HG--
extra : rebase_source : 2296b84bff8e22f01eeb48cd8614fac5db11136a
2018-02-15 04:15:39 +09:00
Chris Peterson
50e9affc6b Bug 1436263 - Part 4: Remove unnecessary virtual and final from non-overriding final virtual function declarations. r=froydnj
AccessibleNode::GetParentObject is a non-overriding final virtual function. GetParentObject is a common virtual function in many DOM classes, but AccessibleNode does not derive from any base classes that define virtual GetParentObject or have any derived classes of its own.

WebCryptoTask::CalculateResult and CallCallback are non-overriding final virtual functions that mirror virtual function names in the CryptoTask class, even though WebCryptoTask does not actually derive from CryptoTask.

nsWindowBase::GetWindowHandle is a non-overriding final virtual function. The only other function called GetWindowHandle is MouseScrollHandler::EventInfo::GetWindowHandle, which is not related to the nsWindowBase class.

MozReview-Commit-ID: 4ldSAyP3ZpP

--HG--
extra : rebase_source : cd6fea309c042183db59653ed39e1e63b70c6a63
2018-02-09 01:31:38 -08:00
Chris Peterson
fe5cd3d5d9 Bug 1436263 - Part 3: Remove virtual from final virtual function declarations. r=froydnj
MozReview-Commit-ID: 8pjYjEvQF42

--HG--
extra : rebase_source : 5eb0bea2ef5f06a811b4f3daf57ce8720f12dd07
2018-02-08 21:22:43 -08:00
Chris Peterson
0129d900f3 Bug 1436263 - Part 2: Replace override final virtual function specifiers with just final. r=froydnj
MozReview-Commit-ID: 70gt5SUu4Dv

--HG--
extra : rebase_source : 71912c6bde22aaed01e70615a4ee794a36e70d0e
extra : source : 1c22d4c65d70b797ee3e963ec426c90e1f89b5e3
2018-02-05 22:50:00 -08:00
Chris Peterson
d09123f248 Bug 1436263 - Part 1: Replace final override virtual function specifiers with just final. r=froydnj
MozReview-Commit-ID: DE5HkIhsZ6D

--HG--
extra : rebase_source : 94831c1e13a840dd2ea0600f64bcf70c2bf938d9
extra : source : cf9283bf1b0bca3a6311c98e227329d451f80ecb
2018-02-05 22:46:57 -08:00
Timothy Guan-tin Chien
58169e2423 Bug 1440383 - Remove XBL accessibility role="xul:pane" and role="none" r=surkov
MozReview-Commit-ID: GJ0aouAzS77

--HG--
extra : rebase_source : 91aa4f59be5b016a47dd397e8096812ba0e35783
2018-02-28 13:09:29 -08:00
Timothy Guan-tin Chien
e10deafe48 Bug 1439761 - Move XBL accessibility role="xul:textbox" and role="xul:combobox" into XULMap.h r=enndeakin+6102
MozReview-Commit-ID: uKaDb2QafK

--HG--
extra : rebase_source : 95785a8d4d36928c79c62f9bce3065bb3633ad62
2018-02-28 11:47:58 -08:00
Timothy Guan-tin Chien
0b070afeaf Bug 1437873 - Move XBL accessibility role="xul:toolbarbutton" and role="xul:button" into XULMap.h r=enndeakin+6102
This patch intentionally re-map the following controls from button to toolbarbutton

- browser/components/downloads/content/download.xml#download-subview-toolbarbutton
- toolkit/content/widgets/toolbarbutton.xml#menu-button

MozReview-Commit-ID: E806LA6NAvC

--HG--
extra : rebase_source : 8e7534dc34f95e1d0cc6d00370475cc796acc36e
2018-02-28 11:35:57 -08:00
Timothy Guan-tin Chien
26bfe8c245 Bug 1440392 - Move XBL accessibility role="xul:menupopup" into XULMap.h r=enndeakin+6102
MozReview-Commit-ID: IeR805H6qW8

--HG--
extra : rebase_source : 883ddd2f08b985000563646d48972caa28aee0bd
2018-02-28 11:26:51 -08:00
Timothy Guan-tin Chien
7f19212a77 Bug 1440393 - Move XBL accessibility role="xul:scale" and "xul:thumb" into XULMap.h r=enndeakin+6102
MozReview-Commit-ID: 2A264v5AdSV

--HG--
extra : rebase_source : 107413fb5370c0011a59727998f2a5abb77e1192
2018-02-22 10:24:25 -08:00
Timothy Guan-tin Chien
532ec53371 Bug 1440391 - Move XBL accessibility role="outerdoc" into XULMap.h r=enndeakin+6102
MozReview-Commit-ID: 6UgKJSzgyGi

--HG--
extra : rebase_source : 12a3f4c2eb81b4dd4d804858fe408227fbe2ca99
2018-02-22 09:47:30 -08:00
Frederik Braun
cf7327f348 Bug 1433929 - Avoid innerHTML in accessible/tests/mochitest/elm/test_shadowroot_subframe.html. r=johannh
MozReview-Commit-ID: 2CuAZkF78Hc

--HG--
extra : rebase_source : 8b81c6e6c4466818e3066e0dea97cf10500a8db4
2018-02-15 17:07:17 +01:00
Boris Zbarsky
72f940dafe Bug 1429903 part 2. Stop using nsIDOMEventTarget in xpidl. r=mccr8
MozReview-Commit-ID: HQw7TyJUapY
2018-04-20 00:49:30 -04:00
Boris Zbarsky
1deca54b91 Bug 1455055 part 4. Clean up HandleEvent implementations in accessible. r=masayuki
MozReview-Commit-ID: B3ez0ESo21g
2018-04-20 00:49:29 -04:00
Boris Zbarsky
2b6097ae6d Bug 1455055 part 1. Convert nsIDOMEventListener to taking an Event, not an nsIDOMEvent. r=masayuki
This does no cleanup other than what's needed to compile.  Cleanup coming up in
later patches.

MozReview-Commit-ID: 3sOnkj71n09
2018-04-20 00:49:29 -04:00
Cosmin Sabou
505b346177 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-04-20 06:52:27 +03:00
Emilio Cobos Álvarez
45787fc53f Bug 1454241: Remove nsINode::eDATA_NODE. r=bz
MozReview-Commit-ID: 6HQDAwiGgIo
2018-04-20 03:58:00 +02:00
Emilio Cobos Álvarez
83fd987aec Bug 1454233: Remove nsINode::eDOCUMENT. r=bz
MozReview-Commit-ID: ItjdI79zme7
2018-04-20 01:30:11 +02:00
Eitan Isaacson
326a67e71e Bug 1454851 - Remove gestures and all input management. r=yzen 2018-04-19 15:45:57 -07:00
Eitan Isaacson
bbfde78843 Bug 1454852 - Remove accessfu earcons. r=yzen 2018-04-17 19:25:00 +03:00
Eitan Isaacson
9008624402 Bug 1454081 - Fix accessible coordinates in APZ viewports. r=surkov, r=yzen, r=jchen 2018-04-19 12:31:00 +03:00
Jared Wein
04a1ae5cee Bug 1436575 - Add exceptions for cases that cannot be simplified by negation or !! coercion. r=standard8
MozReview-Commit-ID: 8uiZAPq4N2h

--HG--
extra : rebase_source : 3ad599ec2af62769bd3440e42ac6e165eaae609d
2018-02-09 10:10:08 -05:00
Jared Wein
b433816cb9 Bug 1436575 - Clean up some of the autofix changes from no-compare-against-boolean-literal. r=standard8
MozReview-Commit-ID: 7Q8YBxEzbHr

--HG--
extra : rebase_source : 577a056f83ba6af6e92e0f2417ab202baa3047a9
2018-02-08 13:15:26 -05:00
Jared Wein
c8d331f4c9 Bug 1436575 - Autofix errors from no-compare-against-boolean-literal. r=standard8
MozReview-Commit-ID: 66sXxnOWDgw

--HG--
extra : rebase_source : a0bf26e37a03a1e77476bdeedfc1af3ebec32f2a
2018-02-08 12:57:31 -05:00
Mike Shal
15573ecba5 Bug 1420119 - avoid issues with make's timestamp caching; r=nalexander
When an idl file is updated, files like HandlerData.h are generated as
part of the midl target (eg: midl_done). However, Make may have already
stat'd HandlerData.h and cached its timestamp. Although there is a
dependency from HandlerData.h on midl_done, there is no recipe. As such,
Make assumes that HandlerData.h hasn't actually changed, and uses the
cached value of the timestamp when determining if it should install the
file into dist/include. If the cached value is older, make may not
trigger the install rule, leaving the old header in place and breaking
the build.

MozReview-Commit-ID: 9rdtXIt8mXC

--HG--
extra : rebase_source : 8b22f1d6656d0dbc2c3b5dc53ea2b936fdd637bd
2018-02-13 16:04:31 -05:00
Boris Zbarsky
9bdcffc985 Bug 1436902 part 3. Replace usage of NS_IMPL_ISUPPORTS_INHERITED0 with NS_INLINE_DECL_REFCOUNTING_INHERITED when possible. r=mccr8
The change to RootAccessible.cpp fixes an obvious bug introduced in bug 741707.

The visibility changes in gfx/thebes are because NS_DECL_ISUPPORTS has a
trailing "public:" that those classes were relying on to have public
constructors.

MozReview-Commit-ID: IeB8KIJCGhU
2018-02-12 15:44:40 -05:00
Sebastian Hengst
d1700a0b7a merge mozilla-central to autoland. CLOSED TREE 2018-02-10 00:34:30 +02:00
Tim Nguyen
4fd514d97b Bug 1429573 - Remove spinbuttons.xml bindings now that they are unused. r=Paolo
MozReview-Commit-ID: Cbj7vZcrDrL

--HG--
extra : rebase_source : 9b844911072ab2cc526f4ad16838e83f44a230da
2018-02-09 21:54:42 +00:00
Tim Nguyen
79e5dc6167 Bug 1429573 - Use input[type=number] in textbox[type=number] implementation. r=Paolo,surkov
* The number is no longer selected on number input focus

MozReview-Commit-ID: AmR5c6YKTCP

--HG--
extra : rebase_source : fdaab23fca57f361c9185191d9c30e047375cbe8
2018-02-09 21:54:36 +00:00
Boris Zbarsky
3660ff5632 Bug 1436508 part 13. Remove nsIDOMMutationEvent constants. r=masayuki
MozReview-Commit-ID: Anl5QJZknJL
2018-02-09 11:17:10 -05:00
Boris Zbarsky
92bbd744e1 Bug 1436508 part 11. Remove the use of the nsIDOMKeyEvent::DOM_VK* constants in C++. r=masayuki
MozReview-Commit-ID: Honw0NrVMuV
2018-02-09 11:17:09 -05:00
Boris Zbarsky
fce30e834b Bug 1436508 part 10. Remove use of nsIDOMKeyEvent in JS. r=masayuki
MozReview-Commit-ID: GGciORX62Yh
2018-02-09 11:17:09 -05:00
arthur.iakab
f58e902071 Backed out 2 changesets (bug 1429573) for failing reftest on reftest/tests/editor/reftests/xul/number-3.xul on a CLOSED TREE
Backed out changeset 75364898f5f6 (bug 1429573)
Backed out changeset fe69b415f45b (bug 1429573)
2018-02-09 23:27:59 +02:00
Tim Nguyen
9235487cb3 Bug 1429573 - Remove spinbuttons.xml bindings now that they are unused. r=Paolo
MozReview-Commit-ID: D7cMQyriekm

--HG--
extra : rebase_source : 189fe22d8b9619707753773b92f83bbdef3a247a
2018-02-09 19:24:11 +00:00
Tim Nguyen
d2bb22650d Bug 1429573 - Use input[type=number] in textbox[type=number] implementation. r=Paolo,surkov
* The number is no longer selected on number input focus

MozReview-Commit-ID: EoXNqhXwK95

--HG--
extra : rebase_source : b5a522e11796ec42c87019f6c3955e6c40eb21d0
2018-02-09 19:23:56 +00:00
Csoregi Natalia
2d4c080565 Backed out 2 changesets (bug 1429573) for reftest failures /tests/reftest/tests/editor/reftests/xul/number-3.xul. on a CLOSED TREE
Backed out changeset bd6892535d35 (bug 1429573)
Backed out changeset 1c398da94994 (bug 1429573)
2018-02-09 16:56:39 +02:00
Tim Nguyen
96e5c9837c Bug 1429573 - Remove spinbuttons.xml bindings now that they are unused. r=Paolo
MozReview-Commit-ID: 6sb1zcGv4k9

--HG--
extra : rebase_source : 35636617336551fb3aadc8fb321c66b5e5993239
2018-02-09 13:53:49 +00:00