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

20156 Коммитов

Автор SHA1 Сообщение Дата
Mason Chang 5f4030b30a Bug 1211647. Use ::ShowWindow instead of ::ShowWindowPos for toplevel windows widgets that can't take focus. r=jimm 2016-05-26 16:34:21 -07:00
Marcos Caceres 095622d6de Bug 1265279 - Web Manifest: Implement window.oninstall. r=baku
* Add tests for window.oninstall
* Teach manifestMessages how to fire install event
* Test that the install event fired from Parent process
2016-05-30 18:52:00 +02:00
Masayuki Nakano a58a540708 Bug 1251063 PuppetWidget should cache InputContext which is set with SetInputContext() and use it in GetInputContext() only when it is the widget which has active input context in the process r=smaug
PuppetWidget::GetInputContext() needs to communicate with its parent process with synchronous IPC. This is very expensive for focus move.

Currently, IMEStateManager uses nsIWidget::GetInputContext() only for checking the IME enabled state.  Therefore, it's enough to cache input context when nsIWidget::SetInputContext() is called.  Then, we can avoid to communicate with synchronous IPC with PuppetWidget::GetInputContext() in most cases.

This patch makes IMEStateManager stores the last widget which sets input context.  When PuppetWidget uses its input context cache, it should check if it is the last widget to set input context with IMEStateManager since an input context may be shared with other widgets and another one may have update the input context.  I.e., PuppetWidget's input context cache may be already outdated after IMEStateManager sets input context with another widget.

This patch gives up to support retrieving IME open state from child process. However, perhaps, this is not necessary for everybody including add-on developers because the only user of IME open state in child process is nsIDOMWindowUtils. So, add-ons can send IME open state from chrome process instead.  If this decision is wrong, unfortunately, we should support it again in another bug.  It's easy to support with creating another nsIWidget::GetInputContext() or adding additional argument to it.

MozReview-Commit-ID: B2d2CCTsPKj

--HG--
extra : rebase_source : 4117330ba7871753176da960063b612e96f11752
2016-05-28 11:27:56 +09:00
eyim 3767f26135 Bug 1145085 - Move widget/ContentHelper.* to gfx/layers/apz/util/TouchActionHelper.*. r=BenWa,kats
r?BenWa,kats

MozReview-Commit-ID: 5snt3fIGnAS

--HG--
rename : widget/ContentHelper.cpp => gfx/layers/apz/util/TouchActionHelper.cpp
rename : widget/ContentHelper.h => gfx/layers/apz/util/TouchActionHelper.h
extra : rebase_source : 58250f060aefec4a8f9551f679d210bcdc849719
2016-05-27 16:46:25 -04:00
Bob Owen e9013afa1f Bug 1270447 Part 4: Remove redundant lines in nsPrintOptionsWin::DeserializeToPrintSettings. r=jimm
MozReview-Commit-ID: 9S8zNqm2W72

--HG--
extra : rebase_source : 5c333f44f32845428b9007d91bfb165f7149b4cd
2016-05-29 19:53:40 +01:00
Nicholas Nethercote 62f0bd3e33 Bug 1272203 (part 3) - Use NotNull in nsContentUtils::GetSurfaceData(). r=froydnj.
This might not look compelling in isolation, but this use of NotNull would have
prevented the null dereference crash in bug 1268721.
2016-05-27 09:49:25 +10:00
Karl Tomlinson 5aebf9bad8 bug 1274745 use ClaimStyleContext to ensure GtkWindow exists before using for scrollbar background r=stransky+263117
MozReview-Commit-ID: KKekEXJScM0

--HG--
extra : rebase_source : dd6b5261df5a1fe4e37b12c604f96af4d5c18e66
2016-05-27 10:32:02 +12:00
Benoit Girard 5945a3f065 Bug 1272821 - remove the WebGL feature failure from telemetry. r=jrmuizel
MozReview-Commit-ID: 8OOC63NTR0z

