зеркало из https://github.com/mozilla/gecko-dev.git
Merge m-c to inbound. a=merge
This commit is contained in:
Коммит
ce43329f4b
|
@ -19,7 +19,7 @@
|
||||||
<copyfile dest="Makefile" src="core/root.mk"/>
|
<copyfile dest="Makefile" src="core/root.mk"/>
|
||||||
</project>
|
</project>
|
||||||
<project name="fake-dalvik" path="dalvik" remote="b2g" revision="ca1f327d5acc198bb4be62fa51db2c039032c9ce"/>
|
<project name="fake-dalvik" path="dalvik" remote="b2g" revision="ca1f327d5acc198bb4be62fa51db2c039032c9ce"/>
|
||||||
<project name="gaia.git" path="gaia" remote="mozillaorg" revision="02f778766521b84da0ca3e575bfe35c37f46803d"/>
|
<project name="gaia.git" path="gaia" remote="mozillaorg" revision="9f35fca9d818b26c06aa6b7e5c0bef25886f8f20"/>
|
||||||
<project name="gonk-misc" path="gonk-misc" remote="b2g" revision="3bb61a27cd2941b2ba9b616a11aaa44269210396"/>
|
<project name="gonk-misc" path="gonk-misc" remote="b2g" revision="3bb61a27cd2941b2ba9b616a11aaa44269210396"/>
|
||||||
<project name="rilproxy" path="rilproxy" remote="b2g" revision="827214fcf38d6569aeb5c6d6f31cb296d1f09272"/>
|
<project name="rilproxy" path="rilproxy" remote="b2g" revision="827214fcf38d6569aeb5c6d6f31cb296d1f09272"/>
|
||||||
<project name="platform_hardware_ril" path="hardware/ril" remote="b2g" revision="cd88d860656c31c7da7bb310d6a160d0011b0961"/>
|
<project name="platform_hardware_ril" path="hardware/ril" remote="b2g" revision="cd88d860656c31c7da7bb310d6a160d0011b0961"/>
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
</project>
|
</project>
|
||||||
<project name="rilproxy" path="rilproxy" remote="b2g" revision="827214fcf38d6569aeb5c6d6f31cb296d1f09272"/>
|
<project name="rilproxy" path="rilproxy" remote="b2g" revision="827214fcf38d6569aeb5c6d6f31cb296d1f09272"/>
|
||||||
<project name="fake-libdvm" path="dalvik" remote="b2g" revision="d50ae982b19f42f0b66d08b9eb306be81687869f"/>
|
<project name="fake-libdvm" path="dalvik" remote="b2g" revision="d50ae982b19f42f0b66d08b9eb306be81687869f"/>
|
||||||
<project name="gaia" path="gaia" remote="mozillaorg" revision="02f778766521b84da0ca3e575bfe35c37f46803d"/>
|
<project name="gaia" path="gaia" remote="mozillaorg" revision="9f35fca9d818b26c06aa6b7e5c0bef25886f8f20"/>
|
||||||
<project name="gonk-misc" path="gonk-misc" remote="b2g" revision="3bb61a27cd2941b2ba9b616a11aaa44269210396"/>
|
<project name="gonk-misc" path="gonk-misc" remote="b2g" revision="3bb61a27cd2941b2ba9b616a11aaa44269210396"/>
|
||||||
<project name="moztt" path="external/moztt" remote="b2g" revision="562d357b72279a9e35d4af5aeecc8e1ffa2f44f1"/>
|
<project name="moztt" path="external/moztt" remote="b2g" revision="562d357b72279a9e35d4af5aeecc8e1ffa2f44f1"/>
|
||||||
<project name="apitrace" path="external/apitrace" remote="apitrace" revision="71f5a35e3bc1801847413cff1f14fc3b5cd991ca"/>
|
<project name="apitrace" path="external/apitrace" remote="apitrace" revision="71f5a35e3bc1801847413cff1f14fc3b5cd991ca"/>
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
<project name="platform_build" path="build" remote="b2g" revision="7945ca73e687be5edbc7b928dc7fe3a208242144">
|
<project name="platform_build" path="build" remote="b2g" revision="7945ca73e687be5edbc7b928dc7fe3a208242144">
|
||||||
<copyfile dest="Makefile" src="core/root.mk"/>
|
<copyfile dest="Makefile" src="core/root.mk"/>
|
||||||
</project>
|
</project>
|
||||||
<project name="gaia" path="gaia" remote="mozillaorg" revision="02f778766521b84da0ca3e575bfe35c37f46803d"/>
|
<project name="gaia" path="gaia" remote="mozillaorg" revision="9f35fca9d818b26c06aa6b7e5c0bef25886f8f20"/>
|
||||||
<project name="fake-libdvm" path="dalvik" remote="b2g" revision="d50ae982b19f42f0b66d08b9eb306be81687869f"/>
|
<project name="fake-libdvm" path="dalvik" remote="b2g" revision="d50ae982b19f42f0b66d08b9eb306be81687869f"/>
|
||||||
<project name="gonk-misc" path="gonk-misc" remote="b2g" revision="3bb61a27cd2941b2ba9b616a11aaa44269210396"/>
|
<project name="gonk-misc" path="gonk-misc" remote="b2g" revision="3bb61a27cd2941b2ba9b616a11aaa44269210396"/>
|
||||||
<project name="librecovery" path="librecovery" remote="b2g" revision="891e5069c0ad330d8191bf8c7b879c814258c89f"/>
|
<project name="librecovery" path="librecovery" remote="b2g" revision="891e5069c0ad330d8191bf8c7b879c814258c89f"/>
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
<copyfile dest="Makefile" src="core/root.mk"/>
|
<copyfile dest="Makefile" src="core/root.mk"/>
|
||||||
</project>
|
</project>
|
||||||
<project name="fake-dalvik" path="dalvik" remote="b2g" revision="ca1f327d5acc198bb4be62fa51db2c039032c9ce"/>
|
<project name="fake-dalvik" path="dalvik" remote="b2g" revision="ca1f327d5acc198bb4be62fa51db2c039032c9ce"/>
|
||||||
<project name="gaia.git" path="gaia" remote="mozillaorg" revision="02f778766521b84da0ca3e575bfe35c37f46803d"/>
|
<project name="gaia.git" path="gaia" remote="mozillaorg" revision="9f35fca9d818b26c06aa6b7e5c0bef25886f8f20"/>
|
||||||
<project name="gonk-misc" path="gonk-misc" remote="b2g" revision="3bb61a27cd2941b2ba9b616a11aaa44269210396"/>
|
<project name="gonk-misc" path="gonk-misc" remote="b2g" revision="3bb61a27cd2941b2ba9b616a11aaa44269210396"/>
|
||||||
<project name="rilproxy" path="rilproxy" remote="b2g" revision="827214fcf38d6569aeb5c6d6f31cb296d1f09272"/>
|
<project name="rilproxy" path="rilproxy" remote="b2g" revision="827214fcf38d6569aeb5c6d6f31cb296d1f09272"/>
|
||||||
<project name="platform_hardware_ril" path="hardware/ril" remote="b2g" revision="cd88d860656c31c7da7bb310d6a160d0011b0961"/>
|
<project name="platform_hardware_ril" path="hardware/ril" remote="b2g" revision="cd88d860656c31c7da7bb310d6a160d0011b0961"/>
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
</project>
|
</project>
|
||||||
<project name="librecovery" path="librecovery" remote="b2g" revision="891e5069c0ad330d8191bf8c7b879c814258c89f"/>
|
<project name="librecovery" path="librecovery" remote="b2g" revision="891e5069c0ad330d8191bf8c7b879c814258c89f"/>
|
||||||
<project name="fake-libdvm" path="dalvik" remote="b2g" revision="d50ae982b19f42f0b66d08b9eb306be81687869f"/>
|
<project name="fake-libdvm" path="dalvik" remote="b2g" revision="d50ae982b19f42f0b66d08b9eb306be81687869f"/>
|
||||||
<project name="gaia" path="gaia" remote="mozillaorg" revision="02f778766521b84da0ca3e575bfe35c37f46803d"/>
|
<project name="gaia" path="gaia" remote="mozillaorg" revision="9f35fca9d818b26c06aa6b7e5c0bef25886f8f20"/>
|
||||||
<project name="gonk-misc" path="gonk-misc" remote="b2g" revision="3bb61a27cd2941b2ba9b616a11aaa44269210396"/>
|
<project name="gonk-misc" path="gonk-misc" remote="b2g" revision="3bb61a27cd2941b2ba9b616a11aaa44269210396"/>
|
||||||
<project name="moztt" path="external/moztt" remote="b2g" revision="562d357b72279a9e35d4af5aeecc8e1ffa2f44f1"/>
|
<project name="moztt" path="external/moztt" remote="b2g" revision="562d357b72279a9e35d4af5aeecc8e1ffa2f44f1"/>
|
||||||
<project name="apitrace" path="external/apitrace" remote="apitrace" revision="71f5a35e3bc1801847413cff1f14fc3b5cd991ca"/>
|
<project name="apitrace" path="external/apitrace" remote="apitrace" revision="71f5a35e3bc1801847413cff1f14fc3b5cd991ca"/>
|
||||||
|
|
|
@ -4,6 +4,6 @@
|
||||||
"remote": "",
|
"remote": "",
|
||||||
"branch": ""
|
"branch": ""
|
||||||
},
|
},
|
||||||
"revision": "f99184595c66043518af436b6b09bf02c4d0cd4f",
|
"revision": "ac2ad84f3387c493bc6c2b1c0496b0fc10a49a49",
|
||||||
"repo_path": "/integration/gaia-central"
|
"repo_path": "/integration/gaia-central"
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
<copyfile dest="Makefile" src="core/root.mk"/>
|
<copyfile dest="Makefile" src="core/root.mk"/>
|
||||||
</project>
|
</project>
|
||||||
<project name="fake-dalvik" path="dalvik" remote="b2g" revision="ca1f327d5acc198bb4be62fa51db2c039032c9ce"/>
|
<project name="fake-dalvik" path="dalvik" remote="b2g" revision="ca1f327d5acc198bb4be62fa51db2c039032c9ce"/>
|
||||||
<project name="gaia.git" path="gaia" remote="mozillaorg" revision="02f778766521b84da0ca3e575bfe35c37f46803d"/>
|
<project name="gaia.git" path="gaia" remote="mozillaorg" revision="9f35fca9d818b26c06aa6b7e5c0bef25886f8f20"/>
|
||||||
<project name="gonk-misc" path="gonk-misc" remote="b2g" revision="3bb61a27cd2941b2ba9b616a11aaa44269210396"/>
|
<project name="gonk-misc" path="gonk-misc" remote="b2g" revision="3bb61a27cd2941b2ba9b616a11aaa44269210396"/>
|
||||||
<project name="rilproxy" path="rilproxy" remote="b2g" revision="827214fcf38d6569aeb5c6d6f31cb296d1f09272"/>
|
<project name="rilproxy" path="rilproxy" remote="b2g" revision="827214fcf38d6569aeb5c6d6f31cb296d1f09272"/>
|
||||||
<project name="librecovery" path="librecovery" remote="b2g" revision="891e5069c0ad330d8191bf8c7b879c814258c89f"/>
|
<project name="librecovery" path="librecovery" remote="b2g" revision="891e5069c0ad330d8191bf8c7b879c814258c89f"/>
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
<copyfile dest="Makefile" src="core/root.mk"/>
|
<copyfile dest="Makefile" src="core/root.mk"/>
|
||||||
</project>
|
</project>
|
||||||
<project name="fake-dalvik" path="dalvik" remote="b2g" revision="ca1f327d5acc198bb4be62fa51db2c039032c9ce"/>
|
<project name="fake-dalvik" path="dalvik" remote="b2g" revision="ca1f327d5acc198bb4be62fa51db2c039032c9ce"/>
|
||||||
<project name="gaia.git" path="gaia" remote="mozillaorg" revision="02f778766521b84da0ca3e575bfe35c37f46803d"/>
|
<project name="gaia.git" path="gaia" remote="mozillaorg" revision="9f35fca9d818b26c06aa6b7e5c0bef25886f8f20"/>
|
||||||
<project name="gonk-misc" path="gonk-misc" remote="b2g" revision="3bb61a27cd2941b2ba9b616a11aaa44269210396"/>
|
<project name="gonk-misc" path="gonk-misc" remote="b2g" revision="3bb61a27cd2941b2ba9b616a11aaa44269210396"/>
|
||||||
<project name="rilproxy" path="rilproxy" remote="b2g" revision="827214fcf38d6569aeb5c6d6f31cb296d1f09272"/>
|
<project name="rilproxy" path="rilproxy" remote="b2g" revision="827214fcf38d6569aeb5c6d6f31cb296d1f09272"/>
|
||||||
<project name="librecovery" path="librecovery" remote="b2g" revision="891e5069c0ad330d8191bf8c7b879c814258c89f"/>
|
<project name="librecovery" path="librecovery" remote="b2g" revision="891e5069c0ad330d8191bf8c7b879c814258c89f"/>
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
</project>
|
</project>
|
||||||
<project name="rilproxy" path="rilproxy" remote="b2g" revision="827214fcf38d6569aeb5c6d6f31cb296d1f09272"/>
|
<project name="rilproxy" path="rilproxy" remote="b2g" revision="827214fcf38d6569aeb5c6d6f31cb296d1f09272"/>
|
||||||
<project name="fake-libdvm" path="dalvik" remote="b2g" revision="d50ae982b19f42f0b66d08b9eb306be81687869f"/>
|
<project name="fake-libdvm" path="dalvik" remote="b2g" revision="d50ae982b19f42f0b66d08b9eb306be81687869f"/>
|
||||||
<project name="gaia" path="gaia" remote="mozillaorg" revision="02f778766521b84da0ca3e575bfe35c37f46803d"/>
|
<project name="gaia" path="gaia" remote="mozillaorg" revision="9f35fca9d818b26c06aa6b7e5c0bef25886f8f20"/>
|
||||||
<project name="gonk-misc" path="gonk-misc" remote="b2g" revision="3bb61a27cd2941b2ba9b616a11aaa44269210396"/>
|
<project name="gonk-misc" path="gonk-misc" remote="b2g" revision="3bb61a27cd2941b2ba9b616a11aaa44269210396"/>
|
||||||
<project name="moztt" path="external/moztt" remote="b2g" revision="562d357b72279a9e35d4af5aeecc8e1ffa2f44f1"/>
|
<project name="moztt" path="external/moztt" remote="b2g" revision="562d357b72279a9e35d4af5aeecc8e1ffa2f44f1"/>
|
||||||
<project name="apitrace" path="external/apitrace" remote="apitrace" revision="71f5a35e3bc1801847413cff1f14fc3b5cd991ca"/>
|
<project name="apitrace" path="external/apitrace" remote="apitrace" revision="71f5a35e3bc1801847413cff1f14fc3b5cd991ca"/>
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
<copyfile dest="Makefile" src="core/root.mk"/>
|
<copyfile dest="Makefile" src="core/root.mk"/>
|
||||||
</project>
|
</project>
|
||||||
<project name="fake-dalvik" path="dalvik" remote="b2g" revision="ca1f327d5acc198bb4be62fa51db2c039032c9ce"/>
|
<project name="fake-dalvik" path="dalvik" remote="b2g" revision="ca1f327d5acc198bb4be62fa51db2c039032c9ce"/>
|
||||||
<project name="gaia.git" path="gaia" remote="mozillaorg" revision="02f778766521b84da0ca3e575bfe35c37f46803d"/>
|
<project name="gaia.git" path="gaia" remote="mozillaorg" revision="9f35fca9d818b26c06aa6b7e5c0bef25886f8f20"/>
|
||||||
<project name="gonk-misc" path="gonk-misc" remote="b2g" revision="3bb61a27cd2941b2ba9b616a11aaa44269210396"/>
|
<project name="gonk-misc" path="gonk-misc" remote="b2g" revision="3bb61a27cd2941b2ba9b616a11aaa44269210396"/>
|
||||||
<project name="rilproxy" path="rilproxy" remote="b2g" revision="827214fcf38d6569aeb5c6d6f31cb296d1f09272"/>
|
<project name="rilproxy" path="rilproxy" remote="b2g" revision="827214fcf38d6569aeb5c6d6f31cb296d1f09272"/>
|
||||||
<project name="librecovery" path="librecovery" remote="b2g" revision="891e5069c0ad330d8191bf8c7b879c814258c89f"/>
|
<project name="librecovery" path="librecovery" remote="b2g" revision="891e5069c0ad330d8191bf8c7b879c814258c89f"/>
|
||||||
|
|
|
@ -45,6 +45,7 @@ ul {
|
||||||
|
|
||||||
#errorTryAgain {
|
#errorTryAgain {
|
||||||
margin-top: 1.2em;
|
margin-top: 1.2em;
|
||||||
|
min-width: 150px
|
||||||
}
|
}
|
||||||
|
|
||||||
#errorContainer {
|
#errorContainer {
|
||||||
|
|
|
@ -320,6 +320,14 @@ toolbar:not(#TabsToolbar) > #personal-bookmarks {
|
||||||
min-width: 25ch;
|
min-width: 25ch;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Apply crisp rendering for favicons at exactly 2dppx resolution */
|
||||||
|
@media (resolution: 2dppx) {
|
||||||
|
.searchbar-engine-image,
|
||||||
|
.searchbar-engine-menuitem > .menu-iconic-left > .menu-iconic-icon {
|
||||||
|
image-rendering: -moz-crisp-edges;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#urlbar,
|
#urlbar,
|
||||||
.searchbar-textbox {
|
.searchbar-textbox {
|
||||||
/* Setting a width and min-width to let the location & search bars maintain
|
/* Setting a width and min-width to let the location & search bars maintain
|
||||||
|
@ -472,6 +480,20 @@ toolbarbutton.bookmark-item {
|
||||||
max-width: 13em;
|
max-width: 13em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Apply crisp rendering for favicons at exactly 2dppx resolution */
|
||||||
|
@media (resolution: 2dppx) {
|
||||||
|
.alltabs-popup > .menuitem-iconic > .menu-iconic-left > .menu-iconic-icon,
|
||||||
|
.menuitem-with-favicon > .menu-iconic-left > .menu-iconic-icon {
|
||||||
|
image-rendering: -moz-crisp-edges;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bookmark-item > .toolbarbutton-icon,
|
||||||
|
.bookmark-item > .menu-iconic-left > .menu-iconic-icon,
|
||||||
|
#personal-bookmarks[cui-areatype="toolbar"] > #bookmarks-toolbar-placeholder > .toolbarbutton-icon {
|
||||||
|
image-rendering: -moz-crisp-edges;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#editBMPanel_tagsSelector {
|
#editBMPanel_tagsSelector {
|
||||||
/* override default listbox width from xul.css */
|
/* override default listbox width from xul.css */
|
||||||
width: auto;
|
width: auto;
|
||||||
|
@ -629,6 +651,13 @@ window[chromehidden~="toolbar"] toolbar:not(.toolbar-primary):not(.chromeclass-m
|
||||||
height: 16px;
|
height: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Apply crisp rendering for favicons at exactly 2dppx resolution */
|
||||||
|
@media (resolution: 2dppx) {
|
||||||
|
.ctrlTab-favicon {
|
||||||
|
image-rendering: -moz-crisp-edges;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.ctrlTab-preview {
|
.ctrlTab-preview {
|
||||||
-moz-binding: url("chrome://browser/content/browser-tabPreviews.xml#ctrlTab-preview");
|
-moz-binding: url("chrome://browser/content/browser-tabPreviews.xml#ctrlTab-preview");
|
||||||
}
|
}
|
||||||
|
@ -832,6 +861,15 @@ chatbar {
|
||||||
max-height: 0;
|
max-height: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Apply crisp rendering for favicons at exactly 2dppx resolution */
|
||||||
|
@media (resolution: 2dppx) {
|
||||||
|
#social-sidebar-favico,
|
||||||
|
.social-status-button,
|
||||||
|
.chat-status-icon {
|
||||||
|
image-rendering: -moz-crisp-edges;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/** See bug 872317 for why the following rule is necessary. */
|
/** See bug 872317 for why the following rule is necessary. */
|
||||||
|
|
||||||
#downloads-button {
|
#downloads-button {
|
||||||
|
@ -1000,6 +1038,15 @@ chatbox:-moz-full-screen-ancestor > .chat-titlebar {
|
||||||
list-style-image: none;
|
list-style-image: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Apply crisp rendering for favicons at exactly 2dppx resolution */
|
||||||
|
@media (resolution: 2dppx) {
|
||||||
|
#PanelUI-recentlyClosedWindows > toolbarbutton > .toolbarbutton-icon,
|
||||||
|
#PanelUI-recentlyClosedTabs > toolbarbutton > .toolbarbutton-icon,
|
||||||
|
#PanelUI-historyItems > toolbarbutton > .toolbarbutton-icon {
|
||||||
|
image-rendering: -moz-crisp-edges;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#customization-panelHolder {
|
#customization-panelHolder {
|
||||||
overflow-y: hidden;
|
overflow-y: hidden;
|
||||||
}
|
}
|
||||||
|
|
|
@ -44,6 +44,13 @@ tabpanels {
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Apply crisp rendering for favicons at exactly 2dppx resolution */
|
||||||
|
@media (resolution: 2dppx) {
|
||||||
|
.tab-icon-image {
|
||||||
|
image-rendering: -moz-crisp-edges;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.tab-icon-image:not([src]):not([pinned]),
|
.tab-icon-image:not([src]):not([pinned]),
|
||||||
.tab-throbber:not([busy]),
|
.tab-throbber:not([busy]),
|
||||||
.tab-throbber[busy] + .tab-icon-image {
|
.tab-throbber[busy] + .tab-icon-image {
|
||||||
|
|
|
@ -14,3 +14,12 @@ tree[type="places"] {
|
||||||
menupopup[placespopup="true"] {
|
menupopup[placespopup="true"] {
|
||||||
-moz-binding: url("chrome://browser/content/places/menu.xml#places-popup-base");
|
-moz-binding: url("chrome://browser/content/places/menu.xml#places-popup-base");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Apply crisp rendering for favicons at exactly 2dppx resolution */
|
||||||
|
@media (resolution: 2dppx) {
|
||||||
|
#bookmarksChildren,
|
||||||
|
.sidebar-placesTreechildren,
|
||||||
|
.placesTree > treechildren {
|
||||||
|
image-rendering: -moz-crisp-edges;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -23,3 +23,11 @@
|
||||||
listitem.offlineapp {
|
listitem.offlineapp {
|
||||||
-moz-binding: url("chrome://browser/content/preferences/handlers.xml#offlineapp");
|
-moz-binding: url("chrome://browser/content/preferences/handlers.xml#offlineapp");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Apply crisp rendering for favicons at exactly 2dppx resolution */
|
||||||
|
@media (resolution: 2dppx) {
|
||||||
|
#handlersView > richlistitem,
|
||||||
|
.actionsMenu > menupopup > menuitem > .menu-iconic-left {
|
||||||
|
image-rendering: -moz-crisp-edges;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -65,6 +65,13 @@ body {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Apply crisp rendering for favicons at exactly 2dppx resolution */
|
||||||
|
@media (resolution: 2dppx) {
|
||||||
|
.favicon > img {
|
||||||
|
image-rendering: -moz-crisp-edges;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.close {
|
.close {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
|
@ -13,7 +13,6 @@ const DEFAULT_MAX_CHILDREN = 100;
|
||||||
const COLLAPSE_ATTRIBUTE_LENGTH = 120;
|
const COLLAPSE_ATTRIBUTE_LENGTH = 120;
|
||||||
const COLLAPSE_DATA_URL_REGEX = /^data.+base64/;
|
const COLLAPSE_DATA_URL_REGEX = /^data.+base64/;
|
||||||
const COLLAPSE_DATA_URL_LENGTH = 60;
|
const COLLAPSE_DATA_URL_LENGTH = 60;
|
||||||
const CONTAINER_FLASHING_DURATION = 500;
|
|
||||||
const NEW_SELECTION_HIGHLIGHTER_TIMER = 1000;
|
const NEW_SELECTION_HIGHLIGHTER_TIMER = 1000;
|
||||||
|
|
||||||
const {UndoStack} = require("devtools/shared/undo");
|
const {UndoStack} = require("devtools/shared/undo");
|
||||||
|
@ -112,6 +111,11 @@ function MarkupView(aInspector, aFrame, aControllerWindow) {
|
||||||
exports.MarkupView = MarkupView;
|
exports.MarkupView = MarkupView;
|
||||||
|
|
||||||
MarkupView.prototype = {
|
MarkupView.prototype = {
|
||||||
|
/**
|
||||||
|
* How long does a node flash when it mutates (in ms).
|
||||||
|
*/
|
||||||
|
CONTAINER_FLASHING_DURATION: 500,
|
||||||
|
|
||||||
_selectedContainer: null,
|
_selectedContainer: null,
|
||||||
|
|
||||||
_initTooltips: function() {
|
_initTooltips: function() {
|
||||||
|
@ -1578,7 +1582,7 @@ MarkupContainer.prototype = {
|
||||||
}
|
}
|
||||||
this._flashMutationTimer = contentWin.setTimeout(() => {
|
this._flashMutationTimer = contentWin.setTimeout(() => {
|
||||||
this.flashed = false;
|
this.flashed = false;
|
||||||
}, CONTAINER_FLASHING_DURATION);
|
}, this.markup.CONTAINER_FLASHING_DURATION);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -55,6 +55,10 @@ const TEST_DATA = [{
|
||||||
let test = asyncTest(function*() {
|
let test = asyncTest(function*() {
|
||||||
let {inspector} = yield addTab(TEST_URL).then(openInspector);
|
let {inspector} = yield addTab(TEST_URL).then(openInspector);
|
||||||
|
|
||||||
|
// Make sure mutated nodes flash for a very long time so we can more easily
|
||||||
|
// assert they do
|
||||||
|
inspector.markup.CONTAINER_FLASHING_DURATION = 1000 * 60 * 60;
|
||||||
|
|
||||||
info("Getting the <ul.list> root node to test mutations on");
|
info("Getting the <ul.list> root node to test mutations on");
|
||||||
let rootNode = getNode(".list");
|
let rootNode = getNode(".list");
|
||||||
let rootNodeFront = yield getNodeFront(".list", inspector);
|
let rootNodeFront = yield getNodeFront(".list", inspector);
|
||||||
|
@ -88,4 +92,9 @@ function* assertNodeFlashing(nodeFront, inspector) {
|
||||||
ok(container, "Markup container for node found");
|
ok(container, "Markup container for node found");
|
||||||
ok(container.tagState.classList.contains("theme-bg-contrast"),
|
ok(container.tagState.classList.contains("theme-bg-contrast"),
|
||||||
"Markup container for node is flashing");
|
"Markup container for node is flashing");
|
||||||
|
|
||||||
|
// Clear the mutation flashing timeout now that we checked the node was flashing
|
||||||
|
let markup = inspector.markup;
|
||||||
|
markup._frame.contentWindow.clearTimeout(container._flashMutationTimer);
|
||||||
|
container._flashMutationTimer = null;
|
||||||
}
|
}
|
||||||
|
|
|
@ -387,14 +387,6 @@ toolbarbutton.bookmark-item > menupopup {
|
||||||
opacity: 0.7;
|
opacity: 0.7;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-resolution: 2dppx) {
|
|
||||||
.bookmark-item > .toolbarbutton-icon,
|
|
||||||
.bookmark-item > .menu-iconic-left > .menu-iconic-icon,
|
|
||||||
#personal-bookmarks[cui-areatype="toolbar"] > #bookmarks-toolbar-placeholder > .toolbarbutton-icon {
|
|
||||||
image-rendering: -moz-crisp-edges;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#bookmarks-toolbar-placeholder {
|
#bookmarks-toolbar-placeholder {
|
||||||
list-style-image: url("chrome://browser/skin/places/bookmarksToolbar.png") !important;
|
list-style-image: url("chrome://browser/skin/places/bookmarksToolbar.png") !important;
|
||||||
}
|
}
|
||||||
|
@ -2798,7 +2790,6 @@ toolbarbutton.chevron > .toolbarbutton-menu-dropmarker {
|
||||||
|
|
||||||
.tab-icon-image {
|
.tab-icon-image {
|
||||||
list-style-image: url("chrome://mozapps/skin/places/defaultFavicon@2x.png");
|
list-style-image: url("chrome://mozapps/skin/places/defaultFavicon@2x.png");
|
||||||
image-rendering: -moz-crisp-edges;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.tab-throbber[busy] {
|
.tab-throbber[busy] {
|
||||||
|
|
|
@ -47,11 +47,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-resolution: 2dppx) {
|
@media (min-resolution: 2dppx) {
|
||||||
.searchbar-engine-image,
|
|
||||||
.searchbar-engine-menuitem > .menu-iconic-left > .menu-iconic-icon {
|
|
||||||
image-rendering: -moz-crisp-edges;
|
|
||||||
}
|
|
||||||
|
|
||||||
.searchbar-engine-image {
|
.searchbar-engine-image {
|
||||||
list-style-image: url("chrome://mozapps/skin/places/defaultFavicon@2x.png");
|
list-style-image: url("chrome://mozapps/skin/places/defaultFavicon@2x.png");
|
||||||
}
|
}
|
||||||
|
|
|
@ -167,7 +167,7 @@ prefpane {
|
||||||
#typeColumn > .treecol-sortdirection[sortDirection=descending],
|
#typeColumn > .treecol-sortdirection[sortDirection=descending],
|
||||||
#actionColumn > .treecol-sortdirection[sortDirection=descending] {
|
#actionColumn > .treecol-sortdirection[sortDirection=descending] {
|
||||||
-moz-appearance: none;
|
-moz-appearance: none;
|
||||||
list-style-image: url("chrome://browser/skin/preferences/in-content/sorter.png");
|
list-style-image: url("chrome://browser/skin/in-content/sorter.png");
|
||||||
}
|
}
|
||||||
|
|
||||||
#typeColumn > .treecol-sortdirection[sortDirection=descending],
|
#typeColumn > .treecol-sortdirection[sortDirection=descending],
|
||||||
|
@ -182,7 +182,7 @@ prefpane {
|
||||||
#actionColumn > .treecol-sortdirection[sortDirection=descending] {
|
#actionColumn > .treecol-sortdirection[sortDirection=descending] {
|
||||||
width: 12px;
|
width: 12px;
|
||||||
height: 8px;
|
height: 8px;
|
||||||
list-style-image: url("chrome://browser/skin/preferences/in-content/sorter@2x.png");
|
list-style-image: url("chrome://browser/skin/in-content/sorter@2x.png");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -19,16 +19,11 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.glyphShape-style-hover-gear {
|
.glyphShape-style-hover-gear {
|
||||||
fill: url(#gradient-linear-hover-gear);
|
fill: #4a90e2;
|
||||||
}
|
|
||||||
.glyphShape-style-hover-gear-dropshadow {
|
|
||||||
fill: #000;
|
|
||||||
fill-opacity: .5;
|
|
||||||
filter: url(#filter-shadow-drop);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.glyphShape-style-hover-pin {
|
.glyphShape-style-hover-pin {
|
||||||
fill: #0092e5;
|
fill: #4a90e2;
|
||||||
}
|
}
|
||||||
|
|
||||||
.glyphShape-style-hover-delete {
|
.glyphShape-style-hover-delete {
|
||||||
|
@ -57,14 +52,6 @@
|
||||||
<feGaussianBlur in="filter-shadow-drop-offset" stdDeviation="1" result="filter-shadow-drop-blur"/>
|
<feGaussianBlur in="filter-shadow-drop-offset" stdDeviation="1" result="filter-shadow-drop-blur"/>
|
||||||
</filter>
|
</filter>
|
||||||
|
|
||||||
<linearGradient id="gradient-linear-hover-gear"
|
|
||||||
x1="0%" y1="0%"
|
|
||||||
x2="0%" y2="100%"
|
|
||||||
spreadMethod="pad">
|
|
||||||
<stop offset="0%" stop-color="#a1a0a0" stop-opacity="1"/>
|
|
||||||
<stop offset="100%" stop-color="#676767" stop-opacity="1"/>
|
|
||||||
</linearGradient>
|
|
||||||
|
|
||||||
<path id="glyphShape-gear" d="M28,16c0-1.7,0.9-3.1,2-3.3c-0.4-1.5-0.9-2.9-1.7-4.2c-0.9,0.7-2.6,0.3-3.8-0.9c-1.2-1.2-1.6-2.8-0.9-3.8 c-1.3-0.8-2.7-1.4-4.2-1.7c-0.2,1.1-1.6,2-3.3,2S13,3.1,12.8,2c-1.5,0.4-2.9,0.9-4.2,1.7c0.7,0.9,0.3,2.6-0.9,3.8 c-1.4,1.1-3,1.5-4,0.9C2.9,9.7,2.4,11.2,2,12.7c1.1,0.2,2,1.6,2,3.3s-0.9,3.1-2,3.3c0.4,1.5,0.9,2.9,1.7,4.2 c0.9-0.7,2.6-0.3,3.8,0.9c1.2,1.2,1.6,2.8,0.9,3.8c1.3,0.8,2.7,1.4,4.2,1.7c0.2-1.1,1.6-2,3.3-2s3.1,0.9,3.3,2 c1.5-0.4,2.9-0.9,4.2-1.7c-0.7-0.9-0.3-2.6,0.9-3.8c1.3-1.2,2.8-1.6,3.8-0.9c0.8-1.3,1.4-2.7,1.7-4.2C28.9,19.1,28,17.7,28,16z M16,24c-4.4,0-8-3.6-8-8s3.6-8,8-8s8,3.6,8,8S20.4,24,16,24z" />
|
<path id="glyphShape-gear" d="M28,16c0-1.7,0.9-3.1,2-3.3c-0.4-1.5-0.9-2.9-1.7-4.2c-0.9,0.7-2.6,0.3-3.8-0.9c-1.2-1.2-1.6-2.8-0.9-3.8 c-1.3-0.8-2.7-1.4-4.2-1.7c-0.2,1.1-1.6,2-3.3,2S13,3.1,12.8,2c-1.5,0.4-2.9,0.9-4.2,1.7c0.7,0.9,0.3,2.6-0.9,3.8 c-1.4,1.1-3,1.5-4,0.9C2.9,9.7,2.4,11.2,2,12.7c1.1,0.2,2,1.6,2,3.3s-0.9,3.1-2,3.3c0.4,1.5,0.9,2.9,1.7,4.2 c0.9-0.7,2.6-0.3,3.8,0.9c1.2,1.2,1.6,2.8,0.9,3.8c1.3,0.8,2.7,1.4,4.2,1.7c0.2-1.1,1.6-2,3.3-2s3.1,0.9,3.3,2 c1.5-0.4,2.9-0.9,4.2-1.7c-0.7-0.9-0.3-2.6,0.9-3.8c1.3-1.2,2.8-1.6,3.8-0.9c0.8-1.3,1.4-2.7,1.7-4.2C28.9,19.1,28,17.7,28,16z M16,24c-4.4,0-8-3.6-8-8s3.6-8,8-8s8,3.6,8,8S20.4,24,16,24z" />
|
||||||
|
|
||||||
<circle id="glyphShape-circle" cx="16" cy="16" r="14" />
|
<circle id="glyphShape-circle" cx="16" cy="16" r="14" />
|
||||||
|
@ -79,7 +66,6 @@
|
||||||
</g>
|
</g>
|
||||||
|
|
||||||
<g id="icon-gear-default" transform="translate(32)">
|
<g id="icon-gear-default" transform="translate(32)">
|
||||||
<use xlink:href="#glyphShape-gear" class="glyphShape-style-hover-gear-dropshadow" />
|
|
||||||
<use xlink:href="#glyphShape-gear" class="glyphShape-style-hover-gear" />
|
<use xlink:href="#glyphShape-gear" class="glyphShape-style-hover-gear" />
|
||||||
</g>
|
</g>
|
||||||
|
|
||||||
|
|
До Ширина: | Высота: | Размер: 4.7 KiB После Ширина: | Высота: | Размер: 4.2 KiB |
|
@ -1542,9 +1542,82 @@ Navigator::GetFeature(const nsAString& aName, ErrorResult& aRv)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
p->MaybeResolve(JS::UndefinedHandleValue);
|
||||||
|
return p.forget();
|
||||||
|
}
|
||||||
|
|
||||||
|
already_AddRefed<Promise>
|
||||||
|
Navigator::HasFeature(const nsAString& aName, ErrorResult& aRv)
|
||||||
|
{
|
||||||
|
nsCOMPtr<nsIGlobalObject> go = do_QueryInterface(mWindow);
|
||||||
|
nsRefPtr<Promise> p = Promise::Create(go, aRv);
|
||||||
|
if (aRv.Failed()) {
|
||||||
|
return nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
NS_NAMED_LITERAL_STRING(apiWindowPrefix, "api.window.");
|
NS_NAMED_LITERAL_STRING(apiWindowPrefix, "api.window.");
|
||||||
if (StringBeginsWith(aName, apiWindowPrefix)) {
|
if (StringBeginsWith(aName, apiWindowPrefix)) {
|
||||||
const nsAString& featureName = Substring(aName, apiWindowPrefix.Length());
|
const nsAString& featureName = Substring(aName, apiWindowPrefix.Length());
|
||||||
|
|
||||||
|
// Temporary hardcoded entry points due to technical constraints
|
||||||
|
if (featureName.EqualsLiteral("Navigator.mozTCPSocket")) {
|
||||||
|
p->MaybeResolve(Preferences::GetBool("dom.mozTCPSocket.enabled"));
|
||||||
|
return p.forget();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (featureName.EqualsLiteral("Navigator.mozMobileConnections") ||
|
||||||
|
featureName.EqualsLiteral("MozMobileNetworkInfo")) {
|
||||||
|
p->MaybeResolve(Preferences::GetBool("dom.mobileconnection.enabled"));
|
||||||
|
return p.forget();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (featureName.EqualsLiteral("Navigator.mozInputMethod")) {
|
||||||
|
p->MaybeResolve(Preferences::GetBool("dom.mozInputMethod.enabled"));
|
||||||
|
return p.forget();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (featureName.EqualsLiteral("Navigator.mozContacts")) {
|
||||||
|
p->MaybeResolve(true);
|
||||||
|
return p.forget();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (featureName.EqualsLiteral("Navigator.getDeviceStorage")) {
|
||||||
|
p->MaybeResolve(Preferences::GetBool("device.storage.enabled"));
|
||||||
|
return p.forget();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (featureName.EqualsLiteral("Navigator.mozNetworkStats")) {
|
||||||
|
p->MaybeResolve(Preferences::GetBool("dom.mozNetworkStats.enabled"));
|
||||||
|
return p.forget();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (featureName.EqualsLiteral("Navigator.push")) {
|
||||||
|
p->MaybeResolve(Preferences::GetBool("services.push.enabled"));
|
||||||
|
return p.forget();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (featureName.EqualsLiteral("Navigator.mozAlarms")) {
|
||||||
|
p->MaybeResolve(Preferences::GetBool("dom.mozAlarms.enabled"));
|
||||||
|
return p.forget();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (featureName.EqualsLiteral("Navigator.mozCameras")) {
|
||||||
|
p->MaybeResolve(true);
|
||||||
|
return p.forget();
|
||||||
|
}
|
||||||
|
|
||||||
|
#ifdef MOZ_B2G
|
||||||
|
if (featureName.EqualsLiteral("Navigator.getMobileIdAssertion")) {
|
||||||
|
p->MaybeResolve(true);
|
||||||
|
return p.forget();
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
if (featureName.EqualsLiteral("XMLHttpRequest.mozSystem")) {
|
||||||
|
p->MaybeResolve(true);
|
||||||
|
return p.forget();
|
||||||
|
}
|
||||||
|
|
||||||
if (IsFeatureDetectible(featureName)) {
|
if (IsFeatureDetectible(featureName)) {
|
||||||
p->MaybeResolve(true);
|
p->MaybeResolve(true);
|
||||||
} else {
|
} else {
|
||||||
|
@ -1559,7 +1632,6 @@ Navigator::GetFeature(const nsAString& aName, ErrorResult& aRv)
|
||||||
return p.forget();
|
return p.forget();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
PowerManager*
|
PowerManager*
|
||||||
Navigator::GetMozPower(ErrorResult& aRv)
|
Navigator::GetMozPower(ErrorResult& aRv)
|
||||||
{
|
{
|
||||||
|
@ -2371,7 +2443,8 @@ Navigator::HasMobileIdSupport(JSContext* aCx, JSObject* aGlobal)
|
||||||
|
|
||||||
uint32_t permission = nsIPermissionManager::UNKNOWN_ACTION;
|
uint32_t permission = nsIPermissionManager::UNKNOWN_ACTION;
|
||||||
permMgr->TestPermissionFromPrincipal(principal, "mobileid", &permission);
|
permMgr->TestPermissionFromPrincipal(principal, "mobileid", &permission);
|
||||||
return permission != nsIPermissionManager::UNKNOWN_ACTION;
|
return permission == nsIPermissionManager::PROMPT_ACTION ||
|
||||||
|
permission == nsIPermissionManager::ALLOW_ACTION;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -172,6 +172,9 @@ public:
|
||||||
already_AddRefed<Promise> GetFeature(const nsAString& aName,
|
already_AddRefed<Promise> GetFeature(const nsAString& aName,
|
||||||
ErrorResult& aRv);
|
ErrorResult& aRv);
|
||||||
|
|
||||||
|
already_AddRefed<Promise> HasFeature(const nsAString &aName,
|
||||||
|
ErrorResult& aRv);
|
||||||
|
|
||||||
bool Vibrate(uint32_t aDuration);
|
bool Vibrate(uint32_t aDuration);
|
||||||
bool Vibrate(const nsTArray<uint32_t>& aDuration);
|
bool Vibrate(const nsTArray<uint32_t>& aDuration);
|
||||||
uint32_t MaxTouchPoints();
|
uint32_t MaxTouchPoints();
|
||||||
|
|
|
@ -43,6 +43,7 @@ skip-if = buildapp == 'mulet' || buildapp == 'b2g' || toolkit == 'android' || e1
|
||||||
[test_gsp-standards.html]
|
[test_gsp-standards.html]
|
||||||
[test_getFeature_with_perm.html]
|
[test_getFeature_with_perm.html]
|
||||||
[test_getFeature_without_perm.html]
|
[test_getFeature_without_perm.html]
|
||||||
|
[test_hasFeature.html]
|
||||||
[test_history_document_open.html]
|
[test_history_document_open.html]
|
||||||
[test_history_state_null.html]
|
[test_history_state_null.html]
|
||||||
[test_Image_constructor.html]
|
[test_Image_constructor.html]
|
||||||
|
|
|
@ -0,0 +1,78 @@
|
||||||
|
<!DOCTYPE HTML>
|
||||||
|
<html>
|
||||||
|
<!--
|
||||||
|
https://bugzilla.mozilla.org/show_bug.cgi?id=1009645
|
||||||
|
-->
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title>Test for Bug 1009645</title>
|
||||||
|
<script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
||||||
|
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1009645">Mozilla Bug 1009645</a>
|
||||||
|
<script type="application/javascript">
|
||||||
|
|
||||||
|
function testAPIs() {
|
||||||
|
function pref(name) {
|
||||||
|
try {
|
||||||
|
return SpecialPowers.getBoolPref(name);
|
||||||
|
} catch (e) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
var b2gOnly = (function() {
|
||||||
|
var isAndroid = !!navigator.userAgent.contains("Android");
|
||||||
|
var isB2g = !isAndroid && /Mobile|Tablet/.test(navigator.userAgent);
|
||||||
|
return isB2g ? true : undefined;
|
||||||
|
})();
|
||||||
|
|
||||||
|
var APIEndPoints = [
|
||||||
|
{ name: "MozMobileNetworkInfo", enabled: pref("dom.mobileconnection.enabled") },
|
||||||
|
// { name: "Navigator.mozBluetooth", enabled: b2gOnly }, // conditional on MOZ_B2G_BT, tricky to test
|
||||||
|
{ name: "Navigator.mozContacts", enabled: pref("dom.mozContacts.enabled") },
|
||||||
|
{ name: "Navigator.getDeviceStorage", enabled: pref("device.storage.enabled") },
|
||||||
|
{ name: "Navigator.addIdleObserver", enabled: true },
|
||||||
|
{ name: "Navigator.mozNetworkStats", enabled: pref("dom.mozNetworkStats.enabled") },
|
||||||
|
{ name: "Navigator.push", enabled: pref("services.push.enabled") },
|
||||||
|
// { name: "Navigator.mozTime", enabled: b2gOnly }, // conditional on MOZ_TIME_MANAGER, tricky to test
|
||||||
|
// { name: "Navigator.mozFMRadio", enabled: b2gOnly }, // conditional on MOZ_B2G_FM, tricky to test
|
||||||
|
{ name: "Navigator.mozCameras", enabled: true },
|
||||||
|
{ name: "Navigator.mozAlarms", enabled: pref("dom.mozAlarms.enabled") },
|
||||||
|
{ name: "Navigator.mozTCPSocket", enabled: pref("dom.mozTCPSocket.enabled") },
|
||||||
|
{ name: "Navigator.mozInputMethod", enabled: pref("dom.mozInputMethod.enabled") },
|
||||||
|
{ name: "Navigator.mozMobileConnections", enabled: pref("dom.mobileconnection.enabled") },
|
||||||
|
{ name: "Navigator.getMobileIdAssertion", enabled: b2gOnly },
|
||||||
|
{ name: "XMLHttpRequest.mozSystem", enabled: true }
|
||||||
|
];
|
||||||
|
|
||||||
|
var promises = [];
|
||||||
|
APIEndPoints.forEach(function(v) {
|
||||||
|
promises.push(navigator.hasFeature("api.window." + v.name));
|
||||||
|
});
|
||||||
|
Promise.all(promises).then(function(values) {
|
||||||
|
for (var i = 0; i < values.length; ++i) {
|
||||||
|
ise(values[i], APIEndPoints[i].enabled,
|
||||||
|
"Endpoint " + APIEndPoints[i].name + " resolved with the correct value. " +
|
||||||
|
"If this is failing because you're changing how an API is exposed, you " +
|
||||||
|
"must contact the Marketplace team to let them know about the change.");
|
||||||
|
}
|
||||||
|
SimpleTest.finish();
|
||||||
|
}, function() {
|
||||||
|
ok(false, "The Promise should not be rejected");
|
||||||
|
SimpleTest.finish();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
SpecialPowers.pushPermissions([
|
||||||
|
{type: "feature-detection", allow: true, context: document}
|
||||||
|
], function() {
|
||||||
|
ok('hasFeature' in navigator, "navigator.hasFeature should exist");
|
||||||
|
testAPIs();
|
||||||
|
});
|
||||||
|
|
||||||
|
SimpleTest.waitForExplicitFinish();
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -447,17 +447,27 @@ class Descriptor(DescriptorProvider):
|
||||||
if permissionsIndex is not None:
|
if permissionsIndex is not None:
|
||||||
self.checkPermissionsIndicesForMembers[m.identifier.name] = permissionsIndex
|
self.checkPermissionsIndicesForMembers[m.identifier.name] = permissionsIndex
|
||||||
|
|
||||||
self.featureDetectibleThings = set()
|
def isTestInterface(iface):
|
||||||
if self.interface.getExtendedAttribute("FeatureDetectible") is not None:
|
return (iface.identifier.name in ["TestInterface",
|
||||||
if self.interface.getNavigatorProperty():
|
"TestJSImplInterface",
|
||||||
self.featureDetectibleThings.add("Navigator.%s" % self.interface.getNavigatorProperty())
|
"TestRenamedInterface"])
|
||||||
else:
|
|
||||||
assert(self.interface.ctor() is not None)
|
|
||||||
self.featureDetectibleThings.add(self.interface.identifier.name)
|
|
||||||
|
|
||||||
for m in self.interface.members:
|
self.featureDetectibleThings = set()
|
||||||
if m.getExtendedAttribute("FeatureDetectible") is not None:
|
if not isTestInterface(self.interface):
|
||||||
self.featureDetectibleThings.add("%s.%s" % (self.interface.identifier.name, m.identifier.name))
|
if (self.interface.getExtendedAttribute("CheckPermissions") or
|
||||||
|
self.interface.getExtendedAttribute("AvailableIn") == "PrivilegedApps"):
|
||||||
|
if self.interface.getNavigatorProperty():
|
||||||
|
self.featureDetectibleThings.add("Navigator.%s" % self.interface.getNavigatorProperty())
|
||||||
|
else:
|
||||||
|
iface = self.interface.identifier.name
|
||||||
|
self.featureDetectibleThings.add(iface)
|
||||||
|
for m in self.interface.members:
|
||||||
|
self.featureDetectibleThings.add("%s.%s" % (iface, m.identifier.name))
|
||||||
|
|
||||||
|
for m in self.interface.members:
|
||||||
|
if (m.getExtendedAttribute("CheckPermissions") or
|
||||||
|
m.getExtendedAttribute("AvailableIn") == "PrivilegedApps"):
|
||||||
|
self.featureDetectibleThings.add("%s.%s" % (self.interface.identifier.name, m.identifier.name))
|
||||||
|
|
||||||
# Build the prototype chain.
|
# Build the prototype chain.
|
||||||
self.prototypeChain = []
|
self.prototypeChain = []
|
||||||
|
|
|
@ -669,22 +669,6 @@ class IDLInterface(IDLObjectWithScope):
|
||||||
[self.location])
|
[self.location])
|
||||||
assert not parent or isinstance(parent, IDLInterface)
|
assert not parent or isinstance(parent, IDLInterface)
|
||||||
|
|
||||||
if self.getExtendedAttribute("FeatureDetectible"):
|
|
||||||
if not (self.getExtendedAttribute("Func") or
|
|
||||||
self.getExtendedAttribute("AvailableIn") or
|
|
||||||
self.getExtendedAttribute("CheckPermissions")):
|
|
||||||
raise WebIDLError("[FeatureDetectible] is only allowed in combination "
|
|
||||||
"with [Func], [AvailableIn] or [CheckPermissions]",
|
|
||||||
[self.location])
|
|
||||||
if self.getExtendedAttribute("Pref"):
|
|
||||||
raise WebIDLError("[FeatureDetectible] must not be specified "
|
|
||||||
"in combination with [Pref]",
|
|
||||||
[self.location])
|
|
||||||
if not self.hasInterfaceObject():
|
|
||||||
raise WebIDLError("[FeatureDetectible] not allowed on interface "
|
|
||||||
"with [NoInterfaceObject]",
|
|
||||||
[self.location])
|
|
||||||
|
|
||||||
self.parent = parent
|
self.parent = parent
|
||||||
|
|
||||||
assert iter(self.members)
|
assert iter(self.members)
|
||||||
|
@ -1207,8 +1191,7 @@ class IDLInterface(IDLObjectWithScope):
|
||||||
identifier == "OverrideBuiltins" or
|
identifier == "OverrideBuiltins" or
|
||||||
identifier == "ChromeOnly" or
|
identifier == "ChromeOnly" or
|
||||||
identifier == "Unforgeable" or
|
identifier == "Unforgeable" or
|
||||||
identifier == "LegacyEventInit" or
|
identifier == "LegacyEventInit"):
|
||||||
identifier == "FeatureDetectible"):
|
|
||||||
# Known extended attributes that do not take values
|
# Known extended attributes that do not take values
|
||||||
if not attr.noArguments():
|
if not attr.noArguments():
|
||||||
raise WebIDLError("[%s] must take no arguments" % identifier,
|
raise WebIDLError("[%s] must take no arguments" % identifier,
|
||||||
|
@ -3174,18 +3157,6 @@ class IDLAttribute(IDLInterfaceMember):
|
||||||
raise WebIDLError("An attribute with [SameObject] must have an "
|
raise WebIDLError("An attribute with [SameObject] must have an "
|
||||||
"interface type as its type", [self.location])
|
"interface type as its type", [self.location])
|
||||||
|
|
||||||
if self.getExtendedAttribute("FeatureDetectible"):
|
|
||||||
if not (self.getExtendedAttribute("Func") or
|
|
||||||
self.getExtendedAttribute("AvailableIn") or
|
|
||||||
self.getExtendedAttribute("CheckPermissions")):
|
|
||||||
raise WebIDLError("[FeatureDetectible] is only allowed in combination "
|
|
||||||
"with [Func], [AvailableIn] or [CheckPermissions]",
|
|
||||||
[self.location])
|
|
||||||
if self.getExtendedAttribute("Pref"):
|
|
||||||
raise WebIDLError("[FeatureDetectible] must not be specified "
|
|
||||||
"in combination with [Pref]",
|
|
||||||
[self.location])
|
|
||||||
|
|
||||||
def validate(self):
|
def validate(self):
|
||||||
IDLInterfaceMember.validate(self)
|
IDLInterfaceMember.validate(self)
|
||||||
|
|
||||||
|
@ -3324,8 +3295,7 @@ class IDLAttribute(IDLInterfaceMember):
|
||||||
identifier == "Frozen" or
|
identifier == "Frozen" or
|
||||||
identifier == "AvailableIn" or
|
identifier == "AvailableIn" or
|
||||||
identifier == "NewObject" or
|
identifier == "NewObject" or
|
||||||
identifier == "CheckPermissions" or
|
identifier == "CheckPermissions"):
|
||||||
identifier == "FeatureDetectible"):
|
|
||||||
# Known attributes that we don't need to do anything with here
|
# Known attributes that we don't need to do anything with here
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
|
@ -3730,18 +3700,6 @@ class IDLMethod(IDLInterfaceMember, IDLScope):
|
||||||
def finish(self, scope):
|
def finish(self, scope):
|
||||||
IDLInterfaceMember.finish(self, scope)
|
IDLInterfaceMember.finish(self, scope)
|
||||||
|
|
||||||
if self.getExtendedAttribute("FeatureDetectible"):
|
|
||||||
if not (self.getExtendedAttribute("Func") or
|
|
||||||
self.getExtendedAttribute("AvailableIn") or
|
|
||||||
self.getExtendedAttribute("CheckPermissions")):
|
|
||||||
raise WebIDLError("[FeatureDetectible] is only allowed in combination "
|
|
||||||
"with [Func], [AvailableIn] or [CheckPermissions]",
|
|
||||||
[self.location])
|
|
||||||
if self.getExtendedAttribute("Pref"):
|
|
||||||
raise WebIDLError("[FeatureDetectible] must not be specified "
|
|
||||||
"in combination with [Pref]",
|
|
||||||
[self.location])
|
|
||||||
|
|
||||||
overloadWithPromiseReturnType = None
|
overloadWithPromiseReturnType = None
|
||||||
overloadWithoutPromiseReturnType = None
|
overloadWithoutPromiseReturnType = None
|
||||||
for overload in self._overloads:
|
for overload in self._overloads:
|
||||||
|
@ -3922,8 +3880,7 @@ class IDLMethod(IDLInterfaceMember, IDLScope):
|
||||||
convertExposedAttrToGlobalNameSet(attr, self._exposureGlobalNames)
|
convertExposedAttrToGlobalNameSet(attr, self._exposureGlobalNames)
|
||||||
elif (identifier == "Pure" or
|
elif (identifier == "Pure" or
|
||||||
identifier == "CrossOriginCallable" or
|
identifier == "CrossOriginCallable" or
|
||||||
identifier == "WebGLHandlesContextLoss" or
|
identifier == "WebGLHandlesContextLoss"):
|
||||||
identifier == "FeatureDetectible"):
|
|
||||||
# Known no-argument attributes.
|
# Known no-argument attributes.
|
||||||
if not attr.noArguments():
|
if not attr.noArguments():
|
||||||
raise WebIDLError("[%s] must take no arguments" % identifier,
|
raise WebIDLError("[%s] must take no arguments" % identifier,
|
||||||
|
|
|
@ -342,8 +342,9 @@ private:
|
||||||
|
|
||||||
#ifdef MOZ_WIDGET_GONK
|
#ifdef MOZ_WIDGET_GONK
|
||||||
nsString mLastStatus;
|
nsString mLastStatus;
|
||||||
|
nsString mLastStorageStatus;
|
||||||
void DispatchStatusChangeEvent(nsAString& aStatus);
|
void DispatchStatusChangeEvent(nsAString& aStatus);
|
||||||
void DispatchStorageStatusChangeEvent(nsAString& aVolumeStatus);
|
void DispatchStorageStatusChangeEvent(nsAString& aStorageStatus);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// nsIDOMDeviceStorage.type
|
// nsIDOMDeviceStorage.type
|
||||||
|
|
|
@ -4161,13 +4161,19 @@ nsDOMDeviceStorage::DispatchStatusChangeEvent(nsAString& aStatus)
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
nsDOMDeviceStorage::DispatchStorageStatusChangeEvent(nsAString& aVolumeStatus)
|
nsDOMDeviceStorage::DispatchStorageStatusChangeEvent(nsAString& aStorageStatus)
|
||||||
{
|
{
|
||||||
|
if (aStorageStatus == mLastStorageStatus) {
|
||||||
|
// We've already sent this status, don't bother sending it again.
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
mLastStorageStatus = aStorageStatus;
|
||||||
|
|
||||||
DeviceStorageChangeEventInit init;
|
DeviceStorageChangeEventInit init;
|
||||||
init.mBubbles = true;
|
init.mBubbles = true;
|
||||||
init.mCancelable = false;
|
init.mCancelable = false;
|
||||||
init.mPath = mStorageName;
|
init.mPath = mStorageName;
|
||||||
init.mReason = aVolumeStatus;
|
init.mReason = aStorageStatus;
|
||||||
|
|
||||||
nsRefPtr<DeviceStorageChangeEvent> event =
|
nsRefPtr<DeviceStorageChangeEvent> event =
|
||||||
DeviceStorageChangeEvent::Constructor(this, NS_LITERAL_STRING("storage-state-change"),
|
DeviceStorageChangeEvent::Constructor(this, NS_LITERAL_STRING("storage-state-change"),
|
||||||
|
|
|
@ -36,7 +36,6 @@ function verifier(success, failure) {
|
||||||
var gData = [
|
var gData = [
|
||||||
{
|
{
|
||||||
perm: ["idle"],
|
perm: ["idle"],
|
||||||
settings: [["dom.idle-observers-api.enabled", true]],
|
|
||||||
verifier: verifier.toSource(),
|
verifier: verifier.toSource(),
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
|
@ -1589,8 +1589,7 @@ RilObject.prototype = {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.voiceRegistrationState.emergencyCallsOnly ||
|
if (this.voiceRegistrationState.emergencyCallsOnly) {
|
||||||
options.isDialEmergency) {
|
|
||||||
onerror(RIL_CALL_FAILCAUSE_TO_GECKO_CALL_ERROR[CALL_FAIL_UNOBTAINABLE_NUMBER]);
|
onerror(RIL_CALL_FAILCAUSE_TO_GECKO_CALL_ERROR[CALL_FAIL_UNOBTAINABLE_NUMBER]);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -1615,6 +1614,7 @@ RilObject.prototype = {
|
||||||
}
|
}
|
||||||
|
|
||||||
options.request = REQUEST_DIAL;
|
options.request = REQUEST_DIAL;
|
||||||
|
options.isEmergency = false;
|
||||||
this.sendDialRequest(options);
|
this.sendDialRequest(options);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -1637,6 +1637,8 @@ RilObject.prototype = {
|
||||||
|
|
||||||
options.request = RILQUIRKS_REQUEST_USE_DIAL_EMERGENCY_CALL ?
|
options.request = RILQUIRKS_REQUEST_USE_DIAL_EMERGENCY_CALL ?
|
||||||
REQUEST_DIAL_EMERGENCY_CALL : REQUEST_DIAL;
|
REQUEST_DIAL_EMERGENCY_CALL : REQUEST_DIAL;
|
||||||
|
options.isEmergency = true;
|
||||||
|
|
||||||
if (this.radioState == GECKO_RADIOSTATE_OFF) {
|
if (this.radioState == GECKO_RADIOSTATE_OFF) {
|
||||||
if (DEBUG) {
|
if (DEBUG) {
|
||||||
this.context.debug("Automatically enable radio for an emergency call.");
|
this.context.debug("Automatically enable radio for an emergency call.");
|
||||||
|
@ -4109,10 +4111,6 @@ RilObject.prototype = {
|
||||||
newCall.isOutgoing = true;
|
newCall.isOutgoing = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (newCall.isEmergency === undefined) {
|
|
||||||
newCall.isEmergency = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Set flag for conference.
|
// Set flag for conference.
|
||||||
newCall.isConference = newCall.isMpty ? true : false;
|
newCall.isConference = newCall.isMpty ? true : false;
|
||||||
|
|
||||||
|
|
|
@ -23,7 +23,7 @@ const GONK_TELEPHONYSERVICE_CONTRACTID =
|
||||||
const GONK_TELEPHONYSERVICE_CID =
|
const GONK_TELEPHONYSERVICE_CID =
|
||||||
Components.ID("{67d26434-d063-4d28-9f48-5b3189788155}");
|
Components.ID("{67d26434-d063-4d28-9f48-5b3189788155}");
|
||||||
|
|
||||||
const NS_XPCOM_SHUTDOWN_OBSERVER_ID = "xpcom-shutdown";
|
const NS_XPCOM_SHUTDOWN_OBSERVER_ID = "xpcom-shutdown";
|
||||||
|
|
||||||
const NS_PREFBRANCH_PREFCHANGE_TOPIC_ID = "nsPref:changed";
|
const NS_PREFBRANCH_PREFCHANGE_TOPIC_ID = "nsPref:changed";
|
||||||
|
|
||||||
|
@ -41,6 +41,7 @@ const CDMA_SECOND_CALL_INDEX = 2;
|
||||||
|
|
||||||
const DIAL_ERROR_INVALID_STATE_ERROR = "InvalidStateError";
|
const DIAL_ERROR_INVALID_STATE_ERROR = "InvalidStateError";
|
||||||
const DIAL_ERROR_OTHER_CONNECTION_IN_USE = "OtherConnectionInUse";
|
const DIAL_ERROR_OTHER_CONNECTION_IN_USE = "OtherConnectionInUse";
|
||||||
|
const DIAL_ERROR_BAD_NUMBER = RIL.GECKO_CALL_ERROR_BAD_NUMBER;
|
||||||
|
|
||||||
const AUDIO_STATE_NO_CALL = 0;
|
const AUDIO_STATE_NO_CALL = 0;
|
||||||
const AUDIO_STATE_INCOMING = 1;
|
const AUDIO_STATE_INCOMING = 1;
|
||||||
|
@ -428,112 +429,119 @@ TelephonyService.prototype = {
|
||||||
return hasConference ? numCalls + 1 : numCalls;
|
return hasConference ? numCalls + 1 : numCalls;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
_addCdmaChildCall: function(aClientId, aNumber, aParentId) {
|
||||||
|
let childCall = {
|
||||||
|
callIndex: CDMA_SECOND_CALL_INDEX,
|
||||||
|
state: RIL.CALL_STATE_DIALING,
|
||||||
|
number: aNumber,
|
||||||
|
isOutgoing: true,
|
||||||
|
isEmergency: false,
|
||||||
|
isConference: false,
|
||||||
|
isSwitchable: false,
|
||||||
|
isMergeable: true,
|
||||||
|
parentId: aParentId
|
||||||
|
};
|
||||||
|
|
||||||
|
// Manual update call state according to the request response.
|
||||||
|
this.notifyCallStateChanged(aClientId, childCall);
|
||||||
|
|
||||||
|
childCall.state = RIL.CALL_STATE_ACTIVE;
|
||||||
|
this.notifyCallStateChanged(aClientId, childCall);
|
||||||
|
|
||||||
|
let parentCall = this._currentCalls[aClientId][childCall.parentId];
|
||||||
|
parentCall.childId = CDMA_SECOND_CALL_INDEX;
|
||||||
|
parentCall.state = RIL.CALL_STATE_HOLDING;
|
||||||
|
parentCall.isSwitchable = false;
|
||||||
|
parentCall.isMergeable = true;
|
||||||
|
this.notifyCallStateChanged(aClientId, parentCall);
|
||||||
|
},
|
||||||
|
|
||||||
isDialing: false,
|
isDialing: false,
|
||||||
dial: function(aClientId, aNumber, aIsEmergency, aTelephonyCallback) {
|
dial: function(aClientId, aNumber, aIsDialEmergency, aCallback) {
|
||||||
if (DEBUG) debug("Dialing " + (aIsEmergency ? "emergency " : "") + aNumber);
|
if (DEBUG) debug("Dialing " + (aIsDialEmergency ? "emergency " : "") + aNumber);
|
||||||
|
|
||||||
if (this.isDialing) {
|
if (this.isDialing) {
|
||||||
if (DEBUG) debug("Error: Already has a dialing call.");
|
if (DEBUG) debug("Error: Already has a dialing call.");
|
||||||
aTelephonyCallback.notifyDialError(DIAL_ERROR_INVALID_STATE_ERROR);
|
aCallback.notifyDialError(DIAL_ERROR_INVALID_STATE_ERROR);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Select a proper clientId for dialEmergency.
|
|
||||||
if (aIsEmergency) {
|
|
||||||
aClientId = gRadioInterfaceLayer.getClientIdForEmergencyCall() ;
|
|
||||||
if (aClientId === -1) {
|
|
||||||
if (DEBUG) debug("Error: No client is avaialble for emergency call.");
|
|
||||||
aTelephonyCallback.notifyDialError(DIAL_ERROR_INVALID_STATE_ERROR);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// For DSDS, if there is aleady a call on SIM 'aClientId', we cannot place
|
// For DSDS, if there is aleady a call on SIM 'aClientId', we cannot place
|
||||||
// any new call on other SIM.
|
// any new call on other SIM.
|
||||||
if (this._hasCallsOnOtherClient(aClientId)) {
|
if (this._hasCallsOnOtherClient(aClientId)) {
|
||||||
if (DEBUG) debug("Error: Already has a call on other sim.");
|
if (DEBUG) debug("Error: Already has a call on other sim.");
|
||||||
aTelephonyCallback.notifyDialError(DIAL_ERROR_OTHER_CONNECTION_IN_USE);
|
aCallback.notifyDialError(DIAL_ERROR_OTHER_CONNECTION_IN_USE);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// We can only have at most two calls on the same line (client).
|
// We can only have at most two calls on the same line (client).
|
||||||
if (this._numCallsOnLine(aClientId) >= 2) {
|
if (this._numCallsOnLine(aClientId) >= 2) {
|
||||||
if (DEBUG) debug("Error: Has more than 2 calls on line.");
|
if (DEBUG) debug("Error: Has more than 2 calls on line.");
|
||||||
aTelephonyCallback.notifyDialError(DIAL_ERROR_INVALID_STATE_ERROR);
|
aCallback.notifyDialError(DIAL_ERROR_INVALID_STATE_ERROR);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// We don't try to be too clever here, as the phone is probably in the
|
// We don't try to be too clever here, as the phone is probably in the
|
||||||
// locked state. Let's just check if it's a number without normalizing
|
// locked state. Let's just check if it's a number without normalizing
|
||||||
if (!aIsEmergency) {
|
if (!aIsDialEmergency) {
|
||||||
aNumber = gPhoneNumberUtils.normalize(aNumber);
|
aNumber = gPhoneNumberUtils.normalize(aNumber);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Validate the number.
|
// Validate the number.
|
||||||
|
// Note: isPlainPhoneNumber also accepts USSD and SS numbers
|
||||||
if (!gPhoneNumberUtils.isPlainPhoneNumber(aNumber)) {
|
if (!gPhoneNumberUtils.isPlainPhoneNumber(aNumber)) {
|
||||||
// Note: isPlainPhoneNumber also accepts USSD and SS numbers
|
if (DEBUG) debug("Error: Number '" + aNumber + "' is not viable. Drop.");
|
||||||
if (DEBUG) debug("Number '" + aNumber + "' is not viable. Drop.");
|
aCallback.notifyDialError(DIAL_ERROR_BAD_NUMBER);
|
||||||
let errorMsg = RIL.RIL_CALL_FAILCAUSE_TO_GECKO_CALL_ERROR[RIL.CALL_FAIL_UNOBTAINABLE_NUMBER];
|
|
||||||
aTelephonyCallback.notifyDialError(errorMsg);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
function onCdmaDialSuccess(aCallIndex) {
|
if (this._isEmergencyNumber(aNumber)) {
|
||||||
let indexes = Object.keys(this._currentCalls[aClientId]);
|
// Select a proper clientId for dialEmergency.
|
||||||
if (indexes.length == 0) {
|
aClientId = gRadioInterfaceLayer.getClientIdForEmergencyCall() ;
|
||||||
aTelephonyCallback.notifyDialSuccess(aCallIndex);
|
|
||||||
|
if (aClientId === -1) {
|
||||||
|
if (DEBUG) debug("Error: No client is avaialble for emergency call.");
|
||||||
|
aCallback.notifyDialError(DIAL_ERROR_INVALID_STATE_ERROR);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// RIL doesn't hold the 2nd call. We create one by ourselves.
|
this._dialInternal(aClientId, "dialEmergencyNumber", aNumber, aCallback);
|
||||||
let childCall = {
|
} else {
|
||||||
callIndex: CDMA_SECOND_CALL_INDEX,
|
// Shouldn't dial a non-emergency number by dialEmergency.
|
||||||
state: RIL.CALL_STATE_DIALING,
|
if (aIsDialEmergency) {
|
||||||
number: aNumber,
|
if (DEBUG) debug("Error: dialEmergency with a non-emergency number");
|
||||||
isOutgoing: true,
|
aCallback.notifyDialError(DIAL_ERROR_BAD_NUMBER);
|
||||||
isEmergency: false,
|
return;
|
||||||
isConference: false,
|
}
|
||||||
isSwitchable: false,
|
|
||||||
isMergeable: true,
|
|
||||||
parentId: indexes[0]
|
|
||||||
};
|
|
||||||
aTelephonyCallback.notifyDialSuccess(CDMA_SECOND_CALL_INDEX);
|
|
||||||
|
|
||||||
// Manual update call state according to the request response.
|
this._dialInternal(aClientId, "dialNonEmergencyNumber", aNumber, aCallback);
|
||||||
this.notifyCallStateChanged(aClientId, childCall);
|
}
|
||||||
|
},
|
||||||
|
|
||||||
childCall.state = RIL.CALL_STATE_ACTIVE;
|
_dialInternal: function(aClientId, aMsg, aNumber, aCallback) {
|
||||||
this.notifyCallStateChanged(aClientId, childCall);
|
|
||||||
|
|
||||||
let parentCall = this._currentCalls[aClientId][childCall.parentId];
|
|
||||||
parentCall.childId = CDMA_SECOND_CALL_INDEX;
|
|
||||||
parentCall.state = RIL.CALL_STATE_HOLDING;
|
|
||||||
parentCall.isSwitchable = false;
|
|
||||||
parentCall.isMergeable = true;
|
|
||||||
this.notifyCallStateChanged(aClientId, parentCall);
|
|
||||||
};
|
|
||||||
|
|
||||||
let isEmergencyNumber = this._isEmergencyNumber(aNumber);
|
|
||||||
let msg = isEmergencyNumber ?
|
|
||||||
"dialEmergencyNumber" :
|
|
||||||
"dialNonEmergencyNumber";
|
|
||||||
this.isDialing = true;
|
this.isDialing = true;
|
||||||
this._getClient(aClientId).sendWorkerMessage(msg, {
|
this._getClient(aClientId).sendWorkerMessage(aMsg,
|
||||||
number: aNumber,
|
{number: aNumber},
|
||||||
isEmergency: isEmergencyNumber,
|
(function(response) {
|
||||||
isDialEmergency: aIsEmergency
|
|
||||||
}, (function(response) {
|
|
||||||
this.isDialing = false;
|
this.isDialing = false;
|
||||||
if (!response.success) {
|
if (!response.success) {
|
||||||
aTelephonyCallback.notifyDialError(response.errorMsg);
|
aCallback.notifyDialError(response.errorMsg);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (response.isCdma) {
|
if (!response.isCdma) {
|
||||||
onCdmaDialSuccess.call(this, response.callIndex);
|
aCallback.notifyDialSuccess(response.callIndex);
|
||||||
} else {
|
} else {
|
||||||
aTelephonyCallback.notifyDialSuccess(response.callIndex);
|
let currentCallId = Object.keys(this._currentCalls[aClientId])[0];
|
||||||
|
if (currentCallId === undefined) {
|
||||||
|
aCallback.notifyDialSuccess(response.callIndex);
|
||||||
|
} else {
|
||||||
|
// RIL doesn't hold the 2nd call. We create one by ourselves.
|
||||||
|
aCallback.notifyDialSuccess(CDMA_SECOND_CALL_INDEX);
|
||||||
|
this._addCdmaChildCall(aClientId, aNumber, currentCallId);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}).bind(this));
|
}).bind(this));
|
||||||
},
|
},
|
||||||
|
@ -615,7 +623,7 @@ TelephonyService.prototype = {
|
||||||
this.notifyCallStateChanged(aClientId, call);
|
this.notifyCallStateChanged(aClientId, call);
|
||||||
}
|
}
|
||||||
this.notifyConferenceCallStateChanged(RIL.CALL_STATE_ACTIVE);
|
this.notifyConferenceCallStateChanged(RIL.CALL_STATE_ACTIVE);
|
||||||
};
|
}
|
||||||
|
|
||||||
this._getClient(aClientId).sendWorkerMessage("conferenceCall", null,
|
this._getClient(aClientId).sendWorkerMessage("conferenceCall", null,
|
||||||
(function(response) {
|
(function(response) {
|
||||||
|
@ -660,7 +668,7 @@ TelephonyService.prototype = {
|
||||||
|
|
||||||
let childCall = this._currentCalls[aClientId][childId];
|
let childCall = this._currentCalls[aClientId][childId];
|
||||||
this.notifyCallDisconnected(aClientId, childCall);
|
this.notifyCallDisconnected(aClientId, childCall);
|
||||||
};
|
}
|
||||||
|
|
||||||
this._getClient(aClientId).sendWorkerMessage("separateCall", {
|
this._getClient(aClientId).sendWorkerMessage("separateCall", {
|
||||||
callIndex: aCallIndex
|
callIndex: aCallIndex
|
||||||
|
@ -825,28 +833,25 @@ TelephonyService.prototype = {
|
||||||
aCall.clientId = aClientId;
|
aCall.clientId = aClientId;
|
||||||
this._updateActiveCall(aCall);
|
this._updateActiveCall(aCall);
|
||||||
|
|
||||||
|
function pick(arg, defaultValue) {
|
||||||
|
return typeof arg !== 'undefined' ? arg : defaultValue;
|
||||||
|
}
|
||||||
|
|
||||||
let call = this._currentCalls[aClientId][aCall.callIndex];
|
let call = this._currentCalls[aClientId][aCall.callIndex];
|
||||||
if (call) {
|
if (call) {
|
||||||
call.state = aCall.state;
|
call.state = aCall.state;
|
||||||
call.isConference = aCall.isConference;
|
call.isConference = aCall.isConference;
|
||||||
call.isEmergency = aCall.isEmergency;
|
call.isEmergency = pick(aCall.isEmergency, call.isEmergency);
|
||||||
call.isSwitchable = aCall.isSwitchable != null ?
|
call.isSwitchable = pick(aCall.isSwitchable, call.isSwitchable);
|
||||||
aCall.isSwitchable : call.isSwitchable;
|
call.isMergeable = pick(aCall.isMergeable, call.isMergeable);
|
||||||
call.isMergeable = aCall.isMergeable != null ?
|
|
||||||
aCall.isMergeable : call.isMergeable;
|
|
||||||
} else {
|
} else {
|
||||||
call = aCall;
|
call = aCall;
|
||||||
call.isSwitchable = aCall.isSwitchable != null ?
|
call.isEmergency = pick(aCall.isEmergency, this._isEmergencyNumber(aCall.number));
|
||||||
aCall.isSwitchable : true;
|
call.isSwitchable = pick(aCall.isSwitchable, true);
|
||||||
call.isMergeable = aCall.isMergeable != null ?
|
call.isMergeable = pick(aCall.isMergeable, true);
|
||||||
aCall.isMergeable : true;
|
call.name = pick(aCall.name, "");
|
||||||
|
call.numberPresentaation = pick(aCall.numberPresentation, nsITelephonyService.CALL_PRESENTATION_ALLOWED);
|
||||||
call.numberPresentation = aCall.numberPresentation != null ?
|
call.namePresentaation = pick(aCall.namePresentation, nsITelephonyService.CALL_PRESENTATION_ALLOWED);
|
||||||
aCall.numberPresentation : nsITelephonyService.CALL_PRESENTATION_ALLOWED;
|
|
||||||
call.name = aCall.name != null ?
|
|
||||||
aCall.name : "";
|
|
||||||
call.namePresentation = aCall.namePresentation != null ?
|
|
||||||
aCall.namePresentation : nsITelephonyService.CALL_PRESENTATION_ALLOWED;
|
|
||||||
|
|
||||||
this._currentCalls[aClientId][aCall.callIndex] = call;
|
this._currentCalls[aClientId][aCall.callIndex] = call;
|
||||||
}
|
}
|
||||||
|
|
|
@ -86,6 +86,9 @@ interface NavigatorStorageUtils {
|
||||||
interface NavigatorFeatures {
|
interface NavigatorFeatures {
|
||||||
[CheckPermissions="feature-detection", Throws]
|
[CheckPermissions="feature-detection", Throws]
|
||||||
Promise<any> getFeature(DOMString name);
|
Promise<any> getFeature(DOMString name);
|
||||||
|
|
||||||
|
[CheckPermissions="feature-detection", Throws]
|
||||||
|
Promise<any> hasFeature(DOMString name);
|
||||||
};
|
};
|
||||||
|
|
||||||
// Things that definitely need to be in the spec and and are not for some
|
// Things that definitely need to be in the spec and and are not for some
|
||||||
|
@ -195,13 +198,13 @@ partial interface Navigator {
|
||||||
/**
|
/**
|
||||||
* Navigator requests to add an idle observer to the existing window.
|
* Navigator requests to add an idle observer to the existing window.
|
||||||
*/
|
*/
|
||||||
[Throws, CheckPermissions="idle", Pref="dom.idle-observers-api.enabled"]
|
[Throws, CheckPermissions="idle"]
|
||||||
void addIdleObserver(MozIdleObserver aIdleObserver);
|
void addIdleObserver(MozIdleObserver aIdleObserver);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Navigator requests to remove an idle observer from the existing window.
|
* Navigator requests to remove an idle observer from the existing window.
|
||||||
*/
|
*/
|
||||||
[Throws, CheckPermissions="idle", Pref="dom.idle-observers-api.enabled"]
|
[Throws, CheckPermissions="idle"]
|
||||||
void removeIdleObserver(MozIdleObserver aIdleObserver);
|
void removeIdleObserver(MozIdleObserver aIdleObserver);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -7,7 +7,6 @@
|
||||||
[CheckPermissions="resourcestats-manage",
|
[CheckPermissions="resourcestats-manage",
|
||||||
Pref="dom.resource_stats.enabled",
|
Pref="dom.resource_stats.enabled",
|
||||||
AvailableIn="CertifiedApps",
|
AvailableIn="CertifiedApps",
|
||||||
// FeatureDetectible, // This should be specified after Bug 1009645 is resolved.
|
|
||||||
JSImplementation="@mozilla.org/networkStatsData;1"]
|
JSImplementation="@mozilla.org/networkStatsData;1"]
|
||||||
interface NetworkStatsData
|
interface NetworkStatsData
|
||||||
{
|
{
|
||||||
|
@ -19,7 +18,6 @@ interface NetworkStatsData
|
||||||
[CheckPermissions="resourcestats-manage",
|
[CheckPermissions="resourcestats-manage",
|
||||||
Pref="dom.resource_stats.enabled",
|
Pref="dom.resource_stats.enabled",
|
||||||
AvailableIn="CertifiedApps",
|
AvailableIn="CertifiedApps",
|
||||||
// FeatureDetectible, // This should be specified after Bug 1009645 is resolved.
|
|
||||||
JSImplementation="@mozilla.org/powerStatsData;1"]
|
JSImplementation="@mozilla.org/powerStatsData;1"]
|
||||||
interface PowerStatsData
|
interface PowerStatsData
|
||||||
{
|
{
|
||||||
|
@ -30,7 +28,6 @@ interface PowerStatsData
|
||||||
[CheckPermissions="resourcestats-manage",
|
[CheckPermissions="resourcestats-manage",
|
||||||
Pref="dom.resource_stats.enabled",
|
Pref="dom.resource_stats.enabled",
|
||||||
AvailableIn="CertifiedApps",
|
AvailableIn="CertifiedApps",
|
||||||
// FeatureDetectible, // This should be specified after Bug 1009645 is resolved.
|
|
||||||
JSImplementation="@mozilla.org/resourceStats;1"]
|
JSImplementation="@mozilla.org/resourceStats;1"]
|
||||||
interface ResourceStats
|
interface ResourceStats
|
||||||
{
|
{
|
||||||
|
|
|
@ -73,7 +73,6 @@ dictionary ResourceStatsAlarmOptions
|
||||||
[CheckPermissions="resourcestats-manage",
|
[CheckPermissions="resourcestats-manage",
|
||||||
Pref="dom.resource_stats.enabled",
|
Pref="dom.resource_stats.enabled",
|
||||||
AvailableIn="CertifiedApps",
|
AvailableIn="CertifiedApps",
|
||||||
// FeatureDetectible, // This should be specified after Bug 1009645 is resolved.
|
|
||||||
JSImplementation="@mozilla.org/resourceStatsAlarm;1"]
|
JSImplementation="@mozilla.org/resourceStatsAlarm;1"]
|
||||||
interface ResourceStatsAlarm
|
interface ResourceStatsAlarm
|
||||||
{
|
{
|
||||||
|
@ -117,7 +116,6 @@ interface ResourceStatsAlarm
|
||||||
Pref="dom.resource_stats.enabled",
|
Pref="dom.resource_stats.enabled",
|
||||||
Constructor(ResourceType type),
|
Constructor(ResourceType type),
|
||||||
AvailableIn="CertifiedApps",
|
AvailableIn="CertifiedApps",
|
||||||
// FeatureDetectible, // This should be specified after Bug 1009645 is resolved.
|
|
||||||
JSImplementation="@mozilla.org/resourceStatsManager;1"]
|
JSImplementation="@mozilla.org/resourceStatsManager;1"]
|
||||||
interface ResourceStatsManager
|
interface ResourceStatsManager
|
||||||
{
|
{
|
||||||
|
|
|
@ -133,7 +133,7 @@ public class TabCounter extends ThemedTextSwitcher
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public View makeView() {
|
public View makeView() {
|
||||||
return mInflater.inflate(mLayoutId, this, false);
|
return mInflater.inflate(mLayoutId, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,6 +17,16 @@ const SEARCH_RESPONSE_SUGGESTION_JSON = "application/x-suggestions+json";
|
||||||
const DEFAULT_FORM_HISTORY_PARAM = "searchbar-history";
|
const DEFAULT_FORM_HISTORY_PARAM = "searchbar-history";
|
||||||
const HTTP_OK = 200;
|
const HTTP_OK = 200;
|
||||||
const REMOTE_TIMEOUT = 500; // maximum time (ms) to wait before giving up on a remote suggestions
|
const REMOTE_TIMEOUT = 500; // maximum time (ms) to wait before giving up on a remote suggestions
|
||||||
|
const BROWSER_SUGGEST_PREF = "browser.search.suggest.enabled";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Remote search suggestions will be shown if gRemoteSuggestionsEnabled
|
||||||
|
* is true. Global because only one pref observer is needed for all instances.
|
||||||
|
*/
|
||||||
|
let gRemoteSuggestionsEnabled = Services.prefs.getBoolPref(BROWSER_SUGGEST_PREF);
|
||||||
|
Services.prefs.addObserver(BROWSER_SUGGEST_PREF, function(aSubject, aTopic, aData) {
|
||||||
|
gRemoteSuggestionsEnabled = Services.prefs.getBoolPref(BROWSER_SUGGEST_PREF);
|
||||||
|
}, false);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* SearchSuggestionController.jsm exists as a helper module to allow multiple consumers to request and display
|
* SearchSuggestionController.jsm exists as a helper module to allow multiple consumers to request and display
|
||||||
|
@ -124,7 +134,7 @@ this.SearchSuggestionController.prototype = {
|
||||||
this._searchString = searchTerm;
|
this._searchString = searchTerm;
|
||||||
|
|
||||||
// Remote results
|
// Remote results
|
||||||
if (searchTerm && this.maxRemoteResults &&
|
if (searchTerm && gRemoteSuggestionsEnabled && this.maxRemoteResults &&
|
||||||
engine.supportsResponseType(SEARCH_RESPONSE_SUGGESTION_JSON)) {
|
engine.supportsResponseType(SEARCH_RESPONSE_SUGGESTION_JSON)) {
|
||||||
this._deferredRemoteResult = this._fetchRemote(searchTerm, engine, privateMode);
|
this._deferredRemoteResult = this._fetchRemote(searchTerm, engine, privateMode);
|
||||||
promises.push(this._deferredRemoteResult.promise);
|
promises.push(this._deferredRemoteResult.promise);
|
||||||
|
|
|
@ -2,10 +2,6 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
const BROWSER_SUGGEST_PREF = "browser.search.suggest.enabled";
|
|
||||||
const XPCOM_SHUTDOWN_TOPIC = "xpcom-shutdown";
|
|
||||||
const NS_PREFBRANCH_PREFCHANGE_TOPIC_ID = "nsPref:changed";
|
|
||||||
|
|
||||||
const { classes: Cc, interfaces: Ci, utils: Cu, results: Cr } = Components;
|
const { classes: Cc, interfaces: Ci, utils: Cu, results: Cr } = Components;
|
||||||
|
|
||||||
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
|
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
|
||||||
|
@ -28,8 +24,6 @@ function SuggestAutoComplete() {
|
||||||
SuggestAutoComplete.prototype = {
|
SuggestAutoComplete.prototype = {
|
||||||
|
|
||||||
_init: function() {
|
_init: function() {
|
||||||
this._addObservers();
|
|
||||||
this._suggestEnabled = Services.prefs.getBoolPref(BROWSER_SUGGEST_PREF);
|
|
||||||
this._suggestionController = new SearchSuggestionController(obj => this.onResultsReturned(obj));
|
this._suggestionController = new SearchSuggestionController(obj => this.onResultsReturned(obj));
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -39,11 +33,6 @@ SuggestAutoComplete.prototype = {
|
||||||
return this._suggestionLabel = bundle.GetStringFromName("suggestion_label");
|
return this._suggestionLabel = bundle.GetStringFromName("suggestion_label");
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
|
||||||
* Search suggestions will be shown if this._suggestEnabled is true.
|
|
||||||
*/
|
|
||||||
_suggestEnabled: null,
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The object implementing nsIAutoCompleteObserver that we notify when
|
* The object implementing nsIAutoCompleteObserver that we notify when
|
||||||
* we have found results
|
* we have found results
|
||||||
|
@ -178,32 +167,6 @@ SuggestAutoComplete.prototype = {
|
||||||
this._suggestionController.stop();
|
this._suggestionController.stop();
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
|
||||||
* nsIObserver
|
|
||||||
*/
|
|
||||||
observe: function SAC_observe(aSubject, aTopic, aData) {
|
|
||||||
switch (aTopic) {
|
|
||||||
case NS_PREFBRANCH_PREFCHANGE_TOPIC_ID:
|
|
||||||
this._suggestEnabled = Services.prefs.getBoolPref(BROWSER_SUGGEST_PREF);
|
|
||||||
break;
|
|
||||||
case XPCOM_SHUTDOWN_TOPIC:
|
|
||||||
this._removeObservers();
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
_addObservers: function SAC_addObservers() {
|
|
||||||
Services.prefs.addObserver(BROWSER_SUGGEST_PREF, this, false);
|
|
||||||
|
|
||||||
Services.obs.addObserver(this, XPCOM_SHUTDOWN_TOPIC, false);
|
|
||||||
},
|
|
||||||
|
|
||||||
_removeObservers: function SAC_removeObservers() {
|
|
||||||
Services.prefs.removeObserver(BROWSER_SUGGEST_PREF, this);
|
|
||||||
|
|
||||||
Services.obs.removeObserver(this, XPCOM_SHUTDOWN_TOPIC);
|
|
||||||
},
|
|
||||||
|
|
||||||
// nsISupports
|
// nsISupports
|
||||||
QueryInterface: XPCOMUtils.generateQI([Ci.nsIAutoCompleteSearch,
|
QueryInterface: XPCOMUtils.generateQI([Ci.nsIAutoCompleteSearch,
|
||||||
Ci.nsIAutoCompleteObserver])
|
Ci.nsIAutoCompleteObserver])
|
||||||
|
|
|
@ -278,6 +278,49 @@ add_task(function* one_of_each() {
|
||||||
do_check_eq(result.remote[0], "letter B");
|
do_check_eq(result.remote[0], "letter B");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
add_task(function* local_result_returned_remote_result_disabled() {
|
||||||
|
Services.prefs.setBoolPref("browser.search.suggest.enabled", false);
|
||||||
|
let controller = new SearchSuggestionController();
|
||||||
|
controller.maxLocalResults = 1;
|
||||||
|
controller.maxRemoteResults = 1;
|
||||||
|
let result = yield controller.fetch("letter ", false, getEngine);
|
||||||
|
do_check_eq(result.term, "letter ");
|
||||||
|
do_check_eq(result.local.length, 1);
|
||||||
|
do_check_eq(result.local[0], "letter A");
|
||||||
|
do_check_eq(result.remote.length, 0);
|
||||||
|
Services.prefs.clearUserPref("browser.search.suggest.enabled");
|
||||||
|
});
|
||||||
|
|
||||||
|
add_task(function* local_result_returned_remote_result_disabled_after_creation_of_controller() {
|
||||||
|
let controller = new SearchSuggestionController();
|
||||||
|
controller.maxLocalResults = 1;
|
||||||
|
controller.maxRemoteResults = 1;
|
||||||
|
Services.prefs.setBoolPref("browser.search.suggest.enabled", false);
|
||||||
|
let result = yield controller.fetch("letter ", false, getEngine);
|
||||||
|
do_check_eq(result.term, "letter ");
|
||||||
|
do_check_eq(result.local.length, 1);
|
||||||
|
do_check_eq(result.local[0], "letter A");
|
||||||
|
do_check_eq(result.remote.length, 0);
|
||||||
|
});
|
||||||
|
|
||||||
|
add_task(function* one_of_each_disabled_before_creation_enabled_after_creation_of_controller() {
|
||||||
|
Services.prefs.setBoolPref("browser.search.suggest.enabled", false);
|
||||||
|
let controller = new SearchSuggestionController();
|
||||||
|
controller.maxLocalResults = 1;
|
||||||
|
controller.maxRemoteResults = 1;
|
||||||
|
Services.prefs.setBoolPref("browser.search.suggest.enabled", true);
|
||||||
|
let result = yield controller.fetch("letter ", false, getEngine);
|
||||||
|
do_check_eq(result.term, "letter ");
|
||||||
|
do_check_eq(result.local.length, 1);
|
||||||
|
do_check_eq(result.local[0], "letter A");
|
||||||
|
do_check_eq(result.remote.length, 1);
|
||||||
|
do_check_eq(result.remote[0], "letter B");
|
||||||
|
});
|
||||||
|
|
||||||
|
add_task(function* clear_suggestions_pref() {
|
||||||
|
Services.prefs.clearUserPref("browser.search.suggest.enabled");
|
||||||
|
});
|
||||||
|
|
||||||
add_task(function* one_local_zero_remote() {
|
add_task(function* one_local_zero_remote() {
|
||||||
let controller = new SearchSuggestionController();
|
let controller = new SearchSuggestionController();
|
||||||
controller.maxLocalResults = 1;
|
controller.maxLocalResults = 1;
|
||||||
|
|
|
@ -0,0 +1,13 @@
|
||||||
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
|
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
|
||||||
|
@namespace html url("http://www.w3.org/1999/xhtml");
|
||||||
|
|
||||||
|
/* Apply crisp rendering for favicons at exactly 2dppx resolution */
|
||||||
|
@media (resolution: 2dppx) {
|
||||||
|
.ac-site-icon {
|
||||||
|
image-rendering: -moz-crisp-edges;
|
||||||
|
}
|
||||||
|
}
|
|
@ -11,6 +11,7 @@ toolkit.jar:
|
||||||
* content/global/xul.css (xul.css)
|
* content/global/xul.css (xul.css)
|
||||||
content/global/textbox.css (textbox.css)
|
content/global/textbox.css (textbox.css)
|
||||||
content/global/menulist.css (menulist.css)
|
content/global/menulist.css (menulist.css)
|
||||||
|
content/global/autocomplete.css (autocomplete.css)
|
||||||
content/global/about.js (about.js)
|
content/global/about.js (about.js)
|
||||||
content/global/about.xhtml (about.xhtml)
|
content/global/about.xhtml (about.xhtml)
|
||||||
content/global/aboutAbout.js (aboutAbout.js)
|
content/global/aboutAbout.js (aboutAbout.js)
|
||||||
|
|
|
@ -19,6 +19,7 @@
|
||||||
<binding id="autocomplete" role="xul:combobox"
|
<binding id="autocomplete" role="xul:combobox"
|
||||||
extends="chrome://global/content/bindings/textbox.xml#textbox">
|
extends="chrome://global/content/bindings/textbox.xml#textbox">
|
||||||
<resources>
|
<resources>
|
||||||
|
<stylesheet src="chrome://global/content/autocomplete.css"/>
|
||||||
<stylesheet src="chrome://global/skin/autocomplete.css"/>
|
<stylesheet src="chrome://global/skin/autocomplete.css"/>
|
||||||
</resources>
|
</resources>
|
||||||
|
|
||||||
|
@ -598,6 +599,7 @@
|
||||||
|
|
||||||
<binding id="autocomplete-result-popup" extends="chrome://global/content/bindings/autocomplete.xml#autocomplete-base-popup">
|
<binding id="autocomplete-result-popup" extends="chrome://global/content/bindings/autocomplete.xml#autocomplete-base-popup">
|
||||||
<resources>
|
<resources>
|
||||||
|
<stylesheet src="chrome://global/content/autocomplete.css"/>
|
||||||
<stylesheet src="chrome://global/skin/tree.css"/>
|
<stylesheet src="chrome://global/skin/tree.css"/>
|
||||||
<stylesheet src="chrome://global/skin/autocomplete.css"/>
|
<stylesheet src="chrome://global/skin/autocomplete.css"/>
|
||||||
</resources>
|
</resources>
|
||||||
|
@ -929,6 +931,7 @@ extends="chrome://global/content/bindings/popup.xml#popup">
|
||||||
|
|
||||||
<binding id="autocomplete-rich-result-popup" extends="chrome://global/content/bindings/autocomplete.xml#autocomplete-base-popup">
|
<binding id="autocomplete-rich-result-popup" extends="chrome://global/content/bindings/autocomplete.xml#autocomplete-base-popup">
|
||||||
<resources>
|
<resources>
|
||||||
|
<stylesheet src="chrome://global/content/autocomplete.css"/>
|
||||||
<stylesheet src="chrome://global/skin/autocomplete.css"/>
|
<stylesheet src="chrome://global/skin/autocomplete.css"/>
|
||||||
</resources>
|
</resources>
|
||||||
|
|
||||||
|
|
|
@ -448,13 +448,11 @@ let Option = Class({
|
||||||
},
|
},
|
||||||
|
|
||||||
write: function(arg, ctx, name) {
|
write: function(arg, ctx, name) {
|
||||||
if (!arg) {
|
// Ignore if arg is undefined or null; allow other falsy values
|
||||||
return undefined;
|
if (arg == undefined || arg[name] == undefined) {
|
||||||
}
|
|
||||||
let v = arg[name] || undefined;
|
|
||||||
if (v === undefined) {
|
|
||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
|
let v = arg[name];
|
||||||
return this.type.write(v, ctx);
|
return this.type.write(v, ctx);
|
||||||
},
|
},
|
||||||
read: function(v, ctx, outArgs, name) {
|
read: function(v, ctx, outArgs, name) {
|
||||||
|
|
|
@ -132,8 +132,18 @@ let RootActor = protocol.ActorClass({
|
||||||
oneway: true
|
oneway: true
|
||||||
}),
|
}),
|
||||||
|
|
||||||
|
emitFalsyOptions: method(function() {
|
||||||
|
events.emit(this, "falsyOptions", { zero: 0, farce: false });
|
||||||
|
}, {
|
||||||
|
oneway: true
|
||||||
|
}),
|
||||||
|
|
||||||
events: {
|
events: {
|
||||||
"oneway": { a: Arg(0) }
|
"oneway": { a: Arg(0) },
|
||||||
|
"falsyOptions": {
|
||||||
|
zero: Option(0),
|
||||||
|
farce: Option(0)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -223,7 +233,7 @@ function run_test()
|
||||||
trace.expectReceive({"from":"<actorid>"});
|
trace.expectReceive({"from":"<actorid>"});
|
||||||
do_check_true(typeof(ret.option1) === "undefined");
|
do_check_true(typeof(ret.option1) === "undefined");
|
||||||
do_check_true(typeof(ret.option2) === "undefined");
|
do_check_true(typeof(ret.option2) === "undefined");
|
||||||
}).then(ret => {
|
}).then(() => {
|
||||||
// Explicitly call an optional argument...
|
// Explicitly call an optional argument...
|
||||||
return rootClient.optionalArgs(5, 10);
|
return rootClient.optionalArgs(5, 10);
|
||||||
}).then(ret => {
|
}).then(ret => {
|
||||||
|
@ -268,6 +278,18 @@ function run_test()
|
||||||
});
|
});
|
||||||
do_check_true(typeof(rootClient.testOneWay("hello")) === "undefined");
|
do_check_true(typeof(rootClient.testOneWay("hello")) === "undefined");
|
||||||
return deferred.promise;
|
return deferred.promise;
|
||||||
|
}).then(() => {
|
||||||
|
let deferred = promise.defer();
|
||||||
|
rootClient.on("falsyOptions", res => {
|
||||||
|
trace.expectSend({"type":"emitFalsyOptions", "to":"<actorid>"});
|
||||||
|
trace.expectReceive({"type":"falsyOptions", "farce":false, "zero": 0, "from":"<actorid>"});
|
||||||
|
|
||||||
|
do_check_true(res.zero === 0);
|
||||||
|
do_check_true(res.farce === false);
|
||||||
|
deferred.resolve();
|
||||||
|
});
|
||||||
|
rootClient.emitFalsyOptions();
|
||||||
|
return deferred.promise;
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
client.close(() => {
|
client.close(() => {
|
||||||
do_test_finished();
|
do_test_finished();
|
||||||
|
|
|
@ -262,6 +262,7 @@ add_task(function* testUpdateButton() {
|
||||||
yield gInstallDeferred.promise;
|
yield gInstallDeferred.promise;
|
||||||
|
|
||||||
Assert.equal(gInstalledAddonId, OPENH264_PLUGIN_ID);
|
Assert.equal(gInstalledAddonId, OPENH264_PLUGIN_ID);
|
||||||
|
delete OpenH264Scope.GMPInstallManager;
|
||||||
});
|
});
|
||||||
|
|
||||||
add_task(function* test_cleanup() {
|
add_task(function* test_cleanup() {
|
||||||
|
|
|
@ -114,12 +114,6 @@ treechildren.autocomplete-treebody::-moz-tree-cell-text(selected) {
|
||||||
-moz-margin-end: 5px;
|
-moz-margin-end: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-resolution: 2dppx) {
|
|
||||||
image.ac-site-icon {
|
|
||||||
image-rendering: -moz-crisp-edges;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.ac-type-icon {
|
.ac-type-icon {
|
||||||
width: 16px;
|
width: 16px;
|
||||||
height: 16px;
|
height: 16px;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче