0
Chromium 버전 25.0.1364.160 우분투 12.10 (25.0.1364.160-0ubuntu0.12.10.1)에서 chrome.webRequest를 사용할 수 없습니다. 메서드에 액세스하려고 할 때 정의되지 않은 오류가 발생합니다. 크롬 네임 스페이스에도로드되지 않습니다.크롬에서 chrome.webRequest가 정의되지 않았습니다.
의 manifest.json :
{
"manifest_version": 2,
"name": "My Extension",
"description": "....",
"version": "0.9",
"browser_action": {
"default_icon": "icon.png",
"default_popup": "index.html"
},
"permissions": [
"experimental",
"webRequest",
"webRequestBlocking",
"<all_urls>"
],
"background": {
"scripts": ["index.js"],
"persistent": true
}
}
하는 index.js : 여기 내 코드와 구성은
console.log(chrome,'chrome');
출력 :
Object
Event: function (opt_eventName, opt_argSchemas, opt_eventOptions) {
app: Object
appNotifications: Object
bookmarks: Object
browserAction: Object
commands: Object
csi: function() { native function GetCSI(); return GetCSI();}
devtools: Object
extension: Object
i18n: Object
infobars: Object
loadTimes: function() { native function GetLoadTimes(); return GetLoadTimes();}
management: Object
omnibox: Object
pageAction: Object
permissions: Object
runtime: Object
scriptBadge: Object
searchBox: Object
tabs: Object
test: Object
tld: Object
types: Object
windows: Object
__proto__: Object
'webRequest' API는 실험적이지 않습니다. 실험 허가를 요청한 이유는 무엇입니까? –
문제 해결 단계. 귀하의 의견은 질문과 관련이 없습니다. 게다가, 나는 이미 이것을 알아 냈다 ... – systematical
'chrome.webRequest' API는 오랫동안 사용 가능했다. 발생한 문제는이 API와 관련이 없을 것입니다. 시험용 API가 사용 중지 된 경우 실험용 권한을 사용하는 확장 프로그램이 실패 할 것으로 예상됩니다 (crx 파일로 설치된 경우 전혀로드되지 않음). –