--HG--
extra : rebase_source : 75a8fbcbe1273a6f303c5ba25545a23dedcf1761
2016-05-26 18:25:22 -04:00
Milan Sreckovic 24c91178e0 Bug 1274152: All in downloadable blocklist only means All Windows. r=jrmuizel
MozReview-Commit-ID: E4OwfxKZLQk

--HG--
extra : rebase_source : 45c79cff7b3de46d1016a72680ae7f36b8dea37b
2016-05-27 13:04:38 -07:00
Bill McCloskey 2e4314c9a7 Bug 1262671 - IPC ReadData/ReadBytes elimination (r=froydnj) 2016-05-27 09:57:39 -07:00
Bill McCloskey 291c555f34 Bug 1262671 - void** -> PickleIterator (r=froydnj) 2016-05-27 09:57:38 -07:00
Makoto Kato ebcb916262 Bug 1212527 - Set background color to NSColor before calling showDefinitionForAttributedString on 10.11. r=mstange
When calling showDefinitionforAttributedString on OSX 10.11, it always return error due to the following exception.

Exception: decodeObjectForKey: class "TitlebarAndBackgroundColor" not loaded or does not exist

So before calling it, we set temporary color value, then restore color after calling it.

MozReview-Commit-ID: 1YeY6X1W6AV
2016-05-26 23:39:50 +09:00
Mats Palmgren 4e63c1e0cf Bug 881832 - Make inner document reflow asynchronous. r=tnikkel 2016-05-12 12:07:45 +12:00
Matt Woodrow 63c2013a9f Bug 1163212 - The resize event should not be cancelable. r=smaug
--HG--
extra : rebase_source : aef9af37dc8a1fdcc481ad9a69e4bf59a5e7a2bb
2016-05-27 10:35:48 +12:00
Benoit Girard 2d0ead9236 Bug 1272819 - Fix failureid/version mixup. r=jrmuizel
MozReview-Commit-ID: 26Zq4mmikxf

--HG--
extra : rebase_source : f37d7ccb29f18d8e37aeebe0a5ef73c8b7139651
2016-05-24 17:40:27 -04:00
Makoto Kato 8ccc8229b8 Backed out changeset d89f93a40f78 (bug 1212527) due to static analysis bustage
MozReview-Commit-ID: 79SduJl9zcs
2016-05-27 00:05:10 +09:00
Makoto Kato 15b6b9d8df Bug 1212527 - Set background color to NSColor before calling showDefinitionForAttributedString on 10.11. r=mstange
When calling showDefinitionforAttributedString on OSX 10.11, it always return error due to the following exception.

Exception: decodeObjectForKey: class "TitlebarAndBackgroundColor" not loaded or does not exist

So before calling it, we set temporary color value, then restore color after calling it.

MozReview-Commit-ID: 1YeY6X1W6AV

--HG--
extra : rebase_source : 1bfafdb24f7d6df0ad2552b786b8af84b71cc28a
2016-05-26 23:39:50 +09:00
Markus Stange c19306021c Bug 1216245 - Increase the titlebar texture's height to include the whole title text. r=mattwoodrow
MozReview-Commit-ID: It0T7dRhAj1

--HG--
extra : rebase_source : 9ef82caf78616bec142e22045f45141f5c8cf45c
2016-05-25 13:35:04 -04:00
Joel Maher 3ff44ada49 Bug 1270962 - move tests which access the clipboard to subsuite 'clipboard'. r=bgrins,ryanvm,armenzg
MozReview-Commit-ID: IZziPmwFtHj
2016-05-25 15:28:24 -04:00
Martin Stransky b8bb3b2ec9 Bug 1273013 - "download progress bar does not show in gtk3 build." r=karlt 2016-05-24 13:43:00 +02:00
Markus Stange e1571acd05 Bug 1274282 - Add exception guards to nsChildView::PrepareWindowEffects(). r=spohl
MozReview-Commit-ID: De3grs2BF4E

