Commit Graph

4776 Commits

Author SHA1 Message Date
Arthur Edelstein
0671721301 Bug 1404174 - Fix ubsan runtime error for nsEventStatus enum. r=kats
--HG--
extra : rebase_source : ba9d1f9bbec0c3baac6d5ce9505926982e53bf8f
2017-09-28 18:06:00 -04:00
Eugen Sawin
fbf9ec3f92 Bug 1394520 - [1.2] Extend nsIBrowserDOMWindow to support content window creation without URI loading with e10s. r=smaug 2017-09-28 22:45:24 +02:00
Sebastian Hengst
72d1ea4a4b merge mozilla-central to autoland. r=merge a=merge 2017-09-27 11:49:57 +02:00
Wes Kocher
acf8913934 Merge m-c to inbound, a=merge
MozReview-Commit-ID: IsbKCdZU2Ui
2017-09-26 17:14:31 -07:00
Wes Kocher
a341b32d06 Merge autoland to central, a=merge
MozReview-Commit-ID: 8B7y2ULc04
2017-09-26 17:11:14 -07:00
Sebastian Hengst
b3d9e88e3d Backed out changeset 50d5710ae6c0 (bug 1389650) for eslint failure at browser/modules/PluginContent.jsm:684: 'contentWindow' is assigned a value but never used. r=backout 2017-09-26 10:48:27 +02:00
Yura Zenevich
1026d186f1 Bug 1362420 - show and hide emulated windows in e10s mode for Dolphin. r=surkov, smaug
MozReview-Commit-ID: VBtgqbLap
2017-09-26 14:59:33 -04:00
Kyle Machulis
9be401bdd6 Bug 1389650 - Change nsIDOMHTMLAnchorElement instanceof checks to getClassName; r=bz
MozReview-Commit-ID: Il2Ig98BHYP
2017-09-26 11:40:15 -07:00
Thomas Nguyen
651c28ca53 Bug 1351147 - Use fullhash instead of prefix in OnClassifyComplete r=francois
In order to optionally report the full hash back to Google, we need to keep it
around in the callback. While a prefix is not the same as a full hash (multiple
full hashes can map to the same prefix), in this case, the callback will only be
called when the full hash matches.

MozReview-Commit-ID: F4WSLZpYrXB

--HG--
extra : rebase_source : da3b16b00729d0aa6ff1765a135b751fcf44c012
2017-08-04 18:20:13 +08:00
Bevis Tseng
da72a5478c Bug 1399707 - Make entries in TabChild::sActiveTabs and EventLoopActivation::mEventGroups unique. r=billm
--HG--
extra : rebase_source : ffccc53b6b1055d7cfeb281ee145b897807a7810
2017-09-13 11:59:35 +08:00
Kyle Machulis
6b7c6911ae Bug 1389650 - Change nsIDOMHTMLAnchorElement instanceof checks to getClassName; r=bz
MozReview-Commit-ID: Il2Ig98BHYP
2017-09-25 23:12:44 -07:00
Andreas Pehrson
78a302848f Bug 1296531 - Let waitForPixel and friends take a cancelPromise. r=jib
MozReview-Commit-ID: 42hT181wkvq

--HG--
extra : rebase_source : 430d7ea6156bddf98893c4b8b3d0db70c3c54831
2017-05-29 16:27:45 +02:00
Sebastian Hengst
937b5d72b8 merge mozilla-central to autoland. r=merge a=merge 2017-09-25 12:02:51 +02:00
Nicholas Nethercote
3aa25724fe Bug 1402255 - Change nsIBaseWindow::title from wstring to AString. r=janv.
Because nsAString is nicer to work with than char16_t*. The patch relatedly
changes nsIEmbeddingSiteWindow::title and nsIWindowMediator::updateWindowTitle
as well.

--HG--
extra : rebase_source : 0bf332dec3e09af6c39c676f8795b368768a6046
2017-09-25 13:10:51 +10:00
sotaro
445bba2d46 Bug 1401849 - Fix TabChild::mLayersConnected handling r=dvander 2017-09-25 09:22:29 +09:00
Nicholas Nethercote
e3c9cbb969 Bug 1401813 - Rename Null[C]String() as Void[C]String(). r=erahm.
XPCOM's string API doesn't have the notion of a "null string". But it does have
the notion of a "void string" (or "voided string"), and that's what these
functions are returning. So the names should reflect that.

