Skip to content

Commit

Permalink
Merge m-i to m-c, a=merge
Browse files Browse the repository at this point in the history
  • Loading branch information
philor committed Feb 5, 2017
2 parents cda18c2 + 955486f commit b6782eb
Show file tree
Hide file tree
Showing 564 changed files with 62,522 additions and 1,225 deletions.
1 change: 1 addition & 0 deletions accessible/interfaces/gecko/IGeckoCustom.idl
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ interface IGeckoCustom : IUnknown
[propget] HRESULT anchorCount([out, retval] long* aCount);
[propget] HRESULT DOMNodeID([out, retval] BSTR* aID);
[propget] HRESULT minimumIncrement([out, retval] double* aIncrement);
[propget] HRESULT mozState([out, retval] unsigned __int64* aState);
}


Expand Down
15 changes: 7 additions & 8 deletions accessible/ipc/win/ProxyAccessible.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -193,18 +193,17 @@ ProxyAccessible::Description(nsString& aDesc) const
uint64_t
ProxyAccessible::State() const
{
uint64_t state = 0;
RefPtr<IAccessible> acc;
if (!GetCOMInterface((void**)getter_AddRefs(acc))) {
return state;
RefPtr<IGeckoCustom> custom = QueryInterface<IGeckoCustom>(this);
if (!custom) {
return 0;
}

VARIANT varState;
HRESULT hr = acc->get_accState(kChildIdSelf, &varState);
uint64_t state;
HRESULT hr = custom->get_mozState(&state);
if (FAILED(hr)) {
return state;
return 0;
}
return uint64_t(varState.lVal);
return state;
}

nsIntRect
Expand Down
7 changes: 7 additions & 0 deletions accessible/windows/msaa/GeckoCustom.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,10 @@ GeckoCustom::get_minimumIncrement(double* aIncrement)
*aIncrement = mAcc->Step();
return S_OK;
}

STDMETHODIMP
GeckoCustom::get_mozState(uint64_t* aState)
{
*aState = mAcc->State();
return S_OK;
}
1 change: 1 addition & 0 deletions accessible/windows/msaa/GeckoCustom.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ class GeckoCustom final : public IGeckoCustom
virtual STDMETHODIMP get_DOMNodeID(BSTR* aID);
virtual STDMETHODIMP get_ID(uint64_t* aID);
virtual STDMETHODIMP get_minimumIncrement(double* aIncrement);
virtual STDMETHODIMP get_mozState(uint64_t* aState);

private:
GeckoCustom() = delete;
Expand Down
3 changes: 1 addition & 2 deletions addon-sdk/source/python-lib/cuddlefish/prefs.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,7 @@
# Disable useragent updates.
'general.useragent.updates.enabled': False,
'media.eme.enabled': True,
'media.eme.apiVisible': True,
# Don't forceably kill content processes after a timeout
# Don't forcibly kill content processes after a timeout
'dom.ipc.tabs.shutdownTimeoutSecs': 0,
'general.useragent.locale': "en-US",
'intl.locale.matchOS': "en-US",
Expand Down
1 change: 0 additions & 1 deletion addon-sdk/source/test/preferences/test.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
"browser.download.panel.shown": true,
"general.useragent.updates.enabled": false,
"media.eme.enabled": true,
"media.eme.apiVisible": true,
"dom.ipc.tabs.shutdownTimeoutSecs": 0,
"general.useragent.locale": "en-US",
"intl.locale.matchOS": "en-US",
Expand Down
1 change: 0 additions & 1 deletion b2g/app/b2g.js
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,6 @@ pref("media.gonk.enabled", true);

//Encrypted media extensions.
pref("media.eme.enabled", true);
pref("media.eme.apiVisible", true);
// The default number of decoded video frames that are enqueued in
// MediaDecoderReader's mVideoQueue.
pref("media.video-queue.default-size", 3);
Expand Down
1 change: 0 additions & 1 deletion browser/app/profile/firefox.js
Original file line number Diff line number Diff line change
Expand Up @@ -1376,7 +1376,6 @@ pref("media.eme.enabled", false);
#else
pref("media.eme.enabled", true);
#endif
pref("media.eme.apiVisible", true);