--HG--
extra : rebase_source : a22d67a377962d4e66dc56e1e11269f932ca62ad
2016-05-24 14:01:48 -04:00
Jonathan Watt de83a13903 Bug 1275266 - Rename imgLoader::Singleton and imgLoader::PBSingleton to something less misleading, and document them. r=tnikkel 2016-05-19 13:31:15 +01:00
Jeff Muizelaar f9a3f41d46 Bug 1245756. Remove blacklisting for HD5800. r=mattwoodrow
This was before we had the AMD specific checks to block DXVA for higher resolutions/frame rates.
2016-05-24 15:38:48 -04:00
Jim Chen 6eee3bd154 Bug 1268125 - Update auto-generated JNI bindings; r=me 2016-05-24 12:18:04 -04:00
Jim Chen 652036509d Bug 1268125 - Always use GetEnvForThread for GlobalRef ref/unref; r=snorp
Even though a class may not be multi-threaded, its object references can
still be passed to different threads. As long as the references are not
accessed, we should allow it, and therefore GlobalRef should use
GetEnvForThread for ref/unref, instead of using FindEnv, which can
trigger assertions on non-main threads.
2016-05-24 12:18:04 -04:00
Keith Yeung 28a4bc1e9e Bug 1274339 - Align resizerpanel and caret in -moz-appearance. r=bobbyholley
--HG--
extra : rebase_source : ce28fd34fd7738abf440d6ae6052059ff549f974
2016-05-19 10:58:00 +02:00
Masayuki Nakano 38e54402b2 Bug 1272599 part.2 Rename KeyboardEvent.key values, "MozHomeScreen" and "MozCameraFocusAdjust" to "GoHome" and "CameraFocus" except on B2G r=smaug
KEYCODE_HOME was temporarily named as "MozHomeScreen" and KEYCODE_FOCUS was temprarily named as "MozCameraFocusAdjust" since they were not defined by the spec. However, in the latest spec, they are defined as "GoHome" and "CameraFocus". So, it is the time to rename them.

However, these temporary key names are still used by Gaia. Until it's fixed, we should keep using the temporary names only on B2G.

MozReview-Commit-ID: 9ILtZdf6EUQ

--HG--
extra : rebase_source : f673ca6e128705af3071dafbd7ab1eb8e310297d
2016-05-20 21:29:10 +09:00
Masayuki Nakano 18d7f8212d Bug 1272599 part.1 Rename KeyboardEvent.key value, "MozPhoneCall" to "Call" r=smaug
Android's KEYCODE_CALL was temporarily named as "MozPhoneCall" since proper key name was not defined in the spec. However, now, it's defined as "Call" in the latest spec. Therefore, we should rename this key name.

Note that this isn't available on Android because the key event is never fired on applications. However, this key may be useful on B2G. Although, the key is not used by current Gaia.

MozReview-Commit-ID: GF4STYrGMig

--HG--
extra : rebase_source : 7d94c0a3c47d9ba1fadc4de475d71967d6281545
2016-05-20 21:00:20 +09:00
Masayuki Nakano 4205d9edae Bug 1272578 part.3 Rename key name VolumeMute to AudioVolumeMute except on B2G r=smaug
VolumeMute was renamed to AudioVolumeMute in the latest draft and Chromium uses the new name. Therefore, we need to update this but Gaia uses the old name. So, we shouldn't rename on B2G until Gaia is fixed.

Note that this patch changes tests but they are not used by B2G. Therefore, just replacing with new name is enough.

Only forms.js is necessary #ifdef because the main purpose of forms.js is for B2G's IME framework. However, it's available on the other platforms if chrome needs to use it.

MozReview-Commit-ID: KSkcPbIovin

--HG--
extra : rebase_source : 4ff5d92b000599806367b002fd08aa5ae858ee4d
2016-05-21 00:57:18 +09:00
Masayuki Nakano 65d3998d32 Bug 1272578 part.2 Rename key name VolumeUp to AudioVolumeUp except on B2G r=smaug
VolumeUp was renamed to AudioVolumeUp in the latest draft and Chromium uses the new name. Therefore, we need to update this but Gaia uses the old name. So, we shouldn't rename on B2G until Gaia is fixed.

