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

585641 Коммитов

Автор SHA1 Сообщение Дата
Dorel Luca b10a3945a4 Backed out changeset e226de7caa88 (bug 1444572) for conflicts while backing out 1443421 2018-03-14 12:28:59 +02:00
Julian Descottes 660c2297f3 Bug 1445153 - Remove remaining references to computedview in boxmodel component;r=pbro
MozReview-Commit-ID: CxX09ZQ9jhk

--HG--
extra : rebase_source : 555420a8345b1d7f182a0ebafbb8110c3695b1ca
2018-03-13 08:51:34 +01:00
Michael Ratcliffe 0768cc918d Bug 1443457 - Stop referencing the addon-sdk loader in devtools code r=jdescottes
MozReview-Commit-ID: 7lwCG8JT7cV

--HG--
rename : devtools/client/webconsole/new-console-output/test/mochitest/browser_console_addonsdk_loader_exception.js => devtools/client/webconsole/new-console-output/test/mochitest/browser_console_devtools_loader_exception.js
rename : devtools/client/webconsole/test/browser_console_addonsdk_loader_exception.js => devtools/client/webconsole/test/browser_console_devtools_loader_exception.js
extra : rebase_source : 05383e5f371fd0618592370ee9429cfaab2509ff
2018-03-09 15:36:45 +00:00
arthur.iakab 6153368440 Merge mozilla-central to autoland 2018-03-14 12:16:00 +02:00
arthur.iakab 8976abf9ca Merge inbound to mozilla-central. a=merge 2018-03-14 12:00:13 +02:00
Gurzau Raul 046dfc451e Backed out changeset 2afa73fb650a (bug 1436549) for devtools failures on /boxmodel/test/browser_boxmodel_guides.js 2018-03-14 07:46:03 +02:00
Masayuki Nakano d23a5323b4 Bug 1444572 - IMContextWrapper should dispatch fake eKeyDown event during composition if active IM is uim r=m_kato
uim is an old IM which uses key snooper to listen to key events rather than
via filter key event API which should be called by applications.  It's still
used by Debian 9.x, so, we still need to support this.

Unfortunately, we cannot detect if uim actually uses key snooper because it's
switch by build option of uim.  Currently, Debian builds uim as using key
snooper.  So, we should assume uim uses key snooper always.  On the other
hand, somebody *might* use uim built as not using key snooper, so, let's
decide if uim uses key snooper with new pref,
"intl.ime.hack.uim.using_key_snooper", but its default should be true.

Note that ibus and Fcitx also have the mode to use key snooper (perhaps for
backward compatibility with uim).  However, it's not enabled in default
settings and even if it's enabled, Firefox is in whitelist in the default
settings of them for stop using key snooper.  Therefore, we don't need to
support key snooper mode for them unless we'll get some requests to
support their key snooping mode.

MozReview-Commit-ID: 6fTsfKrHzvo

--HG--
extra : rebase_source : 8ddf4541db635246e6bb0ddc73b012c9be001c6d
2018-03-12 15:41:39 +09:00
Coroiu Cristina ca38cdb64e Backed out changeset 2c8540f7800f (bug 1443457) for ESlint failure at /builds/worker/checkouts/gecko/devtools/server/tests/mochitest/test_getProcess.html
--HG--
rename : devtools/client/webconsole/new-console-output/test/mochitest/browser_console_devtools_loader_exception.js => devtools/client/webconsole/new-console-output/test/mochitest/browser_console_addonsdk_loader_exception.js
rename : devtools/client/webconsole/test/browser_console_devtools_loader_exception.js => devtools/client/webconsole/test/browser_console_addonsdk_loader_exception.js
2018-03-14 11:41:12 +02:00
Coroiu Cristina 0f6841e0d2 Backed out 2 changesets (bug 1443080) for spidermonkey build bustage at build/src/js/src/jit/BaselineCacheIRCompiler.cpp
Backed out changeset 7d509bb8a35d (bug 1443080)
Backed out changeset 53bdcd5937cd (bug 1443080)

--HG--
extra : rebase_source : 59b5350d2959c0b065aedd34bfe8337216c0ea4b
2018-03-14 11:13:21 +02:00
Michael Ratcliffe f524ac8d63 Bug 1443457 - Stop referencing the addon-sdk loader in devtools code r=jdescottes
MozReview-Commit-ID: 7lwCG8JT7cV

