FB7597364 (attached video there)
Hello,
I have filled a radar but I'm wondering if I am misunderstanding the following (Safari TP 104+):
Here's the code I'm using:
2. Wait for the page to load
3. Quit Safari
4. Open Safari
Expected:
Actual:
Hello,
I have filled a radar but I'm wondering if I am misunderstanding the following (Safari TP 104+):
Make the extension open a new tab with the baseURI and a parameter, eg.:
safari-extension://2CB967-22BA-44F3-B604-72611F/aafefbf/test.html?title=Apple&color=red
Here's the code I'm using:
Code Block SFSafariApplication.getActiveWindow { activeWindow in SFSafariExtension.getBaseURI { baseURI in guard let baseURI = baseURI else { return } var urlComponents = URLComponents(string: baseURI.appendingPathComponent("test.html").absoluteString); urlComponents?.queryItems = [ URLQueryItem(name: "title", value: "Apple"), URLQueryItem(name: "color", value: "red"), ]; activeWindow?.openTab(with: (urlComponents?.url)!, makeActiveIfPossible: true, completionHandler: {_ in }); } }
2. Wait for the page to load
3. Quit Safari
4. Open Safari
Expected:
Safari updates the baseURL of that tab and keeps the query parameters, eg:
safari-extension://11111-new-baseURI-44F3-B604-72611F/o213s/test.html?title=Apple&color=red
Actual:
Safari updates the baseURL of that tab and strips the query parameters, eg:
safari-extension://11111-new-baseURI-44F3-B604-72611F/o213s/test.html