开发者

Trouble between an injected iframe and other web page (Google, Gmail, Pdf)

Well i'm currently developping my Toolbar for Google Chrome as a Extension. The main principe is that i'm all the time injecting the toolbar as an iframe by using the Content Script.

But now i see a couple of bug with gmail, google map/search, pdf an maybe other that i've not yet see...

Let me explain, when i go on 开发者_Python百科gmail, i don't see my toolbar at all... When i open Google, it seems really normal :

Trouble between an injected iframe and other web page (Google, Gmail, Pdf)

But then when i start a search my toolbar seems to overide the top link (web, images, videos, maps,...) I can't click on them anymore...

Trouble between an injected iframe and other web page (Google, Gmail, Pdf)

Next problem is when i'm trying to go on google map or trying to open a PDF, it seems to give the same css to these web pages from my toolbar...

Google Maps :

Trouble between an injected iframe and other web page (Google, Gmail, Pdf)

PDF :

Trouble between an injected iframe and other web page (Google, Gmail, Pdf)

Hope i where clear enough, do not hesitate to ask me question if necessary ;)


Why don't you use absolute/fixed positioning and style attributes? Using style attributes would remove the issue of the possible spread of CSS.


To remove the toolbar from pdf, you could write something that removes the element when on pdf?


Well, i've find a good solution to resolve the problem with PDF and Google Map it was a problem on my CSS.

About the google Search now it works perfectly by setting the body webpage as a fixed page like NeXXeus tell me but there is still a problem.

Check this out :

Trouble between an injected iframe and other web page (Google, Gmail, Pdf)

Trouble between an injected iframe and other web page (Google, Gmail, Pdf)

EDIT : We don't really see, the argument select/deselect is top: 0px;

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