--HG--
rename : devtools/client/webconsole/new-console-output/test/mochitest/browser_console_addonsdk_loader_exception.js => devtools/client/webconsole/new-console-output/test/mochitest/browser_console_devtools_loader_exception.js
rename : devtools/client/webconsole/test/browser_console_addonsdk_loader_exception.js => devtools/client/webconsole/test/browser_console_devtools_loader_exception.js
extra : rebase_source : 05383e5f371fd0618592370ee9429cfaab2509ff
2018-03-09 15:36:45 +00:00
Masayuki Nakano 863964eb27 Bug 1443421 - part 2: IMContextWrapper should dispatch eKeyDown or eKeyUp event as "processed by IME" even when IM sent some signals without sending key event again r=m_kato
ibus and fcitx usually post key event to other IME process, then, if it causes
some signals to updating composition string, they may not send the posted
key event to us again.  Then, IMContextWrapper dispatches neither eKeyDown nor
eKeyUp event since mProcessingKeyEvent becomes non-nullptr only while
OnKeyEvent() is called.  So, IMContextWrapper need to store key event if
OnKeyEvent() assumes that given key event is posted to different process.
Then, if IMContextWrapper receives some signals, it should dispatch eKeyDown
and eKeyUp event with stored key event.

Note that we cannot compare the pointer of first event and following event
directly even though usually both events are same address as far as I checked
because according to the source code of ibus, fcitx and GDK, they use
gdk_event_copy() to keep storing original event.  According to the document of
the API, it might just increment refcount.  However, the actual implementation
of the API always creates another instance and return it.  So, it might be
used same address by arena allocation or something accidentally.   Anyway,
we shouldn't compare them.  Instead, we need to compare each information of
two key events.  Unfortunately, we also cannot compare them simply.  Both
ibus and fcitx set unused bits of GdkEventKey::state to true when they send
back the event to us.  Therefore, we should compare some of or all of the
members by ourselves.  I think that matching time must be enough in most
cases since its value of native key events are properly set.  However, for
safer code, this patch also checks type, keyval and part of state.

MozReview-Commit-ID: FZSwN61v0Sd

--HG--
extra : rebase_source : e54284c27a171f899a6cf87a65935669e2d57021
2018-03-09 12:39:40 +09:00
Masayuki Nakano 6a306796a7 Bug 1443421 - part 1: Make IMContextWrapper not dispatch eKeyDown and eKeyUp event if the native key event is being handled by other IME process r=m_kato
ibus and fcitx have asynchronous key event handling mode and it's enabled in
default settings.  That is, when they receive a key event from application via
a call of gtk_im_context_filter_keypress(), they may post the key event
information to other IME process, then does nothing but store the copy of the
event with gdk_event_copy() and returns true for the result of
gtk_im_context_filter_keypress().  When the other IME process handles the
event, returns the result to them in our process.  Then, they send the stored
key event to us again.  Finally, they actually handles the event in our process
actually.

Therefore, we may receive every key event twice.  So, this causes dispatching
eKeyDown event and eKeyUp event twice.  Preceding key event is always marked
as "processed by IME" since gtk_im_context_filter_keypress() returns true
temporarily and following key event is dispatched as expected.  So, we need
to ignore the first event only when gtk_im_context_filter_keypress() returns
true but the event is posted to different process.

Unfortunately, we cannot know if the key event is actually posted to different
process directly.  However, we can know if active IM is ibus, fcitx or another
one and if ibus or fcitx is in asynchronous key handling mode.

The former information is provided by gtk_im_multicontext_get_context_id().
It returns a string which is set to the IM multicontext instance by creator.
We'll get "ibus" if IM is ibus, get "fcitx" if IM is fcitx.

The latter information is not provided.  However, they consider the mode from
env value.  ibus checks IBUS_ENABLE_SYNC_MODE.  fcitx checks both
IBUS_ENABLE_SYNC_MODE and FCITX_ENABLE_SYNC_MODE.

Additionally, we can know if received key event has already been posted to
other IME process.  They use undefined bit of GdkEventKey::state to store
if the key event has already been posted (1 << 25, they called "ignored" flag).
Although their approach is really hacky but we can refer the information at
least for now.

Finally, when we guess a key event is posted to other IME process, let's
IMContextWrapper::OnKeyEvent() not dispatch eKeyDown nor eKeyUp event.
Note that if it's handled synchronously as unexpected, it may causes
dispatching one or more composition events and/or delete content event.
So, in such case, we dispatch a keyboard event for processing key event
anyway.  There is only once case we'll fail to dispatch keyboard event.
If we receive signals to dispatch composition events or delete content
command event when IM receives the result from other IME process but
it doesn't send the key event to us.  This will be fixed by the following
patch.

MozReview-Commit-ID: 94PrlnmQ3uJ

