I have created an extension that modifies the html of an iframe, 4 days ago it stopped working. When I did the tests in windows chrome it only worked with my gmail, but when I accessed with other gmail, access to the iframe no longer worked. After this I decided to try it on a mac chrome and here if the extension works normally with multiple users. why did it stop working in windows? this is my code
manifest.js
{ "name": "xxxxxx", "description": "Extension for google", "version": "1.6", "manifest_version": 2, "icons": { "16": "./ images / icon48.png", "32": "./ images / icon48.png", "48": "./ images / icon48.png", "128": "./ images / icon48.png" }, "background": { "scripts": ["background.js"] }, "options_page": "options.html", "page_action": { "default_popup": "popup.html" }, "permissions": [ "https://docs.google.com/presentation/*" ], "content_scripts": [ { "matches": ["http: // * /", "https: // * / *"], "js": ["jquery.js", "foreground.js", "methods.js", "createBar.js", "sweetalert.js", "canvas.js"], "all_frames": true, "runt_at": "document_end" } ] }background.js
chrome.runtime.onMessage.addListener (function (request, sender, sendRequest) { if (request.todo == "showPageAction") { chrome.tabs.query ({active: true, currentWindow: true}, function (tabs) { chrome.pageAction.show (tabs [0] .id); }); } })foreground.js
chrome.runtime.sendMessage ({all: "showPageAction"}); chrome.runtime.onMessage.addListener (function (request, sender, sendMessage) { if (request.todo == "changeBg") { var iframehtml = $ (". punch-viewer-nav-rounded-container"); if (iframehtml) { createBar (); setOnclikElements (); } } });