Closed Bug 1103354 Opened 11 years ago Closed 8 years ago

page-mod not attaching to some iframes (eg twitter widget)

Categories

(Add-on SDK Graveyard :: General, defect, P2)

defect

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: ke5trel, Unassigned)

References

Details

User Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:33.0) Gecko/20100101 Firefox/33.0 Build ID: 20141113143407 Steps to reproduce: Attempted to modify the twitter widgets on this page: http://twitframe.com With this code: pageMod.PageMod({ include: "*", contentScript: "var tweets = document.getElementsByClassName('tweet'); if (tweets[0]) {tweets[0].style.background = '#F00';}" }); Actual results: Doesn't attach, tweet not found, background not changed (FF33 & Nightly 36.0a1). Noticed that in FF24 it does work when attaching to existing page, by using attachTo:['existing', 'frame'] and enabling the addon with the page open. But after refreshing it no longer works. This is described in Bug 942314 which would suggest the include rules are responsible and not working properly for this iframe. Expected results: page-mod should attach to the #twitter-widget-0 iframe and change the tweet background color to red.
Flags: needinfo?(rFobic)
Priority: -- → P2
This affects iframes that are dynamically created with no src attribute and was fixed for Web Extensions by Bug 1272890.
See Also: → 1272890
Status: UNCONFIRMED → RESOLVED
Closed: 8 years ago
Resolution: --- → INCOMPLETE
Flags: needinfo?(rFobic)
You need to log in before you can comment on or make changes to this bug.