--HG--
extra : rebase_source : 0bb58ed432bacef8ad13264babd2b21fe950b71c
2018-03-09 00:46:52 +09:00
Steve Fink 92a0d50e77 Bug 1442804 - heap write analysis: nsTArray owns its header, r=bholley
--HG--
extra : rebase_source : 4c8eee581e053d8994356bfb88237b27b1a86911
2018-03-06 08:46:28 -08:00
Steve Fink b2863c28d0 Bug 1442804 - heap write analysis: whitelist GetAutoArrayBuffer, which returns a pointer into |this|, r=bholley
--HG--
extra : rebase_source : 1dff1eeaa79295f960be181e6f8997ab8bcccee8
2018-03-06 08:45:56 -08:00
Steve Fink b789af80ec Bug 1442804 - heap write analysis: explicitly whitelist stringbuffer canary field, r=bholley
--HG--
extra : rebase_source : 0b1e29c9c67c0da1a75f9526ca0671415ba979cc
2018-03-06 08:44:42 -08:00
Steve Fink 763004ebd1 Bug 1442804 - heap write analysis: whitelist all atomics, r=bholley
--HG--
extra : rebase_source : 6427ca1416114a21b4fe94f23dd124c6a984bea9
2018-03-06 08:43:36 -08:00
Steve Fink de4adccfc7 Bug 1444543 - toolchain: build sixgill for gcc 6.4.0, r=glandium
--HG--
extra : rebase_source : fa2f7acf63e99544b95c6a896ba015c52c04f7ae
2018-03-06 10:15:29 -08:00
Steve Fink 03dedf49bb Bug 1443233 - Update sixgill to use same qualification settings for all type printing, r=bhackett
--HG--
extra : rebase_source : 16d1361a8a020ba3d4a37e867dfa1cc7f75c92dd
2018-03-06 08:37:02 -08:00
Lawson Cofield b51b1489f2 Bug 1436549 - Implement the photon redesign of the box model. r=pbro 2018-03-14 00:27:15 -04:00
Kearwood Gilbert d0b2b8da65 Bug 1436791 - Implement gfxVRExternal,r=rbarker
- gfxVRExternal Enables other processes to present
  real or simulated VR hardware to Firefox.
- This functionality is disabled by default, under
  dom.vr.external.enabled.
- VRDisplayInfo, VRControllerInfo, and associated
  structs have been restructured to ensure internal
  state is not exposed via shmem interface.
- Some refactoring to convert structs to
  POD types, enabling them to be located
  in shmem and be memcpy'd.
- Work needed before unpreffing marked
  with "TODO" comments.
MozReview-Commit-ID: FbsusbxuoQ8

--HG--
extra : rebase_source : 8a448169c3f47411c705a4d9fd462a1f9363dfd9
extra : amend_source : e6702549527292e2850d16e8f503f0be9848159f
2018-03-13 17:09:54 -07:00
Jan-Erik Rediger 45bc54de16 Bug 1441610 - Track marionette.enabled in default telemetry environment r=chutten data-r=chutten 2018-03-07 16:34:57 +01:00
Nicholas Nethercote 5b4739162e Bug 1445114 - Move RDF atoms into nsGkAtoms. r=froydnj
There are only a handful of them, and two of them are duplicates of atoms
within nsGkAtoms anyway.

MozReview-Commit-ID: Cb90STdeGdK

--HG--
extra : rebase_source : 6ebc6996b129e70907f634e1876725c9e5da41ab
2018-03-14 10:27:34 +11: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
Paul Silaghi 7eb67f46be Bug 1444912 - Add automated test to check that bookmarks can be opened from the Library r=standard8 2018-03-12 17:04:13 +02:00
Trisha 3e583258c2 Bug 1444868 - use .textContent to override the intro text directly in permissions.js. r=johannh 2018-03-14 00:59:35 +08:00
Paul Silaghi 460a8e9e7f Bug 1444226 - skip win10-ccov in browser.ini for bug 1440703 r=standard8 2018-03-13 16:10:15 +02:00
sean-chen 33275e6ec3 Bug 1443786 - Fix CanvasDebugger crash due to a TypeError. r=jdescottes 2018-03-13 11:14:46 -07:00
Trisha d8d2ae0cd5 Bug 1442280 - Replaced aAccessible->Role() with Accessible::IsTable()method. r=surkov 2018-03-13 15:56:03 +08:00
Dhi Aurrahman 72a8f18e51 Bug 1426461 - Make use of extended validator functionality r=chutten 2018-03-10 05:28:17 +07:00
Nicholas Nethercote 991955fad8 Bug 1445079 - Remove nsHTMLTags::sTagAtomTable[]. r=froydnj
The atoms in nsHTMLTags are a subset of nsGkAtoms, which means that
sTagAtomTable[] currently ends up holding duplicate pointers to the same static
atoms.

This patch removes sTagAtomTable[]. The only place that used sTagAtomTable[]
was nsHTMLTags::AddRefTable(). It now instead calls NS_GetStaticAtom() to get
the static atoms registered by nsGkAtoms.

The patch also moves some checking of sTagNames from RegisterAtoms() (which is
removed) to AddRefTable().

All this reduces the number of duplicate static atoms from 148 to 12.

MozReview-Commit-ID: 14qXYeoorFr
* * *
[mq]: foo

