| Index: chrome/test/data/extensions/browsertest/crash_25562/background.html
|
| ===================================================================
|
| --- chrome/test/data/extensions/browsertest/crash_25562/background.html (revision 0)
|
| +++ chrome/test/data/extensions/browsertest/crash_25562/background.html (revision 0)
|
| @@ -0,0 +1,28 @@
|
| +<html>
|
| +<script>
|
| + // The Page Action ID.
|
| + var pageActionId = "TestId";
|
| +
|
| + // The window this Page Action is associated with.
|
| + var windowId = -1;
|
| +
|
| + // The TabId this Page Action is associated with.
|
| + var tabId = -1;
|
| +
|
| + // The URL of the page on build.chromium.org.
|
| + var pageUrl = "";
|
| +
|
| + chrome.self.onConnect.addListener(function(port) {
|
| + windowId = port.tab.windowId;
|
| + tabId = port.tab.id;
|
| + pageUrl = port.tab.url;
|
| +
|
| + port.onMessage.addListener(function(mybool) {
|
| + // Let Chrome know that the PageAction needs to be enabled for this tabId
|
| + // and for the url of this page.
|
| + chrome.pageActions.enableForTab(pageActionId,
|
| + {tabId: tabId, url: pageUrl});
|
| + });
|
| + });
|
| +</script>
|
| +</html>
|
|
|