--HG--
extra : rebase_source : 4e3f982e0873877174a08a25413595ff66f7d20e
2017-09-22 14:35:46 +10:00
Stone Shih
7c72086a7b Bug 1401450 - Fix incorrect guid and input block id when sending coalesced mouse move event. r=smaug. 2017-09-20 12:59:08 +08:00
Alessio Placitelli
cffe8a8404 Bug 1393801 - Enable dynamic scalar registration. f=gfritzsche,r=billm,chutten
MozReview-Commit-ID: JlRk7hLV5QD

--HG--
extra : rebase_source : 8e7a0823e5c395ce3d58aee978360fd588e6e879
2017-08-29 13:05:40 +02:00
Nicholas Nethercote
ebf1cb320b Bug 1400148 - Don't use -1 to represent an unset nsCursor. r=karlt.
Because UBSan complains about casting -1:

> runtime error: load of value 4294967295, which is not a valid value for type 'nsCursor'

--HG--
extra : rebase_source : 037a96700228ea0d427afa7c25c40490c701cdc4
2017-09-15 14:34:37 +10:00
Mats Palmgren
56af2e7716 Bug 1400623 - Add missing ClearOnShutdown.h #include. r=aosmond
MozReview-Commit-ID: 7AY4eGIOdv
2017-09-17 17:21:32 +02:00
Andrew Osmond
132cacdc6f Bug 1397214 - Prevent ContentChild::RecvSetXPCOMProcessAttributes from running after shutdown. r=ehsan
Since ContentChild itself may be created before the observer service is
started, we cannot create an observer to simply listen for the
xpcom-shutdown event. Thankfully we do not need to do anything special
upon receiving the event -- we just need to know if it has been fired
when we called RecvSetXPCOMProcessAttributes. As such, this patch
creates a canary using ClearOnShutdown. If the canary is cleared, then
we know xpcom-shutdown has been issued, and we should abort the
initialization process.

fixup
2017-09-15 18:48:37 -04:00
Ryan VanderMeulen
17c17bd036 Merge m-c to inbound. a=merge 2017-09-15 14:20:59 -04:00
Ryan VanderMeulen
e1d23c6fa7 Merge inbound to m-c. a=merge 2017-09-15 14:20:02 -04:00
Stone Shih
df20c4bac3 Bug 1399876: Relax the assertion about sending multiple eMouseEnterIntoWidget in TabParent. r=baku.
We may create a browser element and replace it while the TabChild isn't ready to handle input events.
2017-09-15 15:41:53 +08:00
Andrea Marchesini
09429732d5 Bug 1376794 - Label blob IPC messages, r=billm 2017-09-15 18:20:08 +02:00
Jonathan Kew
109a07bbd7 Bug 1399503 - Use font family list passed from the chrome process to initialize the platform font family list on macOS, to avoid expensive Core Text font iteration code path. r=mconley 2017-09-14 22:15:27 +01:00
FSeita
f3d5101a06 Bug 1376333 - Improve naming of accumulation types & variables r=Dexter
MozReview-Commit-ID: F9w7CLUOP6r

--HG--
extra : rebase_source : 5330f9cb47145f5867a92277f4fa6c610e8eed56
2017-09-13 11:20:36 +02:00
Florian Quèze
cc2e281b3b Bug 1398198 - browser_startup_content.js should show the stack when a JS file was loaded earlier than expected, r=felipe,qdot. 2017-09-13 21:19:55 +02:00
Andrew Osmond
cf998634b8 Backed out changeset e66c8d65d0f1 (bug 1389021) because it did not reduce the crash volume. 2017-09-13 11:19:06 -04:00
Christoph Kerschbaumer
e95e356c53 Bug 1264588: Fix permafail test_cpow_cookies.html. r=smaug 2017-09-12 17:55:10 +02:00
J.C. Jones
554acaea86 Bug 1245527 - Remove NSS U2F SoftToken. r=ttaubert, r=jed
The nsIU2FToken and its implementors are no longer needed; the soft token was
re-implemented into dom/webauthn/U2FSoftTokenManager.cpp during the WebAuthn
implementation. When the dom/u2f/ code changed to the implementation from
WebAuthn, the old synchronous version became dead code.

This patch removes the dead code.

MozReview-Commit-ID: 2yDD0tccgZr

--HG--
extra : rebase_source : 0f14d8de8f62599a41c13aa4d8fc9cdbc1fd79c7
2017-09-05 12:32:42 -07:00
Stone Shih
6837036723 Bug 1397461: Fire coalesced mousemove event when the event button or buttons changes. r=smaug. 2017-09-08 10:21:09 +08:00
Andrew Osmond
6d8e605a80 Bug 1389021 - Explicitly shutdown the CompositorManagerChild during ContentChild::ActorDestroy. r=me
It has been observed on nightly and beta that the compositer thread
fails to shutdown gracefully due to lingering references. From what
can be determined, it appears as if the content process references
are what are keeping it alive. The shutdown of CompositorBridgeChild
was altered because a top level protocol was added above it in a
previous change in bug 1365927. This protocol tree is ultimately
what is keeping the thread alive. As such, this patch adds an
explicit shutdown of the protocol, to ensure it gets released in a
timely manner.

This change will be backed out if it appears to have no effect on
the crash rate in nightly 57.
2017-09-11 18:32:44 -04:00
Christoph Kerschbaumer
9048e3f216 Bug 1397655 - Update tests within dom/ to comply with new toplevel data: URI navigation policy. r=smaug 2017-09-10 13:24:07 +02:00
Sebastian Hengst
261dd76eb6 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: ACCqbunIDpp
2017-09-09 11:44:38 +02:00
Phil Ringnalda
2dba33e427 Backed out 3 changesets (bug 1245527) for ASan browser-chrome leaks and Android mochitest bustage
Backed out changeset 8ee1f7aebd62 (bug 1245527)
Backed out changeset e6a5de8d1246 (bug 1245527)
Backed out changeset be63e73426b4 (bug 1245527)

MozReview-Commit-ID: AU22LgPh9iB
2017-09-09 00:09:21 -07:00
J.C. Jones
9ade50e63c Bug 1245527 - Remove NSS U2F SoftToken. r=ttaubert, r=jed
The nsIU2FToken and its implementors are no longer needed; the soft token was
re-implemented into dom/webauthn/U2FSoftTokenManager.cpp during the WebAuthn
implementation. When the dom/u2f/ code changed to the implementation from
WebAuthn, the old synchronous version became dead code.

This patch removes the dead code.

MozReview-Commit-ID: 2yDD0tccgZr

--HG--
extra : transplant_source : %B3%96Te%E7%02%08%98%1A%B2%FA%1C%40%C4J%BC%B2%85j%81
2017-09-05 12:32:42 -07:00
Jim Mathies
0b042659d9 Bug 1385991 - Prevent initialization of content accessibility when older versions of the JAWS screen reader are detected. r=surkov 2017-09-08 16:05:06 -05:00
Jim Mathies
2a7901349f Bug 1387507 - Remove a11y e10s checks and preferences. r=felipe 2017-09-08 09:31:06 -05:00
Sebastian Hengst
e52b8eb6e4 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: E6LQYNHgmiv
2017-09-08 10:53:26 +02:00
Bill McCloskey
db2a8b98fa Bug 1397403 - Fix TabChild::GetActiveTabs comment (r=froydnj)
MozReview-Commit-ID: LKb8U29M7DR
2017-09-07 22:31:34 -07:00
Masayuki Nakano
e1f1db7272 Bug 1396725 - IMEStateManager doesn't need to manage whether menu keyboard listener is installed in different process r=smaug
Currently, IMEStateManager::OnChangeFocusInternal() tries to sync the state
whether menu keyboard listener is installed between itself and active remote
process -- When menu keyboard listener is installed, it posts a message to
_only_ active remote process.  When menu keyboard listener is uninstalled,
it posts a message to _only_ active remote process.  So, it's not guaranteed
that active remote process at installing and uninstalling may be different.
If it's different, IMEStateManager in the old remote process believes that
menu keyboard listener is still installed.  This is what the cause of IME
unavailable in a remote process.

Current approach must be wrong.  IMEStateManager should manage menu keyboard
listener state only in the process which the listener is installed in.  Then,
when menu keyboard listener is uninstalled, IMEStateManager needs to restore
the latest input context in the remote process without asking the remote
process.

Therefore, this patch does:

* stops IMEStateManager::OnChangeFocusInternal() posting message when menu
  keyboard listener is installed and uninstalled.
* removes the message sender and receiver from PBrowser.
* cache the latest input context of active remote process in
  IMEStateManager::SetInputContextForChildProcess().
