fqxufo
V2EX  ›  问与答

firefox 扩展中使用 cloudkit js 登陆 iCloud 失败

  •  
  •   fqxufo · Jun 23, 2019 · 1725 views
    This topic created in 2540 days ago, the information mentioned may be changed or developed.
    大致经过:我为某个论坛制作的一个集成黑名单屏蔽功能的浏览器扩展。最近利用 cloudkit js 增加了登陆 iCloud,获取 iOS 客户端上黑名单的功能,现在同样的一套代码,chrome 可以正常登陆,Firefox 不行。


    问题描述:主要是涉及到这个静态 html 页面: https://github.com/fqxufo/hipda-helper/blob/master/hipda/clouddemo.html
    对应的 js: https://github.com/fqxufo/hipda-helper/blob/master/hipda/icloudlist.js 。正常工作下的流程:点击 sign in 按钮,弹出 iCloud 登陆弹窗,成功登陆后回调用户 id 数据给原地址,进行后续查询操作。Firefox 下的故障是,弹出窗口后,输入账号密码登陆,不执行回调操作,原页面接受不到用户 id 数据。但是用 Firefox 单独打开这个 html,脱离扩展环境,是可以正常登陆账号回调数据的。
    1 replies    2019-06-24 11:57:08 +08:00
    dalieba
        1
    dalieba  
       Jun 24, 2019 via Android
    在这里发个帖子会有人帮忙 http://mozilla.com.cn/forum-45-1.html
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3018 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 13:20 · PVG 21:20 · LAX 06:20 · JFK 09:20
    ♥ Do have faith in what you're doing.