MozReview-Commit-ID: AgQbXlcvWrt
2018-03-14 09:56:14 +11:00
Nicholas Nethercote d967055f0b Bug 1445079 - Rename nsHTMLTags::sTagUnicodeTable[] as sTagNames[]. r=froydnj
It's just an array of names, not a hash table.

MozReview-Commit-ID: 3rWNNec64UJ
2018-03-14 09:54:43 +11:00
Gurzau Raul f785df755d Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-03-14 00:44:06 +02:00
Gurzau Raul 8e99377c83 Merge inbound to mozilla-central. a=merge 2018-03-14 00:40:07 +02:00
Gurzau Raul 4d9e90d540 Merge autoland to mozilla-central. a=merge 2018-03-14 00:39:00 +02:00
Jason Laster b4fcd74cb5 Bug 1441635 - Update Debugger Frontend v20. r=jdescottes
MozReview-Commit-ID: 2LxaHxNg2I
2018-03-13 17:16:48 -04:00
Jason Laster 1b6676e6af Bug 1441635 - Re-align webpack module ordering. r=jdescottes
This commit re-aligns the webpack bundles so that the ordering
lines up with what is in Github.

MozReview-Commit-ID: IIm8icdhFmw
2018-03-13 17:16:48 -04:00
Boris Zbarsky b27cc8fa3c Bug 1444686 followup. Fix a typo that breaks compilation on Windows.
MozReview-Commit-ID: EnsXTSEcUUY
2018-03-13 17:10:39 -04:00
Ted Campbell a34e9f432c Bug 1419094 - Cleanup some XDR apis. r=nbp
Avoid declaring XDR core types in vm/JSAtoms.h. Remove codeConstValue
from XDR API.

MozReview-Commit-ID: GQbLocJbW6H
2018-03-13 17:00:00 -04:00
Boris Zbarsky 12b661df01 Bug 1445140 part 5. Remove nsIDOMDocumentType. r=mystor
MozReview-Commit-ID: B6iktNYbWn9
2018-03-13 16:24:01 -04:00
Boris Zbarsky 9fc39d5647 Bug 1445140 part 4. Remove nsIDOMDocumentType members. r=mystor
MozReview-Commit-ID: D9Xwt3qJQDI
2018-03-13 16:24:01 -04:00
Boris Zbarsky 7bbb9b0ced Bug 1445140 part 3. Pass a DocumentType to nsIContentSerializer::AppendDoctype. r=mystor
MozReview-Commit-ID: 5UjRSP6MoDI
2018-03-13 16:24:01 -04:00
Boris Zbarsky 27d1556d72 Bug 1445140 part 2. Change NS_NewDOMDocument to take a DocumentType. r=mystor
MozReview-Commit-ID: EGA6OOSbnWV
2018-03-13 16:24:01 -04:00
Boris Zbarsky 633cf0f02a Bug 1445140 part 1. Remove the XPCOM-ish version of NS_NewDOMDocumentType. r=mystor
MozReview-Commit-ID: 6sEFIfMgqet
2018-03-13 16:24:01 -04:00
Boris Zbarsky 3b452e5a1b Bug 1445141. Return void from HTMLMetaElement::GetContent. r=mccr8
MozReview-Commit-ID: 6aiV8rB77OV
2018-03-13 16:24:01 -04:00
Boris Zbarsky dae236c7cb Bug 1444686 part 14. Remove nsIDOMDataTransfer. r=mystor
MozReview-Commit-ID: BLi4w10clkP
2018-03-13 16:24:01 -04:00
Boris Zbarsky 7f7ce9b56c Bug 1444686 part 13. Remove remaining nsIDOMDataTransfer uses. r=mystor
MozReview-Commit-ID: EFauqLMGz5S
2018-03-13 16:24:00 -04:00
Boris Zbarsky 9b800c10d6 Bug 1444686 part 12. Remove nsIDOMDataTransfer from nsIDroppedLinkHandler. r=mystor
MozReview-Commit-ID: 7hseR1dpfWG
2018-03-13 16:24:00 -04:00
Boris Zbarsky e026425f6d Bug 1444686 part 11. Remove nsIDOMDataTransfer from dragsession. r=mystor
MozReview-Commit-ID: CRmiSTSN8af
2018-03-13 16:24:00 -04:00
Boris Zbarsky 145e566cd8 Bug 1444686 part 10. Remove nsIDOMDragEvent::GetDataTransfer. r=mystor
MozReview-Commit-ID: LwKqWBGXVcN
2018-03-13 16:24:00 -04:00
Boris Zbarsky 3857fba2a3 Bug 1444686 part 9. Remove use of nsIDOMDataTransfer from nsITreeView. r=mystor
MozReview-Commit-ID: Dpn7YSZpDsc
2018-03-13 16:24:00 -04:00