Title: Firefox WebExtensions misdetected as Chrome Packaged Apps · Issue #16068 · angular/angular.js · GitHub
Open Graph Title: Firefox WebExtensions misdetected as Chrome Packaged Apps · Issue #16068 · angular/angular.js
X Title: Firefox WebExtensions misdetected as Chrome Packaged Apps · Issue #16068 · angular/angular.js
Description: I'm submitting a ... bug report feature request other (Please do not submit support requests here (see above)) Current behavior: In the current version of Firefox WebExtensions, window.chrome and window.chrome.runtime exist but window.ch...
Open Graph Description: I'm submitting a ... bug report feature request other (Please do not submit support requests here (see above)) Current behavior: In the current version of Firefox WebExtensions, window.chrome and w...
X Description: I'm submitting a ... bug report feature request other (Please do not submit support requests here (see above)) Current behavior: In the current version of Firefox WebExtensions, window.chrome a...
Opengraph URL: https://github.com/angular/angular.js/issues/16068
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Firefox WebExtensions misdetected as Chrome Packaged Apps","articleBody":"**I'm submitting a ...**\r\n\u003c!-- (check one with \"x\") -->\r\n- [x] bug report\r\n- [ ] feature request\r\n- [ ] other (Please do not submit support requests here (see above))\r\n\r\n**Current behavior:**\r\n\r\nIn the current version of Firefox WebExtensions, `window.chrome` and `window.chrome.runtime` exist but `window.chrome.app` does not. [A check in $sniffer](https://github.com/angular/angular.js/blob/7019d9f27af2cba8e2760d40b330bd53333488eb/src/ng/sniffer.js#L30) misdetects the application as a Chrome Packaged App. This in turn disables the HTML 5 History API support in the $location service causing unexpected behaviour elsewhere. In the case of our app it caused the $location service to try and redirect the browser to a hash-bangified version (`/path/app.html` => `#!/path/app.html`) of the URL on startup, breaking the app.\r\n\r\n**Expected / new behavior:**\r\n\r\nThe `isChromePackagedApp` check referenced above should return false in an HTML page loaded from a Firefox WebExtension.\r\n\r\n**Angular version:** 1.5.11\r\n**Browser:** [Firefox 51]\r\n\r\n**Other information**\r\n\r\nA workaround for Firefox WebExtension authors is to set `window.chrome.app` to a dummy object before Angular bootstraps so that the check does not produce a false positive.","author":{"url":"https://github.com/robertknight","@type":"Person","name":"robertknight"},"datePublished":"2017-06-23T08:07:27Z","url":"https://github.com/angular/angular.js/issues/16068"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:0a789802-67a0-40a9-f62e-0797a2302596 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B46E:26ECEB:19D3D53:20EA6B6:6B0135C7 |
| html-safe-nonce | 1a9abd896b6894407729a021bebb9aff6b920339530e2bbeee4997195bd30ada |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNDZFOjI2RUNFQjoxOUQzRDUzOjIwRUE2QjY6NkIwMTM1QzciLCJ2aXNpdG9yX2lkIjoiMjIwODU3MDA5Nzc2Nzg4ODMyOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | f5c81a2bd5b4d2518fa008217c7ac3d0c1c990318e513ff52bcd5005d8abeb6d |
| hovercard-subject-tag | issue:238070149 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular.js/16068/issue_layout |
| twitter:image | https://opengraph.githubassets.com/69e199dd83afc9131a5b83d49ca0857ba0e7af224c1fbb985688a43fc894aaaa/angular/angular.js/issues/16068 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/69e199dd83afc9131a5b83d49ca0857ba0e7af224c1fbb985688a43fc894aaaa/angular/angular.js/issues/16068 |
| og:image:alt | I'm submitting a ... bug report feature request other (Please do not submit support requests here (see above)) Current behavior: In the current version of Firefox WebExtensions, window.chrome and w... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | robertknight |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular.js git https://github.com/angular/angular.js.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 460078 |
| octolytics-dimension-repository_nwo | angular/angular.js |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 460078 |
| octolytics-dimension-repository_network_root_nwo | angular/angular.js |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width