Note that this patch changes tests but they are not used by B2G. Therefore, just replacing with new name is enough.

Only forms.js is necessary #ifdef because the main purpose of forms.js is for B2G's IME framework. However, it's available on the other platforms if chrome needs to use it.

MozReview-Commit-ID: KzLVL5Y2dIN

--HG--
extra : rebase_source : d7a70f556684cdc99989e408e0e87a04e2da43d9
2016-05-21 00:55:48 +09:00
Masayuki Nakano 97f043ea9e Bug 1272578 part.1 Rename key name VolumeDown to AudioVolumeDown except on B2G r=smaug
VolumeDown was renamed to AudioVolumeDown in the latest draft and Chromium uses the new name. Therefore, we need to update this but Gaia uses the old name. So, we shouldn't rename on B2G until Gaia is fixed.

Note that this patch changes tests but they are not used by B2G. Therefore, just replacing with new name is enough.

Only forms.js is necessary #ifdef because the main purpose of forms.js is for B2G's IME framework. However, it's available on the other platforms if chrome needs to use it.

MozReview-Commit-ID: cq98qJnS8M

--HG--
extra : rebase_source : 98653e5427d9d4720d19011673cbb0f9cdf36f1a
2016-05-21 00:52:03 +09:00
Jonathan Watt e1ac9527d2 Bug 1274881 - Get rid of imgLoader::GetInstance. r=tnikkel 2016-05-18 10:19:19 +01:00
David Anderson ecf249bd9a Add GPUProcessManager to manage access to CompositorBridgeParent. (bug 1274149 part 1, r=mattwoodrow) 2016-05-23 00:27:01 -07:00
Phil Ringnalda 6bb0bc4494 Back out 6 changesets (bug 881832) for failures in test_Debugger.Source.prototype.element.html
CLOSED TREE

Backed out changeset fac50ce10b07 (bug 881832)
Backed out changeset 32e01c144cd4 (bug 881832)
Backed out changeset 779f5336b81e (bug 881832)
Backed out changeset 95efd250e29f (bug 881832)
Backed out changeset 7fe79f07189f (bug 881832)
Backed out changeset 8ee1824f2a57 (bug 881832)
2016-05-23 18:34:49 -07:00
Wes Kocher 2299744a78 Backed out 5 changesets (bug 1274149) for intermittent failures in apz tests CLOSED TREE
Backed out changeset 1117598ac875 (bug 1274149)
Backed out changeset 540cb6d10745 (bug 1274149)
Backed out changeset 057223823e5d (bug 1274149)
Backed out changeset 9932689ab717 (bug 1274149)
Backed out changeset a22a53c503a6 (bug 1274149)
2016-05-23 13:01:22 -07:00
Makoto Kato d8ef4deef4 Bug 1177943 - Part 5. Add IPC for e10s support. r=masayuki
Implement LookUpDictionary to PuppetWidget and PBrowser for e10s.

MozReview-Commit-ID: 44SrfuLJoCF
2016-04-26 17:18:04 +09:00
Makoto Kato e5b8956c7b Bug 1177943 - Part 3. Look up dictionary using new 10.8+ interface. r=masayuki
From 10.8+, it has new API to look up dictionary async.  So I use it.

MozReview-Commit-ID: 9kWEsCib4R5
2016-04-26 18:04:41 +09:00
Makoto Kato 04efbe5905 Bug 1177943 - Part 2. Add cmd_lookUpDictionary content command. r=masayuki
To get selected word on contnet process, I create new contnet command to look up dictionary.  Then, call nsIWidget's method to show looking up dictionary.

About fetched length, see https://www.chromium.org/developers/design-documents/system-dictionary-pop-up-architecture for OSX 10.6's design

MozReview-Commit-ID: Ic2r6hboEEw
2016-05-02 11:41:20 +09:00
Makoto Kato 3cc2e4b00e Bug 1177943 - Part 1. Add LookUpDictionary method to widget. r=masayuki
I would like to add new method to look up dictionary.