* make IMEStateManager::SetInputContextForChildProcess() not set input context
  when menu keyboard listener is installed in the process.
* tries to restore latest input context in the remote process in
  IMEStateManager::OnChangeFocusInternal().  If there is no cached input
  context, it does nothing and waits next SetInputContextForChildProcess() call.
* clears the cache when IMEStateManager::OnChangeFocusInternal() changes
  active remote process to different one or nullptr.

So, this must improve performance at activating and inactivating memubar and
opening and closing popup menu in the main process.

MozReview-Commit-ID: EelKSPlaXdw

--HG--
extra : rebase_source : db7334b3c0d3ce87868450ee3179692027975bd6
2017-09-07 11:46:08 +09:00
Wes Kocher
b5fe3d1dc7 Merge m-c to autoland, a=merge
MozReview-Commit-ID: zTrDLmRmnn
2017-09-08 13:42:01 -07:00
Eric Rahm
b689a2e0f3 Bug 1393230 - Part 1: Remove remaining string forward declarations. r=njn
--HG--
extra : rebase_source : 859ce9800bdb7c49ef04c685cb2e7344e4af2fcb
extra : source : c366bfc13e86c94389d58ffc41c9f4a3e573d406
2017-08-23 16:27:16 -07:00
Stone Shih
e7ef363bf0 Bug 1397161 - Remove assert(mIsMouseEnterIntoWidgetEventSuppressed) when sending eMouseExitFromWidget to remote. r=smaug 2017-09-06 10:27:52 +08:00
Andrew McCreight
1f0b9dc34f Bug 1186409 - Use a single global for all JSMs. r=kmag
This patch adds a preference jsloader.shareGlobal that makes it so
that JSMs share a single global, in order to reduce memory usage. The
pref is disabled by default, and will be enabled in a later bug. Each
JSM gets its own NonSyntacticVariablesObject (NSVO), which is used for
top level variable bindings and as the value of |this| within the JSM.

For the module loader, the main change is setting up the shared
global, and the NSVO for each JSM. A number of files are blacklisted
from the shared global, because they do things to the global that
would interfer with other JSMs. This is detailed in
mozJSComponentLoader::ReuseGlobal().

MozReview-Commit-ID: 3qVAc1c5aMI

--HG--
extra : rebase_source : fe7e2672be8d09d6b7cec25e08cd464ff3cd6573
2017-07-18 14:47:27 -07:00
James Cheng
9d0d797c01 Bug 1395468 - [Part1] Remove media.eme.chromium-api.enabled preference and its related code. r=cpearce
1. Delete MediaPrefs::EMEChromiumAPIEnabled() and related logic.
2. We now only use the Chromium CDM interface so delete the opposite side check of MediaPrefs::EMEChromiumAPIEnabled().

MozReview-Commit-ID: GDFrrf4WlWf

--HG--
extra : rebase_source : 987667dd47757afd58e7da10b60c0e1e1ec89d39
2017-08-29 16:13:15 +08:00
Andrew Sutherland
53d89ea1a9 Bug 1395827 - Eliminate NO_REMOTE_TYPE and default GetNewOrUsedBrowserProcess() remote type arg. r=billm
NO_REMOTE_TYPE seems to have been an artifact of introducing remote types and
not wanting to change things.  This eliminates the type, changing
GetNewOrUsedBrowserProcess() to no longer use a default argument so that
callers must think about the remote type they want.  Additionally, the existing
call-site used by xpcshell in nsEmbedFunctions.cpp is updated to use the
DEFAULT_REMOTE_TYPE of "web", as-is the unused nsAppRunner.cpp case.  (That is,
no one appears to call nsXULAppInfo::EnsureContentProcess directly or via its
XPCOM interface, and so it probably should be removed.  However, since I
potentially want this patch uplifted to beta 56 and legacy extensions exist
there, we're not addressing that in this patch.)

--HG--
extra : rebase_source : bb87ec781d041bcea49268585bb5b45522b19bc2
2017-09-01 02:24:47 -04:00
Wes Kocher
5f157c17dc Merge inbound to central, a=merge
MozReview-Commit-ID: 3JxUEFuinHY
2017-09-01 16:29:10 -07:00
Michael Layzell
74165be086 Bug 1378281 - Take 2: Also check if the child is destroyed during ProvideWindowCommon, r=catalinb 2017-09-01 12:51:48 -04:00