// Whether we should run a test-pattern through EME GMPs before assuming they'll
// decode H.264.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ add_task(function* setup() {
yield SpecialPowers.pushPrefEnv({"set": [
[ "privacy.userContext.enabled", true ],
[ "media.mediasource.enabled", true ],
[ "media.eme.apiVisible", true ],
[ "media.mediasource.webm.enabled", true ],
[ "media.clearkey.persistent-license.enabled", true ],
]});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,6 @@ add_task(function* setup() {
yield SpecialPowers.pushPrefEnv({"set": [
[ "privacy.userContext.enabled", true ],
[ "media.mediasource.enabled", true ],
[ "media.eme.apiVisible", true ],
[ "media.mediasource.webm.enabled", true ],
[ "media.clearkey.persistent-license.enabled", true ],
]});
Expand Down
152 changes: 32 additions & 120 deletions browser/locales/search/list.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,45 @@
"google", "yahoo", "amazondotcom", "bing", "ddg", "twitter", "wikipedia"
]
},
"regionOverrides": {
"US": {
"google": "google-nocodes"
},
"CA": {
"google": "google-nocodes"
},
"KZ": {
"google": "google-nocodes"
},
"BY": {
"google": "google-nocodes"
},
"RU": {
"google": "google-nocodes"
},
"TR": {
"google": "google-nocodes"
},
"UA": {
"google": "google-nocodes"
},
"CN": {
"google": "google-nocodes"
},
"TW": {
"google": "google-nocodes"
},
"HK": {
"google": "google-nocodes"
}
},
"locales": {
"en-US": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo", "amazondotcom", "bing", "ddg", "twitter", "wikipedia"
]
},
"US": {
"visibleDefaultEngines": [
"yahoo", "google-nocodes", "bing", "amazondotcom", "ddg", "twitter", "wikipedia"
]
},
"CA": {
"visibleDefaultEngines": [
"google-nocodes", "yahoo", "bing", "amazondotcom", "ddg", "twitter", "wikipedia"
]
},
"experimental-hidden": {
"visibleDefaultEngines": [
"yahoo-en-CA"
Expand Down Expand Up @@ -396,31 +418,6 @@
"visibleDefaultEngines": [
"yandex-kk", "google", "ddg", "flip", "kaz-kk", "twitter", "wikipedia-kk"
]
},
"KZ": {
"visibleDefaultEngines": [
"yandex-kk", "google-nocodes", "ddg", "flip", "kaz-kk", "twitter", "wikipedia-kk"
]
},
"BY": {
"visibleDefaultEngines": [
"yandex-kk", "google-nocodes", "ddg", "flip", "kaz-kk", "twitter", "wikipedia-kk"
]
},
"RU": {
"visibleDefaultEngines": [
"yandex-kk", "google-nocodes", "ddg", "flip", "kaz-kk", "twitter", "wikipedia-kk"
]
},
"TR": {
"visibleDefaultEngines": [
"yandex-kk", "google-nocodes", "ddg", "flip", "kaz-kk", "twitter", "wikipedia-kk"
]
},
"UA": {
"visibleDefaultEngines": [
"yandex-kk", "google-nocodes", "ddg", "flip", "kaz-kk", "twitter", "wikipedia-kk"
]
}
},
"km": {
Expand Down Expand Up @@ -596,31 +593,6 @@
"visibleDefaultEngines": [
"yandex-ru", "google", "ddg", "ozonru", "priceru", "wikipedia-ru", "mailru"
]
},
"RU": {
"visibleDefaultEngines": [
"yandex-ru", "google-nocodes", "ddg", "ozonru", "priceru", "wikipedia-ru", "mailru"
]
},
"BY": {
"visibleDefaultEngines": [
"yandex-ru", "google-nocodes", "ddg", "ozonru", "priceru", "wikipedia-ru", "mailru"
]
},
"KZ": {
"visibleDefaultEngines": [
"yandex-ru", "google-nocodes", "ddg", "ozonru", "priceru", "wikipedia-ru", "mailru"
]
},
"TR": {
"visibleDefaultEngines": [
"yandex-ru", "google-nocodes", "ddg", "ozonru", "priceru", "wikipedia-ru", "mailru"
]
},
"UA": {
"visibleDefaultEngines": [
"yandex-ru", "google-nocodes", "ddg", "ozonru", "priceru", "wikipedia-ru", "mailru"
]
}
},
"si": {
Expand Down Expand Up @@ -705,63 +677,13 @@
"visibleDefaultEngines": [
"yandex-tr", "google", "ddg", "twitter", "wikipedia-tr"
]
},
"TR": {
"visibleDefaultEngines": [
"yandex-tr", "google-nocodes", "ddg", "twitter", "wikipedia-tr"
]
},
"BY": {
"visibleDefaultEngines": [
"yandex-tr", "google-nocodes", "ddg", "twitter", "wikipedia-tr"
]
},
"KZ": {
"visibleDefaultEngines": [
"yandex-tr", "google-nocodes", "ddg", "twitter", "wikipedia-tr"
]
},
"RU": {
"visibleDefaultEngines": [
"yandex-tr", "google-nocodes", "ddg", "twitter", "wikipedia-tr"
]
},
"UA": {
"visibleDefaultEngines": [
"yandex-tr", "google-nocodes", "ddg", "twitter", "wikipedia-tr"
]
}
},
"uk": {
"default": {
"visibleDefaultEngines": [
"google", "yandex-uk", "meta-ua", "ddg", "wikipedia-uk", "metamarket"
]
},
"UA": {
"visibleDefaultEngines": [
"google-nocodes", "yandex-uk", "meta-ua", "ddg", "wikipedia-uk", "metamarket"
]
},
"TR": {
"visibleDefaultEngines": [
"google-nocodes", "yandex-uk", "meta-ua", "ddg", "wikipedia-uk", "metamarket"
]
},
"BY": {
"visibleDefaultEngines": [
"google-nocodes", "yandex-uk", "meta-ua", "ddg", "wikipedia-uk", "metamarket"
]
},
"KZ": {
"visibleDefaultEngines": [
"google-nocodes", "yandex-uk", "meta-ua", "ddg", "wikipedia-uk", "metamarket"
]
},
"RU": {
"visibleDefaultEngines": [
"google-nocodes", "yandex-uk", "meta-ua", "ddg", "wikipedia-uk", "metamarket"
]
}
},
"ur": {
Expand Down Expand Up @@ -811,16 +733,6 @@
"visibleDefaultEngines": [
"yahoo-zh-TW", "google", "ddg", "findbook-zh-TW", "wikipedia-zh-TW", "yahoo-zh-TW-HK", "yahoo-bid-zh-TW", "yahoo-answer-zh-TW"
]
},
"TW": {
"visibleDefaultEngines": [
"yahoo-zh-TW", "google-nocodes", "ddg", "findbook-zh-TW", "wikipedia-zh-TW", "yahoo-zh-TW-HK", "yahoo-bid-zh-TW", "yahoo-answer-zh-TW"
]
},
"HK": {
"visibleDefaultEngines": [
"yahoo-zh-TW-HK", "google-nocodes", "ddg", "findbook-zh-TW", "wikipedia-zh-TW", "yahoo-zh-TW", "yahoo-bid-zh-TW", "yahoo-answer-zh-TW"
]
}
}
}
Expand Down
1 change: 0 additions & 1 deletion dom/media/test/eme.js
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,6 @@ function SetupEME(test, token, params)
function SetupEMEPref(callback) {
var prefs = [
[ "media.mediasource.enabled", true ],
[ "media.eme.apiVisible", true ],
[ "media.mediasource.webm.enabled", true ],
];

Expand Down
5 changes: 1 addition & 4 deletions dom/webidl/HTMLMediaElement.webidl
Original file line number Diff line number Diff line change
Expand Up @@ -157,17 +157,14 @@ partial interface HTMLMediaElement {

// Encrypted Media Extensions
partial interface HTMLMediaElement {
[Pref="media.eme.apiVisible"]
readonly attribute MediaKeys? mediaKeys;

// void, not any: https://www.w3.org/Bugs/Public/show_bug.cgi?id=26457
[Pref="media.eme.apiVisible", NewObject]
[NewObject]
Promise<void> setMediaKeys(MediaKeys? mediaKeys);

[Pref="media.eme.apiVisible"]
attribute EventHandler onencrypted;

[Pref="media.eme.apiVisible"]
attribute EventHandler onwaitingforkey;
};

Expand Down
2 changes: 1 addition & 1 deletion dom/webidl/MediaEncryptedEvent.webidl
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* W3C liability, trademark and document use rules apply.
*/

[Pref="media.eme.apiVisible", Constructor(DOMString type, optional MediaKeyNeededEventInit eventInitDict)]
[Constructor(DOMString type, optional MediaKeyNeededEventInit eventInitDict)]
interface MediaEncryptedEvent : Event {
readonly attribute DOMString initDataType;
[Throws]
Expand Down
1 change: 0 additions & 1 deletion dom/webidl/MediaKeyError.webidl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
// According to the spec, "The future of error events and MediaKeyError
// is uncertain."
// https://www.w3.org/Bugs/Public/show_bug.cgi?id=21798
[Pref="media.eme.apiVisible"]
interface MediaKeyError : Event {
readonly attribute unsigned long systemCode;
};
2 changes: 1 addition & 1 deletion dom/webidl/MediaKeyMessageEvent.webidl
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ enum MediaKeyMessageType {
"individualization-request"
};

[Pref="media.eme.apiVisible", Constructor(DOMString type, MediaKeyMessageEventInit eventInitDict)]
[Constructor(DOMString type, MediaKeyMessageEventInit eventInitDict)]
interface MediaKeyMessageEvent : Event {
readonly attribute MediaKeyMessageType messageType;
[Throws]
Expand Down
1 change: 0 additions & 1 deletion dom/webidl/MediaKeySession.webidl
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
* W3C liability, trademark and document use rules apply.
*/

[Pref="media.eme.apiVisible"]
interface MediaKeySession : EventTarget {
// error state
readonly attribute MediaKeyError? error;
Expand Down
1 change: 0 additions & 1 deletion dom/webidl/MediaKeyStatusMap.webidl
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ enum MediaKeyStatus {
"internal-error"
};

[Pref="media.eme.apiVisible"]
interface MediaKeyStatusMap {
iterable<ArrayBuffer,MediaKeyStatus>;
readonly attribute unsigned long size;
Expand Down
1 change: 0 additions & 1 deletion dom/webidl/MediaKeySystemAccess.webidl
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ dictionary MediaKeySystemConfiguration {
sequence<DOMString> sessionTypes;
};

[Pref="media.eme.apiVisible"]
interface MediaKeySystemAccess {
readonly attribute DOMString keySystem;
[NewObject]
Expand Down
1 change: 0 additions & 1 deletion dom/webidl/MediaKeys.webidl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ enum MediaKeySessionType {
// persistent-usage-record,
};

[Pref="media.eme.apiVisible"]
interface MediaKeys {
readonly attribute DOMString keySystem;

Expand Down
2 changes: 1 addition & 1 deletion dom/webidl/Navigator.webidl
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ partial interface Navigator {
};

partial interface Navigator {
[Pref="media.eme.apiVisible", NewObject]
[NewObject]
Promise<MediaKeySystemAccess>
requestMediaKeySystemAccess(DOMString keySystem,
sequence<MediaKeySystemConfiguration> supportedConfigurations);
Expand Down
Loading

0 comments on commit b6782eb

Please sign in to comment.