MozReview-Commit-ID: Jqk0OelezVF
2016-04-04 17:14:36 +09:00
David Anderson ba1f071a23 Add GPUProcessManager to manage access to CompositorBridgeParent. (bug 1274149 part 1, r=mattwoodrow) 2016-05-23 00:27:01 -07:00
Mats Palmgren fdb3066641 Bug 881832 - Make inner document reflow asynchronous. r=tnikkel 2016-05-12 12:07:45 +12:00
Jonathan Kew 72fc68048e Bug 1274368 - Draw resizer as RTL for elements with vertical-rl writing mode. r=dholbert 2016-05-21 13:59:25 +01:00
Masayuki Nakano 02cb827ee5 Bug 1272592 Merge "MediaSelect" key value into "LaunchMediaPlayer" r=smaug
"MediaSelect" is merged into "LanuchMediaPlayer" in the spec since there is no difference between them and "LaunchMediaPlayer" explains the meaning clearer.

This patch removes "MediaSelect" key value and maps all keys which are mapped to "MediaSelect" to "LaunchMediaPlayer".

MozReview-Commit-ID: IEZhV4p6Qag
2016-05-19 20:47:32 +09:00
Masayuki Nakano 838c23f20a Bug 1232919 part.2 Reorganize NativeKeyToDOMKeyName.h for using same definition order of the latest UI Events KeyboardEvent key values r=smaug
MozReview-Commit-ID: ANBe57BbVgb

--HG--
extra : rebase_source : 694c3cb66449f51a75a311f8fc07b5b1c40ae1d6
2016-05-13 18:49:46 +09:00
Wes Kocher 7c13cd34da Backed out changeset 3c46096adeaf (bug 1272592) for landing before some requisite commits CLOSED TREE 2016-05-20 17:59:41 -07:00
Masayuki Nakano 90aa97cb1c Bug 1272592 Merge "MediaSelect" key value into "LaunchMediaPlayer" r=smaug
"MediaSelect" is merged into "LanuchMediaPlayer" in the spec since there is no difference between them and "LaunchMediaPlayer" explains the meaning clearer.

This patch removes "MediaSelect" key value and maps all keys which are mapped to "MediaSelect" to "LaunchMediaPlayer".

MozReview-Commit-ID: IEZhV4p6Qag

--HG--
extra : rebase_source : deeeb5bd6b0aa7fa4c7beb9b6e4cd5671520c232
2016-05-19 20:47:32 +09:00
Alexandre Lissy b423621b8a Bug 1273998 - Proper export of printing IPDL with --disable-printing r=bobowen,glandium,?glandium
MozReview-Commit-ID: GNUrl6LKcMm

--HG--
extra : rebase_source : 9c1949b51b87c1d3bf6c8e59b36b6ebed263e22b
2016-05-19 12:25:22 +02:00
Karl Tomlinson 49d29c5bf9 bug 1272194 explicitly invalidate after change style contexts belonging to widgets r=stransky+263117
This fixes menu item rendering during hover.

MozReview-Commit-ID: CEa6aorqBZM

--HG--
extra : rebase_source : 19b1d4f26541b8b5a435252552352592791c080d
2016-05-17 18:15:12 +12:00
Karl Tomlinson 5fe070aa8f bug 1272194 use WidgetStyleCache for menus r=stransky+263117
Unnecessary widget realization is also removed.

MozReview-Commit-ID: A5HuE5bqf4x

--HG--
extra : rebase_source : 2fb13bac970e5b5daa53948d3d9e9e18496a5a4e
2016-05-17 18:24:55 +12:00
Karl Tomlinson 6b738d9703 bug 1272194 only add menubar class to menu items with GTK 3.4 r=stransky+263117
and save/restore context consistent with GTK 3.4.

MozReview-Commit-ID: GdMoAmzOJlf

--HG--
extra : rebase_source : c3cb854a304a0bc10cd27325b42361031a5107db
2016-05-17 18:02:00 +12:00