mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 944937 - Add a shim for Services.metro on non-Metro platforms. r=mbrubeck
This commit is contained in:
parent
caf259a985
commit
f6795f5cdd
@ -70,6 +70,16 @@ var Browser = {
|
||||
dump("###########" + e + "\n");
|
||||
}
|
||||
|
||||
if (!Services.metro) {
|
||||
// Services.metro is only available on Windows Metro. We want to be able
|
||||
// to test metro on other platforms, too, so we provide a minimal shim.
|
||||
Services.metro = {
|
||||
activationURI: "",
|
||||
pinTileAsync: function () {},
|
||||
unpinTileAsync: function () {}
|
||||
};
|
||||
}
|
||||
|
||||
/* handles dispatching clicks on browser into clicks in content or zooms */
|
||||
Elements.browsers.customDragger = new Browser.MainDragger();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user